Need help here... please

Since no one here helped me out on the entire process of creating a particle effect myself. I think i’ve got it down pretty well but there are still some issues. Could anyone help me? It’s not that much code and pretty easy to understand.
Problems:
It says the script is running too slow so I need to stop it and close.

Other than that I’ve got no idea because there’s no way to tell unless the one above gets fixed.