Will my script actually stop exploiters?
Asked by
4 years ago Edited 4 years ago
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?
01 | local player = game.Players.LocalPlayer |
02 | local character = script.Parent |
03 | local humanoid = character:WaitForChild( "Humanoid" ) |
04 | character.DescendantRemoving:Connect( function (object) |
05 | if object:IsA( "LocalScript" ) and object.Name = = "AntiExploit" then |
06 | player:Kick( "Anti exploit removed." ) |
10 | local runservice = game:GetService( "RunService" ) |
11 | local fps = game:GetService( "Workspace" ):GetRealPhysicsFPS() |
12 | runservice.RenderStepped:Connect( function () |
14 | player:Kick( "FPS is suspected." ) |