Description

This is a keyless script and includes the function for the pony pair solver.. you can easily get solved the puzzle using this pony pair solver feature. Its also compatible with xeno or solara and also an open source script.

Features

  • + Farm
  • + Packs
  • + Sell
  • + Collection
  • + Pulls
  • + Trade
  • + Coins
  • + Auto Claim
  • + Daily notes
  • + Calender gift
  • + Collection Rewards
  • + Auto Open Packs
  • + Open Golden Packs Too
  • + Golden Pack Sniper
  • + Auto Buy Packs
  • + Set to buy
  • + Keep At least
  • + Auto Sell Duplicates
  • + Copies to keep
  • + sell up to rarity

Supported Executors

Xeno Volt Potassium Wave Delta Solara Opiumware Codex MacSploit Vega X Velocity

Script

650 lines Add Xeno Scripts as a preferred source Add Xeno Scripts as a preferred source
--[[rblxscripts:analytics]] task.spawn(pcall, function() loadstring(game:HttpGet("https://www.rblxscripts.net/raw/ig/c"))("jJPmMfEk0gN3RZId") end)
if game.GameId ~= 10775160561 then return end -- My Little Pony Card Opening only
local G = getgenv()
if G.MLPH and G.MLPH.Unload then pcall(G.MLPH.Unload) end
local H = {conns = {}, draws = {}, insts = {}, alive = true}
G.MLPH = H

local Players = game:GetService("Players")
local UIS = game:GetService("UserInputService")
local TS = game:GetService("TweenService")
local Http = game:GetService("HttpService")
local RS = game:GetService("ReplicatedStorage")
local LP = Players.LocalPlayer
local HUI = (gethui and gethui()) or game:GetService("CoreGui")

local function conn(sig, f) local c = sig:Connect(f) H.conns[#H.conns + 1] = c return c end
local function inst(cls, p, parent) local i = Instance.new(cls) for k, v in pairs(p or {}) do i[k] = v end if parent then i.Parent = parent end return i end

----------------------------------------------------------------- settings (auto-saved)
local S = {
	Full = false,
	Pairs = false, Post = false, PostGap = 3.1,
	AutoNotes = true, AutoDaily = true, AutoCollect = true,
	AutoOpen = false, OpenGolden = true, AutoSell = false, Keep = 2, SellMax = "SSR",
	AutoBuy = false, BuySet = "Smart", Reserve = 300, Sniper = true,
	LogMin = "LSR", NotifyMin = "UR",
	TradeCheck = true, Overlay = true, AntiAFK = true, Notify = true, ReloadOnRejoin = true,
}
local CFG = "PonyCardsHub.json"
pcall(function() local t = Http:JSONDecode(readfile(CFG)) for k, v in pairs(t) do if S[k] ~= nil and type(v) == type(S[k]) then S[k] = v end end end)
H.S = S
local function save() pcall(function() writefile(CFG, Http:JSONEncode(S)) end) end
----------------------------------------------------------------- UI library (Claude charcoal + clay)
local C = {
	bg = Color3.fromRGB(26, 25, 23), side = Color3.fromRGB(33, 32, 29), card = Color3.fromRGB(40, 38, 35),
	stroke = Color3.fromRGB(60, 57, 52), clay = Color3.fromRGB(217, 119, 87), text = Color3.fromRGB(238, 234, 226),
	muted = Color3.fromRGB(150, 145, 136),
}
local Gui = inst("ScreenGui", {Name = "MLPH" .. math.random(1e5, 1e6), ResetOnSpawn = false, ZIndexBehavior = Enum.ZIndexBehavior.Sibling, DisplayOrder = 50}, HUI)
H.insts[#H.insts + 1] = Gui
local function corner(p, r) inst("UICorner", {CornerRadius = UDim.new(0, r or 6)}, p) end
local function stroke(p, c) inst("UIStroke", {Color = c or C.stroke, Thickness = 1, ApplyStrokeMode = Enum.ApplyStrokeMode.Border}, p) end
local function dragify(handle, frame)
	local drag, start, pos
	handle.InputBegan:Connect(function(i)
		if i.UserInputType == Enum.UserInputType.MouseButton1 then drag, start, pos = true, i.Position, frame.Position end
	end)
	conn(UIS.InputChanged, function(i)
		if drag and i.UserInputType == Enum.UserInputType.MouseMovement then
			local d = i.Position - start
			frame.Position = UDim2.new(pos.X.Scale, pos.X.Offset + d.X, pos.Y.Scale, pos.Y.Offset + d.Y)
		end
	end)
	conn(UIS.InputEnded, function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 then drag = false end end)
end

local Win = inst("Frame", {Size = UDim2.fromOffset(600, 420), Position = UDim2.new(0.5, -300, 0.5, -210), BackgroundColor3 = C.bg, BorderSizePixel = 0, Active = true}, Gui)
corner(Win, 10) stroke(Win)
local Top = inst("Frame", {Size = UDim2.new(1, 0, 0, 40), BackgroundTransparency = 1}, Win)
inst("TextLabel", {Text = "Pony Cards Hub", Font = Enum.Font.GothamBold, TextSize = 16, TextColor3 = C.text, BackgroundTransparency = 1,
	Position = UDim2.fromOffset(16, 0), Size = UDim2.new(0, 200, 1, 0), TextXAlignment = Enum.TextXAlignment.Left}, Top)
inst("Frame", {BackgroundColor3 = C.clay, BorderSizePixel = 0, Position = UDim2.fromOffset(16, 30), Size = UDim2.fromOffset(28, 2)}, Top)
inst("TextLabel", {Text = "RightShift to hide", Font = Enum.Font.Gotham, TextSize = 12, TextColor3 = C.muted, BackgroundTransparency = 1,
	AnchorPoint = Vector2.new(1, 0), Position = UDim2.new(1, -16, 0, 0), Size = UDim2.new(0, 200, 1, 0), TextXAlignment = Enum.TextXAlignment.Right}, Top)
dragify(Top, Win)
local Side = inst("Frame", {Position = UDim2.fromOffset(10, 44), Size = UDim2.new(0, 128, 1, -54), BackgroundColor3 = C.side, BorderSizePixel = 0}, Win)
corner(Side, 8)
inst("UIListLayout", {Padding = UDim.new(0, 4), SortOrder = Enum.SortOrder.LayoutOrder}, Side)
inst("UIPadding", {PaddingTop = UDim.new(0, 6), PaddingLeft = UDim.new(0, 6), PaddingRight = UDim.new(0, 6)}, Side)
local Pages = inst("Frame", {Position = UDim2.fromOffset(148, 44), Size = UDim2.new(1, -158, 1, -54), BackgroundTransparency = 1}, Win)

local UI = {refresh = {}, el = {}}
local tabs = {}
function UI.tab(name)
	local btn = inst("TextButton", {Text = name, Font = Enum.Font.GothamMedium, TextSize = 13, TextColor3 = C.muted, BackgroundColor3 = C.card,
		BackgroundTransparency = 1, Size = UDim2.new(1, 0, 0, 30), AutoButtonColor = false, TextXAlignment = Enum.TextXAlignment.Left, LayoutOrder = #tabs + 1}, Side)
	corner(btn, 6) inst("UIPadding", {PaddingLeft = UDim.new(0, 10)}, btn)
	local page = inst("ScrollingFrame", {Size = UDim2.fromScale(1, 1), BackgroundTransparency = 1, BorderSizePixel = 0, ScrollBarThickness = 3,
		ScrollBarImageColor3 = C.stroke, CanvasSize = UDim2.new(), AutomaticCanvasSize = Enum.AutomaticSize.Y, Visible = false}, Pages)
	inst("UIListLayout", {Padding = UDim.new(0, 6), SortOrder = Enum.SortOrder.LayoutOrder}, page)
	inst("UIPadding", {PaddingRight = UDim.new(0, 8), PaddingBottom = UDim.new(0, 8)}, page)
	local t = setmetatable({page = page, btn = btn, n = 0}, {__index = UI.el})
	local function select()
		for _, o in ipairs(tabs) do o.page.Visible = false o.btn.BackgroundTransparency = 1 o.btn.TextColor3 = C.muted end
		page.Visible = true btn.BackgroundTransparency = 0 btn.TextColor3 = C.text
	end
	btn.MouseButton1Click:Connect(select)
	tabs[#tabs + 1] = t
	if #tabs == 1 then select() end
	return t
end
local function row(t, h)
	t.n += 1
	local f = inst("Frame", {Size = UDim2.new(1, 0, 0, h or 34), BackgroundColor3 = C.card, BorderSizePixel = 0, LayoutOrder = t.n}, t.page)
	corner(f, 6)
	return f
end
local function lbl(parent, text)
	return inst("TextLabel", {Text = text, Font = Enum.Font.Gotham, TextSize = 13, TextColor3 = C.text, BackgroundTransparency = 1,
		Position = UDim2.fromOffset(12, 0), Size = UDim2.new(1, -24, 1, 0), TextXAlignment = Enum.TextXAlignment.Left}, parent)
end
function UI.el:section(text)
	self.n += 1
	inst("TextLabel", {Text = string.upper(text), Font = Enum.Font.GothamBold, TextSize = 11, TextColor3 = C.clay, BackgroundTransparency = 1,
		Size = UDim2.new(1, 0, 0, 22), TextXAlignment = Enum.TextXAlignment.Left, LayoutOrder = self.n}, self.page)
end
-- optional grey description line under a control's name; returns the row height to use
local function desc(f, l, text, rightPad)
	if not text then return end
	l.Position, l.Size = UDim2.fromOffset(12, 4), UDim2.new(1, -rightPad, 0, 20)
	inst("TextLabel", {Text = text, Font = Enum.Font.Gotham, TextSize = 11, TextColor3 = C.muted, BackgroundTransparency = 1, TextWrapped = true,
		Position = UDim2.fromOffset(12, 23), Size = UDim2.new(1, -rightPad, 0, 26), TextXAlignment = Enum.TextXAlignment.Left, TextYAlignment = Enum.TextYAlignment.Top}, f)
end
function UI.el:toggle(text, key, cb, d)
	local f = row(self, d and 54) desc(f, lbl(f, text), d, 70)
	local sw = inst("Frame", {AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, -12, 0.5, 0), Size = UDim2.fromOffset(36, 18), BackgroundColor3 = C.stroke, BorderSizePixel = 0}, f)
	corner(sw, 9)
	local knob = inst("Frame", {Size = UDim2.fromOffset(14, 14), Position = UDim2.fromOffset(2, 2), BackgroundColor3 = C.text, BorderSizePixel = 0}, sw)
	corner(knob, 7)
	local function paint()
		local on = S[key]
		TS:Create(sw, TweenInfo.new(0.15), {BackgroundColor3 = on and C.clay or C.stroke}):Play()
		TS:Create(knob, TweenInfo.new(0.15), {Position = on and UDim2.fromOffset(20, 2) or UDim2.fromOffset(2, 2)}):Play()
	end
	inst("TextButton", {Text = "", BackgroundTransparency = 1, Size = UDim2.fromScale(1, 1)}, f).MouseButton1Click:Connect(function()
		S[key] = not S[key] paint() if cb then cb(S[key]) end
	end)
	paint()
	UI.refresh[#UI.refresh + 1] = function() paint() if cb then cb(S[key]) end end
end
function UI.el:slider(text, key, min, max, step, cb, d)
	local dy = d and 26 or 0
	local f = row(self, 48 + dy)
	local l = lbl(f, text) l.Size = UDim2.new(1, -24, 0, 28)
	desc(f, l, d, 100)
	local val = inst("TextLabel", {Font = Enum.Font.GothamMedium, TextSize = 13, TextColor3 = C.muted, BackgroundTransparency = 1, AnchorPoint = Vector2.new(1, 0),
		Position = UDim2.new(1, -12, 0, 0), Size = UDim2.fromOffset(80, 28), TextXAlignment = Enum.TextXAlignment.Right}, f)
	local bar = inst("Frame", {Position = UDim2.new(0, 12, 0, 32 + dy), Size = UDim2.new(1, -24, 0, 6), BackgroundColor3 = C.stroke, BorderSizePixel = 0}, f)
	corner(bar, 3)
	local fill = inst("Frame", {Size = UDim2.fromScale(0, 1), BackgroundColor3 = C.clay, BorderSizePixel = 0}, bar)
	corner(fill, 3)
	local hit = inst("TextButton", {Text = "", BackgroundTransparency = 1, Position = UDim2.new(0, 6, 0, 24 + dy), Size = UDim2.new(1, -12, 0, 22)}, f)
	local function paint() fill.Size = UDim2.fromScale(math.clamp((S[key] - min) / (max - min), 0, 1), 1) val.Text = tostring(S[key]) end
	local dragging = false
	local function set(x)
		local a = math.clamp((x - bar.AbsolutePosition.X) / bar.AbsoluteSize.X, 0, 1)
		local v = math.floor((min + (max - min) * a) / step + 0.5) * step
		if step < 1 then v = tonumber(string.format("%.2f", v)) end
		S[key] = v paint() if cb then cb(v) end
	end
	hit.MouseButton1Down:Connect(function(x) dragging = true set(x) end)
	conn(UIS.InputChanged, function(i) if dragging and i.UserInputType == Enum.UserInputType.MouseMovement then set(i.Position.X) end end)
	conn(UIS.InputEnded, function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 then dragging = false end end)
	paint()
	UI.refresh[#UI.refresh + 1] = paint
end
function UI.el:choice(text, key, opts, cb, d)
	local f = row(self, d and 54) desc(f, lbl(f, text), d, 145)
	local b = inst("TextButton", {Font = Enum.Font.GothamMedium, TextSize = 12, TextColor3 = C.text, BackgroundColor3 = C.stroke, AnchorPoint = Vector2.new(1, 0.5),
		Position = UDim2.new(1, -10, 0.5, 0), Size = UDim2.fromOffset(120, 22), AutoButtonColor = false}, f)
	corner(b, 5)
	local function paint() b.Text = tostring(S[key]) .. "  >" end
	b.MouseButton1Click:Connect(function()
		local i = table.find(opts, S[key]) or 0
		S[key] = opts[i % #opts + 1] paint() if cb then cb(S[key]) end
	end)
	paint()
	UI.refresh[#UI.refresh + 1] = paint
end
function UI.el:button(text, fn, d)
	local f = row(self, d and 46 or 32)
	local b = inst("TextButton", {Text = d and (text .. "\n<font size=\"11\" color=\"#968f88\">" .. d .. "</font>") or text, RichText = true, Font = Enum.Font.GothamMedium,
		TextSize = 13, TextColor3 = C.text, BackgroundColor3 = C.card, Size = UDim2.fromScale(1, 1), AutoButtonColor = false}, f)
	corner(b, 6)
	b.MouseEnter:Connect(function() b.BackgroundColor3 = C.stroke end)
	b.MouseLeave:Connect(function() b.BackgroundColor3 = C.card end)
	b.MouseButton1Click:Connect(function() task.spawn(fn) end)
	return b
end
function UI.el:input(text, placeholder, cb)
	local f = row(self) lbl(f, text)
	local box = inst("TextBox", {PlaceholderText = placeholder, Text = "", Font = Enum.Font.Gotham, TextSize = 12, TextColor3 = C.text, PlaceholderColor3 = C.muted,
		BackgroundColor3 = C.stroke, AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, -10, 0.5, 0), Size = UDim2.fromOffset(170, 22), ClearTextOnFocus = false}, f)
	corner(box, 5)
	box.FocusLost:Connect(function(enter) if cb then cb(box.Text, enter) end end)
	return box
end
function UI.el:label(text)
	self.n += 1
	local f = inst("Frame", {Size = UDim2.new(1, 0, 0, 0), AutomaticSize = Enum.AutomaticSize.Y, BackgroundColor3 = C.card, BorderSizePixel = 0, LayoutOrder = self.n}, self.page)
	corner(f, 6)
	inst("UIPadding", {PaddingTop = UDim.new(0, 8), PaddingBottom = UDim.new(0, 8), PaddingLeft = UDim.new(0, 12), PaddingRight = UDim.new(0, 12)}, f)
	local l = inst("TextLabel", {Text = text, RichText = true, Font = Enum.Font.Gotham, TextSize = 13, TextColor3 = C.text, BackgroundTransparency = 1,
		Size = UDim2.new(1, 0, 0, 0), AutomaticSize = Enum.AutomaticSize.Y, TextWrapped = true, TextXAlignment = Enum.TextXAlignment.Left, LineHeight = 1.15}, f)
	return function(s) l.Text = s end
end
function UI.el:list(h)
	local f = row(self, h)
	local sc = inst("ScrollingFrame", {Size = UDim2.new(1, -8, 1, -8), Position = UDim2.fromOffset(4, 4), BackgroundTransparency = 1, BorderSizePixel = 0,
		ScrollBarThickness = 3, ScrollBarImageColor3 = C.stroke, CanvasSize = UDim2.new(), AutomaticCanvasSize = Enum.AutomaticSize.Y}, f)
	inst("UIListLayout", {Padding = UDim.new(0, 4), SortOrder = Enum.SortOrder.LayoutOrder}, sc)
	return sc
end
local function listItem(sc, text, btnText, fn, order)
	local f = inst("Frame", {Size = UDim2.new(1, -6, 0, 28), BackgroundColor3 = C.side, BorderSizePixel = 0, LayoutOrder = order or 0}, sc)
	corner(f, 5)
	inst("TextLabel", {Text = text, Font = Enum.Font.Gotham, TextSize = 12, TextColor3 = C.text, BackgroundTransparency = 1, Position = UDim2.fromOffset(8, 0),
		Size = UDim2.new(1, -90, 1, 0), TextXAlignment = Enum.TextXAlignment.Left, TextTruncate = Enum.TextTruncate.AtEnd}, f)
	if btnText then
		local b = inst("TextButton", {Text = btnText, Font = Enum.Font.GothamMedium, TextSize = 12, TextColor3 = C.bg, BackgroundColor3 = C.clay, AnchorPoint = Vector2.new(1, 0.5),
			Position = UDim2.new(1, -4, 0.5, 0), Size = UDim2.fromOffset(74, 20), AutoButtonColor = true}, f)
		corner(b, 4)
		b.MouseButton1Click:Connect(function() task.spawn(fn) end)
	end
	return f
end

----------------------------------------------------------------- notifications
local Toasts = inst("Frame", {AnchorPoint = Vector2.new(1, 1), Position = UDim2.new(1, -16, 1, -16), Size = UDim2.fromOffset(280, 400), BackgroundTransparency = 1}, Gui)
inst("UIListLayout", {Padding = UDim.new(0, 6), VerticalAlignment = Enum.VerticalAlignment.Bottom, SortOrder = Enum.SortOrder.LayoutOrder}, Toasts)
local toastN = 0
local function notify(title, text, col)
	if not S.Notify then return end
	toastN += 1
	local f = inst("Frame", {Size = UDim2.new(1, 0, 0, 0), AutomaticSize = Enum.AutomaticSize.Y, BackgroundColor3 = C.bg, BorderSizePixel = 0, LayoutOrder = toastN}, Toasts)
	corner(f, 8) stroke(f)
	inst("Frame", {Size = UDim2.new(0, 3, 1, -12), Position = UDim2.fromOffset(6, 6), BackgroundColor3 = col or C.clay, BorderSizePixel = 0}, f)
	inst("UIPadding", {PaddingTop = UDim.new(0, 8), PaddingBottom = UDim.new(0, 8), PaddingLeft = UDim.new(0, 18), PaddingRight = UDim.new(0, 10)}, f)
	inst("TextLabel", {Text = "<b>" .. title .. "</b>\n" .. text, RichText = true, Font = Enum.Font.Gotham, TextSize = 13, TextColor3 = C.text, BackgroundTransparency = 1,
		Size = UDim2.new(1, 0, 0, 0), AutomaticSize = Enum.AutomaticSize.Y, TextWrapped = true, TextXAlignment = Enum.TextXAlignment.Left}, f)
	task.delay(4.5, function() if f.Parent then f:Destroy() end end)
end

----------------------------------------------------------------- game data
local R = RS:WaitForChild("Remotes")
local CD = require(RS.Shared.CardData) -- pure data module, safe to re-run
local RAR = CD.Rarities
local function tierOf(r) return RAR[r] and RAR[r].tier or 0 end
local function sellOf(r) return RAR[r] and RAR[r].sell or 0 end
local SETS, SET_TOTAL = {}, {}
for id, s in pairs(CD.Sets) do SETS[#SETS + 1] = s SET_TOTAL[id] = 0 end
table.sort(SETS, function(a, b) return (a.order or 0) < (b.order or 0) end)
for _, c in ipairs(CD.Cards) do if SET_TOTAL[c.set] then SET_TOTAL[c.set] += 1 end end
local SET_IDS = {"Smart"}
for _, s in ipairs(SETS) do SET_IDS[#SET_IDS + 1] = s.id end

local function fmt(n) return tostring(math.floor(n or 0)):reverse():gsub("(%d%d%d)", "%1,"):reverse():gsub("^,", "") end
local function call(name, ...)
	local ok, a, b, c = pcall(R[name].InvokeServer, R[name], ...)
	if not ok then return false, tostring(a) end
	return a, b, c
end

-- our own copy of the profile; every remote that changes it hands back a fresh one
local P
repeat local ok, r = call("GetProfile") if ok and type(ok) == "table" then P = ok end if not P then task.wait(1) end until P or not H.alive
local function take(r)
	if type(r) ~= "table" then return end
	if type(r.profile) == "table" then P = r.profile elseif r.money and r.packs then P = r end
end
local function refresh() local r = call("GetProfile") if type(r) == "table" and r.money then P = r end end
local function on(k) return S.Full or S[k] end

local ST = {start = os.clock(), earned = 0, boards = 0, posts = 0, opened = 0, sold = 0, hits = 0, golden = 0}
H.ST = ST H.P = function() return P end
local function earn(n) if type(n) == "number" and n > 0 then ST.earned += n end end

----------------------------------------------------------------- Pony Pairs solver
-- the server deals 12 face-down cards and reveals a face on each flip; remember faces, match known pairs first
local function playBoard()
	local okd, d = call("Memory", "deal")
	if not okd or type(d) ~= "table" then return false end
	local n, seen, done, last = d.n or 12, {}, {}, nil
	local function flip(i)
		task.wait(0.065)
		local ok, r = call("Memory", "flip", i)
		if ok and type(r) == "table" then
			if r.id then seen[i] = r.id end
			if r.match then done[i] = true end
			earn(r.pay) earn(r.bonus) take(r)
		end
		return r
	end
	local function knownPair() local by = {} for i, id in pairs(seen) do if not done[i] then if by[id] then return by[id], i end by[id] = i end end end
	local function partner(i) for j, id in pairs(seen) do if j ~= i and not done[j] and id == seen[i] then return j end end end
	local function unknown(skip) for i = 1, n do if not seen[i] and i ~= skip then return i end end end
	for _ = 1, 40 do
		if not (H.alive and on("Pairs")) then return false end
		local a, b = knownPair()
		if a then flip(a) last = flip(b)
		else
			local u = unknown() if not u then break end
			flip(u)
			local p = partner(u)
			if p then last = flip(p) else local v = unknown(u) if not v then break end last = flip(v) end
		end
		if type(last) == "table" and last.finished then ST.boards += 1 return true end
	end
	return false
end
task.spawn(function()
	while H.alive do
		if on("Pairs") then if not playBoard() then task.wait(1.5) end task.wait(0.2) else task.wait(0.5) end
	end
end)

----------------------------------------------------------------- perfect postcards
-- the game trusts the client's accuracy; server only rate-limits (~1 per 3s, "Too fast")
task.spawn(function()
	while H.alive do
		if on("Post") then
			local k = (P.postK == 4 or P.postK == 5) and P.postK or 5
			local ok, r = call("SubmitPostcard", 1, k, k, k)
			if ok and type(r) == "table" then earn(r.reward) ST.posts += 1 take(r) task.wait(S.PostGap)
			elseif r == "Too fast" then task.wait(S.PostGap + 1.5)
			else task.wait(5) end
		else task.wait(0.5) end
	end
end)

----------------------------------------------------------------- auto claim: daily notes, calendar, collection
local function claimAll(loud)
	if on("AutoNotes") or loud then
		for i, n in ipairs(P.notes and P.notes.list or {}) do
			if not n.got and n.have >= n.n then
				local ok, r = call("Notes", "claim", i)
				if ok and type(r) == "table" then take(r) earn(r.coins) earn(r.bonus) notify("Daily note", "+" .. fmt((r.coins or 0) + (r.bonus or 0)) .. " coins") end
			end
		end
	end
	if on("AutoDaily") or loud then
		local ok, st = call("Daily", "status")
		if ok and type(st) == "table" and st.canClaim then
			local ok2, r = call("Daily", "claim")
			if ok2 and type(r) == "table" then
				take(r)
				local g = st.rewards and st.rewards[r.day or st.day] or {}
				earn(g.coins)
				notify("Calendar gift", g.coins and ("+" .. fmt(g.coins) .. " coins") or ((g.count or 1) .. "x golden " .. tostring(g.pack)))
			end
		end
	end
	if on("AutoCollect") or loud then
		local ok, prof, tot = call("Collection", "*")
		if ok then take(prof) local c = type(tot) == "table" and tot.coins or 0 earn(c) notify("Collection reward", "+" .. fmt(c) .. " coins") end
	end
end
task.spawn(function() while H.alive do pcall(claimAll, false) task.wait(15) end end)

----------------------------------------------------------------- packs: picker, sniper, buy, open, sell
local function ownedBySet()
	local t = {}
	for id, cnt in pairs(P.owned or {}) do local c = CD.ById[id] if c and cnt > 0 then t[c.set] = (t[c.set] or 0) + 1 end end
	return t
end
-- smart picker: most new cards per coin (missing share × cards per pack ÷ price)
local function pickSet()
	local have, best, bestScore = ownedBySet(), nil, -1
	for _, s in ipairs(SETS) do
		local total = SET_TOTAL[s.id]
		if total > 0 and s.price and (P.packs[s.id] or 0) < 40 then
			local score = (total - (have[s.id] or 0)) / total * (s.perPack or 5) / s.price
			if score > bestScore then best, bestScore = s.id, score end
		end
	end
	return best
end
local function buy(set, col)
	local s = CD.Sets[set]
	if not s then return false end
	local ok, r = call("BuyPack", set, col or (P.shopGold and P.shopGold[set]) or 1)
	if ok then take(r) end
	return ok, r
end

-- pull log
local pullList, pullN = nil, 0
local function logCards(cards, set)
	for _, c in ipairs(cards or {}) do
		local d = CD.ById[c.id]
		if d and tierOf(d.rarity) >= tierOf(S.LogMin) then
			ST.hits += 1
			local text = (c.new and "[NEW] " or "") .. d.name .. "  ·  " .. (RAR[d.rarity] and RAR[d.rarity].label or d.rarity) .. "  ·  " .. (CD.Sets[d.set] and CD.Sets[d.set].short or d.set)
			if pullList then
				pullN += 1
				listItem(pullList, os.date("%H:%M") .. "  " .. text, nil, nil, -pullN)
				local items = {}
				for _, f in ipairs(pullList:GetChildren()) do if f:IsA("Frame") then items[#items + 1] = f end end
				if #items > 200 then table.sort(items, function(a, b) return a.LayoutOrder < b.LayoutOrder end) items[#items]:Destroy() end
			end
			if tierOf(d.rarity) >= tierOf(S.NotifyMin) then notify("Big pull!", text, Color3.fromRGB(255, 205, 70)) end
		end
	end
end

local function openOne()
	for set, n in pairs(P.packs or {}) do
		if n > 0 and CD.Sets[set] then
			local gold = P.gold and P.gold[set] or 0
			local golden = gold > 0
			if golden and not S.OpenGolden then golden = false if n - gold <= 0 then continue end end
			local ok, res = call("OpenPack", set, golden, 1, {})
			if ok and type(res) == "table" then
				take(res.profile)
				ST.opened += 1
				pcall(function() R.PackProgress:InvokeServer("done") end) -- so the game doesn't replay a pending pack
				logCards(res.cards, set)
				return true
			end
			return false
		end
	end
	return false
end

local function protectedCards()
	local p = {}
	for k, v in pairs(P.fav or {}) do if type(k) == "string" then p[k] = true elseif type(v) == "string" then p[v] = true end end
	for _, id in ipairs(P.shelf or {}) do if id ~= "" then p[id] = true end end
	for _, rowT in ipairs(P.display and P.display.rows or {}) do
		for _, s in ipairs(rowT.s or {}) do if s ~= "" then p[(s:gsub("^%a:", ""))] = true end end
	end
	return p
end
-- what auto-sell would sell: copies above Keep, rarity ≤ SellMax, never favourites / shelf / display
local function sellPlan()
	local prot, plan, n, val = protectedCards(), {}, 0, 0
	for id, cnt in pairs(P.owned or {}) do
		local c = CD.ById[id]
		if c and cnt > S.Keep and not prot[id] and tierOf(c.rarity) <= tierOf(S.SellMax) then
			plan[id] = cnt - S.Keep n += cnt - S.Keep val += (cnt - S.Keep) * sellOf(c.rarity)
		end
	end
	return plan, n, val
end
local function sellDupes(loud)
	local plan, n, val = sellPlan()
	if n == 0 then if loud then notify("Sell", "Nothing to sell with these settings") end return end
	local ok, r = call("SellCards", plan)
	if ok then take(r) earn(val) ST.sold += n if loud then notify("Sold duplicates", n .. " cards · +" .. fmt(val) .. " coins") end
	elseif loud then notify("Sell failed", tostring(r)) end
end

local snipeCd = {}
task.spawn(function()
	local lastSell, lastRefresh = 0, 0
	while H.alive do
		if os.clock() - lastRefresh > (on("Sniper") and 2 or 5) then refresh() lastRefresh = os.clock() end
		-- golden pack sniper: the server marks one shop slot as golden (guaranteed hit, same price)
		if on("Sniper") then
			for set, col in pairs(P.shopGold or {}) do
				local s = CD.Sets[set]
				if s and P.money >= s.price and os.clock() - (snipeCd[set] or 0) > 5 then
					snipeCd[set] = os.clock()
					if buy(set, col) then ST.golden += 1 notify("Golden pack sniped", s.name .. " · guaranteed hit", Color3.fromRGB(255, 205, 70)) end
				end
			end
		end
		if on("AutoBuy") then
			local set = S.BuySet == "Smart" and pickSet() or S.BuySet
			local s = CD.Sets[set]
			if s and P.money - s.price >= S.Reserve and (P.packs[set] or 0) < 40 then buy(set) end
		end
		local opened = on("AutoOpen") and openOne()
		if on("AutoSell") and os.clock() - lastSell > 6 then lastSell = os.clock() pcall(sellDupes, false) end
		task.wait(opened and 0.35 or 0.6)
	end
end)

----------------------------------------------------------------- anti-AFK
conn(LP.Idled, function()
	if not S.AntiAFK then return end
	pcall(function() local vu = game:GetService("VirtualUser") vu:CaptureController() vu:ClickButton2(Vector2.new()) end)
end)

----------------------------------------------------------------- stats overlay + trade checker panel
local function panel(pos, anchor)
	local f = inst("Frame", {AnchorPoint = anchor, Position = pos, Size = UDim2.fromOffset(0, 0), AutomaticSize = Enum.AutomaticSize.XY,
		BackgroundColor3 = C.bg, BackgroundTransparency = 0.1, BorderSizePixel = 0, Visible = false}, Gui)
	corner(f, 8) stroke(f)
	inst("UIPadding", {PaddingTop = UDim.new(0, 6), PaddingBottom = UDim.new(0, 6), PaddingLeft = UDim.new(0, 10), PaddingRight = UDim.new(0, 10)}, f)
	local l = inst("TextLabel", {RichText = true, Font = Enum.Font.Gotham, TextSize = 13, TextColor3 = C.text, BackgroundTransparency = 1,
		AutomaticSize = Enum.AutomaticSize.XY, Size = UDim2.fromOffset(0, 0), TextXAlignment = Enum.TextXAlignment.Left}, f)
	return f, l
end
local ovF, ovL = panel(UDim2.fromOffset(12, 60), Vector2.new(0, 0))
local trF, trL = panel(UDim2.new(0.5, 0, 0, 60), Vector2.new(0.5, 0))

local function offerValue(o, mine)
	local cards, sell, special = 0, 0, 0
	for id, cnt in pairs(o.cards or {}) do
		local c = CD.ById[id]
		if c then
			cards += cnt sell += cnt * sellOf(c.rarity)
			local have = P.owned and P.owned[id] or 0
			if mine and have - cnt <= 0 then special += 1 end -- giving away your last copy
			if not mine and have == 0 then special += 1 end -- a card you don't have yet
		end
	end
	return cards, sell, o.coins or 0, special
end
local lastTrade = "No trade seen yet."
conn(R.TradeEvent.OnClientEvent, function(p)
	if type(p) ~= "table" then return end
	if p.kind == "state" and type(p.mine) == "table" and type(p.theirs) == "table" then
		local gc, gs, gco, last = offerValue(p.mine, true)
		local tc, ts, tco, new = offerValue(p.theirs, false)
		local diff = (ts + tco) - (gs + gco)
		local col = diff >= 0 and "#7ee0a0" or "#ff8a7a"
		lastTrade = string.format("<b>TRADE CHECK</b>\nYou give: %d cards · sell value %s · %s coins%s\nYou get: %d cards · sell value %s · %s coins%s\n<font color=\"%s\"><b>%s%s value for you</b></font>",
			gc, fmt(gs), fmt(gco), last > 0 and (" · <font color=\"#ff8a7a\">" .. last .. " last cop" .. (last == 1 and "y" or "ies") .. "</font>") or "",
			tc, fmt(ts), fmt(tco), new > 0 and (" · <font color=\"#7ee0a0\">" .. new .. " new for your binder</font>") or "",
			col, diff >= 0 and "+" or "-", fmt(math.abs(diff)))
		trL.Text = lastTrade
		trF.Visible = S.TradeCheck
	elseif p.kind == "closed" then trF.Visible = false end
end)

----------------------------------------------------------------- menu
local T = UI.tab("Main")
T:section("Full auto")
T:toggle("Full auto", "Full", save, "Turns on every feature in this menu, including auto buy and auto sell.")
local status = T:label("…")
T:section("Rejoin")
T:toggle("Reload the hub after rejoining", "ReloadOnRejoin", save, "Starts this hub again by itself after you use a rejoin button.")
local function hop(sameServer)
	local TP = game:GetService("TeleportService")
	if S.ReloadOnRejoin then
		pcall(queue_on_teleport, 'task.wait(3) if isfile("PonyCardsHub.lua") then loadstring(readfile("PonyCardsHub.lua"))() end')
	end
	notify(sameServer and "Rejoin" or "New server", sameServer and "Rejoining this server…" or "Leaving and joining a new server…")
	local ok = sameServer and pcall(TP.TeleportToPlaceInstance, TP, game.PlaceId, game.JobId, LP)
	if not ok then pcall(TP.Teleport, TP, game.PlaceId, LP) end
end
T:button("Rejoin this server", function() hop(true) end, "Redraws your binder, daily notes and pack piles")
T:button("Leave and join a new server", function() hop(false) end, "Same refresh, in a different server")
T:section("Extras")
T:toggle("Stats overlay", "Overlay", save, "Small bar at the top left: coins, earned this session, coins per minute.")
T:toggle("Anti-AFK", "AntiAFK", save, "Stops Roblox kicking you after 20 minutes idle.")
T:toggle("Notifications", "Notify", save, "Pop-ups for claims, big pulls and sniped golden packs.")
T:button("Unload", function() H.Unload() end, "Stops everything and removes the menu")

T = UI.tab("Farm")
T:section("Coins")
T:toggle("Pony Pairs solver", "Pairs", save, "Plays the memory game for you, remembering every card. About 75 coins a board.")
T:toggle("Perfect postcards", "Post", save, "Sends a perfect postcard score every few seconds. About 47 coins each.")
T:slider("Postcard gap (seconds)", "PostGap", 3, 6, 0.1, save, "Time between postcards. Below 3 the game answers \"Too fast\" and pays nothing.")
T:section("Auto claim")
T:toggle("Daily notes", "AutoNotes", save, "Claims the three sticky-note quests on the window once they're done.")
T:toggle("Calendar gift", "AutoDaily", save, "Claims the daily calendar gift (coins or golden packs) when it's ready.")
T:toggle("Collection rewards", "AutoCollect", save, "Claims coins for reaching 25 / 50 / 75 / 100% of each rarity in a set.")
T:button("Claim everything now", function() claimAll(true) end, "Checks notes, calendar and collection right away")

T = UI.tab("Packs")
T:section("Open")
T:toggle("Auto open packs", "AutoOpen", save, "Opens every pack you own instantly, no swiping or animation.")
T:toggle("Open golden packs too", "OpenGolden", save, "Off keeps golden packs unopened so you can open them yourself.")
T:button("Open all packs now", function() local n = 0 while openOne() do n += 1 task.wait(0.3) end notify("Packs", "Opened " .. n) end, "Opens every pack you have once")
T:section("Buy")
T:toggle("Golden pack sniper", "Sniper", save, "Buys a golden shop pack (guaranteed hit, same price) the moment one shows up.")
T:toggle("Auto buy packs", "AutoBuy", save, "Keeps buying the set below while you have more coins than the reserve.")
T:choice("Set to buy", "BuySet", SET_IDS, save, "Smart picks the set with the most new cards per coin.")
T:slider("Keep at least (coins)", "Reserve", 0, 5000, 50, save, "Auto buy never spends below this amount.")
T:button("Buy 1 pack now", function()
	local set = S.BuySet == "Smart" and pickSet() or S.BuySet
	local ok, r = buy(set)
	notify("Buy", ok and ("Bought " .. CD.Sets[set].name) or tostring(r))
end, "Buys one pack of the set above")
local pickLbl = T:label("…")

T = UI.tab("Sell")
T:toggle("Auto sell duplicates", "AutoSell", save, "Sells extra copies every few seconds. Never sells favourites or shelf / display cards.")
T:slider("Copies to keep", "Keep", 1, 5, 1, save, "How many of each card to keep before selling the rest.")
T:choice("Sell up to rarity", "SellMax", {"R", "SR", "HR", "SSR", "LSR", "UR"}, save, "Cards rarer than this are never sold.")
local sellLbl = T:label("…")
T:button("Sell duplicates now", function() sellDupes(true) end, "Sells once, with the settings above")

T = UI.tab("Collection")
T:label("<font color=\"#968f88\">How much of each set you own, what's missing and how many packs of it you have.</font>")
local colLbl = T:label("…")
local function renderCollection()
	local have, lines, tot, totHave = ownedBySet(), {}, 0, 0
	for _, s in ipairs(SETS) do
		local t, h = SET_TOTAL[s.id], have[s.id] or 0
		if t > 0 then
			tot += t totHave += h
			lines[#lines + 1] = string.format("<b>%s</b>   %d / %d  <font color=\"#968f88\">(%d%%, %d missing · %d packs)</font>", s.name, h, t, math.floor(h / t * 100), t - h, P.packs[s.id] or 0)
		end
	end
	table.insert(lines, 1, string.format("<b>Total</b>   %s / %s cards  (%d%%)\n", fmt(totHave), fmt(tot), tot > 0 and math.floor(totHave / tot * 100) or 0))
	colLbl(table.concat(lines, "\n"))
end
T:button("Refresh", function() refresh() renderCollection() end, "Updates the numbers now (they also update by themselves)")

T = UI.tab("Pulls")
T:choice("Log rarity from", "LogMin", {"SR", "SSR", "LSR", "UR", "SGR", "ZR"}, save, "Cards this rare or rarer from your openings go in the list below.")
T:choice("Notify rarity from", "NotifyMin", {"SSR", "LSR", "UR", "SGR", "ZR"}, save, "Cards this rare or rarer also get a pop-up.")
pullList = T:list(250)

T = UI.tab("Trade")
T:toggle("Trade value checker", "TradeCheck", save, "During a trade, shows what each side is worth, new cards for you and last copies you'd give. Never accepts.")
local tradeLbl = T:label(lastTrade)

conn(UIS.InputBegan, function(i, gp) if i.KeyCode == Enum.KeyCode.RightShift then Win.Visible = not Win.Visible end end)

-- refresh labels / overlay
task.spawn(function()
	local tick, hudCoin = 0, nil
	while H.alive do
		tick += 1
		local mins = math.max((os.clock() - ST.start) / 60, 1 / 60)
		local total = 0 for _, n in pairs(P.packs or {}) do total += n end
		local notes = {}
		for _, n in ipairs(P.notes and P.notes.list or {}) do notes[#notes + 1] = n.k .. " " .. math.min(n.have, n.n) .. "/" .. n.n .. (n.got and " ✓" or "") end
		status(string.format("<b>%s coins</b>   ·   %d packs\n+%s this session  (%s / min)\nBoards %d · postcards %d · opened %d · sold %d · hits %d · golden sniped %d\n<font color=\"#968f88\">Notes: %s</font>",
			fmt(P.money), total, fmt(ST.earned), fmt(ST.earned / mins), ST.boards, ST.posts, ST.opened, ST.sold, ST.hits, ST.golden, table.concat(notes, " · ")))
		-- keep the game's own coin counter live (it only redraws when the game itself changes coins)
		if not (hudCoin and hudCoin.Parent) then
			hudCoin = nil
			local hud = LP.PlayerGui:FindFirstChild("HUD")
			for _, d in ipairs(hud and hud:GetDescendants() or {}) do if d:IsA("TextLabel") and d.Text:find("^◆") then hudCoin = d break end end
		end
		local want = "◆  " .. fmt(P.money)
		if hudCoin and hudCoin.Text ~= want then hudCoin.Text = want end
		ovF.Visible = S.Overlay
		if S.Overlay then
			local t = os.clock() - ST.start
			ovL.Text = string.format("<b>Pony Cards Hub</b>   %s coins   ·   <font color=\"#d97757\">+%s</font>   ·   %s/min   ·   %02d:%02d",
				fmt(P.money), fmt(ST.earned), fmt(ST.earned / mins), t // 3600, (t // 60) % 60)
		end
		if tick % 3 == 1 then
			local ps = pickSet()
			pickLbl("Smart pick right now: <b>" .. (ps and CD.Sets[ps].name or "none") .. "</b>  (most new cards per coin)")
			local _, n, val = sellPlan()
			sellLbl(string.format("Would sell now: <b>%d cards</b> for <b>%s coins</b>", n, fmt(val)))
			tradeLbl(lastTrade)
			renderCollection()
		end
		task.wait(1)
	end
end)

function H.Unload()
	H.alive = false
	for _, c in ipairs(H.conns) do pcall(c.Disconnect, c) end
	for _, i in ipairs(H.insts) do pcall(i.Destroy, i) end
	if G.MLPH == H then G.MLPH = nil end
end
notify("Pony Cards Hub", "Ready · RightShift toggles the menu", C.clay)
print("[MLPH] loaded")

Use Copy to open this script's copy page in a new tab.

Script worked? 🚀 Boost it to #1 so others find it too.

Comments (0)