Need help with custom chat emotes

I want to add a custom emote that will act just like Roblox’s built-in emotes (/e dance, /e point, etc.) by just editing the default Animate script found in StarterCharacter.

I try and copy the same things that allow the built-in emotes to work like creating a new table (not sure what they’re called) and adding its name into the small section full of the other emote names (+ the bool values) but the emote won’t play. There are also no errors in the console so I’m not entirely sure why my custom emote doesn’t work.

Could anyone help, please?

(also sorry in advance if this post is in the wrong topic)

Make sure your emote is using the same rig type.