I would like this ragdoll death animation script to only apply for a certain team, how would I do this?
Here is the script:
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) script.RagdollClient:Clone().Parent = character
character:WaitForChild("Humanoid").Died:connect(function()
character.UpperTorso:SetNetworkOwner(player)
end)
end)
end)

2 comments
Put the whole script inside a Code block
Check what their team is when the function runs.