Advertisement
pork0

Untitled

Jul 10th, 2017
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. local t = script.Parent
  2. local slurp = false
  3. t.Equipped:connect(function(mouse)
  4. mouse.Button1Down:connect(function()
  5. if slurp == false then
  6. slurp = true
  7. local effect = t.Effect:Clone()
  8. effect.Parent = t.Parent.Torso
  9. effect.Disabled = false
  10. local hum = t.Parent.Humanoid
  11. hum:LoadAnimation(t.Animation):Play()
  12. local c = t.Handle:Clone()
  13. c.Parent = t
  14. c.Name = "GrabbedCan"
  15. c.CFrame = t.Handle.CFrame
  16. local w = Instance.new("Weld")
  17. w.Name = "CanWeld"
  18. w.Part0 = c
  19. w.Part1 = t.Parent["Right Arm"]
  20. w.C0 = w.Part0.CFrame:inverse()
  21. w.C1 = w.Part1.CFrame:inverse()
  22. w.Parent = c
  23. c.Drop.Disabled = false
  24. t.Handle.Transparency = 1
  25. t.Handle.Decal.Transparency = 1
  26. end
  27. end)
  28. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement