I’m attempting to make a system that changes a player’s face when they’re dancing. How do I tell when the player is specifically doing an emote dance such as /e dance?
Easy and hacky way out is to check if the emote animation is playing or not using Animator#GetPlayingAnimationTracks
The better and non-hacky way is to modify the animate script to allow for such information to be transferred.
I believe you could track the player’s chat messages to detect this specific animation and then utilize Humanoid.StateChanged to determine if the animation has stopped.
However, this approach may not be effective in cases where you want to detect the use of custom animations (non-chatable animations) and may be somewhat hacky, unconventional.
The best course of action, as previously stated by @hayper1919, is to modify the animator scripts to provide informations about the current animation, while including a signal for animation changes.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.