I want to change all players GUIs text using a script in the workspace. I think it has something to do with getPlayers()?
Yes, it does.
You should use :GetPlayers() to loop through the players and change their GUI's respectively.
Here is an example:
1 | for _,v in pairs (game:GetService( "Players" ):GetPlayers()) do |
2 |
3 | v.PlayerGui:WaitForChild( "ScreenGui" ).Frame.Text = "Text changed!" |
4 |
5 | end |