Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Level Cap. How do I do this?

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?

1 comment

0

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

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.