Advertisement
Guest User

ROBLOX TopRock Emote Script

a guest
Apr 16th, 2019
5,861
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. local animation = Instance.new("Animation")
  2. animation.AnimationId = "http://www.roblox.com/Asset?ID=3058460854"
  3.  
  4. local trackanimation = nil
  5. local playability = true
  6. function playAnimation(AnimationSource)
  7. if playability == true then
  8. local plr = game.Players.LocalPlayer
  9. trackanimation = plr.Character.Humanoid:LoadAnimation(animation)
  10.  
  11. trackanimation.KeyframeReached:connect(function(kf)
  12. print('Working')
  13. end)
  14. trackanimation:Play()
  15. end
  16. end
  17. script.Parent.MouseButton1Click:connect(playAnimation)
  18.  
  19. --INSTRUCTIONS--
  20.  
  21. --1. In the "Explorer" tab on Roblox Studio, Insert "ScreenGui" in the "StarterGui" Folder
  22. --2. Insert "TextButton" on "ScreenGui"
  23. --3. Add "LocalScript" on "TextButton", and Clear Everything on the "LocalScript" and Copy & paste this into the "LocalScript"
  24. --4. Test it and Click the Gui Button on-screen!
  25. --5. Enjoy! :D
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement