Assuming it is with humanoids:
function GetHum(par)
if not par then
return
end
for i,v in pairs(par:children()) do
if v:IsA("Humanoid") and v.Health>0 then
return v
end
end
end
if GetHum(model) then
print(model.Head)
end
I like to put that function in any script that has damaging or humanoid manipulation for maximum compatibility so people can't just name their humanoid something else to protect it. o3o |