So, I need a mesh inside of dummy to go transparent once humanoid health = 0. However, once humanoid proceed to dies nothing happens.
H = script.Parent.Humanoid
if H.Health == 0 then
script.Parent.mesh.Transparency = 1
end
So, I need a mesh inside of dummy to go transparent once humanoid health = 0. However, once humanoid proceed to dies nothing happens.
H = script.Parent.Humanoid
if H.Health == 0 then
script.Parent.mesh.Transparency = 1
end
is this the full script
if so the if statement will run once and no more after that, so it would be best to check if the humanoid’s health property dropped, instead of a while true loop use property change
you have to check when humanoid’s health has changed via the GetPropertyChangedSignal
like that
humanoid:GetPropertyChangedSignal("Health"):Connect(function()
if humanoid.Health <= 0 then
----function
end
end)