Refactored BeamBulletScript