GUI Problem (Menu)

Hello,

I am creating a GUI for a menu where a player can manage her/his inventory (guns, skins, etc.) but I do not know why my image are not showing.

I have to get something like it :
image

But I am getting :

I used ContentProvider in my loading screen to add the images (some people told me the problem can be here) but I did not change something.
image

Content of the GUI :
image

My script in the GUI (InventoryFrame > Management Buttons)

local rs = game:GetService("ReplicatedStorage")

local managerFrame = script.Parent

local ReturnBtn = script.Parent.ReturnBtn
local GunsBtn = script.Parent.GunsBtn
local SkinBtn = script.Parent.SkinBtn

local function ButtonsConfig()
	for i,v in ipairs(managerFrame:GetChildren()) do
		if v:IsA("ImageButton") and v.Name ~= "ReturnBtn" then
			if v.Visible then v.Visible = false else v.Visible = true end
		end
	end
end

local function ReturnConfig()
	if ReturnBtn.Visible then ReturnBtn.Visible = false else ReturnBtn.Visible = true end
end

ReturnBtn.MouseButton1Click:Connect(function()
	ButtonsConfig()
	ReturnConfig()
	GunsBtn.Frame.Visible = false
end)

GunsBtn.MouseButton1Click:Connect(function()
	ButtonsConfig()
	ReturnConfig()
	GunsBtn.Frame.Visible = true
end)

SkinBtn.MouseButton1Click:Connect(function()
	ButtonsConfig()
	ReturnConfig()
	GunsBtn.Frame.Visible = false
end)

PreloadAsync yeilds the whole thread until it completes so I suggest tht u call it at the top and execute it b4 anythin else.

Yeah but it does not change something…

Could you show me the modified script?

image

Call ContentProvide:PrealoadAsync at the top, after defining the service.

Ah ok, I will do it.

I test now.

I did and nothing… :sob:

Where can be the problem so?

Are you changing the ImageId’s in the ImageLabel?

No? I do not update the image label…

That seems the problem because the images are not just going to load without the ImageLabel’s having the right ImageId’s.

The ID has to be “rbxassetid://10534740782” and I got “http://www.roblox.com/asset/?id=9878254545


I think you are right because :

Maybe they aren’t loading in since Visible might be set to false.

What? I did not understand and by the way I tried to update the Image of the Image Label, it does not fix :

I do not know why but I show me only when I am back at the “menu” of the inventory.

I updated the parent of the ImageLabel (in the normal frame (InventoryFrame)) and now it works.