Open gui in same parent

It is possible to open gui in the same parent

script.Parent.MouseButton1Click:Connect(function()

script.Parent.Parent:WaitForChild("Frame").Visible = not script.Parent.Parent:WaitForChild("Frame").Visible

end)

Untitled

I want to open the frame from the shop button.

Could you please state what you want to do in a more understandable way please.

see that photo if i click the shop on main frame he will direct me to the gamepass like that if i click trail it will direct me to trails gui…

You can have multiple frames within a parent.

Heres my script to open the frame within a frame or should i say the frame have gamepass title
when i click the shop on the top of the text of gamepass why it did not open the gamepass frame?

> script.Parent.MouseButton1Click:Connect(function()
> 
> script.Parent.Parent:WaitForChild("Frame").Visible = not script.Parent.Parent:WaitForChild("Frame").Visible
> 
> end)

From your screenshot, the frame is already visible?

Hey dev im done i figure my own issue lol

Well… Good Luck with it. Im here if you do need help.