Advertisement
jassm11

Untitled

Jul 25th, 2017
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. player = game.Players.LocalPlayer
  2. mouse = player:GetMouse()
  3.  
  4. function KeyM(m)
  5.     key = key:lower(m)
  6.     local hotkey = script.Hotkey
  7.     local char = player.Character
  8.     if key == hotkey.Value then
  9.         local dance = Instance.new("Animation")
  10.         dance.AnimationId = "http://www.roblox.com/asset/?id=922895233" --- type here the animation ID
  11.         local animloader = char.Humanoid:LoadAnimation(dance)
  12.         animloader:Play()
  13.        
  14.     end
  15.    
  16. end
  17. mouse.KeyDown:connect(KeyM)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement