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

I have an animation script inside a dummy and it doesnt work. Why?

local anim = script:WaitForChild("crawling")
local hum = script.Parent:WaitForChild("Humanoid")
local actualAnim = hum:LoadAnimation(anim)

actualAnim:Play()

this is a server script parented to a dummy in the workspace also the dummy has some other parts welded to it (but not anchored)

any help is apreciated

2 comments

0

Is this animation looped?

0

i bet its not

1 answer

Hello! This is how I would fix it:

local anim = script:WaitForChild("crawling")
local hum = script.Parent:WaitForChild("Humanoid")
local actualAnim = hum:LoadAnimation(anim)
actualAnim.Priority = Enum.AnimationPriority.Action -- This line sets the priority to action, which means it will play over all the other animations

actualAnim:Play()

Hope It Helps =)

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