Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.LocalPlayer
- repeat wait() until player.Character.Humanoid
- local humanoid = player.Character.Humanoid
- local mouse = player:GetMouse()
- local once = true
- local enabled = true
- mouse.KeyDown:connect(function(key)
- if not enabled then return end
- enabled = false
- if key == "q" then
- if once == true then
- once = false
- local anim = Instance.new("Animation")
- anim.AnimationId = "http://www.roblox.com/asset/?id=(animation's Id)"
- local PlayAnim = humanoid:LoadAnimation(anim)
- PlayAnim:Play()
- wait(1)
- else
- once = true
- local anim2 = Instance.new("Animation")
- anim2.AnimationId = "http://www.roblox.com/asset/?id=(animation's Id)"
- local playAnim = humanoid:LoadAnimation(anim2)
- playAnim:Play()
- wait(1)
- end
- end
- wait(0.1)
- enabled = true
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement