Need help on if statement

No worries, was my bad that I didn’t give the script before. I just tested it, works well. Thanks so much.