Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local UIS = game:GetService("UserInputService")
- local Posed = false
- local Player = game.Players.LocalPlayer
- local Animation = Instance.new("Animation")
- Animation.AnimationId = "rbxassetid://243999792"
- local Track = Player.Character:WaitForChild("Humanoid"):LoadAnimation(Animation)
- UIS.InputBegan:Connect(function(input, gameProcessed)
- if input.KeyCode == Enum.KeyCode.T and not Posed then
- Posed = true
- Track:Play()
- wait(.5)
- Track:AdjustSpeed(0)
- elseif input.KeyCode == Enum.KeyCode.T and Posed then
- Posed = false
- Track:Stop()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement