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

I need help with a player GUI Error, saying Main is not part of PlayerGui?

1 answer

If this is in a localscript, doing that won't affect the other players, you need to use a remote event (:FireAllClients) in order to do that.

If it's a serverscript, playergui is not visible for the server.

13 comments

0

Also, use WaitForChild on PlayerGui as it might be nil.

0

So how can I access the playerGui to change something inside it?

0

You need to use a remoteevent.

0

How do I do that? I want to access main, http://prntscr.com/l4i8y1

0

You simply google "roblox remoteevent", the method is :FireAllClients().

0

How would I write it into code so I could access the text?

0

The wiki will tell you everything you need to know.

0

I can't find the page, may I have the link/

0

Thank you but this still doesn't help me with my problem. I want to access a GUI part from the Player, but it gives me an error message of the part I'm trying to access is not there when the GUI is.

0

Use WaitForChild on the object you're accessing to make sure it's there.

0

It still says it's not a valid member when I do v.StarterGui.Main:WaitForChild()

0

Oh.. my get players function might be wrong http://prntscr.com/l4ihst

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