Update LoadoutScript.lua

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