In my RPG Game, whenever you level up your health is increased;
function onLevelUp(player, XP, level) wait(0.1) player.Character.Humanoid.Health = player.leaderstats.PwrLvl.Value * 100 + 100 player.Character.Humanoid.MaxHealth = player.leaderstats.PwrLvl.Value * 100 + 100
But when you die your maxhealth that you earned goes away. But when you respawn it saves al except MaxHealth your other stats that I implemented.
If you read this can you help me make a script that increases your maxhealth like shown when you respawn? Thanks. -jm34

1 comment
So what I did was I made a script that went like this: game.StarterPlayer.StarterHumanoid.MaxHealth = game.Players.Player.leaderstats.PwrLvl.Value * 100 + 100 game.StarterPlayer.StarterHumanoid.Health = game.Players.Player.leaderstats.PwrLvl.Value * 100 + 100 and put it in the workspace. Then I made a StarterHumanoid and put that in the starterplayer, but it didnt work.