Raphael7
|
  |
| Joined: 03 Dec 2008 |
| Total Posts: 2479 |
|
|
| 01 Dec 2012 08:44 PM |
How do I sync like Time Guis with all the players in the Server? Will I have to make another coroutine inside a coroutine? But will I have to use wrap for both? Cause I heard using wrap is less buggy. Here's my script just for a reference.
inform = coroutine.wrap(function() for _, v in pairs(game.Players:GetPlayers()) do if v.PlayerGui:findFirstChild("Game")~=nil then local gui = v.PlayerGui.Game local label = gui.Message.Label gui.Message.Visible = true for i = 30,1, -1 do wait(1) label.Text = "The game will start in "..i.." seconds!" end gui.Message.Visible = false end end end) inform() |
|
|
| Report Abuse |
|
|
|
| 01 Dec 2012 08:46 PM |
Wait, what are you trying to do?
Want a script? Send me a PM and we'll work out a deal! |
|
|
| Report Abuse |
|
|
Raphael7
|
  |
| Joined: 03 Dec 2008 |
| Total Posts: 2479 |
|
|
| 01 Dec 2012 08:47 PM |
| Syncing the Time Text with everyone in the server. I tried it in Test Server with two players, and all it did was play for a single player, and once the routine was over, it played for the other player. So is it necessary for me to use another coroutine? Or is there another method? |
|
|
| Report Abuse |
|
|
Raphael7
|
  |
| Joined: 03 Dec 2008 |
| Total Posts: 2479 |
|
| |
|
crouton04
|
  |
| Joined: 07 Jul 2010 |
| Total Posts: 4459 |
|
|
| 01 Dec 2012 08:54 PM |
Idk what a coroutine is, but I did this without one. :p
players = game.Players:GetChildren() for i, v in pairs(players) do gui = players[i].PlayerGui.Announcement for l = 1, 30, -1 do gui.text.Text = "Round Starting in "..l.." seconds!" wait(30) gui.text.Text = "Round Started!" wait(4) gui.text.Text = "" end end |
|
|
| Report Abuse |
|
|
Raphael7
|
  |
| Joined: 03 Dec 2008 |
| Total Posts: 2479 |
|
|
| 01 Dec 2012 08:55 PM |
Are you cereal? *FaicPalm* Thanks anyway. |
|
|
| Report Abuse |
|
|
|
| 01 Dec 2012 08:57 PM |
I stepped on a corn flake... Now I'm a cereal killer. XD.
Want a script? Send me a PM and we'll work out a deal! |
|
|
| Report Abuse |
|
|
crouton04
|
  |
| Joined: 07 Jul 2010 |
| Total Posts: 4459 |
|
|
| 01 Dec 2012 08:59 PM |
| Me too, thats why I don't go to farms anymore.. |
|
|
| Report Abuse |
|
|
Raphael7
|
  |
| Joined: 03 Dec 2008 |
| Total Posts: 2479 |
|
|
| 01 Dec 2012 09:00 PM |
| Hah! That joke. xD. But anyways, how do I do this madness! ROBLOX is going to end! asohdaohsdihasiohfdawdlkasfasgf |
|
|
| Report Abuse |
|
|
Raphael7
|
  |
| Joined: 03 Dec 2008 |
| Total Posts: 2479 |
|
| |
|
crouton04
|
  |
| Joined: 07 Jul 2010 |
| Total Posts: 4459 |
|
|
| 01 Dec 2012 09:28 PM |
| mein no work? Mine needs the guis already there... |
|
|
| Report Abuse |
|
|
Raphael7
|
  |
| Joined: 03 Dec 2008 |
| Total Posts: 2479 |
|
|
| 01 Dec 2012 09:35 PM |
| Does it sync along with all the players in the game? At the same time? |
|
|
| Report Abuse |
|
|
crouton04
|
  |
| Joined: 07 Jul 2010 |
| Total Posts: 4459 |
|
|
| 01 Dec 2012 09:36 PM |
Yesh except...
i = 30, 1, -1 didn't do that.. |
|
|
| Report Abuse |
|
|
Raphael7
|
  |
| Joined: 03 Dec 2008 |
| Total Posts: 2479 |
|
|
| 01 Dec 2012 09:38 PM |
| Alright, I'll take care of it. |
|
|
| Report Abuse |
|
|