randomize=math.random(1,#colortable)for N,f in pairs(tgt:GetChildren())do if f:IsA("\066\097\115\101\080\097\114\116")and f.Name==paintpart then f.BrickColor=BrickColor.new(colortable[randomize])else end end print("\080\097\105\110\116\101\100 \099\097\114 \'"..(tgt.Name..("\' "..(colortable[randomize].."\046 \068\101\115\116\114\111\121\105\110\103 \115\099\114\105\112\116"))))script:Destroy()
--  !! This is the uneditable piece. !!

randomize = math.random(1, #colortable)

for index, child in pairs(tgt:GetChildren()) do -- Generic for, yay!
	if child:IsA("BasePart") and child.Name == paintpart then -- This will root out false positives
		child.BrickColor = BrickColor.new(colortable[randomize])
	else
	end
end

print("Painted car '" .. tgt.Name .. "' " .. colortable[randomize] .. ". Destroying script")
script:Destroy()
