I can't fit the whole script in here but here's the broken parts.
1
if guiButton ~= selectedButton then
2
paletteFrame.MouseEnter:connect(function() onMouseEnterPalette(mouse) end) paletteFrame.MouseLeave:connect(function() onMouseLeavePalette(paletteFrame, mouse) end)
3
local newFrame = processPropertyValue(vehicleSeat, field, field, guiFrame)
4
foundPart = part