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 lib.Registry["Garage Vehicle"].Set("1500CHEV") out[#out+1] = "selected: " .. tostring(lib.Registry["Garage Vehicle"].Get()) clickButton("Spawn Vehicle") task.wait(20) local plr = game.Players.LocalPlayer local mine, driving, pos = nil, false, nil 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 local part = c.PrimaryPart or c:FindFirstChildWhichIsA("BasePart") pos = part and tostring(part.Position) end end out[#out+1] = "car: " .. tostring(mine) .. " | driving: " .. tostring(driving) .. " | at " .. tostring(pos) print("RESULTS: " .. table.concat(out, "\n"))