What did I do wrong, I think I'm going crazy because I do not know what's going on.
local model = script.Parent
local hum = model.Humanoid
hum:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
hum.HealthChanged:Connect(function(hp)
if hp <= 0 then
print("dead")
end
end)
The humanoid, dies.. it breaks it's bones, if I remove,
hum.HealthChanged:Connect(function(hp)
if hp <= 0 then
print("dead")
end
end)
it works.. what?