How can I make a /sync command like Mocap?

I want to make a /sync command just like how Animations: Mocap has it or Club Iris.
So like /sync [player] and it would make you do the same dance as someone else in sync.
How can I do this?

2 Likes