Hello, I’m currently using the zonix sandbox kit for some practise and i’m trying to add a ORE value billboard gui but i’m not having much luck. I have managed to add the billboard and text with the following code.
local CheckGUI = ORE:FindFirstChild("BillboardGui") -- CHeck if billboard already exists
if CheckGUI then
return false
end
if CheckGUI == nil then
local billboardInstance = Instance.new("BillboardGui")
billboardInstance.Parent = ORE
billboardInstance.Size = UDim2.new(1, 0, 1, 0)
billboardInstance.Adornee = ORE
billboardInstance.StudsOffset = Vector3.new(0,1.2,0)
local OreVal = Instance.new("TextLabel")
OreVal.Parent = billboardInstance
OreVal.Size = UDim2.new(1, 0, 1, 0)
OreVal.Text = ORE.Cash.Value
OreVal.BackgroundTransparency = 1
OreVal.TextColor3 = Color3.new(21, 99, 9)
OreVal.TextSize = 15
OreVal.TextStrokeTransparency = 0
however the ore cash value does not update afterwards. Above is ran inside the ItemHandler script from replicated storage. I believe the script location could be the issue?