How To Make The GrabPack In Roblox Studio
Автор: SkullTrooper Purple
Загружено: 2025-03-19
Просмотров: 3351
Описание:
Turn script:local OldC
function oldC(oldC0)
OldC = oldC0
end
script.Parent.Equipped:Connect(function()
local oldC0 = script.Parent.Parent.RightUpperArm.RightShoulder.C0
oldC(oldC0)
while wait() do
if script.Parent.Parent:FindFirstChild("Humanoid") then
local Character = script.Parent.Parent
local Shoulder = Character.RightUpperArm:FindFirstChild("RightShoulder", true)
local Root = Character:WaitForChild("HumanoidRootPart")
local CameraDirection = Root.CFrame:toObjectSpace(workspace.CurrentCamera.CFrame).lookVector.unit
Shoulder.C0 = CFrame.new(Shoulder.C0.p) * CFrame.Angles(math.asin(CameraDirection.y), -math.asin(CameraDirection.x), 0)
end
end
end)
script.Parent.Unequipped:Connect(function()
wait(0.0025)
script.Parent.Parent.Parent.Character.RightUpperArm.RightShoulder.CurrentAngle = 0
script.Parent.Parent.Parent.Character.RightUpperArm.RightShoulder.DesiredAngle = 0
script.Parent.Parent.Parent.Character.RightUpperArm.RightShoulder.MaxVelocity = 0
script.Parent.Parent.Parent.Character.RightUpperArm:FindFirstChild("RightShoulder", false)
script.Parent.Parent.Parent.Character.RightUpperArm.RightShoulder.C0 = OldC
end)
HandLScript:local player = game.Players.LocalPlayer
local Mouse = player:GetMouse()
local on = false
script.Parent.Equipped:Connect(function(Mouse)
Mouse.Button2Down:Connect(function()
script.Parent.Streak:Play()
if on==false then
on = true
script.Parent.HandL.Position = Mouse.Hit.Position + Vector3.new(0,0,0)
end
end)
Mouse.Button2Up:Connect(function()
script.Parent.End:Play()
if on==true then
on=false
script.Parent.HandL.Position = script.Parent.NO.Position + Vector3.new(0,0,0)
end
end)
end)
HandL2Script:local player = game.Players.LocalPlayer
local Mouse = player:GetMouse()
local on = false
script.Parent.Activated:connect(function()
script.Parent.Streak:Play()
if on==false then
on = true
script.Parent.HandL2.Position = Mouse.Hit.Position + Vector3.new(0,0,0)
end
end)
script.Parent.Deactivated:connect(function()
script.Parent.End:Play()
if on==true then
on=false
script.Parent.HandL2.Position = script.Parent.NO2.Position + Vector3.new(0,0,0)
end
end)
CollisionHandlerScript: local AllowAnchor = false
local Collidable = false
script.Parent.Equipped:Connect(function()
for _,v in pairs(script.Parent:GetChildren()) do
if v:IsA("UnionOperation") then
v.CanCollide = Collidable
v.Anchored = AllowAnchor
end
if v:IsA("Part") then
v.CanCollide = Collidable
v.Anchored = AllowAnchor
end
if v:IsA("MeshPart") then
v.CanCollide = Collidable
v.Anchored = AllowAnchor
end
end
end)
Weld Script (x2) :--====================Locals====================--
local Tool = script.Parent
local MainPart = Tool.Handle
--
local ReweldOnWeldRemoved = true
-====================Functions====================-
function WeldAB(A,B)
local Weld = Instance.new("Weld")
Weld.Part0 = A
Weld.Part1 = B
Weld.C0 = A.CFrame:inverse()*CFrame.new(A.Position)
Weld.C1 = B.CFrame:inverse()*CFrame.new(A.Position)
Weld.Parent = A
A.Anchored = false
B.Anchored = false
A.ChildRemoved:Connect(function(Obj)
if (Obj == Weld) and ReweldOnWeldRemoved then WeldAB(A,B) end
end)
end
function HandleGroups(Model)
for i,v in pairs(Model:GetChildren()) do
if v:IsA("BasePart") and v ~= MainPart then
WeldAB(MainPart,v)
elseif v:IsA("Model") or v:IsA("Folder") then
HandleGroups(v)
end
end
end
-====================Script====================-
for i,v in pairs(Tool:GetChildren()) do
if v:IsA("BasePart") and v ~= MainPart then
WeldAB(MainPart,v)
elseif v:IsA("Model") or v:IsA("Folder") then
HandleGroups(v)
end
end
-====================KeithKeiser971====================-
script:Destroy()
Line Connect Optional" wait()
local check = script.Part2
local part1 = script.Part1.Value
local part2 = script.Part2.Value
local parent = script.Par.Value
local color = script.Color
local line = Instance.new("Part")
line.TopSurface = 0
line.BottomSurface = 0
line.Reflectance = .5
line.Name = "Laser"
line.Locked = true
line.CanCollide = false
line.Anchored = true
line.formFactor = 0
line.Size = Vector3.new(.5,.5,.5)
local mesh = Instance.new("BlockMesh")
mesh.Parent = line
while true do
if (check.Value==nil) then break end
if (part1==nil or part2==nil or parent==nil) then break end
if (part1.Parent==nil or part2.Parent==nil) then break end
if (parent.Parent==nil) then break end
local lv = CFrame.new(part1.Position,part2.Position)
local dist = (part1.Position-part2.Position).magnitude
line.Parent = parent
line.BrickColor = color.Value.BrickColor
line.Reflectance = color.Value.Reflectance
line.Transparency = color.Value.Transparency
line.CFrame = CFrame.new(part1.Position+lv.lookVector*dist/2)
line.CFrame = CFrame.new(line.Position,part2.Position)
mesh.Scale = Vector3.new(.25,.25,dist)
wait()
end
line:remove()
script:remove()
READ ME : IF LINK DOESNT WORK GO TO THE GAME LINK AND COPY THE GAME.
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: