So, I made this script what includes a for loop.
The spawn function (doors1) should run the function but also go onto the (doors2) function aswell, for some weird reason, it's just running the (doors1) function and waiting for the function to finish before it goes onto the (doors2) function. What am I doing wrong?
function doors1()
FOR LOOP
end
function doors2()
FOR LOOP
end
spawn(doors1())
print "test"
spawn(doors2())
Thanks!

4 comments
Seriously? Are you serious? You really think we can help you when you don't even give us half of the script.
Be more specific.
You don't need the parenthesis inside the spawn function, you just need the function name. Basically it's spawn(doors1) not spawn(doors1())
Yep, thanks M39. Works great now. :)