Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

My shop GUI wont make frame visible, why? I want to make frame visible by tapping a GUI

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

3 comments

0

may you show us the script?

0

THANK YOU SO MUCH PERSON WHO POSTED ANWER

0

ur welcome

1 answer

✓ Accepted answer

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

1 comment

1

i can tell that u r a beginner, i am too

This discussion is preserved as it was. New answers, comments, and votes are closed.