Help with GUI Beacuse i don't know how to

Guys can you help me (I am new) so i don’t really know how to fix this but its driving me off can you help
Video :robloxapp-20230918-0955246.wmv (880.4 KB)
Images :
image

image
Code : local ShopFrame = script.Parent.Parent[“Buy Wins frame”]

script.Parent.MouseButton1Click:Connect(function()
ShopFrame.Visible = not ShopFrame.Visible
end)

1 Like

What doesn’t work exactly?

Look on the video i posted it on first

The green button should be working for green frame and when wins shop is closed it gets closed as well

Do you have any idea? To fix this problem

it doesnt close both of them cuz youre only targeting the shopFrame and not the button too
(btw u can use streamable.com to upload vids)

1 Like

do you know how to make the close

robloxapp-20230918-0955246 here you go

you can make the parent of both the button and the frame into the wins shop frame

1 Like

You can do (add to mouseButton1Click)

script.Parent.Parent.Wins.Visible = not script.Parent.Parent.Wins.Visible

Do i remove remove anything or do i add before or after

Add after this line, it should turn off the frame now

parent the frame and button into the wins shop gui and use grassperson’s script

1 Like

I dont know how to do that i just know nothing

image

Who do i make the parent the winss Shop or winsshopgui

Screen Shot 2023-09-18 at 4.57.34 PM

for example, the parent of Buy Wins Frame is Gui as buyWins parent is Buy Wins Frame

1 Like

image
Is this correct?

yeah that is correct. now try testing it out

1 Like