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: Help please!

Previous Thread :: Next Thread 
ByDefault is not online. ByDefault
Joined: 25 Jul 2014
Total Posts: 3197
05 Nov 2014 11:27 AM
wait(script.Time.Value)
repeat
script.Time.Value = script.Time.Value - 1
wait(1)
until
started == false

What i need is for the wait to apply to the script, but have the repeat thing still do its thing, while the wait is still active... get me? If you do, please post an answer below
Report Abuse
ByDefault is not online. ByDefault
Joined: 25 Jul 2014
Total Posts: 3197
05 Nov 2014 11:30 AM
.
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
05 Nov 2014 11:33 AM
spawn(function()
repeat
script.Time.Value = script.Time.Value - 1
wait(1)
until
started == false
end)

wait(script.Time.Value)
Report Abuse
ByDefault is not online. ByDefault
Joined: 25 Jul 2014
Total Posts: 3197
05 Nov 2014 11:35 AM
Little better example,

I want the 2 waits to be active at the same time
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
05 Nov 2014 11:36 AM
Thats what I did
Report Abuse
ByDefault is not online. ByDefault
Joined: 25 Jul 2014
Total Posts: 3197
05 Nov 2014 11:43 AM
Ok, so I used coroutine.wrap but after its been used once, it says "cannot resume dead coroutine", how do I fix this?
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
05 Nov 2014 11:45 AM
Just use spawn like I did...

In this case its the same thing
Report Abuse
ByDefault is not online. ByDefault
Joined: 25 Jul 2014
Total Posts: 3197
05 Nov 2014 11:55 AM
Id like to use coroutine.wrap
Report Abuse
ByDefault is not online. ByDefault
Joined: 25 Jul 2014
Total Posts: 3197
05 Nov 2014 12:20 PM
bump
Report Abuse
DaTNoOb123 is not online. DaTNoOb123
Joined: 01 Feb 2013
Total Posts: 222
05 Nov 2014 12:49 PM
Just use it like he did he says it's the same thing brah.
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