Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Spawn function not working? [ANSWERED]

Asked by 8 years ago

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!

1
Seriously? Are you serious? You really think we can help you when you don't even give us half of the script. Vezious 310 — 8y
0
Be more specific. mine248 40 — 8y
1
You don't need the parenthesis inside the spawn function, you just need the function name. Basically it's spawn(doors1) not spawn(doors1()) M39a9am3R 3210 — 8y
0
Yep, thanks M39. Works great now. :) WelpNathan 307 — 8y

Answer this question