Hi, i am trying to make a anti exploit script. When the player removes the script he or she gets kicked. If the FPS gets above 65 he or she also will get kicked. But will this actually work on the FPS part, can i do it better?
local player = game.Players.LocalPlayer local character = script.Parent local humanoid = character:WaitForChild("Humanoid") character.DescendantRemoving:Connect(function(object) if object:IsA("LocalScript") and object.Name == "AntiExploit" then player:Kick("Anti exploit removed.") end end) local runservice = game:GetService("RunService") local fps = game:GetService("Workspace"):GetRealPhysicsFPS() runservice.RenderStepped:Connect(function() if fps > 65 then player:Kick("FPS is suspected.") end end)
Your script will not stop exploiters. You can't do anything about them since there's always dex so they can disable your script. Also, fps unlocker isn't even an exploit. Someone in the Roblox Company confirmed it. You can't stop an exploit unless Roblox fixes these bugs. You can make a noclip exploit script or something like that.