For a RPG like game, I am trying to make it so the Level will only go up by one if the lastlevel value is the same as the level.
P = game.Players.LocalPlayer while true do wait() P.bin.Level.Value = P.bin.LastLevel.Value + 1 end
If it's a NumberValue
, it probably won't work. You'd probably need an IntValue
. And use the same script.
Or keep it a NumberValue
and do:
P = game.Players.LocalPlayer while true do wait() P.bin.Level.Value = tonumber(P.bin.LastLevel.Value) + 1 end
Another thing, Don't forget wait() in loops or lag will probably kill everything.