I fixed it :D (It took me a while before I realized what was wrong)
It can still be a little off at times, so be warned... Huge credit to @SuperCade49 for the idea, and most of the code for the arrow. More credit to @colinmacc for the original project, none of these remixes would exist if he hadn't shared the project!