For example, if I'm level 10, my max health of 100 goes to 300, basically increasing +20 max health everytime my leaderstats level increases?
I have tried something like this, but I realized it's not working because its a local script (and doesn't work on filtering enabled functions)
repeat
wait()
until game.Players.LocalPlayer:findFirstChild("leaderstats") and game.Players.LocalPlayer:findFirstChild("Level", true)
local Ammount = 25
while true do
wait()
if game.Players.LocalPlayer.Character.Humanoid.MaxHealth < game.Players.LocalPlayer.leaderstats.Level.Value * Ammount + 100 then
game.Players.LocalPlayer.Character.Humanoid.MaxHealth = game.Players.LocalPlayer.leaderstats.Level.Value * Ammount + 100
game.Players.LocalPlayer.Character.Humanoid.Health = game.Players.LocalPlayer.leaderstats.Level.Value * Ammount + 100
end
end
