I decided to go about it in a totally different way but have now run into another issue further into the script.
I made a fresh topic: