How to make a anti tab-glitch

Im making a fight game and i use vector3.new to push player but if you no know tab glitch is
When a person holds the “x” button at the top of the screen but does not close the game it freezes the character
and i try to make a code of tab glitch but i think tab glitch dont anchor root
the code i try:

local r = script.Parent:FindFirstChild(“HumanoidRootPart”)
local position = r.Position
while true do
if r.Anchored then
local plr = game.Players.LocalPlayer
plr:Kick(“Exploiter”)
end
end

What freezes the character when using tab glitch?

The client stops sending physics updates for the character when this happens. You could make your own script which listens to periodic remotes from the client, e.g. 5 a second. If something weird happens to the distribution you could conclude they are tab glitching or lagswitching. You’d need a good way to analyze this, I would not recommend using it to kick automatically.

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