I’m trying to make an inventory script that loads in when the player presses Q. In PlayerScripts, I have the input module and the inventory module checking for the Q key and toggling visibility for the inventory, along with adding the items. However, I can’t see the inventory change visibility on screen. I know the module script works, as it can delete frames off of the inventory, and I know it does change visibility because when I debug the script the visibility returns as true in output.
I tested out putting a simple local script that toggled the visibility when the player pressed Q and it worked. However, I need it to be a module script, as the structure of my game depends on modules to make everything work nicely.
How do I make the module work?