Preventing lag glitching

So I’ve been trying to make something that senses when you are (probably) lag glitching, aka where you hold the minimize button as to freeze your screen, and kill you. Right now, I’m using a script that checks if the player’s humanoid root part was the same it was last time it checked and adds to a variable, otherwise it changes the variable tracking the position of the humanoid root part to where it is now and resets the counting variable(ofc the variable gets reset too). But this seems to only work if the player has their part anchored, because I try to lag glitch and it doesn’t even notice that I did. I tried in both client and server, and it still doesn’t work. Is it possible to make a script does this? If so, how?

My question is, why even make this in the first place? Some people just might be laggy.

It is to prevent people from glitching out of a trip (basically the one maelstronomer used).

Some games need to have a script like this, for example, spleef type games. If someone just jumps and freezes roblox mid air, they can just stay there until they win, making the entire game impossible to win legitimately, and completely unplayable if two or more players use the glitch, but adding a script like this could falsely kill / kick laggy players, so the only hope of fixing this is most likely going to be a roblox update, but I am pretty sure that the update will be quite difficult to make, if it wasn’t, it probably would’ve been added already.

So then just use the server-side and perform some raycasts.

2 Likes