Oh, there's a function for that? (I feel like an idiot)
edit:
Another question, when I declare a variable (say, a bullet) in a loop{} (which is in a task), it seems to be local to the loop{} only, not public i.e I can't call it outside of the loop{} in the same task or outside of the task. Anyone know how to make them public? (At least to the task, but to the whole script would be cool.)