Axolotleless

2018 r15 anims

Nov 3rd, 2025
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.33 KB | None | 0 0
  1. -- ReplaceR15Animations_Server.lua
  2. -- Put this in ServerScriptService
  3.  
  4. local animNames = {
  5. idle = {
  6. { id = "http://www.roblox.com/asset/?id=507766666", weight = 1 },
  7. { id = "http://www.roblox.com/asset/?id=507766951", weight = 1 },
  8. { id = "http://www.roblox.com/asset/?id=507766388", weight = 9 }
  9. },
  10. walk = {
  11. { id = "http://www.roblox.com/asset/?id=507777826", weight = 10 }
  12. },
  13. run = {
  14. { id = "http://www.roblox.com/asset/?id=507767714", weight = 10 }
  15. },
  16. swim = {
  17. { id = "http://www.roblox.com/asset/?id=507784897", weight = 10 }
  18. },
  19. swimidle = {
  20. { id = "http://www.roblox.com/asset/?id=507785072", weight = 10 }
  21. },
  22. jump = {
  23. { id = "http://www.roblox.com/asset/?id=507765000", weight = 10 }
  24. },
  25. fall = {
  26. { id = "http://www.roblox.com/asset/?id=507767968", weight = 10 }
  27. },
  28. climb = {
  29. { id = "http://www.roblox.com/asset/?id=507765644", weight = 10 }
  30. },
  31. sit = {
  32. { id = "http://www.roblox.com/asset/?id=507768133", weight = 10 }
  33. },
  34. toolnone = {
  35. { id = "http://www.roblox.com/asset/?id=507768375", weight = 10 }
  36. },
  37. toolslash = {
  38. { id = "http://www.roblox.com/asset/?id=522635514", weight = 10 }
  39. },
  40. toollunge = {
  41. { id = "http://www.roblox.com/asset/?id=522638767", weight = 10 }
  42. },
  43. wave = {
  44. { id = "http://www.roblox.com/asset/?id=507770239", weight = 10 }
  45. },
  46. point = {
  47. { id = "http://www.roblox.com/asset/?id=507770453", weight = 10 }
  48. },
  49. dance = {
  50. { id = "http://www.roblox.com/asset/?id=507771019", weight = 10 },
  51. { id = "http://www.roblox.com/asset/?id=507771955", weight = 10 },
  52. { id = "http://www.roblox.com/asset/?id=507772104", weight = 10 }
  53. },
  54. dance2 = {
  55. { id = "http://www.roblox.com/asset/?id=507776043", weight = 10 },
  56. { id = "http://www.roblox.com/asset/?id=507776720", weight = 10 },
  57. { id = "http://www.roblox.com/asset/?id=507776879", weight = 10 }
  58. },
  59. dance3 = {
  60. { id = "http://www.roblox.com/asset/?id=507777268", weight = 10 },
  61. { id = "http://www.roblox.com/asset/?id=507777451", weight = 10 },
  62. { id = "http://www.roblox.com/asset/?id=507777623", weight = 10 }
  63. },
  64. laugh = {
  65. { id = "http://www.roblox.com/asset/?id=507770818", weight = 10 }
  66. },
  67. cheer = {
  68. { id = "http://www.roblox.com/asset/?id=507770677", weight = 10 }
  69. },
  70. }
  71.  
  72. -- Function to replace the animations on a character
  73. local function replaceAnimations(character)
  74. local animateScript = character:FindFirstChild("Animate")
  75. if not animateScript then return end
  76.  
  77. for name, animList in pairs(animNames) do
  78. local animObject = animateScript:FindFirstChild(name)
  79. if animObject then
  80. -- Replace or add all animation variants
  81. local count = 1
  82. for _, animData in ipairs(animList) do
  83. local subName = count == 1 and name or (name .. tostring(count))
  84. local subAnim = animateScript:FindFirstChild(subName)
  85.  
  86. if not subAnim then
  87. subAnim = Instance.new("StringValue")
  88. subAnim.Name = subName
  89. subAnim.Parent = animateScript
  90. end
  91.  
  92. subAnim.Value = animData.id
  93. count += 1
  94. end
  95. end
  96. end
  97. end
  98.  
  99. -- Apply to all current and future players
  100. game.Players.PlayerAdded:Connect(function(player)
  101. player.CharacterAdded:Connect(function(character)
  102. -- Wait until Animate exists to ensure it's ready
  103. character:WaitForChild("Animate", 10)
  104. replaceAnimations(character)
  105. end)
  106. end)
  107.  
Advertisement
Add Comment
Please, Sign In to add comment