Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local t = script.Parent
- local slurp = false
- t.Equipped:connect(function(mouse)
- mouse.Button1Down:connect(function()
- if slurp == false then
- slurp = true
- local effect = t.Effect:Clone()
- effect.Parent = t.Parent.Torso
- effect.Disabled = false
- local hum = t.Parent.Humanoid
- hum:LoadAnimation(t.Animation):Play()
- local c = t.Handle:Clone()
- c.Parent = t
- c.Name = "GrabbedCan"
- c.CFrame = t.Handle.CFrame
- local w = Instance.new("Weld")
- w.Name = "CanWeld"
- w.Part0 = c
- w.Part1 = t.Parent["Right Arm"]
- w.C0 = w.Part0.CFrame:inverse()
- w.C1 = w.Part1.CFrame:inverse()
- w.Parent = c
- c.Drop.Disabled = false
- t.Handle.Transparency = 1
- t.Handle.Decal.Transparency = 1
- end
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement