|
| 28 Nov 2013 03:35 PM |
So basically what this script does it waits until its round 1, and then it gives everyone 2 GUIs. The problem is that it wont detect when round 1 starts. [The game starts on round 0 btw]. So when it changes to round 1, the script wont detect it, and therefore wont give anyone the GUIs. I have the same script that gives 2 different GUIs to people when its round 0, and that one works because the game STARTS on round 0. This is the info i've gathered from my testing, does anyone have any potential fixes to this problem? Much appreciated, -BlueBlood12
-- Variables Gui1 = game.Lighting.CountdownSho2 Gui2 = game.Lighting.VoteGen2 db = false -- This is debounce -- ===========
while wait(1) do if db == false then db = true if game.Workspace.Rounds.Value == 1 then wait(30) for i, player in ipairs(game.Players:GetChildren()) do Gui1 = Gui1:clone() Gui2 = Gui2:clone() Gui1.Parent = player.PlayerGui Gui2.Parent = player.PlayerGui Workspace.Countdown.s.Disabled = false end wait(500) Workspace.Countdown.s.Disabled = true debounce = false end end end
|
|
|
| Report Abuse |
|
|
CrniOrao
|
  |
| Joined: 12 Oct 2008 |
| Total Posts: 2274 |
|
|
| 28 Nov 2013 03:44 PM |
for i, player in ipairs(game.Players:GetChildren()) do
That line is wrong, should be like this below, you made a typo! :)
for i, player in pairs(game.Players:GetChildren()) do |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 28 Nov 2013 03:44 PM |
| ^ No that's not the problem |
|
|
| Report Abuse |
|
|
GGGGG14
|
  |
| Joined: 29 Jan 2012 |
| Total Posts: 25344 |
|
|
| 28 Nov 2013 03:46 PM |
| I don't see any problems ;o |
|
|
| Report Abuse |
|
|
CrniOrao
|
  |
| Joined: 12 Oct 2008 |
| Total Posts: 2274 |
|
|
| 28 Nov 2013 03:49 PM |
Gui1 = Gui1:clone() Gui2 = Gui2:clone() Gui1.Parent = player.PlayerGui Gui2.Parent = player.PlayerGui
Defying the same variable with a same variable.. Is that even possible? |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|