Animations are fine in studio, but choppy in game

So here is the explanation of what is happening:

When even smaller lag happens wait() will wait a little bit longer meaning that there will be stops between your NPC moving since his path would not be generated yet.

try publishing and testing, also i really like your game and i hope to see it on the front page in the future, building and everything else is amazing maybe just make it more obvious that when they are in the elevator that they got to start the game manually because i was waiting like 2 minutes thinking it would automaticly start the game.

Do I need to replace hum.MoveToFinished:Wait(), It does not work since i dont use “wait()” inside my pathjfinding script, i use “hum.MoveToFinished:Wait()”, what do I need to replace about this?
Also thank you, I going to make a gui that says press “Start” on the console to begin the game. I made it that way to allow players to begin the game when they are ready.

im not sure about that, im going to try and find some answers to that and inform you when i do since i usually use wait() inside my pathfinding scripts.

I use a for i, v in pairs(waypoints) do, so i dont really need to use wait

This post has an similiar problem but is solved i belive basically his NPC stops for more than a second and thats what is happening to your NPC too

I dont have a number in the movetofinished, its just movetofinished:Wait()

Hm change its network owner of the character to the server it should make your character animations smoother!

Link to the tutorial (by roblox):

Did you try it yet?
If you did or if its not working please inform me since im waiting for your reply.

I tried setting the network owner nil, but it doesn’t work, nothing changes:
ai.PrimaryPart:SetNetworkOwner(nil)


Watch this video from the given time he is explaining more about network ownership and will help u alot!

oh sorry did not see your message…

i cant think of what else would break it but could you try looping your walk animation maybe?

It is looped, it may be a ROBLOX issue, because I can’t find anything that may be wrong with my script causing it to act like this.

what i recommend is to remove the roblox animation script and just have one animation which is “Walk” and it would be playing all the time without any stops and everything thast script would contain is just playing the animation.

Yea, I tried this too, but it does not fix the problem, I have made a whole other script, and tried to alter the default animate script, but nothing seems to work.

1 Like

I really can’t think of any other problem than lag. Maybe your studio is less lagy and everything i recommend is checking your studio FPS and your actual in-game FPS if your in-game FPS is lower then you know what is the problem if not then i don’t know what could be causing this issue.

maybe try using a different animation to see if the problem is caused by your walk animation

It could be this error: it only seems to happen in game, not in studio
2f2f