Advertisement
RobloxMaker30021

tpose animation

Oct 1st, 2021
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. local UIS = game:GetService("UserInputService")
  2. local Posed = false
  3. local Player = game.Players.LocalPlayer
  4. local Animation = Instance.new("Animation")
  5. Animation.AnimationId = "rbxassetid://243999792"
  6. local Track = Player.Character:WaitForChild("Humanoid"):LoadAnimation(Animation)
  7.  
  8. UIS.InputBegan:Connect(function(input, gameProcessed)
  9. if input.KeyCode == Enum.KeyCode.T and not Posed then
  10. Posed = true
  11. Track:Play()
  12. wait(.5)
  13. Track:AdjustSpeed(0)
  14. elseif input.KeyCode == Enum.KeyCode.T and Posed then
  15. Posed = false
  16. Track:Stop()
  17. end
  18. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement