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

"Main is not a valid member of PlayerGui" Filtering Enabled, is there a fix?

This isn't really much of the actual script itself but more on the server side of the game. I put the Main GUI in StarterGui so I expect it to clone to PlayerGui on the server side and client side of the game. But for some reason it only clones to the client side and I can't figure out how to make it go to the server side. Using a script didn't work, how should I go on doing this?

5 comments

0

I’m a little confused on what you mean by making it go to the server side. Also I think server scripts can’t access StarterGui/PlayerGui.

0

Basicly I have a GUI in StarterGui, but for some reasona when ever I play the game with a real server it ends up not being on the server side of the game yet I see the GUI in PlayerGui when im on the client side

0

Is the contents in the gui visible?

0

They are in the StarterGui Folder and are also visible when looking from the local player window. But whenever I go into the server window they are only visible from StarterGui as they are not in the PlayerGui folder. I can provide pictures if wanted/needed.

0

bump

1 answer

✓ Accepted answer

I had the same problem, with a bit of research I found that the playergui is client side only, you can clone to it, but you cannot detect something inside it. So what your asking is impossible with FE enabled and even with filtering disabled it would be pretty messy. I don't really know why you need this but if you need it to be accessed I would recommend putting values inside the player wich can get detected by both server and client scripts I believe (or remote events)

Read this

2 comments

0

Not really what I meant but it did give me some knowledge, Im using a door that is suppost to take money from the PlayerGui and let them buy a house. I scripted it so I know it should have no problems but while in the Server Test it gives me the error and I found that StartGui wont replicate to PlayerGui, is there any way to fix this?

0

Oh, the way to fix it is to not put your values inside the PlayerGui as it cannot be accessed from a server script (I said that in my answer), put the value inside the player, not inside the playergui (If this also isn't what you meanth try to copy the script)

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