Advertisement
Guest User

Untitled

a guest
Aug 17th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. -- You should use the benchmarker to compare this one to the one you have. :P
  2.  
  3. local SpawnEvent = Instance.new("BindableEvent")
  4. SpawnEvent.Event:Connect(function(Function, Pointer) Function(Pointer()) end)
  5.  
  6. local function FastSpawn(Function, ...)
  7. local Length = select("#", ...)
  8. local Arguments = {...}
  9. SpawnEvent:Fire(Function, function() return unpack(Arguments, 1, Length) end)
  10. end
  11.  
  12. return FastSpawn
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement