Code: Select all
attempt to index global 'moho' (a nil value)
I have a function that is called at the end of the "OnOk" function. I have no clue. Is there a different way to access that? When would "moho" be nil?
Should it run in the "Run" function? I've got so much going on that I'm losing track of when things happen. Doesn't ":Run" occur at the moment the menu script is called? And "OnOk" run after the okay button is hit?
It actually works if the pasting function runs inside the :Run function of the script. However I think there are some values that haven't been set yet as I get errors on different tables being "nil" when they most definitely shouldn't be nil at that point.
-vern