PlayerGui Error

Hi, I tried all everything but the playergui cannot be found. This problem only happens with some players. Script = Server Script

Script:
local folder = plr:WaitForChild("PlayerGui"):WaitForChild("Billboards")

Errors:

1 2

Can you send a screenshot of the player’s playergui section in studio?

A Script can not access PlayerGui, only Module Scripts and Local Scripts.

I think you can create a ModuleScript and require it with a Script.
e.g.

module.PlayerGui = function(Player)
    return Player.PlayerGui
end

3

Or you can use Remote events. I mosly prefer remote events. It depends on your choice, though.

As @TwistedOriginal said, scripts cannot access PlayerGui. You’ll have to replace your script by a local script or a Module.

Adding on it, I can’t really help you since we don’t really know what you want the script to do. If you would like your script to interact with a player’s GUI, you’ll have to have a Remote event.

1 Like

Disappointed in the replies here, you can very well access PlayerGui from the Server.

Personally I had no problems replicating GUIs to players through PlayerGui or maybe I never noticed them. If you can somehow get replication steps, you should make a bug report.

1 Like

My bad. I agree with you, but using Remove Events is easier.