I have attached a zip of my mod folder including errorlogs and the log file for my mod. The purpose of this mod is to spawn in a blueprint/structure and then control that creation with lua. The way I accomplish this is by having distance sensors plugged into servos and guns and then lua applies a force onto a block in front of that distance sensor. At the current moment the mod is programmed to catch the player's key presses and press the corresponding buttons inside the creation.
This works as expected, pressing qwerasdzxciop keys control the creation from outside a seat, the next step is to create a lua script that uses these controls to try to kill the player. The problem I am running into is after controlling the creation for a couple of seconds the game will crash and there is no error in the log.
Can someone please look into this and let me know what I can change to prevent the crashing?
Thank you