Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

why isn't this Main Menu gui script working?

Asked by 9 years ago

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)
0
Are there any outputs for this when you click it? Uroxus 350 — 9y

1 answer

Log in to vote
-1
Answered by 9 years ago

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.

0
Thank you but also wouldn't a non local script affect everyone? tyronecruz12345 0 — 9y
Ad

Answer this question