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)

8 comments
You realize they can remove the detection script, right?
Why would you kick someone for getting more than 65 fps?
Since when was using an fps unlocker considered exploiting?
Idk, i saw it on a forum
And @Ziffixture i made a line if the script gets removed the player gets kicked.
Did you make the line in the same script or in a different one? Also this would most likely not stop any exploiters
fps unlocker isnt considered exploiting, someone in the roblox company confirmed it
good my ping rate was 200 now i will get kicked everytime