Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onChatted(msg)
- if msg:sub(1,1)=="/"then
- local msg2 = msg:sub(2)
- if msg2:sub(1,4)=="headthrow"then
- Player = "LocalPlayer"
- AnimationId = "35154961"
- local Anim = Instance.new("Animation")
- Anim.AnimationId = "rbxassetid://"..AnimationId
- local k = game.Players[Player].Character.Humanoid:LoadAnimation(Anim)
- k:Play() --Play the animation
- k:AdjustSpeed(1) --Set '1' to any value you want to adjust the animation speed.
- wait(1)
Add Comment
Please, Sign In to add comment