I am making a shop and inside the shop needs to be a button. The button doesn't show! I've been stuck on this for WEEKS now and its driving me crazy. Here is the explorer You need to copy and paste the link: https://i.stack.imgur.com/MmT8j.png
Here is the code that doesn't work
local frame = script.Parent
local Item1 = script.Parent.ShopFrame:WaitForChild("Item1")
local close = frame:WaitForChild("Close")
local shop = frame.Parent:WaitForChild("Shop")
print(Item1)
local a = false
shop.MouseButton1Click:connect(function()
if a == false then
shop.Visible = false
frame.Visible = true
Item1.Visible = true
close.Visible = true
a = true
end
end)
close.MouseButton1Click:connect(function()
if a == true then
shop.Visible = true
frame.Visible = false
Item1.Visible = false
close.Visible = false
a = false
end
end)
Again, the Close and Shop Buttons work, but there is no Item1 button showing! Please help and thank you in advance.

4 comments
Please indent your code.
On line 21 you said Item1.Visible = false.
It doesn't matter, because I want the shop Button to show, and not the shop itself when you close the shop
I indented my code for you