Oh, I see it. My old version was hot garbage
That’s all I need, thank you for your help!
How would I change the firerate?
You would mess with the values “burst” in the code above. Set it lower for a faster firerate
can you make on of these posts a solution for other readers?
I meant that is fires every 0.1 seconds, no matter how low the burst is
It turns out that os.time doesn’t work for something that is smaller than 0.1
Different way to do it:
while wait(2) do
repeat
attack()
bulletsShot+=1
until bulletsShot ==10
bulletsShot = 0
end
or
using use delta just like os.time()
or
use spawn(function)
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.