Hello.
I am currently attempting to make an anti exploit for walkspeed and jumppower for the Player. I attempted to do this, but for some reason, it is not kicking them when the WalkSpeed or JumpPower is above the limit. I am quite unsure why this is happening.
Here is my script (ServerScript):
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(Character)
local Humanoid = Character.Humanoid
while true do
wait(5)
if Humanoid.WalkSpeed > 30 then
Player:Kick("Speed Exploit Detected")
end
if Humanoid.JumpPower > 51 then
Player:Kick("Jump Exploit Detected")
end
end
end)
end)
I'm not sure why this happens, and would like some help. Thanks!

1 comment
Never Mind, I have fixed it on my own, it turns out that I needed to use a GetPropertyChangedSignal instead for the WalkSpeed and JumpPower!