Advertisement
Guest User

Animation Changer

a guest
Dec 20th, 2019
931
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. local part = game.Workspace.Part
  2. local animation = game.Workspace.Animation
  3. animation.AnimationId = "http://roblox.com/Asset?ID=467504759"
  4.  
  5. local Pressed = false
  6.  
  7. part.Touched:Connect(function()
  8. if not Pressed then
  9. Pressed = true
  10. local animationTrack = game.Workspace.NPC.Humanoid:LoadAnimation(animation)
  11. animationTrack:Play()
  12. wait(4)
  13. Pressed = false
  14. end
  15. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement