So currently I have this script:
Game.Players.PlayerAdded:connect(function(player)
while not player.Character do wait() end
local character = player.Character
local animateScript = character.Animate
animateScript.death.Animation1.AnimationId = 'http://www.roblox.com/asset/?id='
end)
Yeah I tried it and it doesn't work. It is probably the death part. Would anyone tell me how to make it so that when a player's health goes to 0 it plays the animation?

3 comments
Please format your question so that all code is within a code block
please fix your formatting
fixed it