Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Player = game.Players.LocalPlayer
- local Character = Player.Character or script.Parent
- local Humanoid = Character.Humanoid
- local UserInputService = game:GetService("UserInputService")
- local AnimationId = "rbxassetid://507772104"
- local Debounce = true
- local Key = "Q"
- UserInputService.InputBegan:Connect(function(Input, IsTyping)
- if IsTyping then return end
- if Input.KeyCode == Enum.KeyCode[Key] and Debounce == true then
- Debounce = false
- local Animation = Instance.new("Animation")
- Animation.AnimationId = AnimationId
- local LoadAnimation = Humanoid:LoadAnimation(Animation)
- LoadAnimation:Play()
- wait(1)
- Animation:Destroy()
- Debounce = true
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement