Custom script almost working

Please check it.

Thank You!