Hi, so I want to make a GUI visible for a particular player in my game, but when I use :GetPlayers, it returns to me only Backpack and Startergear, and not StarterGui/PlayerGu. So my question is, do you know how I can retrieve a PlayerGui from a player OTHER than the player from localplayer? Thanks.
1 Like
You have to use a server script if you want to access other player’s GUIs.
If you want the client to communicate with the server I suggest you use RemoteEvents/Functions
1 Like
Adding on to what @somedeviser said. This is because you’re using a local script, you wouldn’t be able to access what other people see.
-- enables the gui for everyone
for _,plr in pairs(game.Players:GetPlayers()) do
plr:WaitForChild("PlayerGui").GuiName.Enabled = true -- replace the gui name with your gui's name
end
2 Likes