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
 

Re: spawning functions + incorporating variables

Previous Thread :: Next Thread 
CreativitiesUnity is not online. CreativitiesUnity
Joined: 08 Nov 2014
Total Posts: 1281
04 Mar 2016 01:45 PM
is there a way I can spawn a function and define a variable, such as:
hi(game.Players.Who)
but, using the spawn method?
spawn(hi)

game:GetService("PizzaDelivery")
Report Abuse
belial52 is not online. belial52
Joined: 10 Oct 2009
Total Posts: 8074
04 Mar 2016 01:48 PM
I don't use spawn very often if at all, but I know with coroutines you can pass information like this

coroutine.wrap(hi, "Hi there")
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
04 Mar 2016 01:54 PM
local spawn = function(f, ...)
spawn(function() f(...) end)
end


Report Abuse
CreativitiesUnity is not online. CreativitiesUnity
Joined: 08 Nov 2014
Total Posts: 1281
04 Mar 2016 01:55 PM
i actually forgot that the wiki is a place for answer, so i just went there, now i got it

i appreciate the responses though, my mistakes

game:GetService("PizzaDelivery")
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