|
| 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
|
  |
| 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 |
|
|
|
| 04 Mar 2016 01:54 PM |
local spawn = function(f, ...) spawn(function() f(...) end) end
|
|
|
| Report Abuse |
|
|
|
| 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 |
|
|