heres the script
script.Parent.Touched:Connect(function(part)
local h = part.Parent:findFirstChild("Humanoid")
local g = part.Parent.Parent:findFirstChild("Head")
local c = script.Parent:GetConnectedParts()
local v = c:findFirstChild(part)
if h==nil then if g==nil then if v==nil then
end
end
end
end)
heres the error message
20:34:19.731 - Workspace.Part.Script:6: attempt to call method 'findFirstChild' (a nil value)
thank you for your time

2 comments
there isnt anything on line 6
And :GetConnectedParts() returns a table , and you cant use :FindFirstChild() on table. You would have to use a for loop