Note: the shop GUI is not the child of the frame
Im making a shop gui, I want to make it so when I click the shop gui it opens a frame, how do I do that? Can someone make a script and explain it to me? If you're say to just make the frame visible: No, I'm trying to make a player manually make the frame visible
local ShopButton = script.Parent local Frame = ShopButton.script -- the gui that's going to be visible when "ShopButton" gets clicked ShopButton.MouseButton1Down:Connect(function()) Frame.Visible = true end)
make sure it's a local script and it's placed in the screen gui that the frame is in
And if you want a close button do this
local TextButton = script.Parent -- Close button local Frame = TextButton.Parent TextButton.MouseButton1Down:Connect(function()) Frame.Visible = False end)
make sure the Close button is in the frame