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