I have been working on an inventory system, and have been following a (tutorial) while adapting it to my own work, but I have run into an issue. I keep getting Accessed None on the Wrapbox, which is causing multiple problems. I have already gone through multiple attempts to fix this.
I have Pictures of the code, and of the error. I can include more if it is helpful.
Is there any way I can solve this problem? I need it to not access none. Adding IsValid makes the code work without error messages, but also causes later bugs.