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

Why is this animation not playing?

Asked by 2 years ago
Edited 2 years ago

I am making a simulator and the tool animation isn't working. I have 2 scripts. Here is the first one

script.Parent.Activated:Connect(function()
local action = script.Parent.Parent.Humanoid.Animator:LoadAnimation(script.Animation)
    action:Play()
    end)

Here is the second one

local tool = script.Parent
local animation = tool.LocalScript.Animation

tool.Activated:Connect(function()
    local character = tool.Parent
    local humanoid = character.Humanoid

    local AnimationTrack = humanoid.Animator:LoadAnimation(animation)
    AnimationTrack:Play()
end)

Any help appreciated!

0
On the website, the animation isn't playing for me. MarkedTomato 810 — 2y
0
For me it shows my character moving its arm up and down which is the animation. BACONBOX_MAN 0 — 2y
0
It still shows nothing in game. BACONBOX_MAN 0 — 2y
0
If the animation doesn't belong to you, the creator may have privated it. I've come across cases where an animation cant be used because the creator does not allow it. CameUpFromNothing 37 — 2y
0
It is my animation, I made it a few days ago. BACONBOX_MAN 0 — 2y

Answer this question