local safeZonePercent = (width / self.max) * (ms / 1e5)
There's the issue with the safezone. It should be 1e3
I changed it to 1e6, test it.
Sometimes this forum drives me mad:
Warning - while you were reading 5 new replies have been posted. You may wish to review your post.