I have an anti cheat where it catches a player tping, flying, FE, etc. etc. however it seems like it does not work. The script is not disabled and if I put in "print("test") it for some reason works. This script is inside ServerScriptService since local scripts can be bypassed so easy
local Players = game:GetService("Players") game.Players.PlayerAdded:connect(function(player) print("test") local Character = player.Character local Backpack = player:WaitForChild("Backpack") local HumanoidRootPart = player:WaitForChild("HumanoidRootPart") local Bodys = { ["BodyGyro"] = true, ["BodyVelocity"] = true, ["BodyPosition"] = true } local function Kick() player:Kick("Caught by AntiGamingChair") end -->>:Anti TP local function CheckTeleport() if HumanoidRootPart == nil then return Kick() end local PositionFirst = HumanoidRootPart.Position delay(1, function() local PositionSecond = HumanoidRootPart.Position if (PositionSecond - PositionFirst).magnitude >= 130 then return Kick() end end) end -->>:Anti BTools Backpack.ChildAdded:connect(function(Obj) if Obj:IsA("HopperBin") then return Kick() end end) -->>: Anti fly HumanoidRootPart.ChildAdded:connect(function(Obj) if Bodys[Obj.ClassName] then return Kick() end end) -->>: Anti godmode Character.ChildRemoved:connect(function(Obj) if Obj:IsA("Humanoid") then return Kick() end end) while wait() do CheckTeleport() end end)