RandyPasteBin

Tool Animation (LOCAL)

Jun 29th, 2019
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. script.Parent.Equipped:Connect(function(Mouse)
  2. Mouse.Button1Down:Connect(function()
  3. animation = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(script.Parent.Animation)
  4. animation:Play()
  5. end)
  6. end)
  7.  
  8. script.Parent.Unequipped:Connect(function()
  9. animation:Stop()
  10. end)
Add Comment
Please, Sign In to add comment