Issue with Walk/Run animation

  1. What do you want to achieve? Hello, I have a problem with animations in my game. In fact I created skate, I created an walk and run animation with the skate on the character which is activated when the player clicks on a GUI . The problem is for some players with custom animations (not the default roblox anim), the script does not work and bug because the animations WalkAnimation and Runanimation are not detected. I don’t know how to fix this problem?
	game.ReplicatedStorage.AnimateSkate.Parent = plr.Character
	game.ReplicatedStorage.BodyAttach.Parent = plr.Character
	plr.Character.LeftFoot.ToolGrip.Part0 = plr.Character.LeftFoot
	plr.Character.LeftFoot.ToolGrip.Part1 = plr.Character.AnimateSkate
	local animate = plr.Character:WaitForChild('Animate')
	plr.Character.Humanoid.WalkSpeed = 0
	animate.walk.WalkAnim.AnimationId = "" = ""
	animate.idle.Animation1.AnimationId = ""
	animate.idle.Animation2.AnimationId = ""
	plr.Character.Humanoid.WalkSpeed = 41

I still have the issue,
some players who have purchased animations on the Roblox store have the buggy script. As if the information in the character is different and therefore there is an error

Maybe there is no way to fix this problem?

maybe you can switch to standard and see if that fix your problem!

1 Like

Hello, thank you for your answer, i was not aware of this. But the players who have customized animations will not have them on my game if I understand correctly? Which is a bit of a shame for them ?

also you could check if and change if exists!

if animate.walk.WalkAnim~=nil then
	animate.walk.WalkAnim.AnimationId = ""

if then = ""