Is there a way to get the name of an animation keyframe marker, instead of GetMarkerReachedSignal:Wait()?

I’m currently creating animations with lots of animation markers. These markers mark for when certain sounds should play. In my code, I then have a long block of code designated specifically to these markers.


This quickly becomes a problem when the order of the markers are changed. Then, I will have to rewrite the entire block of code to fit that order.
Is there any function to simply get the name of an animation marker?
That way, I can write a function that gets the name, then determine what sound to play based off of that name; instead of relying of ":Wait()"ing for a certain Marker to be reached.


It’s deprecated though