klops

Anarchy Admin

Oct 29th, 2017
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. function onChatted(msg)
  2. if msg:sub(1,1)=="/"then
  3. local msg2 = msg:sub(2)
  4. if msg2:sub(1,4)=="headthrow"then
  5. Player = "LocalPlayer"
  6. AnimationId = "35154961"
  7. local Anim = Instance.new("Animation")
  8. Anim.AnimationId = "rbxassetid://"..AnimationId
  9. local k = game.Players[Player].Character.Humanoid:LoadAnimation(Anim)
  10. k:Play() --Play the animation
  11. k:AdjustSpeed(1) --Set '1' to any value you want to adjust the animation speed.
  12. wait(1)
Add Comment
Please, Sign In to add comment