Why are my scripts delayed?

Hello developers,
Im currently making a automated minigun turret shooting system but if the player is lagging, the turret shoots much less than its supposed to. It runs on a while wait() do loop and whenever is shoots, it does a wait(1) at the bottom. If there is no lag it runs completely fine but whenever there are a lot of enemies, it begins to significantly slow down the shooting amount. Is there a fix for this?

task.wait() is way quicker and better than wait().

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.