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 » Scripters
Home Search
 

function help

Previous Thread :: Next Thread 
Crow_Crow is not online. Crow_Crow
Joined: 27 Feb 2016
Total Posts: 342
19 Jun 2016 07:53 PM
is there a way to make a function run with the script not waiting for it to finish?
i.e.

function wew()
wait(1)
print("wew")
end

function wew2()
wait(1)
print("even more wew found")
end

function wew3()
wait(1)
print("ultimate wew achieved")
end

while true do
wait()
wew()
wew2()
wew3()
end

for all 3 wew functions to go at the same time without the 'wait(1)' taking effect in the 'while true do' function?
Report Abuse
Negativize is not online. Negativize
Joined: 02 May 2011
Total Posts: 25068
19 Jun 2016 07:53 PM
You can use spawn()
Report Abuse
phoenix53124 is not online. phoenix53124
Joined: 25 Feb 2009
Total Posts: 4889
19 Jun 2016 08:04 PM
THAT'S what spawn() does??? I've been using coroutines for everything!
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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