Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to fix this Animation Problem?

I have this LocalScript in StarterPack. I found this code from this site and it worked very good, but when i reset and respawn, animation does not work. (works in studio play solo mode after i reset but not when i play my game with my friends )

local player = game.Players.LocalPlayer

local character = player.Character or player.CharacterAdded:wait() 

repeat wait() until character

local animate = character.Animate 

animate.walk.WalkAnim.AnimationId = "rbxassetid://343061969"
animate.jump.JumpAnim.AnimationId = "rbxassetid://333734986"

3 comments

0

Remove the repeat wait until character and add a wait(1) at line 1 it might work then

0

When working with this same problem just yesterday I had trouble with the repeat until. I fixed it by changing character to, "character = player.Character" and "until character:FindFirstChildHumanoid". This worked for me. As for not working after death, place this script in StarterGui.

0

Thank you people!

1 answer

✓ Accepted answer

That's weird. Try adding a wait(5) at the top of the script. I hope that works! Sometimes roblox can be weird when working with servers. Good luck!

1 comment

1

Why was this ever accepted?

This discussion is preserved as it was. New answers, comments, and votes are closed.