Advertisement
Guest User

Untitled

a guest
Dec 15th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. repeat wait()until game.Players.LocalPlayer.Character
  2.  
  3. local plr = game.Players.LocalPlayer
  4. local char = plr.Character
  5.  
  6. debounce = false
  7.  
  8. script.Parent.Equipped:Connect(function()
  9. script.Parent.Activated:Connect(function()
  10. if debounce == false then
  11. debounce = true
  12. local anim = Instance.new("Animation",char)
  13. anim.AnimationId = "rbxassetid://2595049088"
  14. local playanim = char:FindFirstChild("Humanoid"):LoadAnimation(anim)
  15. playanim:Play()
  16. wait(1)
  17. debounce = false
  18. end
  19. end)
  20. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement