#animation code not working

1 messages · Page 1 of 1 (latest)

timber pewter
#

this code is supposed to play an animation when moving but he js keeps tposing

empty vector
#

do anim:Play()

analog zinc
#

This script is questionable

timber pewter
#

this was just a test version

#

to see if it was running

#

which this is the error i get

#

what are u supposed to put for the loadanimation

empty vector
#

ur animation..

lunar swallowBOT
#

studio** You are now Level 1! **studio

timber pewter
#

so i used the animation id

empty vector
#

i wonder why it didnt work...

timber pewter
#

im wondering too thats why im asking you

analog zinc
#

There's problems, so many problems

empty vector
timber pewter
#

what

timber pewter
analog zinc
#

First of all, I'm assuming this script is in startercharacterscripts?

#

(not a problem just clarifying)

timber pewter
#

no

#

this is for a seperate rig

#

which is why im doing all of this code

analog zinc
#

I see

#

So it's in the rig

timber pewter
#

yes

sweet quartz
#

I have the solution

timber pewter
#

and can u explain

#

im not tryna js copy code

sweet quartz
analog zinc
#

Alright, here's a list of the most glaring problems:

This isn't a "problem," but it annoys me: you define the rig in a variable, just to use workspace.rigsname.Humanoid to define the humanoid.

Then you do the same thing for the humanoids animator and name it walkAnimTrack, for some reason.

You also created an animation object, just to load the animation with a number.

You have a humanoid defined, but then do parent.test instead of humanoid. What even is "test" ??

#

Most of these problems aren't causing the error. The last one probably is

timber pewter
#

i forgot to change the name

#

doesnt change the error though

sweet quartz
#

That won't fix it.

timber pewter
#

what do u think the fix is

sweet quartz
#

Add another script inside the rig.

timber pewter
#

next

sweet quartz
timber pewter
#

no

#

isnt that gonna close the thing

sweet quartz
#

No

timber pewter
#

how stupid do you think i am

sweet quartz
#

It will help your animation script

sweet quartz
timber pewter
#

this servers a shithole

#

u got band kid humor bruh stop talking to me

unborn charm
unborn charm
#

this

#

:LoadAnimation() requires an Animation object

timber pewter
#

and what do i do with it after

#

assign it the animation ID?

unborn charm
#

yes

#

this is animator

#

uh sec

timber pewter
#

would this work better?

unborn charm
#

and put in in :LoadAnimation()

#

then do anim:Play()

timber pewter
unborn charm
#

oh mb

unborn charm
timber pewter
#

ohhh

#

didnt know it needed that

sweet quartz
#

lol

unborn charm
#

lmfao

timber pewter
#

u gotta be the worst ragebait oat

unborn charm
#

mustard

sweet quartz
unborn charm
#

U means UwU

sweet quartz
sweet quartz
lunar swallowBOT
#

studio** You are now Level 11! **studio

unborn charm
#

script has a lot of parents 💀

#

and me..

sweet quartz
#

nothing

#

script.parent.parent.parent

timber pewter
#

animation isnt playing but atleast im not getting any errors

timber pewter
#

thosepeople

sweet quartz
#

add

timber pewter
#

is there a way to make a value absolute

#

like gamemaker

unborn charm
#

like math.abs(-1) is 1?

timber pewter
#

yeah

#

but i got it twisted

unborn charm
#

math.abs