Hey y'all, I'm working on a quests page for my game, and I'm having trouble getting my frames to clone correctly. I have a "questsContainer" with a UI grid that houses a frame for each quest. I have created a template frame inside it, and configured the UI grid with cell size and padding and everything, and when I manually duplicate the frame in the explorer, it populates just fine into the grid. When I try to clone the frame in my script, though, I'm running into problems.
I can observe the frame being cloned if I open the explorer during gameplay, but I can't see it on the screen. I've tried setting Visible to true, messing with the ZIndex and background transparency/color, making sure the size and position are correct, and nothing is working.
This is the code I'm working with:
local quests = GetQuests:InvokeServer(player)
print("Quests", quests)
--Prints as expected
--Loop through quests to create frames:
local questTemplate = questsContainer:WaitForChild("QuestFrame")
for _, quest in pairs(quests) do
local newFrame = questTemplate:Clone()
--This works, showing up in Explorer, all style tags applied
newFrame.Visible = true
newFrame.Size = UDim2.new(1, 0, 1, 0)
newFrame.Parent = questsContainer
end
Anyone have any idea what's wrong here? I've never been stuck for so long but I'm going on 4hrs with this bug and I've got nothing.