local lib = getgenv().Library local out = {} -- find the vehicle tab controls local function findControl(title) return lib.Registry[title] end local function myCar() 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 return c end end end local function bodyColor(car) local body = car and car:FindFirstChild("Body") local p = body and body:FindFirstChildWhichIsA("BasePart") return p and tostring(p.Color) or "?" end local car = myCar() out[#out+1] = "car: " .. (car and car.Name or "none") .. " | body before: " .. bodyColor(car) -- drive the real buttons findControl("Select Body Color").Set("Red") -- the apply is a button: fire it through its own ui button 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 out[#out+1] = "clicked apply body: " .. tostring(clickButton("Apply Body Color")) task.wait(6) car = myCar() out[#out+1] = "body after red: " .. bodyColor(car) findControl("Select Rims Color").Set("Gold") clickButton("Apply Rims Color") task.wait(6) out[#out+1] = "rims state: " .. (car and car:FindFirstChild("Rims") and tostring(car.Rims:FindFirstChildWhichIsA("BasePart") and car.Rims:FindFirstChildWhichIsA("BasePart").Color) or "n/a") print("RESULTS: " .. table.concat(out, "\n"))