There is no error what so ever, I tried putting the(0, humanoid.Health/humanoid.MaxHealth , 0, 1)as (humanoid.Health/humanoid.MaxHealth , 0, 1, 0) still no change. I just don't get why.
local startgui = game:GetService("StarterGui")
startgui:SetCoreGuiEnabled(Enum.CoreGuiType.Health, false)
--Player stuff
local player = game.Players.LocalPlayer
local char = player:WaitForChild("Character")
local humanoid = char:WaitForChild("Humanoid")
--Gui Stuff
local gui = script.Parent
local ground = gui.BackGround
local thing = ground.Health
local health = thing.Frame
humanoid.HealthChanged:connect(function(Health)
wait(0.1)
health.TextLabel.Text = humanoid.Health.."/100"
health:TweenSize(UDim2.new(Health/humanoid.MaxHealth, 0 , 1, 0), "Out", Enum.EasingStyle.Linear, 0.1)
end)

4 comments
Please put the code in a "Code Block"
Dont know how
Click on the Lua logo icon when writing a question or answer. It will add two tilde lines. Text writen between the two lines, will appear in a code block.
First of all, is it a local script? SerCoreGuiEnabled, along with game.Players.LocalPlayer only work in localscripts