You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? the gui to update with the workspace
-
What is the issue? Imgur: The magic of the Internet you can see on the right that printing values are not nil/empty
-
What solutions have you tried so far? looked over all devforum, litterally everything
i think it’s a bug but idk, the other gui’s work
--update functions
function UpdateFrame(Frame : Frame)
if not Frame then return end
if FrameIsEmpty(Frame) then return end
if ObjectIsEmpty(Frame.Object.Value) then return end
local Folder : Folder = Frame.Object.Value
Frame.Title.Text = string.upper(tostring(Folder:FindFirstChild("ItemName").Value))
print(Frame.Title.Text)
Frame.Title.Visible = true
Frame.InfoText.Text = `{tostring(Folder:FindFirstChild('ItemMass').Value)}g {tostring(Folder:FindFirstChild('ItemCount').Value)}x`
print(Frame.InfoText.Text)
Frame.InfoText.Visible = true
Frame.ObjectImage.Image = Folder:FindFirstChild('ItemImage').Value
print(Frame.ObjectImage.Image)
print('updated')
end
function UpdateInventory()
for i,slot in ipairs(BackpackFrame:GetChildren()) do
if FrameIsValid(slot) then
UpdateFrame(slot)
end
end
end