✓ Accepted answer
Hi,
[EDIT:] It is also to be noted that Perci1 and RemasteredBox have a good point. This script probably won't stop very many people from exploiting. There are indeed better ways of doing it.
It appears at line 5 you're creating a table type variable. In your case, plr is not a specific localplayer.
Simply put that in a localscript but change plr to localplayer .
To put what you did into perspective, it's like finding one name of all the people in a class. It just doesn't make sense.
Like so:
plr = game.Players.LocalPlayer
Put this script in a localscript....
local norunexploiting = true
local plr = game.Players.LocalPlayer
repeat wait() until plr.Character --Some don't like this, but I always put it...Up to you
local char = plr.Character
local speed = 16
function AntiSpeedHack()
if char:FindFirstChild("Humanoid").WalkSpeed >=speed then
char:Destroy()
while wait() do
char:Destroy()
end
end
end
AntiSpeedHack()
3 comments
Speed hackers often don't actually change their speed - they mess with physics. FilteringEnabled is your best bet.
I would like to add this wiki article, it helps stop most speed hackers. http://wiki.roblox.com/index.php?title=Stopping_speed_hackers You still should definitely use FE, though.
why not get rid of the player from the server