Delay Function Help

I want to run a delay function that also brings some parameters with it.

Delay function returns error “delay function requires 2 arguments”

delay(5,returnBox(v,br))

both v and br are parts

2nd argument must be just the function but you’re calling it instead of referencing the function and you can’t use delay() or spawn() for multithreading while passing parameters to function directly at the same time because they don’t support parameters unlike some functions like pcall. Try to call the function inside another function instead.

delay(5, function()
    returnBox(v, br)
end)
3 Likes