Ok so I have a little question. How would I set a Level Cap in my game? For example I want so that a player won't go beyond level 100 or 1000 whatever. How would I do this?
✓ ANSWER ACCEPTED
Level Cap. How do I do this?
1 answer
✓ Accepted answer
Wherever you handle the levels, just compare the value to whatever you want the max value to be, and if it's great than it, set it to the max:
function levelup(player)
player.leaderstats.Level.Value = player.leaderstats.Level.Value + 1
if player.leaderstats.Level.Value > 100 then
player.leaderstats.Level.Value = 100
end
end
3 comments
0
Where would I post this script?
0
You would not put it anywhere, actually. It's just an example. Read your code and figure out where the Level is actually being assigned.
0
I see, ok thanks
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Please paste your leveling up script because that's where the limitation would be set