Sorry for the title lol, don't know what it should be. This is a Local Script inside of the Starter GUI. When I test this out, it only changed the player back to Level 500, not kicking the player.
local Plr = game.Players.LocalPlayer
while wait() do
wait(3)
if game.Players.LocalPlayer.leaderstats.Level.Value>=508 then
game.Players.LocalPlayer.leaderstats.Level.Value=500
end
end
if game.Players.LocalPlayer.leaderstats.Level.Value>510 then
Plr:kick("Exploit detected.")
end
I tried elseif but it didn't work neither.

1 comment
Make your title better like what the issue your having, like "Problems with :Kick()" or something.