So I have placed a local script inside a screen gui with the field 'Reset on Spawn' set to false. The script gets the name of the Local Player, then sets its Parent to nil. It works fine, but what I want to know is:
Would hackers and exploiters still be able to delete a 'nil instance'? Is this a sure-fire way to prevent speed hackers?
local plr = game:GetService("Players").LocalPlayer
while true do
wait()
script.Parent = nil --Setting the parent to nil so hackers cannot delete it
local character = plr.Character
local human = character:FindFirstChildOfClass("Humanoid")
if human then
if human.WalkSpeed > 16 then
plr:Kick()
end
end
end

1 comment
DO NOT kick the player if they are caught, either reset their speed or respawn them. If the player is lagging then it's possible your script could trigger a false positive.