i been trying to figure out how to make the npcs die with the players when the round is over, but can't seem to see why it ain't working
for i, player in ipairs(game.Players:GetPlayers()) do
if player.Character then
local hum = player.Character:FindFirstChild('Humanoid')
if hum then
hum.Health = 0

1 comment
Thanks!