Essentially, I want a player to have this dance when he or she enters the game. I'm pretty sure I did everything right, but the animation still doesn't fire:
game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
local animation=Instance.new("Animation")
animation.AnimationId="http://www.roblox.com/Asset?ID=160934457"
local animTrack=character.Humanoid:LoadAnimation(animation)
wait(3)
animTrack:Play()
print("test")
end)
end)
There aren't any errors in the output, and it prints "test".
Your help would be great!

2 comments
I haven't looked at other parts of the script, but the asset is only subtracted by 1 when it's a shirt, pants, or t-shirt. It's an animation, so don't subtract one. So the ID should be 160934458 instead of 160934457 in the script.
I've changed it to the correct asset ID, but it still doesn't work. :(