Animation not playing?

So basically I’m making a round based game and when ever the round ends I want to have a staue of the player that won dancing.

I’ve made a script that changes the statues model whenever there is a new winner and also play a animation on the model of that player but the animation wont play and I’m getting no error messages, anyone know why?

Code:

1 Like

Humanoid:LoadAnimation has been depreciated; you might try using Animator:LoadAnimation.
Read this announcement for more information.

1 Like
local StatueEvent = game.ReplicatedStorage.StatueEvent

StatueEvent.Event:Connect(function(v)
    local Dummy = script.Parent
    print(v)
    local UserId = v.UserId
    print(Dummy)

    Dummy.Humanoid:ApplyDescription(game.Players:GetHumanoidDescriptionFromUserId(UserId))

    local animator = Dummy.Humanoid:FindFirstChild("Animator") or Instance.new("Animator", Dummy.Humanoid)
    local animationTrack = animator:LoadAnimation(workspace.Animation)
    animationTrack:Play()
end)
1 Like

It’s Still not working and I’m still getting no error messages