I need it so when you click on this SurfaceGui it will pop open with that menu if you want to buy it or not. I'm very confused and typically don't script these kinds of things.
COMMUNITY QUESTION
Gui Asset button?
1 answer
MENU BUTTON
local s = script.Parent.Parent.Menu
function Clicked()
s.Frame.Visible = true
s.TextButton.Visible = true
s.TextBox.Visible = true
script.Parent.Text = "Close" -- Script inside a TextButton
script.Parent.CloseScript.Disabled = false
script.Disabled = true
end
script.Parent.MouseButton1Click:connect(Clicked)
CLOSE MENU BUTTON (Same Place As Open Menu Button)
local s = script.Parent.Parent.Menu
function Clicked()
s.Frame.Visible = false
s.TextButton.Visible = false
s.TextBox.Visible = false
script.Parent.Text = "Open"
script.Parent.OpenScript.Disabled = false
script.Disabled = true
end
script.Parent.MouseButton1Click:connect(Clicked)
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Wat? This needs to be able to buy a T-shirt onclicked, thats all.