Kotyara19k-Official

Untitled

Apr 23rd, 2025
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.03 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. local char = player.Character or player.CharacterAdded:Wait()
  3. local humanoid = char:WaitForChild("Humanoid")
  4. char.Animate.Disabled = true
  5. local animation1 = Instance.new("Animation")
  6. animation1.AnimationId = "rbxassetid://44418684"
  7. local animTrack1 = humanoid:LoadAnimation(animation1)
  8.  
  9. local animation2 = Instance.new("Animation")
  10. animation2.AnimationId = "http://www.roblox.com/asset/?id=287388049"
  11. local animTrack2 = humanoid:LoadAnimation(animation2)
  12.  
  13. local animation3 = Instance.new("Animation")
  14. animation3.AnimationId = "http://www.roblox.com/asset/?id=69427262"
  15. local animTrack3 = humanoid:LoadAnimation(animation3)
  16.  
  17. local animation4 = Instance.new("Animation")
  18. animation4.AnimationId = "rbxassetid://132546884"
  19. local animTrack4 = humanoid:LoadAnimation(animation4)
  20.  
  21.  
  22. animTrack1.Priority = Enum.AnimationPriority.Action
  23. animTrack2.Priority = Enum.AnimationPriority.Action
  24. animTrack3.Priority = Enum.AnimationPriority.Action
  25. animTrack4.Priority = Enum.AnimationPriority.Idle
  26.  
  27.  
  28. local function playIdleAnimations()
  29. if not animTrack1.IsPlaying then animTrack1:Play() end
  30. if not animTrack2.IsPlaying then animTrack2:Play() end
  31. if not animTrack3.IsPlaying then animTrack3:Play() end
  32.  
  33. end
  34.  
  35.  
  36. local function stopIdleAnimations()
  37. if animTrack1.IsPlaying then animTrack1:Stop() end
  38. if animTrack2.IsPlaying then animTrack2:Stop() end
  39. if animTrack3.IsPlaying then animTrack3:Stop() end
  40. if animTrack4.IsPlaying then animTrack4:Stop() end
  41. end
  42.  
  43.  
  44. game:GetService("RunService").Heartbeat:Connect(function()
  45. if humanoid.MoveDirection.Magnitude == 0 then
  46. playIdleAnimations()
  47. animTrack4:Play()
  48. task.wait(0.01)
  49. animTrack4:AdjustSpeed(0)
  50. else
  51. stopIdleAnimations()
  52. end
  53. end)
  54.  
  55.  
  56. workspace.npio444_1.Humanoid.WalkSpeed = 8
  57.  
  58.  
  59. local animation = Instance.new("Animation")
  60. animation.AnimationId = "rbxassetid://48146273"
  61. local animTrack = humanoid:LoadAnimation(animation)
  62.  
  63. local walk2 = Instance.new("Animation")
  64. walk2.AnimationId = "http://www.roblox.com/asset/?id=180436334"
  65. local animWalk2 = humanoid:LoadAnimation(walk2)
  66.  
  67. local walk = Instance.new("Animation")
  68. walk.AnimationId = "http://www.roblox.com/asset/?id=180426354"
  69. local animWalk = humanoid:LoadAnimation(walk)
  70.  
  71.  
  72. animWalk2:AdjustSpeed(0.1)
  73. animWalk:AdjustSpeed(0.1)
  74.  
  75.  
  76. local function playAnimations()
  77. if not animTrack.IsPlaying then
  78. animTrack:Play()
  79. task.delay(animTrack.Length - 1.6, function()
  80. if animTrack.IsPlaying then
  81. animTrack:AdjustSpeed(0)
  82. end
  83. end)
  84. end
  85. if not animWalk2.IsPlaying then
  86. animWalk2:Play()
  87. end
  88. if not animWalk.IsPlaying then
  89. animWalk:Play()
  90. end
  91. end
  92.  
  93.  
  94. local function stopAnimations()
  95. animTrack:Stop()
  96. animWalk2:Stop()
  97. animWalk:Stop()
  98. end
  99.  
  100.  
  101. humanoid.Running:Connect(function(speed)
  102. if speed > 1 then
  103. playAnimations()
  104. else
  105. stopAnimations()
  106. end
  107. end)
  108.  
  109. --created with chat gpt
  110.  
  111.  
  112.  
  113.  
Advertisement
Add Comment
Please, Sign In to add comment