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

I need a script that when you click on the button it goes invisible and the frame is visible help..?

I’ve tried a few scripts like: button = script.Parent

function onClicked(GUI)

script.Parent.Parent.Parent.InfoGUI.Visible = true script.Parent.Parent.Visible = false

end script.Parent.MouseButton1Click:connect(onClicked) but it won’t work, it only makes the frame visible.

1 answer

✓ Accepted answer

Use Lua box, also You didn't explain well so I am not sure if this is what you tough.

local button = script.Parent
local function onClicked(GUI)
	script.Parent.Parent.Parent.InfoGUI.Visible = true
	button.Visible = false
end
script.Parent.MouseButton1Click:Connect(onClicked) 

1 comment

0

Thank you. It worked.

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