Rammne03

Roblox l amination horror [script] real and delta executor

Jun 3rd, 2026
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.94 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. local WALK_SPEED_THRESHOLD = 16
  3.  
  4. local function onCharacterAdded(character)
  5. local humanoid = character:WaitForChild("Humanoid")
  6.  
  7. -- Confirm rig is R15
  8. if humanoid.RigType ~= Enum.HumanoidRigType.R15 then
  9. return
  10. end
  11.  
  12. local animator = humanoid:WaitForChild("Animator")
  13.  
  14. -- Stop currently playing animations
  15. for _, track in ipairs(animator:GetPlayingAnimationTracks()) do
  16. track:Stop(0.1)
  17. end
  18.  
  19. local animateScript = character:WaitForChild("Animate")
  20. local idle = animateScript:WaitForChild("idle")
  21. local walk = animateScript:WaitForChild("walk")
  22. local run = animateScript:WaitForChild("run")
  23.  
  24. -- Optional sub-states
  25. local jump = animateScript:FindFirstChild("jump")
  26. local fall = animateScript:FindFirstChild("fall")
  27. local climb = animateScript:FindFirstChild("climb")
  28.  
  29. -- Assign new animation IDs
  30. idle.Animation1.AnimationId = "http://www.roblox.com/asset/?id=80103653497738"
  31. idle.Animation2.AnimationId = "http://www.roblox.com/asset/?id=75794256017298"
  32. walk.WalkAnim.AnimationId = "http://www.roblox.com/asset/?id=88508412373927"
  33. run.RunAnim.AnimationId = "http://www.roblox.com/asset/?id=88508412373927"
  34.  
  35. -- Load walk animation
  36. local walkAnim = Instance.new("Animation")
  37. walkAnim.AnimationId = "rbxassetid://88508412373927"
  38. local walkTrack = animator:LoadAnimation(walkAnim)
  39. walkTrack.Priority = Enum.AnimationPriority.Movement
  40.  
  41. -- Helper to load and set priority for optional animations
  42. local function loadAndSetAnimation(animContainer)
  43. if animContainer and animContainer:FindFirstChildWhichIsA("StringValue") then
  44. local anim = Instance.new("Animation")
  45. anim.AnimationId = animContainer:FindFirstChildWhichIsA("StringValue").Value
  46. local track = animator:LoadAnimation(anim)
  47. track.Priority = Enum.AnimationPriority.Action
  48. return track
  49. end
  50. end
  51.  
  52. local jumpTrack = loadAndSetAnimation(jump)
  53. local fallTrack = loadAndSetAnimation(fall)
  54. local climbTrack = loadAndSetAnimation(climb)
  55.  
  56. humanoid.Running:Connect(function(speed)
  57. if speed > 0 and speed <= WALK_SPEED_THRESHOLD then
  58. if not walkTrack.IsPlaying then
  59. walkTrack:Play()
  60. end
  61. else
  62. if walkTrack.IsPlaying then
  63. walkTrack:Stop(0.1)
  64. end
  65. end
  66. end)
  67.  
  68. humanoid.StateChanged:Connect(function(_, newState)
  69. if newState == Enum.HumanoidStateType.Jumping
  70. or newState == Enum.HumanoidStateType.Freefall
  71. or newState == Enum.HumanoidStateType.Climbing then
  72. if walkTrack.IsPlaying then
  73. walkTrack:Stop(0.1)
  74. end
  75. end
  76. end)
  77. end
  78.  
  79. player.CharacterAdded:Connect(onCharacterAdded)
  80.  
  81. if player.Character then
  82. onCharacterAdded(player.Character)
  83. end
Add Comment
Please, Sign In to add comment