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

How to increase max health when a number increases in leaderboard?

I want to figure it out how to make this. I need a script about it but i don't know how to make it

like.

when the character is level 2, add 50 to max health

1 answer

✓ Accepted answer

Try This, you may have to tweak this script

game.Players.PlayerAdded:connect(function(player)
	while true do
		local lvl = player.leaderstats.level
		local max = player.Humanoid.MaxHealth
		if lvl.value == 2
		then
			max.Value = max.Value + 50
	end
end
end)

2 comments

0

nah its just increases for level 2 i want it to increase it for every levels but thx.

0

Okay i did it somehow thanks.

This discussion is preserved as it was. New answers, comments, and votes are closed.