Saying: Main is not a valid member of PlayerGui
http://prntscr.com/l4i4v3
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.