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

How do I change every players GUI?

Asked by
NecoBoss 194
10 years ago

I want to change all players GUIs text using a script in the workspace. I think it has something to do with getPlayers()?

0
Please explain what you want to change it to, at least make it more braud. Vividex 162 — 10y
0
I'm sorry it seemed braud but Drak answered it. All I really needed to know was how to acsess all players character info such as playerGUI and tools. NecoBoss 194 — 10y

1 answer

Log in to vote
3
Answered by 10 years ago

Yes, it does.

You should use :GetPlayers() to loop through the players and change their GUI's respectively.

Here is an example:

for _,v in pairs(game:GetService("Players"):GetPlayers()) do

v.PlayerGui:WaitForChild("ScreenGui").Frame.Text = "Text changed!"

end 
0
Thank you this is exactly what info I needed! :D NecoBoss 194 — 10y
Ad

Answer this question