the core script

this is the core script that makes the particle and motion it.