Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- You should use the benchmarker to compare this one to the one you have. :P
- local SpawnEvent = Instance.new("BindableEvent")
- SpawnEvent.Event:Connect(function(Function, Pointer) Function(Pointer()) end)
- local function FastSpawn(Function, ...)
- local Length = select("#", ...)
- local Arguments = {...}
- SpawnEvent:Fire(Function, function() return unpack(Arguments, 1, Length) end)
- end
- return FastSpawn
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement