My Rig Wont Animate

i know, it sounds like its another duplicate of that post with the same name, but trust me, my problem still not solved.

The script is simple:

local anim = Instance.new('Animation')
anim.AnimationId = 'http://www.roblox.com/asset/?id=10714369325'
a = script.Parent.Humanoid.Animator:LoadAnimation(anim)
a.Priority = Enum.AnimationPriority.Action4
a.Looped = true
a:Play()
  • Rig is Unanchored
  • Already ungroup and re-group the rig
  • Changing the rig
  • Different Animations
  • Set priority to highest (action4)
  • add delay before loading the animation to the rig

but these step doesnt seem to fix my problem at all, any help is appreciated.
and yes, there’s no output/error whatsoever if anyone wondering.

I think the issue might be because you’re creating the animation in a script.

1 Like

try adding local before a = script.Parent.Humanoid.Animator:LoadAnimation(anim)?

1 Like

nvm its because the animation instance expects a different type of string than the one you get from the website, you can do this by just pasting the link you got from the website into an existing animation instance’s AnimationId and it will automatically change it into a valid string, then use that string in your script.

also i wouldnt recommend creating a new animation instance in scripts cause memory leaks can occur if the animation instances that are being created arent destroyed properly, just make a library of animation instances you’ll use and refer from there

1 Like

its still not working unfortunately

yea i know, using rbxassetid:// right?, even creating external animation instance still won’t do it

i already try it using animation instance, and put the id on the animationid section, still won’t work

Is there any errors?

Some problems may be

  • This is in a server sided script and not a local script

  • You uploaded the animation under a group or under yourself and are using it under a game owned by a group or owned by you

Try making a local script and changing the runcontext so it can run inside your character if its in workspace, If you are animating the player make a localscript and put it in startercharacterscripts.

1 Like

as i said there’s no error/output

yes, it’s on server script i know, because i purposely make it server side

You need to animate it locally with a local script because if you do not the animation will not appear on the client as it is not being run or processed on the client only on the server

1 Like

let me see then, if it works or no

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.