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

Make a gui appear for all players?

Asked by 4 years ago
Edited 4 years ago

I need to make a gui appear for all of the players. My script:

for i, v in pairs (game.Players:GetChildren()) do
i.PlayerGui.Gui.Enabled = true
end

Thanks, JailBreaker_13

0
instead of i.PlayerGui, you need to do v.PlayerGui Subsz 366 — 4y

1 answer

Log in to vote
1
Answered by
ACHRONlX 255 Moderation Voter
4 years ago

Firstly, NEVER use GetChildren() for the Player Service, use GetPlayers(). Secondly, you will need a remote event to make it visible to all players, otherwise they will need to reset to see it.

Ad

Answer this question