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

How to fix this Animation Problem?

Asked by
Eppobot 13
8 years ago

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"
0
Remove the repeat wait until character and add a wait(1) at line 1 it might work then Hero_ic 502 — 8y
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. AZDev 590 — 8y
0
Thank you people! Eppobot 13 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

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
Why was this ever accepted? User#11440 120 — 8y
Ad

Answer this question