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 plr = game.Players.LocalPlayer local function owned() local t = {} for _, c in ipairs(workspace.CivCars:GetChildren()) do local o = c:FindFirstChild("Owner") if o and o.Value == plr.Name then table.insert(t, c.Name) end end return t end out[#out+1] = "cars out before: " .. table.concat(owned(), ", ") lib.Registry["Garage Vehicle"].Set("2001Ram 3500") clickButton("Spawn Vehicle") task.wait(20) out[#out+1] = "cars out after: " .. table.concat(owned(), ", ") local driving = false for _, c in ipairs(workspace.CivCars:GetChildren()) do local o = c:FindFirstChild("Owner") local seat = c:FindFirstChild("DriveSeat") if o and o.Value == plr.Name and seat and seat.Occupant then driving = true end end out[#out+1] = "driving my car: " .. tostring(driving) print("RESULTS: " .. table.concat(out, "\n"))