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

Gui Asset button?

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.

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)

1 comment

0

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

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