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

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

Asked by 6 years ago

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?

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. User#20279 0 — 6y
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 Sergiomontani10 236 — 6y
0
Is the contents in the gui visible? KawaiiX_Jimin 54 — 6y
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. Sergiomontani10 236 — 6y
0
bump Sergiomontani10 236 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

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

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? Sergiomontani10 236 — 6y
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) User#20388 0 — 6y
Ad

Answer this question