Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
2

Why doesn't my startercharacter local script animation play?

Asked by 4 years ago

It's a startercharacterscript with a animation inside and the animation doesn't play

local GrabAnimTrack = char.Humanoid:LoadAnimation(script:FindFirstAncestor("GrabAnimation"))

Output Error: Needs Animation Object (When there's already an object)

1
Don't say it needs an animation when there is already an animation copied and pasted 5 times and it's not wrong. DayLighter_1995 8 — 4y
0
Does it have a valid animation, and did you put :Play() ? iNot_here 93 — 4y
1
yeah DayLighter_1995 8 — 4y
0
Put some more of your code here Ascarson4 138 — 4y
View all comments (2 more)
0
ok DayLighter_1995 8 — 4y
0
print(script:FindFirstAncestor("GrabAnimation")) AnimTrack:Play() DayLighter_1995 8 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

Have you tried:

local animation = script:WaitForChild("YourAnimationName")
local animationLoad = humanoid:LoadAnimation(animation)

animationLoad:Play()
Ad

Answer this question