I’ve implemented a Custom Character Model and I can’t seem to make the character die. When I reset my character, the oof sound plays and the humanoid health = 0 but none of these scripts seem to work:
player.Character.Humanoid.Died:Connect(function()
print("u died")
end)
while true do
if player.Character.Humanoid.Health = 0 then
print("u died")
end
wait()
end)
Here is my custom character script:
ReplicatedStorage.CreateVirusHumanoid.OnServerEvent:Connect(function(player)
local oldHumanoid = game.ServerStorage.Virus
local newHumanoid = oldHumanoid:Clone()
newHumanoid.Name = player.Name
player.Character = newHumanoid
newHumanoid.Parent = workspace
end)
My custom character does not have a head or torso, it DOES have humanoidroot part, idk if that helps or not. EDIT: Ik using while loops doesn’t help with memory management but that also does not work either.
