Hey, I’d like to incorporate a two player emote system in my game that games such as “The Strongest Battlegrounds”, “Sorcerer Battlegrounds”, and “Jujutsu Shenanigans” have previously done.
I have experience with creating scripts in which two peoples characters are influenced at once, and they both have an animation playing, but I’m not sure where to start with a system like these other games.
They mainly make it so one player holds an idle stance, spawns a Proximity Prompt on them, and once another player triggers it, they go into a duo cutscene, but I can’t wrap my head around where to start with this.
Any support would be appreciated.
1 Like
Start with a LocalScript, and have UserInputService get when the correct key is pressed. Then, the player should play a looping idle animation. Use a RemoteEvent to tell a server script to create some anchored part without collision at the player’s location (which would be a parameter of the event). The part could be a ball with a radius slightly larger than the player. The server script should loop with a counter for a certain amount of time while checking whether the part is being touched by a player besides the player who started the animation.
If someone touches the part, they are moved to the desired position next to the original player, and both clients are told to play an animation with a RemoteEvent. Otherwise, if the counter reaches zero, the original player’s animation stops.
2 Likes