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: Instead of this can I do this?

Previous Thread :: Next Thread 
LordMatthewII is not online. LordMatthewII
Joined: 20 Aug 2011
Total Posts: 10873
23 Aug 2014 07:20 PM
Instead of doing

function poop()
coroutine.resume(coroutine.create(function()
end))
end

poop()



How would I be able to do that without creating two functions?
Report Abuse
LordMatthewII is not online. LordMatthewII
Joined: 20 Aug 2011
Total Posts: 10873
23 Aug 2014 07:32 PM
?
Report Abuse
Accomplishable is not online. Accomplishable
Joined: 13 Aug 2009
Total Posts: 6207
23 Aug 2014 07:50 PM
anonymous functions automatically execute
Report Abuse
LordMatthewII is not online. LordMatthewII
Joined: 20 Aug 2011
Total Posts: 10873
23 Aug 2014 08:00 PM
... I don't want to make two functions, I want to combine the coroutine and the function poop() together.
Report Abuse
Accomplishable is not online. Accomplishable
Joined: 13 Aug 2009
Total Posts: 6207
23 Aug 2014 08:04 PM
omfg


"anonymous functions automatically execute"


I was saying only use the coroutine noob


Report Abuse
LordMatthewII is not online. LordMatthewII
Joined: 20 Aug 2011
Total Posts: 10873
23 Aug 2014 08:07 PM
Oh I get it call me a noob because I didn't understand what you where saying..

Also I don't understand what you mean

Do you mean this..?

local fart=coroutine.create(function()
print('hi')
end)

coroutine.resume(fart())
Report Abuse
vortexyamum is not online. vortexyamum
Joined: 31 Aug 2011
Total Posts: 1979
23 Aug 2014 08:07 PM
Why are you naming your functions poop and fart.
Report Abuse
LordMatthewII is not online. LordMatthewII
Joined: 20 Aug 2011
Total Posts: 10873
23 Aug 2014 08:10 PM
Because I'm not creative in my example names.
Report Abuse
Accomplishable is not online. Accomplishable
Joined: 13 Aug 2009
Total Posts: 6207
23 Aug 2014 08:13 PM
coroutine.resume(coroutine.create(function()
--code
end)

^ will automatically execute
Report Abuse
LordMatthewII is not online. LordMatthewII
Joined: 20 Aug 2011
Total Posts: 10873
23 Aug 2014 08:14 PM
I said it was an example I want to call the function from different spots...
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