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 out[#out+1] = "refresh list clicked: " .. tostring(clickButton("Refresh Car List")) task.wait(12) local dd = lib.Registry["Garage Vehicle"] local opts = dd and dd.Get() out[#out+1] = "car list size after refresh: " .. tostring(type(opts) == "table" and #opts or tostring(opts)) -- pick a cheap common car and spawn it local pick = nil if type(opts) == "table" then for _, n in ipairs(opts) do if n == "1500CHEV" then pick = n end end pick = pick or opts[1] end out[#out+1] = "picking: " .. tostring(pick) dd.Set(pick) out[#out+1] = "spawn clicked: " .. tostring(clickButton("Spawn Vehicle")) task.wait(18) local plr = game.Players.LocalPlayer local mine, driving = nil, false for _, c in ipairs(workspace.CivCars:GetChildren()) do local o = c:FindFirstChild("Owner") if o and o.Value == plr.Name then mine = c.Name local seat = c:FindFirstChild("DriveSeat") driving = seat and seat.Occupant ~= nil end end out[#out+1] = "car out: " .. tostring(mine) .. " | driving: " .. tostring(driving) print("RESULTS: " .. table.concat(out, "\n"))