-- main loop


RunService.Stepped:connect(function(_, deltaTime)
	for i = #projectiles, 1, -1 do
		local projectile	= projectiles[i]
		local alive	= UpdateProjectile(projectile, deltaTime)
		
		if not alive then
			KillProjectile(projectile)
		elseif tick() - projectile.Start > projectile.Lifetime then
			KillProjectile(projectile)
		end
	end
end)
