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

Open Menu Button Script MouseButton1Down?

Menu = script.Parent.Parent.Menu
Visible = Menu.Visible

function open()
	if Visible == true then
		Visible = false
	if Visible == false then
		Visible = true	
	end	
end

script.Parent.MouseButton1Down:connect(open)

what is wrong with this i made it but it seems to not work..

1 answer

✓ Accepted answer

When you set the "Visible" variable, you simply change that variable, not the actual Menu.Visible property. Try getting rid of the "Visible" variable you set and replace it with Menu.Visible.

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