Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait(.1)
- local plr = game.Players.LocalPlayer
- local Humanoid = plr.Character:WaitForChild("Humanoid")
- local m = plr:GetMouse()
- local debounce = false
- m.KeyDown:Connect(function(key)
- if key == "f" then -- What Key You Want To Be Pressed
- if debounce == false then
- debounce = true
- local Anim = Instance.new("Animation")
- Anim.AnimationId = "rbxassetid://" -- Put Animation ID after "//"
- local PlayAnim = Humanoid:LoadAnimation(Anim)
- PlayAnim:Play()
- wait(1) -- Change this to how long you want to be able to play the animation again
- debounce = false
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement