Players touching parts with high ping

i have a game where the player controls a part after i set him as the network owner of that part, every time other people’s parts touch that part, those parts get destroyed, and i do this with a .Touched event for that part.

but now I’ve found out that when a player has high ping, other parts are frozen for him, and his part is frozen for others, now that’s okey, but the problem is, when his part touches other people’s parts, they still get destroyed, so the other players are not gonna see that part move, but get destroyed anyways.

what i thought of is, every time the part touches other part, i do a ping check on the player who controls it and if its higher than 500 nothing will happen.

my question is, is there a better, more effective way to deal with this ?

Setting network ownership makes it so that the client processes the physics for that object (i am pretty sure). So it maybe the right solution to run the parts in question from the server instead. At least that way players with high ping won’t affect other players with respect to the objects.

that would then make the part not smooth at all for the player controlling it, for example, imagine controlling your roblox character but with delays and teleporting.

That’s the conundrum isn’t it. Either other players deal with a player’s lag or that player deals with it. Everything else is just a hacky mitigation of the consequences of the lag. Some devs make attempts to sync certain routines with player lag by matching times etc… or waiting for a client response to the server before running a routine. Or as you suggested testing player ping values.

Part of the lag problem has to do with Roblox’s server delegation routines. Like there are times when the server instance I’m sent to runs a on far way server so that increases my lag time. Ideally you want players to run on servers that are as close to them as possible. Generally a latency/ping under 100 is tolerable. Unfortunately porting players to a new server instance until they have a tolerable ping becomes difficult when you consider playing with friends in the same server.

1 Like