local lib = getgenv().Library local out = {} local function clickButton(title) for _, d in ipairs(lib.Open.Gui:GetDescendants()) do if d:IsA("TextButton") and d.Name == "Button_" .. title then if firesignal then pcall(firesignal, d.MouseButton1Click) else pcall(function() d:Activate() end) end return true end end return false end local function myPaint() local plr = game.Players.LocalPlayer for _, c in ipairs(workspace.CivCars:GetChildren()) do local o = c:FindFirstChild("Owner") if o and o.Value == plr.Name then local cols = {} for _, d in ipairs(c:GetDescendants()) do if d.Name == "Paint" or d.Name == "Paint2" then table.insert(cols, tostring(d.Color)) end end return c.Name, cols end end return nil, {} end local name, cols = myPaint() out[#out+1] = "car " .. tostring(name) .. " paint before: " .. table.concat(cols, ", ") lib.Registry["Select Body Color"].Set("Lime") out[#out+1] = "clicked body apply: " .. tostring(clickButton("Apply Body Color")) task.wait(7) local _, cols2 = myPaint() out[#out+1] = "paint after lime: " .. table.concat(cols2, ", ") lib.Registry["Select Rims Color"].Set("Gold") clickButton("Apply Rims Color") task.wait(7) lib.Registry["Select Window Color"].Set("Black") clickButton("Apply Window Color") task.wait(7) local plr = game.Players.LocalPlayer for _, c in ipairs(workspace.CivCars:GetChildren()) do local o = c:FindFirstChild("Owner") if o and o.Value == plr.Name then for _, d in ipairs(c:GetDescendants()) do if d.Name == "Rim4" or d.Name == "windowC" then out[#out+1] = d.Name .. " -> " .. tostring(d.Color) end end end end print("RESULTS: " .. table.concat(out, "\n"))