I'm trying to make a security script to prevent exploits. I cannot seem to find players. Where are they located? This is what I have.
game.Players.LocalPlayer.Character.Humanoid.Changed:connect(function() playerSpeed = game.Players.LocalPlayer.Character.Humanoid.WalkSpeed if playerSpeed > 16 then kick() end end)
What I thought this would do is see if Humanoid changed in any way. Then it would find WalkSpeed and if it went over the default speed, 16, that it would kick you. What am I doing wrong? Thanks for your help!
