Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to fix this? i'm making custom overhead health GUI

Asked by 5 years ago

The Code In StarterCharacterScript -

view source

1 local char = script.Parent 2 char.Changed:connect(function() 3 print("ads") 4 local hum = char.Humanoid 5 local health = hum.Health 6 local maxHealth = hum.MaxHealth 7 char.Head.HealthBar.GreenBar.Size = UDim2.new(health/maxHealth,0,1,0) 8 end)

Also the Billboard GUI is in the characters head

Problem -

Whenever the humanoid takes damage the green bar wont scale to its health.

Also its a billboard GUI in the players head

0
Can you put it in a code block? TypicallyPacific 61 — 5y

Answer this question