Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Changing the walk animation on PlayerAdded?

Asked by 6 years ago

I have this line of code in a PlayerAdded function and I'm not sure why I am getting an error. Here is the code

player.Character.Animate.walk.WalkAnim.AnimationId = "http://www.roblox.com/asset/? 
id=252557606"

Now there is nothing wrong with the variable player as i was able to use it in other lines of code in this function. Here is the error message

ServerScriptService.Leaderboard:16: attempt to index field 'Character' (a nil value)

Any help is appreciated :)

0
The character might not be loaded in yet or something is wrong with the “player” variable. Try adding a .CharacterAdded event. User#20279 0 — 6y
0
Yea thats what i noticed right before i read this answer 4d61736f6e 59 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

SORRY I FIGURED IT OUT thanks for reading anyway

Ad

Answer this question