#custom animations script help
1 messages · Page 1 of 1 (latest)
if anyone already has a script for this PLEASE dm me it or put it here if you dont mind, and where i should put it
what do you mean by "custom animations"?
a script for asset ids
** You are now Level 1! **
nvm i figured it out
- first you get the animation id of your animation that you made
- then you make an Animation instance and put the animation id in it
- then in a script, get a player character's humanoid
- in the humanoid a Animator instance can be found(humanoid.Animator)
- then you use the animation instance you made earlier by loading it into the Animator with Animator:LoadAnimation(youra imationinstance) (DO NOTE THAT IT RETURNS AN ANIMATION TRACK, SO DO local animTrack = humanoid.Animator:LoadAnimation(youranimationinstance)
- now that we have the animation loaded, we can start the animation by using the animTrack, by doing animTrack:Play()
as shrimple as that
Now the troubleshoots:
- Q: What ID?
A: When you made an animation in the animation editor and published it, the animation ID can be found in the middle of the publish window, and a copy button right next to it, click it! - Q: I lost the window and cant copy the ID!
A: You can go to "roblox creator hub", from there go to the creations tab, then Development Items up top, and then scroll through the thingy to the Animations tab, find the one that is named exactly as the one that you made, click the 3 dots next to the name and then click "Copy Asset ID" - Q: Where do I put an animation instance??
A: Most usually it can be put in a tool or a folder in replicated storage, and then be loaded from there.
- Q: Where do I get more info??
A: Roblox documentation!