generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: How could I...

Previous Thread :: Next Thread 
jmasterj10 is not online. jmasterj10
Joined: 19 Sep 2010
Total Posts: 735
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 is not online. 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
jmasterj10 is not online. jmasterj10
Joined: 19 Sep 2010
Total Posts: 735
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 is not online. 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
jmasterj10 is not online. jmasterj10
Joined: 19 Sep 2010
Total Posts: 735
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
jmasterj10 is not online. jmasterj10
Joined: 19 Sep 2010
Total Posts: 735
03 Jul 2014 07:39 PM
I fixed it! It was for some reason in a local script *duh*
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image