|
| 03 Jul 2014 07:22 PM |
| change a gui in every player at the same time? I don't know how and I've been trying for hours D; |
|
|
| Report Abuse |
|
|
Vuva
|
  |
| Joined: 22 Jan 2010 |
| Total Posts: 1102 |
|
|
| 03 Jul 2014 07:24 PM |
You loop through every player object for i,v in pairs(game.Players:GetPlayers()) do -- v=a player v.PlayerGui.thingymobabor.meow=5 end |
|
|
| Report Abuse |
|
|
|
| 03 Jul 2014 07:28 PM |
I tried that but it had error "PlayerGui is not a valid member of player" I kept on trying other things Please note I am semi advanced at scripting, so I don't need things explained to me unless asked, thanks for your consideration :) |
|
|
| Report Abuse |
|
|
Vuva
|
  |
| Joined: 22 Jan 2010 |
| Total Posts: 1102 |
|
|
| 03 Jul 2014 07:32 PM |
| Erm by default a PlayerGui object is created inside of player objects, so you're either changing the name of it or just doing soimething wrong... |
|
|
| Report Abuse |
|
|
|
| 03 Jul 2014 07:37 PM |
Here's the script... (I'm trying to make a chat gui)
script.Parent.MouseButton1Click:connect(function(click) if script.Parent.Parent.ChatBox.Text ~= "Click here and type your message." then name = script.Parent.Parent.Parent.Parent.Parent.Parent.Name newText = name..": "..script.Parent.Parent.ChatBox.Text for i,v in pairs(game.Players:GetPlayers()) do wait() v:WaitForChild("PlayerGui").ComputerGui.Menu.ChatroomApp.slot9.Text = v.PlayerGui.ComputerGui.Menu.ChatroomApp.slot8.Text v.PlayerGui.ComputerGui.Menu.ChatroomApp.slot8.Text = v.PlayerGui.ComputerGui.Menu.ChatroomApp.slot7.Text v.PlayerGui.ComputerGui.Menu.ChatroomApp.slot7.Text = v.PlayerGui.ComputerGui.Menu.ChatroomApp.slot6.Text v.PlayerGui.ComputerGui.Menu.ChatroomApp.slot6.Text = v.PlayerGui.ComputerGui.Menu.ChatroomApp.slot5.Text v.PlayerGui.ComputerGui.Menu.ChatroomApp.slot5.Text = v.PlayerGui.ComputerGui.Menu.ChatroomApp.slot4.Text v.PlayerGui.ComputerGui.Menu.ChatroomApp.slot4.Text = v.PlayerGui.ComputerGui.Menu.ChatroomApp.slot3.Text v.PlayerGui.ComputerGui.Menu.ChatroomApp.slot3.Text = v.PlayerGui.ComputerGui.Menu.ChatroomApp.slot2.Text v.PlayerGui.ComputerGui.Menu.ChatroomApp.slot2.Text = v.PlayerGui.ComputerGui.Menu.ChatroomApp.slot1.Text v.PlayerGui.ComputerGui.Menu.ChatroomApp.slot1.Text = newText script.Parent.Parent.ChatBox.Text = "Click here and type your message." end end end) |
|
|
| Report Abuse |
|
|
|
| 03 Jul 2014 07:39 PM |
| I fixed it! It was for some reason in a local script *duh* |
|
|
| Report Abuse |
|
|