How do i make click to open script to the GUI`s?

Example: Shop gui
When you click it another gui appears
I know ı can watch videos but ı wanted to ask.

1 Like

Put this in a LocalScript and parent it to the button which is used to open/close the frame.

local Frame = --  (The frame you want to open)
script.Parent.MouseButton1Click:Connect(function()
    if Frame.Visible == false then
        Frame.Visible = true
    elseif Frame.Visible == true then
        Frame.Visible = false
    end
end)
2 Likes

@MasonManzotti u can simply do that.

Edit: Bro this is 5 months ago

local Frame = --  (The frame you want to open)
script.Parent.MouseButton1Click:Connect(function()
     Frame.Visible = not Frame.Visible
end)
1 Like