Okay this is probably the dumbest script in the world but why wont it work. Whenever I test it the console outputs MenuScreen is not a valid member of ScreenGui and it says it is happening on line 3. This is a localscript named MenuScript and it is located inside of a ScreenGui named MenuGUI which is inside of StarterGui, there is another screen GUI but it is not in starterGui it is in serverstorage for another script. Here is the code:
local ScriptParent = script.Parent local MenuIcon = ScriptParent.MenuButton local MenuPopUp = ScriptParent.MenuScreen MenuPopUp.Visible = false
Basically it is suppose to turn MenuScreen invisible but it wont work and it is weird, I can't seem to pick up anything with my eyes so if you have a suggestion to what that error is meaning and why it is happening that would be awesome. (This is just the beginning of the script, this isn't all it will do. I don't want to code anymore until I fix the simple bugs I already come across)
Try naming the locals
to something other than the name of the object you are trying to find.
If it is in starter GUI it will go into the players gui when they log on so you need to change that.