How would I make an interactive taunt

What I want is a taunt which other players can interact with.
For an example, Team Fortress 2: When a player in TF2 starts an interactive taunt a looping idle animation plays until another player presses a key to interact with the other player which plays another animation for both players. For another example: Player A presses a key to start their interactive taunt. Player B walks up to Player A and Presses a key while looking at them, which starts the animation of which both players do some sort of action like a High five.

A possible approach would be to have all clients check the distance between them and all players using the taunt (using (Pos1-Pos2).Magnitude). If any players using the taunt are within a certain distance a gui would appear indicating that you can press a key to join the taunt. You’d then use UserInputService.InputBegan to detect when someone presses the join taunt key, then fire a RemoteEvent to tell the server you want to join the taunt.

Hope this helps! Please reply if you have any questions.