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

why isn't this Main Menu gui script working?

I am trying to make it were once you click play it will open the PlayFrame and close the Main it works sometimes and sometimes not like studio it works but when u play it doesn't also when i do play it in regular game it says PlayFrame isn't a valid member of Screen Gui if the PlayFrame is in the screen gui so im like :l anyways pls help

Main = script.Parent.Parent
Play = script.Parent.Parent.Parent.PlayFrame

function run()
if Main.Visible == true then
Main.Visible = false
Play.Visible = true
else
Main.Visible = true
Play.Visible = false
end

end
script.Parent.MouseButton1Down:connect(run)

1 comment

0

Are there any outputs for this when you click it?

1 answer

✓ Accepted answer

You need to put a script in the GUI to let it connect with the script you're using now, I don't see a error in here now so try taking my advice.

1 comment

0

Thank you but also wouldn't a non local script affect everyone?

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