Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

ScreenGui: Button NOT showing, only shop How to make it show?

Asked by 5 years ago
Edited 5 years ago

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.

0
Please indent your code. User#19524 175 — 5y
0
On line 21 you said Item1.Visible = false. chima95 7 — 5y
0
It doesn't matter, because I want the shop Button to show, and not the shop itself when you close the shop astroboyr 0 — 5y
0
I indented my code for you astroboyr 0 — 5y

Answer this question