Hi all,

I'd appreciate it if someone could help me make some more changes and fixes to the following script I made with the help of Lex Lost.
I put the changes I need within the code in //green. I've been trying for over a week to make those changes on my own, but have had no success:

So I'd be really grateful for any help lol

Thanks in advance,