ututututututututut

Untitled

Mar 3rd, 2025
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. loadstring([[
  2. _G.stopAnimation = true
  3.  
  4. local Players = game:GetService("Players")
  5. local UIS = game:GetService("UserInputService")
  6.  
  7. local player = Players.LocalPlayer
  8. if not player or not player.Character then return end
  9.  
  10. local humanoid = player.Character:FindFirstChildWhichIsA("Humanoid")
  11. if not humanoid then return end
  12.  
  13. local function isR15()
  14. return humanoid.RigType == Enum.HumanoidRigType.R15
  15. end
  16.  
  17. local anim = Instance.new("Animation")
  18. anim.AnimationId = isR15() and "rbxassetid://698251653" or "rbxassetid://72042024"
  19.  
  20. local animator = humanoid:FindFirstChildOfClass("Animator") or Instance.new("Animator", humanoid)
  21. local track = animator:LoadAnimation(anim)
  22.  
  23. local function playAnimation()
  24. while not _G.stopAnimation do
  25. if track then
  26. track:Play()
  27. track:AdjustSpeed(isR15() and 0.7 or 0.65)
  28. track.TimePosition = 0.6
  29.  
  30. while track and track.IsPlaying and track.TimePosition < (isR15() and 0.7 or 0.65) do
  31. if _G.stopAnimation then return end
  32. task.wait(0.1)
  33. end
  34.  
  35. track:Stop()
  36. task.wait(0.01)
  37. end
  38. end
  39. end
  40.  
  41. UIS.InputBegan:Connect(function(input, gameProcessed)
  42. if gameProcessed then return end
  43. if input.KeyCode == Enum.KeyCode.H then
  44. _G.stopAnimation = not _G.stopAnimation
  45. if not _G.stopAnimation then
  46. playAnimation()
  47. else
  48. if track then
  49. track:Stop()
  50. end
  51. end
  52. end
  53. end)
  54. ]])()
  55.  
Advertisement
Add Comment
Please, Sign In to add comment