Rammne03

Roblox Game And Delta And Xeno Executor Cat Animation [SCRIPT] MOLIBE AND PC

Apr 11th, 2026 (edited)
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. New Animation Script Roblox Game :
  2.  
  3. -- cat script by luastun
  4.  
  5. local lp = game.Players.LocalPlayer
  6. local hum = lp.Character.Humanoid
  7. local function craeturn(id, name)
  8. getgenv()["global_animations_"..name] = Instance.new("Animation", game:GetService("ReplicatedStorage"))
  9. getgenv()["global_animations_"..name].Name = "67PLUS"..name..""..math.random(6, 7)
  10. getgenv()["global_animations_"..name].AnimationId = id
  11.  
  12. return getgenv()["global_animations_"..name]
  13. end
  14.  
  15. local anim = {
  16. idle = "rbxassetid://86345507952689",
  17. walk = "rbxassetid://128650099590921"
  18. }
  19.  
  20. -- credits to infinite yield
  21. local function anim2track(asset_id)
  22. local objs = game:GetObjects(asset_id)
  23. for i = 1, #objs do
  24. if objs[i]:IsA("Animation") then
  25. return objs[i].AnimationId
  26. end
  27. end
  28. return asset_id
  29. end
  30.  
  31. local tracks = {
  32. idle1 = hum:LoadAnimation(craeturn(anim2track(anim.idle), "Idle1")),
  33. walk = hum:LoadAnimation(craeturn(anim2track(anim.walk), "Walk"))
  34. }
  35.  
  36. tracks.idle1.Looped = true
  37. tracks.walk.Looped = true
  38.  
  39. tracks.idle1:Play()
  40.  
  41. hum.Running:Connect(function(s)
  42. if s > 1 then
  43. if tracks.idle1.IsPlaying then tracks.idle1:Stop() end
  44. if not tracks.walk.IsPlaying then tracks.walk:Play() end
  45. else
  46. if tracks.walk.IsPlaying then tracks.walk:Stop() end
  47. if not tracks.idle1.IsPlaying then tracks.idle1:Play() end
  48. end
  49. end)
  50.  
  51. hum.StateChanged:Connect(function(_, new)
  52. if new == Enum.HumanoidStateType.Landed then
  53. if tracks.walk.IsPlaying then return end
  54. if not tracks.idle1.IsPlaying then tracks.idle1:Play() end
  55. end
  56. end)
  57.  
  58.  
  59. Creator By Cat_Wenda2nds And Rammne0003
Advertisement
Add Comment
Please, Sign In to add comment