local lib = getgenv().Library local plr = game.Players.LocalPlayer local function clickButton(title) for _, d in ipairs(lib.Open.Gui:GetDescendants()) do if d:IsA("TextButton") and d.Name == "Button_" .. title then firesignal(d.MouseButton1Click) return true end end return false end print("[test] money:", plr.stored.Money.Value) lib.Registry["Garage Vehicle"].Set("2003 Chevrolet Suburban") clickButton("Spawn Vehicle") task.wait(20) local car, driving = nil, false for _, c in ipairs(workspace.CivCars:GetChildren()) do local o = c:FindFirstChild("Owner") if o and o.Value == plr.Name then car = c.Name local seat = c:FindFirstChild("DriveSeat") driving = seat and seat.Occupant ~= nil end end print("[test] spawn result: car=" .. tostring(car) .. " driving=" .. tostring(driving) .. " money=" .. plr.stored.Money.Value)