Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-2

Using Animation Loaded to Humanoid from Other Script?

Asked by 10 years ago

So, my question isn't about a particular line of code or anything, but more of a concept. Up till now I've always used animations by having a single script load the animation to the player's Humanoid, and then playing it from that script as needed. My question is, is it possible to run an animation from a script that DIDN'T load said animation? For instance, I'd rather not have every sword I put into a sword-fighting game load its own copy of the same slash animation. If a player manages to pick up 20 swords, his humanoid would, by my method, have 20 copies of the same animation loaded to his Humanoid. is there a way to check whether a certain one is already loaded, and if so use it?

Answer this question