Hello, I've been attempting to enhance this outdated script in version 2, but it's proven quite challenging because of the older version. My primary goal is to address the repainting issue, but I'm struggling to upgrade the script to version 5, and I'm uncertain about the steps required to achieve t...