The hardest part of that is just a matter of finding what code detects the end of the song to replay it. Afterwards I'd imagine it's just a single added function to the replay manager that makes it so party hp drops to 0 if active on song end and if you have no variables set for it to restart your position. else transfer player and play the song again. Though there might be a tough little bit about figuring out how to end the condition. I'm not great at JS but I imagine it might somewhat function like that