How to equip Animations with a Button

Hello developers! I’m currently trying to create a Button (TextButton) and once it’s clicked, be able to equip an animation package to the Player. Like an example; (Or as a ‘Tryon feature’)

        -- Code here to equip animation package, Ninja, Stylish, etc

How would I achieve something like this?

I recommend using a remote event so everything takes effect on the server side.

First you could delete the current animation script inside the character. Then you could have a folder inside of ReplicatedStorage of all the animations you have. Once the player clicks the button, it will clone that animation script and will put it into the character. You might need to use Player:LoadCharacter() as well for the change to take effect.

Alright thanks! I’ll make sure to take a look at that.