shootCheck = function(dt)
local canShoot = md
if canShoot and (tick() - lastShot) >= (60 / module.cgun.gmod.firerate) then
shoot()
lastShot = tick()
end
end
The problem is that this is ran in a RenderStepped loop, which isn’t good because if any gun firerates are < 0.1 (60 / 600) then they fire at 0.1 RPS.
Is there any solution to this?
(I am aware ROBLOX has added an official FPS unlocker so this is obsolete, but oh well)