Setting the player's network owner to the server makes the player jitter to the last position their network owner was set back to the player

I’m not even sure where to put this topic

To clarify, I am using RemoteEvents and CFrames to replicate position to clients and vice versa to ensure 99% accurate visuals, including when the player’s network is handled by the server.

These 3 videos below are in order



There’s a move/skill that when executed will set your network to nil (to clarify, that will replicate your character position in the server to client.), and when that happens, THIS jittering also happens and it’s very nauseating and plus just doesn’t really scream “polish”

It does not affect the ACTUAL position of the player, just visually it looks like that. And when I disable the replication script, the character just does not move at all and will freeze in place until the network is set back to the player.

I want to make it so that it does not happen, or at least minimize this but I’ve tried almost everything, is this just an engine bug you can’t fix or is this fixable with code?

I would avoid setting the player character network ownership back and forth from server to client and vice versa. Is there a reason why the character needs to be set to the server when using this moveset?

Good question, it’s to make hitboxes feel smoother for certain air combos, I could do without setting it back and forth but I’d like a solution for this as well, as the moveset has been built around it

The jittering effect might occur because the character position on the server and the position on the client is way too different causing an abrubt teleportation effect. Perhaps a tweening could fix that?

also side note:

I found this resource a while back and seems to be similar to what you want to achieve perhaps this will help?

Thanks for that, I’ll take a good look at it at another time though (also it’d be a hassle to change replication systems right now)

Also, I tried tweening instead of lerping, no luck, it still happens very frequently

The server is sending the player’s server position in an interval.
In a scenario where the player has network control, it goes like this: client sends hrp.cframe > server > everyone

In a scenario where the server has network control: server sends hrp.cframe > everyone

I understand if there’s always going to be a gap, but this seems very absurd what it is doing (also this doesn’t happen ALL the time, just most of the time, specific yeah)

it may be dependent on what your ping is at the time :thinking:

or do you have anything thats messing with the FOV? From observing the frames of when the jitters happen it appears as if the FOV is becoming larger.

If you have a system where speed increases FOV dynamically, lerping positions may be messing with the velocity calculations.

Frame 1:


Frame 2:

I’ve had examined these frames closely, that’s not the camera increasing FOV, that’s just the camera not following the head correctly (this only happened when I started using tweens, I’ve switched back now), there should be no FOV manipulation at this moment

In the case where I use lerp, the camera stays focused on the head, it’s the character that jitters. In the case of the tween, it’s both

have you discovered a solution yet? im having a similar issue

what youre doing is setting the network ownership of the character to the server in the middle of the skill, but what happens is the server teleports you to an older outdated position right?

what happens if change your roblox studio’s incoming replication lag to like 0.25s? the problem probably gets worse and easier to notice, since the position the server has will be even more outdated due to the greater latency (250ms)

i dont have a solution myself unfortunately…

the jittering would always happen when you set network owner back and forth and theres probably no solution to it because of how it works

check out the documentation
https://create.roblox.com/docs/physics/network-ownership

An update

It kinda just stopped happening, I don’t know what I did but at least it stopped

Whatever issue you have, this thread probably won’t help, but for the time being the jittering has seemingly stopped

oh good that it stopped. i think my issue was the same as yours

so you’re still switching network ownership from client to server right? i still have no clue how to stop the jittering/the little teleport back to the outdated position. have you tried it at higher incoming replication lag and if so does it still not jitter or do you notice it then?

It’s pretty much stopped entirely, I did try using renderstepped, stepped and heartbeat for the actual lerping part of replication but right now it’s using BindToRenderStep with a priority of 199