I don't know why this script didn't work.
LocalScript location StarterPlayer/StarterCharacterScript
local Lvl = game.Players.LocalPlayer:FindFirstChild("Level") --I try to use "Lvl" but this didn't work too.
local Char = script.Parent
local humanoid = Char:WaitForChild"Humanoid"
if Lvl.Value == Lvl.Value +1 then
humanoid.MaxHealth.Value = humanoid.MaxHealth.Value *1.1
humanoid.Health.Value = humanoid.MaxHealth.Value
print("Test")
end
I try to find "Level" from leaderstats. I want to after geting lvl to change MaxHealth

1 comment
I'm still new but i'm pretty sure Level and Lvl is not part of Players so you can't use the FindFirstChild for that