Yeah, sorry about this but I don’t really have a solution for you.
Just try looking over your script to make sure everything seems logical. You should always take you time and redesign things if you feel you aren’t getting anywhere.
Hopefully someone else might be able to help. Sorry bud.