In the game I am currently working on, health is determined by armor and level. Armor doesn't exist yet, so right now it's just level. It always shows at 99/99 health, so the game probably thinks that your level is always 0, sometimes even thinks ur lvl 1. Heres the code.
game.Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(Character)
local Stats = Player:WaitForChild("leaderstats")
local Level = Stats:WaitForChild("Level")
local Humanoid = Character:WaitForChild("Humanoid")
Humanoid.MaxHealth = (Level.Value*10)+99
Humanoid.Health = Humanoid.MaxHealth
end)
end)
Not sure what's wrong with it, but here it is. If you can help, please do. I will accept the answer as soon as I know it works, thanks!

4 comments
I tried that, but ill try again in a bit. Also, I meant to make it ^3, but whatever *10 is fine
Can I see the leaderstats script?
Yep, it works. No need to see the script, I only did a wait(1). Thanks!
You're welcome! :D