@DarthPungz Thank you. This worked well out. He replied and promised to wok on it and since he admitted he is a beginner, I gave him some tips.
"Thanks for the reply. As you are still learning, here's a tip: Only put those things in a per-frame-tick eventhandler (no interval set) which really need to be updated each frame. Use a separate script class for this. Every other functionality which needs to be updated dynamically is to be placed in tick eventhandlers with an appropriate tick interval. Let's take the spawning distance for example. Maybe you remember I suggested to NOT always have all the props and interiors spawned at all time due to memory bloating. Query the player's distance to your objects and only spawn those in vicinity. An interval between 250 and 500 ms is sufficient for this purpose (run tests to see what's the best choice).
Other than that I highly recommend you learn about structured programming. Just for a start, what classes and methods are supposed to be good for (catchwords: maintainability, extensibility). Please don't be frustrated. We all have been beginners at one point in time. "