How Make Strong Server-Sided Anticheat?

Hi, My name is DarkMenacing. I wanted to make a anticheat server-sided so i made this simple one:

local admins = {
	require(script.Parent.Settings).Ranks
}
local Player = game:GetService("Players")

Player.PlayerAdded:Connect(function(plr)
	plr.CharacterAdded:Connect(function(chr)
		chr.Humanoid.StateChanged:Connect(function(old, new)
			if new == Enum.HumanoidStateType.StrafingNoPhysics and not table.find(admins, plr.UserId) then
				plr:Kick("Anti Cheat: Noclip Detected")
			end
		end)
	end)	
end)

I made only for noclip but i dont know one for anti fly
if you know how, please tell in the comments!

1 Like

A lot of flying exploits set the humanoid’s state to Enum.HumanoidStateType.PlatformStanding.

1 Like
Player.PlayerAdded:Connect(function(plr)
	plr.CharacterAdded:Connect(function(chr)
		chr.Humanoid.StateChanged:Connect(function(old, new)
			if new == Enum.HumanoidStateType.PlatformStanding and not table.find(admins, plr.UserId) then
				plr:Kick("Cheat Detected: Noclip Detected")
			elseif new == Enum.HumanoidStateType.StrafingNoPhysics and not table.find(admins, plr.UserId) then
				plr:Kick("Cheat Detected: Flying.")
			end
		end)
	end)	
end)

State changed can be spoofed by exploiters easily, you need some magnitude here.

1 Like

u can use region for detecting noclip

i know a little thing, if they use a advanced script they can use parts to create others part but in the same position but only for their client

no actually, Region doesnt uses parts it uses “imaginary boundaries” which cant be destroyed, and exploiters cant do anything about it after they got depreciated

how do i use region for noclip??