I have made a new script and figured it out, the caculation speed is very fast now, thanks!