#BillboardGUI Health UI not working-- Again

1 messages · Page 1 of 1 (latest)

sage river
#

More BillboardGUI issues, ik ik. My BillboardGUI is not functioning the proper way. The X.Scale is just staying the same/looks the same. Front has Zindex 1 and Back has 0. Regardless, output does give the proper Health value. Any help is greatly greatly appreciated

local function onHealthChanged()
    local Health = script.Parent:GetAttribute("Health")
    local MaxHealth = 100
    local percentage = math.clamp(Health / MaxHealth, 0,1)
    Front.Size = UDim2.new(fullSize.X.Scale * percentage, fullSize.X.Offset, fullSize.Y.Scale, fullSize.Y.Offset)
    print(Health)
end

    
script.Parent:GetAttributeChangedSignal("Health"):Connect(onHealthChanged)Attached is my code for it.
local function onHealthChanged()
    local Health = script.Parent:GetAttribute("Health")
    local MaxHealth = 100
    local percentage = math.clamp(Health / MaxHealth, 0,1)
    Front.Size = UDim2.new(fullSize.X.Scale * percentage, fullSize.X.Offset, fullSize.Y.Scale, fullSize.Y.Offset)
    print(Health)
end

    
script.Parent:GetAttributeChangedSignal("Health"):Connect(onHealthChanged)
agile crow
#

One message removed from a suspended account.

#

One message removed from a suspended account.

agile crow