Script:
game.Players.PlayerAdded(connect(plr)
local hum = plr.Character
if hum.WalkSpeed > 16 then
plr.Kick("Please stop hacking.")
end
end)
Anyone got some tips or tricks on how to fix this it does absolutely nothing when I change the walkspeed.
Thanks bye!
Best way to help?
Probably give me a roblox wiki.

2 comments
You're defining the "hum" variable as the player's character, not its humanoid. Instead you should use a CharacterAdded event and then do "local hum = character:WaitForChild("Humanoid")". Also, doing that on the server is a horrible idea. Exploiters walkspeeds aren't replicated, so the server would still see it as 16, and sometimes even if a player isn't exploiting, their walkspeed goes to
an absurd number such as 16.000000241, which would kick the player. You'd be better off having a local script detect the change and then firing an event to the server to tell it to kick the player, however this method may still prove to be useless if the exploiters simply remove the script.