local plr = game.Players.LocalPlayer local pad = workspace.CARDealerP local char = plr.Character local gui for i = 1, 8 do char.HumanoidRootPart.CFrame = pad.CFrame * CFrame.new(0, pad.Size.Y / 2 + 6, 0) task.wait(0.2) char.HumanoidRootPart.CFrame = pad.CFrame * CFrame.new(0, pad.Size.Y / 2 + 2, 0) task.wait(0.6) gui = plr.PlayerGui:FindFirstChild("GunGui") if gui and gui:FindFirstChild("DealerRemote") then break end end if not gui then print("no shop") return end local scroll = gui.Holder.ScrollingFrame local money = plr.stored and plr.stored.Money and plr.stored.Money.Value or 0 print("cash:", money) local buyable, gamepass, owned, total = {}, 0, 0, 0 for _, b in ipairs(scroll:GetChildren()) do if b:IsA("TextButton") and b:GetAttribute("DealerCar") then total += 1 local gp = b:GetAttribute("IsGamepass") local own = b:GetAttribute("Owned") local price = b:GetAttribute("Price") if gp then gamepass += 1 elseif own then owned += 1 elseif price and price <= money then table.insert(buyable, b.Name .. "($" .. tostring(price) .. ")") end end end print("total cars:", total, "| gamepass:", gamepass, "| owned:", owned, "| affordable:", #buyable) table.sort(buyable) for i = 1, math.min(#buyable, 6) do print(" " .. buyable[i]) end