I am making a simulator game called Shard Clicker. I am trying to make a hack prevention script so when the localplayer reaches 1000000 value in Crystals that they will be kicked. Here is the script.
plr = game.Players.LocalPlayer
stat = plr.leaderstats.Crystals
if stat.Value == 1000000 then
plr:Kick()
end

1 comment
And put this in normal script