I looked up how to play an animation and did the same code but it didn't work. There are no errors. Any help on what I am doing wrong is appreciated. Animation ID - rbxassetid://3408083014
local animation = script.Parent.Parent.Animation
script.Parent.Parent.Activated:Connect(function()
local plr = game.Players:WaitForChild(script.Parent.Parent.Parent.Name)
local char = plr.Character
local humanoid = char.Humanoid
local track = humanoid:LoadAnimation(animation)
print('Play')
track:Play()
print('Done')
end)

1 comment
Where is the animtion located?