Characters server position is different than clients position

Im making a simulator game with pets.
My issue is that sometimes, I still couldnt figure out why or when its happening but sometimes the character is at a different position on server than on client. Basically what you would see on client is yourself with your pets around you. On server you would see the pets in the same position as the client but the character is invisible (the character is still there but he moves super fast for some reason so he gets out of position, he doesnt move in the same speed as the client). I dont know why this is happening and i dont know how to fix it.
I do use SetNetworkOwnership on the pets to the player and there is a way to change ur speed to go faster in the game but i doubt its this.
Theres also another issue that happens sometimes im not sure if its related to this but sometimes when a player tries to join the game with other people in it, it doesnt let him join and his character is just not loading in for some reason.

1 Like

Does it maybe have to do with anything related to changing characters position?

To simply put, there’s latency (ping) in milliseconds.

Let’s say, a player is walking, the higher the ping (the time for the packet to be sent to the server), the later the server would update the players position, and when it does update, the player won’t be in the same spot anywhere.

Yeah but im pretty positive this isnt the issue here, if you stand still itll still stay in different positions and itll stay like that until you move again and itll change the positions again. theres always a difference in position.

1 Like

Not 100% sure but it seems that when you Teleport a Character you should use the CFrame and not Position, using Position might cause this bug to happen

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.