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 -- 1. blacklisted car is skipped outright getgenv().CorruptDeadCars["ATV"] = true lib.Registry["Garage Vehicle"].Set("ATV") local posBefore = plr.Character.HumanoidRootPart.Position clickButton("Spawn Vehicle") task.wait(3) print("[test] blacklist: moved", math.floor((plr.Character.HumanoidRootPart.Position - posBefore).Magnitude), "studs (expect 0)") -- 2. fake the notification during a live attempt getgenv().CorruptDeadCars["ATV"] = nil lib.Registry["Garage Vehicle"].Set("2001Ram 3500") clickButton("Spawn Vehicle") task.wait(2.5) local gui = Instance.new("ScreenGui") gui.Name = "FakeNotify" local lbl = Instance.new("TextLabel") lbl.Text = "This car is no longer in-game." lbl.Size = UDim2.new(0, 200, 0, 40) lbl.Parent = gui gui.Parent = plr.PlayerGui task.wait(8) gui:Destroy() print("[test] blacklisted now:", tostring(getgenv().CorruptDeadCars["2001Ram 3500"])) print("[test] player home:", math.floor((plr.Character.HumanoidRootPart.Position - posBefore).Magnitude), "studs from start")