I’m trying to make it so when you press a TextButton,the player’s death animation which is a script,will replace eachother,for example,you press the “Ragdoll”,you ragdoll after death,you press “Fade” you fade out after death.I’ve already tried multiple ways to make something like this,but i just don’t have enough experience.
I think just make a module(or just make a function inside script) for every death animation, require them from a script, change death animations from local script, also use remote events