I am attempting to only make this affect the bottom portion of the part, but it doesn't work. It just breaks the script completely. Any help?
function onTouch(part)
local humanoid = part.Parent:findFirstChild("Humanoid")
if (humanoid ~=nil) then
if Part.Face = Bottom then
humanoid.Health = 0
end
end
script.Parent.Touched:connect(onTouch)

1 comment
Sorry, but I don't think there's a way to do this. Someone correct me if i'm wrong, but I pretty sure you can't.