Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Can I execute a function without waiting?

Is it possible to call a function and then proceed to the next line before the function is over? I want this for a gun recoil script. E.G.

function recoil()
--Make the gun go up
wait(1)
--Make the gun go down
end
end

 script.Parent.Activated:connect(recoil)

This script will make it so you cant shoot more than once a second, how would I fix this?

2 answers

wait() ?

1 comment

0

No, I want it to take a while for the gun to go back down.

wait(0.01)? Can I see a bigger portion of the script?

4 comments

0

Your answer is the same as the one above, and I have lost the script. I just want the question answered

0

Are you using CFrame?

0

Yeah

0

Can I see the lines that include CFrame?

This discussion is preserved as it was. New answers, comments, and votes are closed.