Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.LocalPlayer
- local Mouse = player:GetMouse()
- local Animate
- local Humanoid = player.Character:FindFirstChild("Humanoid")
- Mouse.KeyDown:Connect(function(Key)
- if Key == "c" then
- local Anim = Instance.new("Animation",player.Character)
- Anim.AnimationId = "rbxassetid://YOUR ID"
- Animate = Humanoid:LoadAnimation(Anim)
- Animate:Play()
- end
- end)
- Mouse.KeyUp:Connect(function(Key)
- if Key == "c" then
- Animate:Stop()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement