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

How to change every player's gui all at once?

Asked by
tber8 37
7 years ago
Edited 7 years ago

I need to get all players' output textboxes and change the texts all at once. I am doing this from a normal script in workspace.

I tried here by creating a variable:

O = game.Players:GetChildren()
output = O.PlayerGui.GameGui.Output.TextLabel

I was told that I need to do this locally, but I need this in the same script as the other stuff.

Help me fix this. Thanks.

2 answers

Log in to vote
2
Answered by 7 years ago

Please provide explanation with your answers. Simply posting code does not spread knowledge of integral scripting processes which helps people understand the logic and reasoning behind your answer.

Replace that with this:

local plrs=game.Players:GetPlayers()
for i=1,#plrs do
    output=plrs[i].PlayerGui.GameGui.Output.TextLabel
end
Ad
Log in to vote
0
Answered by 7 years ago

Have a remote event connect the client and catch changes from the remote event. Then use FireAllClients on the remote event from the server and change the gui on every client <- Should be near simultaneous.

0
Wait how do I script this? tber8 37 — 7y

Answer this question