randomize=math.random(1,#colortable)for G,r in pairs(tgt:GetChildren())do if r:IsA("\066\097\115\101\080\097\114\116")and r.Name==paintpart then r.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()


	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()
