Seems like the arm rotation doesn’t work with custom animations on the R15 rig.
No errors are printed, and when I did some basic debugging, I found that the code highlighted in blue did not run at all.
EDIT : I tried the exact same code on a tool without animations and it worked just fine. So it seems like it almost 100% has something to do with the tool being animated.