So i've got a script in a Mob and what that script does is get the humanoid when a part is touched, but the problem is that i'm using a Touched function and it can't get the humanoid
The player has other models with parts in it (armor made out of parts)
The script:
script.Parent.Damage.Touched:Connect(function(Hit)
Hum = Hit.Parent:FindFirstChild("Humanoid") or Hit.Parent.Parent:FindFirstChild("Humanoid")
if Hum ~= nil then
print("Hum found")
end

1 comment
Please indent your code properly. Even if it's only two lines your code should always be indented properly. Also, the function is called "print", not "Print".