I had a function in a module script that created and dropped ores for the dropper that was passed as the argument. Now a really funny thing happened. When I set the CanCollide of the part in which the main script was contained to false it fell through the world and was destroyed. But what is interesting is that the module script loop stopped running when that happened. Could someone explain why that was happening to me?
It probably happened due to the part's parent becoming nil after falling. When a script requires a module script it actually is still the main script running, so when it stops running, it stops running.