How can i change the player walk animation mid-game

i know that this topic have been answered but the answers aren’t clear they are answering the question but interpreting the answer in their script

i need a clear answer

what i have tried is the following

	game.Players.LocalPlayer.character:WaitForChild("Animate").walk.WalkAnim.AnimationId = 'AnimationId' -- this line will be changed to the animation that i will use

but it keeps bringing me an error

" Invalid animation id ‘<error: unknown AssetId protocol>’: "

never mind my script was right lol but its the way i have set the animationid

instead of saying

game.Players.LocalPlayer.character:WaitForChild("Animate").walk.WalkAnim.AnimationId = '34243312332' -- for example i will use a  random number

i should use

game.Players.LocalPlayer.character:WaitForChild("Animate").walk.WalkAnim.AnimationId = 'http://www.roblox.com/asset/?id=34243312332' -- for example i will use a  random number

Try this:

local player = game:GetService("Players").LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
character:WaitForChild("Animate"):WaitForChild("run"):WaitForChild("RunAnim").AnimationId = "Put here your animation id"
1 Like

thanks for the help but i already found a solution but i will give you the solution becuase you deserve it

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.