local Parts script.Parent:GetConnectedParts(Parts) Parts.BrickColor = BrickColor.Blue()
I Do Not Understand Why
Well, you aren't using any tables to store the actual parts.
What GetConnectedParts
does, it returns a table of all parts connected to the part on which you call that method on.
What you should do is:
local Parts = script.Parent:GetConnectedParts() for _,part in pairs(Parts) do if part ~= script.Parent then part.BrickColor = BrickColor.Blue() end end