I want to change the default run animation in my game. I copy the animate script off my character and put it into StarterCharacterScripts. Then I expand to find the run value, then expand again to find the RunAnim animation object, i then change the AnimationID to the Levitation Animation Run link. Then I run the game and my player doesn't animate when I run he moves in a static position. How do I fix this?
How do I change the default run Animation?
2 answers
"The levitation run animation id is actually an id for a model which contains an animation. This means that you have to insert the asset with InsertService, and then obtain the animation inside" Quoted: https://devforum.roblox.com/t/how-can-i-use-animations-roblox-created-in-my-game/60501/2?u=thewaterfoox (Links broken, so you will have to copy and paste into browser)
Therefore, you'll have to insert the asset into your game and find the animationId from the animationtrack that comes with the model.
This code will insert the asset into your game:
game:GetService("InsertService"):LoadAsset(619543231).Parent = game.Workspace
When you have the model, you open it up, you'll see a StringValue, and if you open up the StringValue, you will find the animation. https://gyazo.com/55e2a3b3b8506d173d4dfa4060735a13
The animation contains the animationId "616010382", which is the id you will have to use.
I hope this helps you with your scripting! I wish you luck on your game developmment!
~Sethex
A more simple way to Sethex's one, i have answered before. Aka https://scriptinghelpers.org/questions/108694/i-tried-animating-a-starter-character-why-doesnt-it-work#99818
local Players = game:GetService("Players") -- Variables
local function onCharacterAdded(character)
local humanoid = character:WaitForChild("Humanoid")
for _, playingTracks in pairs(humanoid:GetPlayingAnimationTracks()) do
playingTracks:Stop(0)
end
local animateScript = character:WaitForChild("Animate")
animateScript.run.RunAnim.AnimationId = "rbxassetid://616163682" -- Run
animateScript.walk.WalkAnim.AnimationId = "rbxassetid://616168032" -- Walk
animateScript.jump.JumpAnim.AnimationId = "rbxassetid://616161997" -- Jump
animateScript.idle.Animation1.AnimationId = "rbxassetid://616158929" -- Idle (Variation 1)
animateScript.idle.Animation2.AnimationId = "rbxassetid://616160636" -- Idle (Variation 2)
animateScript.fall.FallAnim.AnimationId = "rbxassetid://616157476" -- Fall
animateScript.swim.Swim.AnimationId = "rbxassetid://616165109" -- Swim (Active)
animateScript.swimidle.SwimIdle.AnimationId = "rbxassetid://616166655" -- Swim (Idle)
animateScript.climb.ClimbAnim.AnimationId = "rbxassetid://616156119" -- Climb
-- change all of the id's to your animation ids.
end
local function onPlayerAdded(player)
player.CharacterAppearanceLoaded:Connect(onCharacterAdded)
end
Players.PlayerAdded:Connect(onPlayerAdded)
-- Would be in a server script in serverscriptservice.
In your case, you'd change the run id to the id you want. Happy if I could help.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Btw, this works when adding my own animation but it doesn't work when I use the levitation Run animation ID, I used this ID: 619543231