game:GetService('Players').PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
character:WaitForChild("Humanoid").Died:connect(function()
print(player.Name .. " has died!")
end)
end)
end)
if the character dies, I want something in workspace removed for example (1player game):
if game.Players.name.humanoid.health = 0 then
game.Workspace.Example:Remove()
end

1 comment
Just put line 2 of your 2nd script after line 4 in the first script