Here is the script it makes max health equal to level * 100
local Player = game.Players.LocalPlayer --get the local player local LVL = Player.LevelingSystem.Lvl --get the level LVL.Changed:Connect(function() --when it is changed, update the health Player.Character.Humanoid.MaxHealth = LVL.Value * 100 Player.Character.Humanoid.Health = Player.Character.Humanoid.MaxHealth --optional end)
local Player = game.Players.LocalPlayer --get the local player local LVL = Player:WaitForChild("LevelingSystem"):WaitForChild("Lvl") --common reason as to why some LocalScripts don't work in studio, things haven't loaded in LVL:GetPropertyChangedSignal("Value"):Connect(function() Player.Character.Humanoid.MaxHealth = LVL.Value * 100 Player.Character.Humanoid.Health = Player.Character.Humanoid.MaxHealth end)
the GetPropertyChangedSignal()
method is not really necessary in this case, but it "generates" an event for when the specified property is changed