Alright so here is what I have tried
player = game.Players.LocalPlayer
if player.Humanoid.WalkSpeed.Value > 16 then player:Kick ("You have been kicked for speed hacking")
end
if someone could help explain to why it does not work and then I could learn from my errors it would be great!
The Humanoid is inside the character... Plus you only seem to run it once.
I recommend also adding a wait(0), allowing the rest of the instances to load. Add a while true do to check for different value, plus, humanoid walkspeed sometime's 16.2, 16.1, so I would recommend you to use math.floor . I hope this will help you:
wait(0) player = game.Players.LocalPlayer while true do if math.floor(player.Character.Humanoid.WalkSpeed.Value) > 16 then player:Kick ("You have been kicked for speed hacking") end wait(0) end
The Humanoid is not a part of the player found in Players. The humanoid is inside the player found in Workspace.