Unable to run animations in my custom character

Sooo, as the heading suggests, I’m unable to run animations for my custom character.

I’ve tried setting the animation priority to action andd have also tried many other tutorials, yet no success, I’d be reallyy glad if someone was able to identify my mistake…

Since this is supposed to be just an animation test run I’ve used a 10 sec wait to allow time for the character to load, also it’s a local script present under “StarterCharacterScripts”

game.Players.LocalPlayer.Character:WaitForChild("Animate"):Destroy()

print("waiting 10")
wait(10)
print("done")

local hum = game.Players.LocalPlayer.Character:WaitForChild("Humanoid")
local animationtrack = hum:WaitForChild("Animator"):LoadAnimation(hum:WaitForChild("Animation"))
print("must be succesful")
animationtrack:Play()

This is my output btw

Here are some pics of the custom character and it’s animations

image

image

I’m really confused on what I must do, and so I’d be extremely grateful for any and all help

try putting the animation script inside the character

First of all, thanks a lott for replying so quick!!

but it still doesn’t work :frowning:


it seems that when I run the game, the script gets deleted…

image

the script getting deleted is probably due to the “Animate:Destroy()” in your script.

does your custom character respawn your player and change the character??

I tried remove those lines from the code and yet am getting the same result :grimacing:

andd, I don’t think so for the second question

does your character disappear and then reappear as your custom character really quickly?

Nope, I spawn as my custom character… (Probably because I named my custom character as “StarterCharacter” and placed it under “StarterPlayer”)

yeah that’s why, anything inside the character doesn’t get put onto your actual in-game character if it’s in starterplayer and named startercharacter

you’d need a character selection gui and it would load onto you

i could send you a link to a simple character selection gui on youtube if you want

just a quick question, does your character have limbs?

in this screenshot it doesn’t look like it does, and you need limbs to run animations unless they’re made for whatever you use for your character

uhhhh, It does, and it doesn’t at the same time :joy:

I’m using a mesh which is completely rigged with bones, so it’s uncharted waters for me…
But as for the animations it runs well, since the bones are used for deforming the mesh itself, so it doesn’t have the typical R15 bones our usual avatars inherit.

The script is looking for a limb that doesn’t belong to the rig named “Torso”, you need to modify the script so that it’s compatible with your rig.

Furthermore, even with the necessary fixes made the animation is likely only compatible with R6 avatars.

The things is, that script which’s looking for the torso is the default “animate” script which is cloned when the player spawns,

but the problem arises at the other script that I’ve placed for the player, which at the moment isn’t even getting executed.

Also… the animations must work since I’m pretty sure custom character animations can be player and run through humanoids placed under the character, and since am using my custom animations made specifically for that rig, I believe it must function

1 Like