Update LoadoutScript.lua

Fixed, I think? I can't accurately test it as I cannot change corescripts in studio to debug, and this script uses protected methods.