This script is flawless.
However, one suggestion I have is:
When making air battlestaffs, make it select the closest orb to the battlestaff so it doesnt seem like a bot.
Right now it selects the very first orb which is furthest away from the battlestaff in the inventory.
Making it select these...