game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
local HumHealth = char.Humanoid.Health
if HumHealth <= 0 then
print("Yeet")
end
end)
end)
I knew that but the problem he has is quite something that I don’t usually see. I’m not certain myself if it’s actually a number value or booleans anymore.
Why not try the obvious and just use prints to confirm that you haven’t inadvertently changed a variable somewhere along the line? Just add the following before those lines run.
game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:Connect(function(char)
char:WaitForChild("Humanoid")
if char.humanoid.Health == 0 then
print("OOF")
end
end)
end)