Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

[ANSWERED MYSELF] Why aren't my custom animations playing?

I'm working on a project, and at the very start I already ran into a very odd problem involving animations, the custom animations that I put in my game simply don't wanna play but the ROBLOX default animations do, the animations are made by me and exported to my account.

https://www.youtube.com/watch?v=0bjAkTYDzjY

I already tried setting the animations manually, through a serverside script in ServerScriptService and the method that I used in that video which oddly worked in a different game I made that is copying the default Animate script and pasting it in StarterCharacterScripts.

This issue is really confusing me and annoying me and I'd appreciate any help.

EDIT: I already fixed it myself, the default ROBLOX animate script was broken and I had to make my own script, and now it works.

2 answers

Hi!

Animations need to be ran locally. Do not worry, animations replicate for the server as well. (Local Script)

Use this code:

			local	  animation = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(--Insert animation path here)

Please note:

You dont have to but its easier to insert a new animation and add your animation roblox ID to it. Once you've done that you can then call upon it Example (script.Parent.Animation) and then you'd be able to load the animation.

1 comment

0

The ROBLOX animate script has a built in function for that, and even though I know that, I tried your method and wrote my own preloading function and it still wont work

Well, apparently the default ROBLOX animate script was broken, because I gave up on trying to make it work, and even tried reuploading the animation multiple times, I started making my own animation script and it's working just fine.

This discussion is preserved as it was. New answers, comments, and votes are closed.