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
 

[ Content Deleted ]

Previous Thread :: Next Thread 
MrgamesNwatch is not online. MrgamesNwatch
Joined: 02 Feb 2009
Total Posts: 7729
08 Feb 2012 04:59 PM
I'm making a count down for a flag capture (request for someone else), So i thought i could just use coroutines to have the countdown run simultaneously with the part of the script which checks who owns the flag/capturing and what nots. Anyways, the problem would be is i loose the ability to use the arguments in my function when using it as a coroutine. Any better way to do this?

function countDown(time,flagHolder)
for i = time,0,-1 do
if script.Parent.Parent.color.BrickColor ~= flagHolder then
break
end
winTimer = i
end
end

local count = coroutine.create(countDown)

~I script Awesome sauce to go with my spaghetti code
Report Abuse
Nicolas77 is not online. Nicolas77
Joined: 29 Jul 2008
Total Posts: 3158
08 Feb 2012 05:10 PM
[ Content Deleted ]
Report Abuse
MrgamesNwatch is not online. MrgamesNwatch
Joined: 02 Feb 2009
Total Posts: 7729
08 Feb 2012 05:13 PM
color.BrickColor = the color of the flag
flagHolder = the TeamColor who has the flag
EX:

if script.Parent.Parent.color.BrickColor ~= "Bright blue" then

~I script Awesome sauce to go with my spaghetti code
Report Abuse
RobloxNewb01 is not online. RobloxNewb01
Joined: 16 Apr 2011
Total Posts: 348
08 Feb 2012 05:37 PM
My brain is just not functioning properly so I'm just gonna say do == no point of doing ~= if you dont know if it's not equal, oh wait actually never mind...
Report Abuse
MrgamesNwatch is not online. MrgamesNwatch
Joined: 02 Feb 2009
Total Posts: 7729
08 Feb 2012 05:42 PM
eh, yeah nvm. i decided to use variables instead. Now to get the rest of this script to work...

~I script Awesome sauce to go with my spaghetti code
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