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: Script Problem

Previous Thread :: Next Thread 
BlueBlood12 is not online. BlueBlood12
Joined: 07 Jul 2011
Total Posts: 1377
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 is not online. 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 is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
28 Nov 2013 03:44 PM
^ No that's not the problem
Report Abuse
GGGGG14 is not online. GGGGG14
Joined: 29 Jan 2012
Total Posts: 25344
28 Nov 2013 03:46 PM
I don't see any problems ;o
Report Abuse
CrniOrao is not online. 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 is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
28 Nov 2013 03:52 PM
Yes
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