repeat slot = slot + 1 if slot > 7 then slot = 1 end until self.EnabledWeapons[slot] nextSlot = slot elseif INP.Action(Actions.PrevWeapon) then repeat slot = slot - 1 if slot < 1 then slot = 7 end until self.EnabledWeapons[slot] nextSlot = slot end end