i put a script with a billboard within, a frame within the billboard, and a frame within a frame, all in starter character scripts

this is the script

local char = script.Parent
local healthGui = script.Health2
local humanoid = char.Humanoid
healthGui.Parent = char.Head

humanoid:GetPropertyChangedSignal("Health"):Connect(function()
	local healthChange = humanoid.Health/humanoid.MaxHealth
	local healthColor = Color3.fromRGB(255,0,0):Lerp(Color3,fromRGB(60,255,0), healthChange)
	healthGui.Health.Meter.TweenSize(UDim2.new(healthChange,0,1,0), "In", "Linear",1)
	healthGui.Health.Meter.BackgroundColor3 = healthColor
end)

4 comments

0

are you sure that the billboardgui is 1. in a place that is initialized? 2. is adornee'd to the player model's head?

0

Any error messages?

0

unfortnately no error message

0

fifkee yes