local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local RunService = game:GetService("RunService") local TweenService = game:GetService("TweenService") local LocalPlayer = Players.LocalPlayer local Modules = ReplicatedStorage:WaitForChild("AppleOS"):WaitForChild("Modules") local Config = require(Modules.Config) local Launcher = require(Modules.System.Launcher) local Jiggle = require(Modules.Shared.Jiggle) local UI = require(Modules.Shared.UI) local Theme = require(Modules.Shared.Theme) local Preferences = require(Modules.Shared.Preferences) local AppIcon = require(Modules.Shared.AppIcon) local Glyphs = require(Modules.Shared.Glyphs) local Ring = require(Modules.Shared.Ring) local Model = require(Modules.Tablet.Model) local Shell = require(Modules.Services.Shell) local Notices = require(Modules.Services.Notices) if _G.AppleOS_JB_RenderConn then pcall(function() _G.AppleOS_JB_RenderConn:Disconnect() end) _G.AppleOS_JB_RenderConn = nil end _G.AppleOS_Launchers = _G.AppleOS_Launchers or setmetatable({}, { __mode = "k" }) _G.AppleOS_Jiggles = _G.AppleOS_Jiggles or setmetatable({}, { __mode = "k" }) _G.AppleOS_CustomApps = _G.AppleOS_CustomApps or {} _G.AppleOS_TrollInstalled = _G.AppleOS_TrollInstalled or {} local CustomApps = _G.AppleOS_CustomApps local TrollInstalled = _G.AppleOS_TrollInstalled local rebuiltThisRun = {} local APPS_META = { Dopamine = { name = "Dopamine", preinstalled = true, gamePassId = 0, coinPrice = 0, subtitle = "iOS 26.0.1 Semi-Untethered Jailbreak", developer = "ElleKit Team", icon = "", tile = { Color3.fromRGB(28, 175, 132), Color3.fromRGB(14, 78, 95), "⚡" }, }, Sileo = { name = "Sileo", preinstalled = true, gamePassId = 0, coinPrice = 0, subtitle = "Modern APT Package Manager", developer = "Sileo Team", icon = "", tile = { Color3.fromRGB(52, 185, 235), Color3.fromRGB(22, 95, 175), "S" }, }, TrollStore = { name = "TrollStore", preinstalled = true, gamePassId = 0, coinPrice = 0, subtitle = "CoreTrust Lua Sideloader & ElleKit SDK", developer = "opa334 / AppleOS", icon = "", tile = { Color3.fromRGB(115, 92, 245), Color3.fromRGB(55, 34, 150), "😈" }, }, Terminal = { name = "Terminal", preinstalled = true, gamePassId = 0, coinPrice = 0, subtitle = "NewTerm Root Shell", developer = "Chariz", icon = "", tile = { Color3.fromRGB(28, 30, 38), Color3.fromRGB(10, 12, 16), ">_" }, }, } local EXTRA_WALLPAPERS = { { name = "Cyber Mint (JB)", sky = { Color3.fromRGB(10, 40, 45), Color3.fromRGB(25, 130, 120) }, top = { Color3.fromRGB(40, 255, 190), Color3.fromRGB(20, 170, 220) }, wave = { Color3.fromRGB(15, 95, 110), Color3.fromRGB(30, 35, 95) }, deep = { Color3.fromRGB(6, 15, 30), Color3.fromRGB(2, 5, 12) }, glow = { Color3.fromRGB(60, 255, 200), Color3.fromRGB(80, 160, 255) }, }, { name = "Dracula Night (JB)", sky = { Color3.fromRGB(40, 42, 64), Color3.fromRGB(98, 70, 155) }, top = { Color3.fromRGB(189, 147, 249), Color3.fromRGB(255, 121, 198) }, wave = { Color3.fromRGB(68, 71, 90), Color3.fromRGB(40, 42, 54) }, deep = { Color3.fromRGB(24, 25, 34), Color3.fromRGB(12, 12, 18) }, glow = { Color3.fromRGB(189, 147, 249), Color3.fromRGB(139, 233, 253) }, }, { name = "Matrix Code (JB)", sky = { Color3.fromRGB(6, 28, 16), Color3.fromRGB(14, 70, 38) }, top = { Color3.fromRGB(35, 255, 115), Color3.fromRGB(12, 165, 75) }, wave = { Color3.fromRGB(10, 85, 42), Color3.fromRGB(4, 35, 18) }, deep = { Color3.fromRGB(2, 12, 6), Color3.fromRGB(0, 4, 2) }, glow = { Color3.fromRGB(80, 255, 140), Color3.fromRGB(20, 180, 90) }, }, { name = "Vaporwave Sunset (JB)", sky = { Color3.fromRGB(255, 105, 180), Color3.fromRGB(120, 65, 235) }, top = { Color3.fromRGB(0, 240, 255), Color3.fromRGB(255, 80, 190) }, wave = { Color3.fromRGB(165, 45, 180), Color3.fromRGB(70, 20, 130) }, deep = { Color3.fromRGB(26, 8, 56), Color3.fromRGB(8, 2, 22) }, glow = { Color3.fromRGB(0, 255, 240), Color3.fromRGB(255, 90, 200) }, }, { name = "Gold Obsidian (JB)", sky = { Color3.fromRGB(35, 28, 16), Color3.fromRGB(95, 70, 28) }, top = { Color3.fromRGB(255, 210, 95), Color3.fromRGB(210, 145, 40) }, wave = { Color3.fromRGB(75, 52, 20), Color3.fromRGB(28, 20, 10) }, deep = { Color3.fromRGB(12, 10, 6), Color3.fromRGB(4, 3, 2) }, glow = { Color3.fromRGB(255, 220, 110), Color3.fromRGB(255, 150, 40) }, }, } local function registerAppMeta(appMeta, isThemed) if Config.AppStore and Config.AppStore.Apps then local exists = false for _, v in ipairs(Config.AppStore.Apps) do if v.name == appMeta.name then exists = true break end end if not exists then table.insert(Config.AppStore.Apps, appMeta) end end if Config.Pages then local existsPage = false for _, page in ipairs(Config.Pages) do for _, row in ipairs(page) do for _, app in ipairs(row) do if app.name == appMeta.name then existsPage = true break end end end end if not existsPage then local lastPage = Config.Pages[#Config.Pages] if not lastPage then lastPage = {} table.insert(Config.Pages, lastPage) end local lastRow = lastPage[#lastPage] if not lastRow or #lastRow >= 6 then lastRow = {} table.insert(lastPage, lastRow) end table.insert(lastRow, { name = appMeta.name, icon = appMeta.icon or "", tile = appMeta.tile }) end end Config.ThemedApps = Config.ThemedApps or {} Config.ThemedApps[appMeta.name] = (isThemed ~= false) end registerAppMeta(APPS_META.Dopamine, true) if Preferences.get("jb_done") then registerAppMeta(APPS_META.Sileo, true) registerAppMeta(APPS_META.TrollStore, true) registerAppMeta(APPS_META.Terminal, false) end local getUpvalue = (debug and debug.getupvalue) or getupvalue local getUpvalues = (debug and debug.getupvalues) or getupvalues local function getUpvalueSafe(fn, idx) if not getUpvalue or type(fn) ~= "function" then return nil end local ok, val = pcall(getUpvalue, fn, idx) return if ok then val else nil end local function fnUsesInstance(fn, targetInst) if type(fn) ~= "function" or not getUpvalues then return false end local ok, ups = pcall(getUpvalues, fn) if not ok or type(ups) ~= "table" then return false end for _, v in pairs(ups) do if v == targetInst then return true end end return false end Jiggle._origNew = Jiggle._origNew or Jiggle.new Jiggle.new = function(cfg) local obj = Jiggle._origNew(cfg) if cfg and cfg.screen then _G.AppleOS_Jiggles[cfg.screen] = { jiggle = obj, cfg = cfg } end return obj end local function findActiveScreen() local char = LocalPlayer.Character local heldTool = char and char:FindFirstChildOfClass("Tool") local wantPad = heldTool and string.find(string.lower(heldTool.Name), "ipad") ~= nil local wantPhone = heldTool and string.find(string.lower(heldTool.Name), "iphone") ~= nil local roots = { LocalPlayer:FindFirstChild("PlayerGui"), char, workspace } local best, bestScore = nil, -1 for _, root in ipairs(roots) do if root then for _, obj in ipairs(root:GetDescendants()) do if obj:IsA("Frame") and obj.Name == "Screen" and obj.Parent and obj.Parent.Name == "Glass" and obj:FindFirstChild("Home") and obj:FindFirstChild("App") then local score = 0 local gui = obj:FindFirstAncestorWhichIsA("LayerCollector") if gui and gui.Enabled then score += 10 end if gui and gui:IsA("SurfaceGui") and gui.Adornee and heldTool and gui.Adornee:IsDescendantOf(heldTool) then score += 50 end if heldTool and obj:IsDescendantOf(heldTool) then score += 50 end local w = obj.Size.X.Offset if wantPad and w >= 1200 then score += 20 end if wantPhone and w > 0 and w < 1000 then score += 20 end if score > bestScore then bestScore = score best = obj end end end end end return best end local function findLauncherForScreen(screenFrame) if not screenFrame then return nil end if _G.AppleOS_Launchers[screenFrame] then return _G.AppleOS_Launchers[screenFrame] end local appHolder = screenFrame:FindFirstChild("App") if not appHolder then return nil end if getgc then for _, v in ipairs(getgc(true)) do if type(v) == "table" and type(rawget(v, "open")) == "function" and type(rawget(v, "content")) == "function" and (fnUsesInstance(rawget(v, "setCorner"), appHolder) or fnUsesInstance(rawget(v, "close"), appHolder)) then _G.AppleOS_Launchers[screenFrame] = v return v end end end return nil end local function extractJiggleCfg(jiggleObj, screenFrame) if not getUpvalues then return nil end for _, fn in ipairs({ rawget(jiggleObj, "arrange"), rawget(jiggleObj, "stop"), rawget(jiggleObj, "holding") }) do if type(fn) == "function" then local ok, ups = pcall(getUpvalues, fn) if ok then for _, v in pairs(ups) do if type(v) == "table" and rawget(v, "screen") == screenFrame and type(rawget(v, "icons")) == "table" and type(rawget(v, "defaults")) == "table" then return v elseif type(v) == "function" then local ok2, subUps = pcall(getUpvalues, v) if ok2 then for _, t in pairs(subUps) do if type(t) == "table" and rawget(t, "screen") == screenFrame and type(rawget(t, "icons")) == "table" and type(rawget(t, "defaults")) == "table" then return t end end end end end end end end return nil end local function findJiggleContext(screenFrame) local jiggleObj, jiggleCfg local cap = _G.AppleOS_Jiggles[screenFrame] if cap then jiggleObj, jiggleCfg = cap.jiggle, cap.cfg end if not jiggleCfg and getgc then for _, v in ipairs(getgc(true)) do if type(v) == "table" and type(rawget(v, "arrange")) == "function" and type(rawget(v, "layout")) == "function" and type(rawget(v, "blocksTap")) == "function" then local cfg = extractJiggleCfg(v, screenFrame) if cfg then jiggleObj, jiggleCfg = v, cfg _G.AppleOS_Jiggles[screenFrame] = { jiggle = v, cfg = cfg } break end end end end if not jiggleObj or not jiggleCfg then return nil end return { jiggle = jiggleObj, cfg = jiggleCfg, icons = jiggleCfg.icons, labels = getUpvalueSafe(jiggleCfg.label, 1), defaults = jiggleCfg.defaults, } end local CYLINDER_EFFECTS = { { id = 1, name = "Cube (Inside)", kind = "page" }, { id = 2, name = "Cube (Outside)", kind = "page" }, { id = 3, name = "Carousel Wheel", kind = "page" }, { id = 4, name = "Flip (Horizontal)", kind = "page" }, { id = 5, name = "Flip (Vertical)", kind = "page" }, { id = 6, name = "Hinge (Top)", kind = "page" }, { id = 7, name = "Hinge (Bottom)", kind = "page" }, { id = 8, name = "Spin (Clockwise)", kind = "page" }, { id = 9, name = "Spin (Counter-CW)", kind = "page" }, { id = 10, name = "Barrel Roll 360", kind = "page" }, { id = 11, name = "Zoom Out Slide", kind = "page" }, { id = 12, name = "Zoom Pop-In", kind = "page" }, { id = 13, name = "Depth Stack", kind = "page" }, { id = 14, name = "Card Deck Drop", kind = "page" }, { id = 15, name = "Stay Put & Shrink", kind = "page" }, { id = 16, name = "Parabolic Bounce", kind = "page" }, { id = 17, name = "Pendulum Swing", kind = "page" }, { id = 18, name = "Diagonal Up", kind = "page" }, { id = 19, name = "Diagonal Down", kind = "page" }, { id = 20, name = "Elevator (Up/Down)", kind = "page" }, { id = 21, name = "Elevator (Reverse)", kind = "page" }, { id = 22, name = "Hyperbolic Arc", kind = "page" }, { id = 23, name = "Earthquake Shake", kind = "page" }, { id = 24, name = "Rubber Squeeze", kind = "page" }, { id = 25, name = "Tilt & Slide", kind = "page" }, { id = 26, name = "Scatter (Explode)", kind = "item" }, { id = 27, name = "Scatter (Implode)", kind = "item" }, { id = 28, name = "Vortex Swirl", kind = "item" }, { id = 29, name = "Spiral Galaxy", kind = "item" }, { id = 30, name = "Sine Wave", kind = "item" }, { id = 31, name = "Cosine Vertical Wave", kind = "item" }, { id = 32, name = "Staircase (Ascending)", kind = "item" }, { id = 33, name = "Staircase (Descending)", kind = "item" }, { id = 34, name = "Checkerboard Split", kind = "item" }, { id = 35, name = "Row Split (Opposing)", kind = "item" }, { id = 36, name = "Column Diverge", kind = "item" }, { id = 37, name = "Domino Fall", kind = "item" }, { id = 38, name = "Windmill Icons", kind = "item" }, { id = 39, name = "Wheel of Fortune", kind = "item" }, { id = 40, name = "Gravity Drop", kind = "item" }, { id = 41, name = "Antigravity Float", kind = "item" }, { id = 42, name = "Suck (Bottom-Right)", kind = "item" }, { id = 43, name = "Suck (Top-Left)", kind = "item" }, { id = 44, name = "Accordion Squash", kind = "item" }, { id = 45, name = "Elastic Stretch", kind = "item" }, { id = 46, name = "Zig-Zag Weave", kind = "item" }, { id = 47, name = "Tornado Funnel", kind = "item" }, { id = 48, name = "Elliptical Orbit", kind = "item" }, { id = 49, name = "Curtain Open", kind = "item" }, { id = 50, name = "Hyperspace Warp", kind = "item" }, } local function computePageTransform(id, p, W, H) local ap = math.abs(p) local s, rot, dx, dy = 1, 0, 0, 0 if id == 1 then s = 1 - ap * 0.28; rot = -p * 24; dx = -p * W * 0.18 elseif id == 2 then s = 1 - ap * 0.22; rot = p * 28; dy = ap * H * 0.08 elseif id == 3 then local ang = p * 0.9; dx = math.sin(ang) * W * 0.35 - p * W * 0.35; dy = (1 - math.cos(ang)) * H * 0.45; rot = p * 35; s = 1 - ap * 0.2 elseif id == 4 then s = math.max(0.08, 1 - ap * 0.85); dx = -p * W * 0.42; rot = p * 8 elseif id == 5 then s = math.max(0.1, math.abs(math.cos(p * math.pi * 0.5))); rot = p * 180 elseif id == 6 then rot = -p * 55; dy = -ap * H * 0.25; dx = -p * W * 0.15 elseif id == 7 then rot = p * 55; dy = ap * H * 0.25; dx = p * W * 0.15 elseif id == 8 then rot = p * 90; s = 1 - ap * 0.3 elseif id == 9 then rot = -p * 90; s = 1 - ap * 0.3 elseif id == 10 then rot = p * 360; s = 1 - ap * 0.35 elseif id == 11 then s = 1 - ap * 0.45 elseif id == 12 then s = 1 + math.sin(ap * math.pi) * 0.18 - ap * 0.35 elseif id == 13 then if p < 0 then dx = -p * W * 0.72; s = 1 - ap * 0.25 end elseif id == 14 then if p < 0 then dy = ap * H * 0.5; s = 1 - ap * 0.35; rot = -p * 12 else dx = -p * W * 0.1 end elseif id == 15 then dx = -p * W; s = math.max(0.01, 1 - ap) elseif id == 16 then dy = -math.sin(math.clamp(ap, 0, 1) * math.pi) * H * 0.22; s = 1 - ap * 0.15 elseif id == 17 then rot = p * 25; dy = -(ap * ap) * H * 0.3 elseif id == 18 then dy = p * H * 0.65 elseif id == 19 then dy = -p * H * 0.65 elseif id == 20 then dx = -p * W; dy = p * H elseif id == 21 then dx = -p * W; dy = -p * H elseif id == 22 then dy = (p * p) * H * 0.5; s = 1 - ap * 0.3; rot = p * 16 elseif id == 23 then local t = os.clock() * 55; dx = math.sin(t) * 28 * ap; dy = math.cos(t * 1.3) * 22 * ap; rot = math.sin(t * 0.8) * 4 * ap elseif id == 24 then s = 1 - math.sin(math.clamp(ap, 0, 1) * math.pi) * 0.3; rot = math.sin(p * math.pi) * 14 elseif id == 25 then rot = p * 18; dy = ap * 90 end return s, rot, dx, dy end local function computeItemTransform(id, p, nx, ny, idx, W, H) local ap = math.abs(p) local dx, dy, rot = 0, 0, 0 if id == 26 then dx = nx * ap * W * 0.55; dy = ny * ap * H * 0.55; rot = nx * p * 120 elseif id == 27 then dx = -nx * ap * W * 0.45; dy = -ny * ap * H * 0.45; rot = -p * 90 elseif id == 28 then local ang = p * 2.4; local cx, cy = nx * W * 0.45, ny * H * 0.45 dx = (cx * math.cos(ang) - cy * math.sin(ang) - cx) * ap dy = (cx * math.sin(ang) + cy * math.cos(ang) - cy) * ap rot = p * 180 elseif id == 29 then local ang = p * 3.5 + (idx % 6) * 0.3; dx = math.cos(ang) * ap * 260; dy = math.sin(ang) * ap * 260; rot = p * 240 elseif id == 30 then dy = math.sin(nx * 3.5 + p * 4) * 160 * ap; rot = math.cos(nx * 3.5 + p * 4) * 20 * ap elseif id == 31 then dx = math.cos(ny * 3.5 + p * 4) * 180 * ap elseif id == 32 then dy = -nx * p * 280 elseif id == 33 then dy = nx * p * 280 elseif id == 34 then local sg = if idx % 2 == 0 then 1 else -1; dy = sg * ap * H * 0.45; rot = sg * p * 45 elseif id == 35 then local sg = if ny >= 0 then 1 else -1; dx = sg * p * W * 0.35 elseif id == 36 then local sg = if nx >= 0 then 1 else -1; dy = sg * ap * H * 0.4; dx = sg * ap * 120 elseif id == 37 then local d = math.clamp(ap * 1.5 - (nx + 1) * 0.25, 0, 1); rot = p * 85 * d; dy = d * 180 elseif id == 38 then rot = p * 360; dy = math.sin(idx + p * 3) * 60 * ap elseif id == 39 then local ang = idx * 0.5 + p * math.pi; dx = (math.cos(ang) * 320 - nx * W * 0.4) * ap; dy = (math.sin(ang) * 260 - ny * H * 0.4) * ap; rot = math.deg(ang) * ap elseif id == 40 then local d = math.clamp(ap * 1.4 - (1 - ny) * 0.2, 0, 1); dy = d * d * H * 0.8; rot = nx * 40 * d elseif id == 41 then local d = math.clamp(ap * 1.4 - (ny + 1) * 0.2, 0, 1); dy = -d * d * H * 0.8; rot = -nx * 40 * d elseif id == 42 then dx = (W * 0.45 - nx * W * 0.45) * ap; dy = (H * 0.45 - ny * H * 0.45) * ap; rot = p * 90 elseif id == 43 then dx = (-W * 0.45 - nx * W * 0.45) * ap; dy = (-H * 0.45 - ny * H * 0.45) * ap; rot = -p * 90 elseif id == 44 then dx = -nx * ap * W * 0.42 elseif id == 45 then dx = nx * ap * W * 0.7 elseif id == 46 then local sg = if idx % 2 == 0 then 1 else -1; dx = math.sin(ap * math.pi * 2) * 140 * sg; dy = math.cos(ap * math.pi * 2) * 110 * sg elseif id == 47 then local f = (1 - ny) * 0.5 + 0.2; dx = math.sin(p * 6 + ny * 3) * 240 * f * ap; rot = p * 270 * f elseif id == 48 then local ang = p * math.pi * 1.5 + idx * 0.2; dx = math.cos(ang) * 220 * ap; dy = math.sin(ang) * 90 * ap elseif id == 49 then local sg = if nx < 0 then -1 else 1; dx = sg * ap * W * 0.55; dy = -ap * H * 0.3; rot = sg * ap * 35 elseif id == 50 then local sp = 1 + math.abs(nx) * 1.6; dx = -p * W * 0.85 * sp; dy = ny * ap * 180; rot = ny * p * 25 end return dx, dy, rot end local function attachCylinderToScreen(screenFrame) if _G.AppleOS_JB_RenderConn then pcall(function() _G.AppleOS_JB_RenderConn:Disconnect() end) end local home = screenFrame:FindFirstChild("Home") local pages = home and home:FindFirstChild("Pages") if not pages then return end local baseChildPos = setmetatable({}, { __mode = "k" }) local pageScales = setmetatable({}, { __mode = "k" }) local activeRandomId = Preferences.get("cyl_id") or 0 local wasAtRest = true local function getOrMakeScale(pg) local sc = pageScales[pg] if not sc or sc.Parent ~= pg then sc = pg:FindFirstChild("CylScale") or UI.make("UIScale", { Name = "CylScale", Parent = pg }) pageScales[pg] = sc end return sc end local function resetAllPages(pageList, W, captureBase) for i, pg in ipairs(pageList) do pg.Rotation = 0 pg.Position = UDim2.fromOffset((i - 1) * W, 0) local sc = pageScales[pg] if sc then sc.Scale = 1 end for _, child in ipairs(pg:GetChildren()) do if child:IsA("GuiObject") and child.Name ~= "CylScale" then child.Rotation = 0 if captureBase then baseChildPos[child] = child.Position elseif baseChildPos[child] then child.Position = baseChildPos[child] end end end end end _G.AppleOS_JB_RenderConn = RunService.RenderStepped:Connect(function() if not screenFrame.Parent or not pages.Parent then return end local W, H = screenFrame.Size.X.Offset, screenFrame.Size.Y.Offset if W <= 0 or H <= 0 then return end local pageList = {} for _, child in ipairs(pages:GetChildren()) do local idx = tonumber(string.match(child.Name, "^Page(%d+)$")) if idx then pageList[idx] = child end end local appLib = pages:FindFirstChild("AppLibrary") if appLib then table.insert(pageList, appLib) end local ctx = findJiggleContext(screenFrame) local isEditing = ctx and ctx.jiggle and (ctx.jiggle.editing() or ctx.jiggle.holding()) local cylId = Preferences.get("cyl_id") or 0 local isRandom = Preferences.get("cyl_random") == true if isEditing or (cylId == 0 and not isRandom) then resetAllPages(pageList, W, not isEditing) wasAtRest = true return end local pagesX = pages.Position.X.Offset local exactPage = -pagesX / W if math.abs(exactPage - math.round(exactPage)) < 0.002 then if not wasAtRest then resetAllPages(pageList, W, true) wasAtRest = true else for _, pg in ipairs(pageList) do for _, child in ipairs(pg:GetChildren()) do if child:IsA("GuiObject") then baseChildPos[child] = child.Position end end end end return end if wasAtRest then wasAtRest = false activeRandomId = if isRandom then math.random(1, #CYLINDER_EFFECTS) else cylId end local effect = CYLINDER_EFFECTS[activeRandomId] if not effect then return end for i, pg in ipairs(pageList) do local baseX = (i - 1) * W local p = (baseX + pagesX) / W if math.abs(p) > 1.4 then pg.Rotation = 0 pg.Position = UDim2.fromOffset(baseX, 0) local sc = pageScales[pg] if sc then sc.Scale = 1 end elseif effect.kind == "page" then local s, rot, dx, dy = computePageTransform(effect.id, p, W, H) local sc = getOrMakeScale(pg) sc.Scale = s pg.Rotation = rot pg.Position = UDim2.fromOffset(baseX + W * (1 - s) * 0.5 + dx, H * (1 - s) * 0.5 + dy) else pg.Rotation = 0 pg.Position = UDim2.fromOffset(baseX, 0) local sc = pageScales[pg] if sc then sc.Scale = 1 end local idx = 0 for _, child in ipairs(pg:GetChildren()) do if child:IsA("GuiObject") then idx += 1 local bPos = baseChildPos[child] if not bPos then bPos = child.Position; baseChildPos[child] = bPos end local cx = bPos.X.Offset + (0.5 - child.AnchorPoint.X) * child.Size.X.Offset local cy = bPos.Y.Offset + (0.5 - child.AnchorPoint.Y) * child.Size.Y.Offset local nx = math.clamp((cx - W * 0.5) / (W * 0.5), -1.2, 1.2) local ny = math.clamp((cy - H * 0.5) / (H * 0.5), -1.2, 1.2) local dx, dy, rot = computeItemTransform(effect.id, p, nx, ny, idx, W, H) child.Position = UDim2.fromOffset(bPos.X.Offset + dx, bPos.Y.Offset + dy) child.Rotation = rot end end end end end) end local ORIG_DARK = {} for k, v in pairs(Theme.DARK) do ORIG_DARK[k] = v end local THEME_PRESETS = { ["Default iOS"] = ORIG_DARK, ["OLED Pure Black"] = { background = Color3.new(0, 0, 0), grouped = Color3.new(0, 0, 0), card = Color3.fromRGB(14, 14, 16), sheet = Color3.new(0, 0, 0), blue = Color3.fromRGB(10, 132, 255), ink = Color3.new(1, 1, 1) }, ["Dracula Purple"] = { background = Color3.fromRGB(24, 25, 36), grouped = Color3.fromRGB(24, 25, 36), card = Color3.fromRGB(40, 42, 58), sheet = Color3.fromRGB(24, 25, 36), fill = Color3.fromRGB(56, 58, 78), blue = Color3.fromRGB(189, 147, 249), ink = Color3.fromRGB(248, 248, 242) }, ["Matrix Hacker"] = { background = Color3.fromRGB(6, 14, 10), grouped = Color3.fromRGB(6, 14, 10), card = Color3.fromRGB(14, 28, 20), sheet = Color3.fromRGB(6, 14, 10), fill = Color3.fromRGB(22, 46, 32), blue = Color3.fromRGB(52, 211, 153), ink = Color3.fromRGB(210, 255, 225) }, ["Crimson Rose"] = { background = Color3.fromRGB(20, 8, 12), grouped = Color3.fromRGB(20, 8, 12), card = Color3.fromRGB(38, 16, 22), sheet = Color3.fromRGB(20, 8, 12), blue = Color3.fromRGB(255, 75, 110), ink = Color3.fromRGB(255, 235, 240) }, } local function applyThemePreset(presetName) local p = THEME_PRESETS[presetName] if not p then return end for k, v in pairs(ORIG_DARK) do Theme.DARK[k] = p[k] or v end Preferences.set("jb_theme", presetName) if Theme.dark() then Preferences.set("appearance", "Light") task.defer(function() Preferences.set("appearance", "Dark") end) else Preferences.set("appearance", "Dark") end end local function applyCarrierToBar(bar, textStr) if not bar or not bar:IsA("GuiObject") then return end local carrier = bar:FindFirstChild("JBCarrier") if not textStr or textStr == "" then if carrier then carrier:Destroy() end return end local clockLbl = bar:FindFirstChild("Time") local W = bar.Size.X.Offset local isPhone = W < 1000 if not carrier then carrier = UI.text({ Name = "JBCarrier", ZIndex = 6, Text = textStr, FontFace = UI.font(Enum.FontWeight.SemiBold), TextSize = if isPhone then 18 else 16, TextColor3 = if clockLbl then clockLbl.TextColor3 else UI.WHITE, TextXAlignment = Enum.TextXAlignment.Center, AnchorPoint = Vector2.new(0.5, 0.5), Position = UDim2.fromOffset(W * 0.5, if isPhone then 49 else 25), Size = UDim2.fromOffset(260, 24), Parent = bar, }) carrier:SetAttribute("ThemeKeep", true) if clockLbl then clockLbl:GetPropertyChangedSignal("TextColor3"):Connect(function() if carrier.Parent then carrier.TextColor3 = clockLbl.TextColor3 end end) end else carrier.Text = textStr end end local function applyAllVisualTweaks(screenFrame) if not screenFrame then return end local home = screenFrame:FindFirstChild("Home") local fixed = home and home:FindFirstChild("Fixed") local dock = fixed and fixed:FindFirstChild("Dock") local pages = home and home:FindFirstChild("Pages") local appHolder = screenFrame:FindFirstChild("App") local stage = appHolder and appHolder:FindFirstChild("Stage") local lockFrame = screenFrame:FindFirstChild("Lock") local carrierTxt = Preferences.get("jb_carrier") or "" if home then applyCarrierToBar(home:FindFirstChild("StatusBar"), carrierTxt) end if stage then applyCarrierToBar(stage:FindFirstChild("StatusBar"), carrierTxt) end if dock then dock.Visible = not (Preferences.get("jb_cleardock") == true) end local hideLbl = Preferences.get("jb_nolabels") == true if pages then for _, pg in ipairs(pages:GetChildren()) do for _, obj in ipairs(pg:GetChildren()) do if obj:IsA("TextLabel") and string.sub(obj.Name, -5) == "Label" then obj.TextTransparency = if hideLbl then 1 else 0 obj.TextStrokeTransparency = if hideLbl then 1 else 0.6 end end end end if lockFrame then local hint = lockFrame:FindFirstChild("Hint") if hint and hint:IsA("TextLabel") then local customHint = Preferences.get("jb_lockhint") hint.Text = if customHint and customHint ~= "" then customHint else Config.Lock.Hint end local clk = lockFrame:FindFirstChild("Clock") local clkColor = Preferences.get("jb_lockcolor") if clk and clk:IsA("TextLabel") then clk.TextColor3 = clkColor or UI.WHITE end end end local function ensureCached(launcherObj, screenFrame, appName, forceRebuild) local builder = CustomApps[appName] if not builder or not launcherObj then return end local cache = getUpvalueSafe(launcherObj.content, 1) if type(cache) ~= "table" then warn("[AppleOS] Failed to get cache table u182 from Launcher") return end local appScale = Preferences.get("textSize") or Config.AppScale or 1.3 local existing = cache[appName] local needBuild = forceRebuild or (not rebuiltThisRun[appName]) if existing and existing ~= false and existing.scale == appScale and not needBuild then return end rebuiltThisRun[appName] = true if existing and existing ~= false then if existing.handle and existing.handle.destroy then pcall(existing.handle.destroy) end if existing.frame then existing.frame:Destroy() end end cache[appName] = nil local appHolder = screenFrame:FindFirstChild("App") local stage = appHolder and appHolder:FindFirstChild("Stage") if not stage then return end local devSize = Vector2.new(screenFrame.Size.X.Offset, screenFrame.Size.Y.Offset) local scaledSize = devSize / appScale local appFrame = UI.make("Frame", { Visible = false, ZIndex = 2, Name = appName, BackgroundColor3 = UI.WHITE, Size = UDim2.fromOffset(scaledSize.X, scaledSize.Y), Parent = stage, }, { UI.make("UIScale", { Scale = appScale }) }) local ok, handle = pcall(builder, appFrame, scaledSize) if not ok or type(handle) ~= "table" then local errStr = tostring(handle) warn("[CustomApp] Build error for " .. appName .. ": " .. errStr) appFrame.BackgroundColor3 = Color3.fromRGB(28, 16, 18) UI.text({ Text = "App Build Error (" .. appName .. "):\n\n" .. errStr, TextSize = 18, TextWrapped = true, TextColor3 = Color3.fromRGB(255, 110, 110), TextXAlignment = Enum.TextXAlignment.Center, Position = UDim2.fromOffset(40, 80), Size = UDim2.new(1, -80, 1, -160), Parent = appFrame, }) handle = { dark = true, opened = function() end, closed = function() end, destroy = function() end } end local isThemed = Config.ThemedApps and Config.ThemedApps[appName] == true and not handle.window and not handle.dark if isThemed then Theme.adopt(appFrame) end local entry = { name = appName, frame = appFrame, handle = handle, scale = appScale, light = if handle.dark then true else nil, themed = isThemed, } function handle.chrome(isLight) entry.light = isLight end cache[appName] = entry end _G.AppleOS_EnsureCached = ensureCached local function injectAppIntoLiveHome(screenFrame, launcherObj, appMeta, isThemed) registerAppMeta(appMeta, isThemed) local home = screenFrame:FindFirstChild("Home") local pages = home and home:FindFirstChild("Pages") if not pages then return end local ctx = findJiggleContext(screenFrame) if not ctx then return end if ctx.icons[appMeta.name] then ctx.jiggle.arrange(false) return end local sampleIcon, sampleLabel for _, p in ipairs(pages:GetChildren()) do for _, c in ipairs(p:GetChildren()) do if c:IsA("Frame") and c:FindFirstChild("Icon") then sampleIcon = c sampleLabel = p:FindFirstChild(c.Name .. "Label") if sampleLabel then break end end end if sampleIcon and sampleLabel then break end end local iconSize = if sampleIcon then sampleIcon.Size else UDim2.fromOffset(84, 84) local iconCorner = if sampleIcon and sampleIcon.Icon:FindFirstChildOfClass("UICorner") then sampleIcon.Icon:FindFirstChildOfClass("UICorner").CornerRadius else UDim.new(0, 22) local labelSize = if sampleLabel then sampleLabel.Size else UDim2.fromOffset(200, 22) local labelTextSize = if sampleLabel then sampleLabel.TextSize else 17 local lastPageIdx = #ctx.cfg.defaults.pages local lastPageFrame = ctx.cfg.frame(lastPageIdx) or pages:FindFirstChild("Page" .. lastPageIdx) if not lastPageFrame then return end local iconFrame = UI.make("Frame", { BackgroundTransparency = 1, Name = appMeta.name, AnchorPoint = Vector2.new(0.5, 0.5), Size = iconSize, Parent = lastPageFrame, }) iconFrame:SetAttribute("ThemeKeep", true) local iconBtn = UI.make("ImageButton", { Name = "Icon", AutoButtonColor = false, BackgroundTransparency = 1, Size = UDim2.fromScale(1, 1), Parent = iconFrame, }, { UI.make("UICorner", { CornerRadius = iconCorner }) }) AppIcon.apply(iconBtn, appMeta) local labelObj = UI.text({ Visible = false, Name = appMeta.name .. "Label", Text = appMeta.name, FontFace = UI.font(Enum.FontWeight.Medium), TextStrokeColor3 = UI.BLACK, TextStrokeTransparency = 0.6, TextSize = labelTextSize, TextXAlignment = Enum.TextXAlignment.Center, AnchorPoint = Vector2.new(0.5, 0.5), Size = labelSize, Parent = lastPageFrame, }) local scaleObj = UI.make("UIScale", { Parent = iconFrame }) local pressInfo = TweenInfo.new(0.12, Enum.EasingStyle.Quad, Enum.EasingDirection.Out) local function setPressed(state) if ctx.jiggle.holding and ctx.jiggle.holding() then return end TweenService:Create(scaleObj, pressInfo, { Scale = if state then 0.9 else 1 }):Play() TweenService:Create(iconBtn, pressInfo, { ImageColor3 = if state then Color3.fromRGB(150, 150, 150) else UI.WHITE }):Play() end iconBtn.MouseButton1Down:Connect(function() setPressed(true) end) iconBtn.MouseButton1Up:Connect(function() setPressed(false) end) iconBtn.MouseLeave:Connect(function() setPressed(false) end) iconBtn.Activated:Connect(function() setPressed(false) if ctx.jiggle.blocksTap() then return end local lObj = launcherObj or findLauncherForScreen(screenFrame) if lObj then if _G.AppleOS_EnsureCached then _G.AppleOS_EnsureCached(lObj, screenFrame, appMeta.name, false) end local sf = screenFrame.Size.X.Offset / math.max(screenFrame.AbsoluteSize.X, 1) local pos = (iconFrame.AbsolutePosition + iconFrame.AbsoluteSize * 0.5 - screenFrame.AbsolutePosition) * sf lObj.open(appMeta, pos) else local t = Shell.target() if t and t.launch then t.launch(appMeta.name) end end end) ctx.icons[appMeta.name] = iconFrame if ctx.labels then ctx.labels[appMeta.name] = labelObj end local defPage = ctx.defaults.pages[lastPageIdx] if defPage and not table.find(defPage, appMeta.name) then table.insert(defPage, appMeta.name) end local curLayout = ctx.jiggle.layout() if curLayout and curLayout.pages then local already = false for _, p in ipairs(curLayout.pages) do if table.find(p, appMeta.name) then already = true break end end if not already and curLayout.dock and table.find(curLayout.dock, appMeta.name) then already = true end if not already then local targetList = curLayout.pages[lastPageIdx] or curLayout.pages[#curLayout.pages] if targetList then table.insert(targetList, appMeta.name) end end end ctx.jiggle.arrange(false) applyAllVisualTweaks(screenFrame) end local function removeAppFromLiveHome(screenFrame, launcherObj, appName) if launcherObj and launcherObj.content then local cache = getUpvalueSafe(launcherObj.content, 1) if type(cache) == "table" and cache[appName] then local e = cache[appName] if e ~= false then if e.handle and e.handle.destroy then pcall(e.handle.destroy) end if e.frame then e.frame:Destroy() end end cache[appName] = nil end end local ctx = findJiggleContext(screenFrame) if ctx then if ctx.icons[appName] then ctx.icons[appName]:Destroy(); ctx.icons[appName] = nil end if ctx.labels and ctx.labels[appName] then ctx.labels[appName]:Destroy(); ctx.labels[appName] = nil end for _, p in ipairs(ctx.defaults.pages) do local idx = table.find(p, appName) if idx then table.remove(p, idx) end end local l = ctx.jiggle.layout() if l then for _, p in ipairs(l.pages) do local idx = table.find(p, appName) if idx then table.remove(p, idx) end end if l.dock then local idx = table.find(l.dock, appName) if idx then table.remove(l.dock, idx) end end end ctx.jiggle.arrange(false) end CustomApps[appName] = nil TrollInstalled[appName] = nil end local function performRealRespring(screenFrame, launcherObj, onDone) if not screenFrame or screenFrame:FindFirstChild("RespringVeil") then return end local veil = UI.make("Frame", { Name = "RespringVeil", BackgroundColor3 = UI.BLACK, BackgroundTransparency = 1, ZIndex = 200, Size = UDim2.fromScale(1, 1), Parent = screenFrame, }) veil:SetAttribute("ThemeKeep", true) local spin = UI.text({ Text = "↻", TextSize = 64, FontFace = UI.font(Enum.FontWeight.Bold), TextColor3 = UI.WHITE, TextXAlignment = Enum.TextXAlignment.Center, AnchorPoint = Vector2.new(0.5, 0.5), Position = UDim2.fromScale(0.5, 0.5), Size = UDim2.fromOffset(100, 100), Parent = veil, }) spin:SetAttribute("ThemeKeep", true) Shell.sound("lock") TweenService:Create(veil, TweenInfo.new(0.25), { BackgroundTransparency = 0 }):Play() task.spawn(function() local t0 = os.clock() local refreshed = false while os.clock() - t0 < 1.5 do spin.Rotation = (os.clock() - t0) * 380 if not refreshed and (os.clock() - t0) > 0.45 then refreshed = true local target = Shell.target() if target and target.putAway then pcall(target.putAway) end if launcherObj and launcherObj.close then pcall(launcherObj.close) end if launcherObj and launcherObj.content then local cache = getUpvalueSafe(launcherObj.content, 1) if type(cache) == "table" then for name, entry in pairs(cache) do if entry and entry ~= false then if entry.handle and entry.handle.destroy then pcall(entry.handle.destroy) end if entry.frame then entry.frame:Destroy() end end cache[name] = nil end end end if Preferences.get("jb_done") then injectAppIntoLiveHome(screenFrame, launcherObj, APPS_META.Sileo, true) injectAppIntoLiveHome(screenFrame, launcherObj, APPS_META.TrollStore, true) injectAppIntoLiveHome(screenFrame, launcherObj, APPS_META.Terminal, false) for _, info in pairs(TrollInstalled) do injectAppIntoLiveHome(screenFrame, launcherObj, info.meta, info.manifest.Themed ~= false) end if launcherObj then ensureCached(launcherObj, screenFrame, "Sileo", true) ensureCached(launcherObj, screenFrame, "TrollStore", true) ensureCached(launcherObj, screenFrame, "Terminal", true) end end applyAllVisualTweaks(screenFrame) if target and target.wake then pcall(target.wake) end end task.wait() end if onDone then pcall(onDone) end local fadeOut = TweenService:Create(veil, TweenInfo.new(0.35), { BackgroundTransparency = 1 }) TweenService:Create(spin, TweenInfo.new(0.35), { TextTransparency = 1 }):Play() fadeOut.Completed:Once(function() veil:Destroy() end) fadeOut:Play() end) end local function createSystemAPI(screenFrame) return { GetScreen = function() return screenFrame end, GetLauncher = function() return findLauncherForScreen(screenFrame) end, GetJiggle = function() return findJiggleContext(screenFrame) end, Respring = function() performRealRespring(screenFrame, findLauncherForScreen(screenFrame)) end, Notify = function(title, body, appName) Shell.notify(title, body, "app", nil, appName) end, SetDarkMode = function(enabled) Preferences.set("appearance", if enabled then "Dark" else "Light") end, SetThemePreset = function(presetName) applyThemePreset(presetName) end, SetCarrier = function(textStr) Preferences.set("jb_carrier", textStr); applyAllVisualTweaks(screenFrame) end, SetCorner = function(radius) local l = findLauncherForScreen(screenFrame); if l then l.setCorner(radius) end end, SetCylinder = function(idOrRandom) if idOrRandom == "random" then Preferences.set("cyl_random", true) else Preferences.set("cyl_random", false); Preferences.set("cyl_id", tonumber(idOrRandom) or 0) end end, OS = { Config = Config, UI = UI, Theme = Theme, Preferences = Preferences, AppIcon = AppIcon, Glyphs = Glyphs, Ring = Ring, Model = Model, Shell = Shell, Notices = Notices, }, } end local function buildElleKitUI(screenFrame) local EK = {} function EK.Alert(title, message, buttons) local parent = screenFrame or LocalPlayer:FindFirstChild("PlayerGui") if not parent then return end local backdrop = UI.make("TextButton", { Name = "EKAlert", AutoButtonColor = false, BackgroundTransparency = 0.55, Text = "", ZIndex = 220, BackgroundColor3 = Color3.new(0, 0, 0), Size = UDim2.fromScale(1, 1), Parent = parent, }) backdrop:SetAttribute("ThemeKeep", true) local isPhone = parent.Size and parent.Size.X.Offset < 1000 local card = UI.make("Frame", { ZIndex = 221, AnchorPoint = Vector2.new(0.5, 0.5), BackgroundColor3 = Color3.fromRGB(242, 242, 247), Position = UDim2.fromScale(0.5, 0.5), AutomaticSize = Enum.AutomaticSize.Y, Size = UDim2.fromOffset(if isPhone then 460 else 420, 0), Parent = backdrop, }, { UI.corner(20), UI.make("UIListLayout", { SortOrder = Enum.SortOrder.LayoutOrder }) }) local header = UI.make("Frame", { LayoutOrder = 1, BackgroundTransparency = 1, AutomaticSize = Enum.AutomaticSize.Y, Size = UDim2.new(1, 0, 0, 0), Parent = card, }, { UI.padding(20, 20) }) UI.make("UIListLayout", { Padding = UDim.new(0, 8), SortOrder = Enum.SortOrder.LayoutOrder, Parent = header }) UI.text({ LayoutOrder = 1, Text = title, TextSize = 20, FontFace = UI.font(Enum.FontWeight.Bold), TextColor3 = UI.INK, TextWrapped = true, AutomaticSize = Enum.AutomaticSize.Y, TextXAlignment = Enum.TextXAlignment.Center, Size = UDim2.new(1, 0, 0, 0), Parent = header, }) UI.text({ LayoutOrder = 2, Text = message, TextSize = 15, TextColor3 = UI.INK, TextWrapped = true, AutomaticSize = Enum.AutomaticSize.Y, TextXAlignment = Enum.TextXAlignment.Center, Size = UDim2.new(1, 0, 0, 0), Parent = header, }) for idx, b in ipairs(buttons or { { text = "OK", bold = true } }) do UI.make("Frame", { LayoutOrder = idx * 2, BackgroundColor3 = UI.LINE, Size = UDim2.new(1, 0, 0, 1), Parent = card }) local btn = UI.make("TextButton", { LayoutOrder = idx * 2 + 1, AutoButtonColor = false, BackgroundTransparency = 1, Text = b.text or "OK", TextSize = 18, FontFace = UI.font(if b.bold then Enum.FontWeight.Bold else Enum.FontWeight.Regular), TextColor3 = if b.destructive then UI.RED else UI.BLUE, Size = UDim2.new(1, 0, 0, 48), Parent = card, }) btn.Activated:Connect(function() backdrop:Destroy() if b.onClick then pcall(b.onClick) end end) end end function EK.Page(frame, size, opts) opts = opts or {} local isPhone = size.X < size.Y local topPad = if opts.embedded then 0 elseif isPhone then 54 else 40 local padX = if isPhone then 20 else 36 if not opts.embedded then frame.BackgroundColor3 = UI.GROUPED end local scroll if opts.embedded then scroll = UI.make("Frame", { Name = "EKPage", BackgroundTransparency = 1, AutomaticSize = Enum.AutomaticSize.Y, Size = UDim2.new(1, 0, 0, 0), Parent = frame, }, { UI.make("UIListLayout", { HorizontalAlignment = Enum.HorizontalAlignment.Center, Padding = UDim.new(0, 14), SortOrder = Enum.SortOrder.LayoutOrder }), UI.padding(14, padX), }) else scroll = UI.make("ScrollingFrame", { Name = "EKPage", BackgroundTransparency = 1, ScrollBarThickness = 4, ScrollBarImageColor3 = UI.GRAY, AutomaticCanvasSize = Enum.AutomaticSize.Y, CanvasSize = UDim2.new(), Position = UDim2.fromOffset(0, topPad), Size = UDim2.new(1, 0, 1, -topPad), Parent = frame, }, { UI.make("UIListLayout", { HorizontalAlignment = Enum.HorizontalAlignment.Center, Padding = UDim.new(0, 14), SortOrder = Enum.SortOrder.LayoutOrder }), UI.padding(14, padX), }) end local orderCounter = 0 local function nextOrder() orderCounter += 1; return orderCounter end if opts.title then local hdr = UI.make("Frame", { LayoutOrder = nextOrder(), BackgroundTransparency = 1, Size = UDim2.new(1, 0, 0, if opts.subtitle then 68 else 48), Parent = scroll, }) if opts.subtitle then UI.text({ Text = string.upper(opts.subtitle), TextSize = 13, FontFace = UI.font(Enum.FontWeight.Bold), TextColor3 = UI.GRAY, Size = UDim2.new(1, -60, 0, 18), Parent = hdr }) end UI.text({ Text = opts.title, TextSize = 36, FontFace = UI.font(Enum.FontWeight.Bold), TextColor3 = UI.INK, Position = UDim2.fromOffset(0, if opts.subtitle then 18 else 0), Size = UDim2.new(1, -60, 0, 44), Parent = hdr }) if LocalPlayer and opts.avatar ~= false then UI.make("ImageLabel", { Image = UI.headshot(LocalPlayer.UserId), AnchorPoint = Vector2.new(1, 0.5), BackgroundColor3 = UI.FILL, Position = UDim2.new(1, 0, 0.5, 0), Size = UDim2.fromOffset(42, 42), Parent = hdr, }, { UI.round() }) end end local pageObj = { Scroll = scroll, IsPhone = isPhone } function pageObj:HeroCard(cfg) local card = UI.make("Frame", { LayoutOrder = nextOrder(), BackgroundColor3 = UI.WHITE, Size = UDim2.new(1, 0, 0, 104), Parent = scroll }, { UI.corner(16) }) local icon = UI.make("ImageLabel", { BackgroundTransparency = 1, Position = UDim2.fromOffset(18, 18), Size = UDim2.fromOffset(68, 68), Parent = card }, { UI.corner(16) }) icon:SetAttribute("ThemeKeep", true) if cfg.tile or cfg.icon then AppIcon.apply(icon, { name = cfg.title or "", icon = cfg.icon or "", tile = cfg.tile }) end local rightPad = if cfg.button then 130 else 20 UI.text({ Text = cfg.title or "", TextSize = 24, FontFace = UI.font(Enum.FontWeight.Bold), TextColor3 = UI.INK, TextTruncate = Enum.TextTruncate.AtEnd, Position = UDim2.fromOffset(100, 22), Size = UDim2.new(1, -(100 + rightPad), 0, 30), Parent = card }) UI.text({ Text = cfg.subtitle or "", TextSize = 14, TextColor3 = UI.VALUE, TextTruncate = Enum.TextTruncate.AtEnd, Position = UDim2.fromOffset(100, 54), Size = UDim2.new(1, -(100 + rightPad), 0, 22), Parent = card }) if cfg.button then local b = UI.make("TextButton", { Text = cfg.button.text or "OPEN", TextSize = 15, FontFace = UI.font(Enum.FontWeight.Bold), TextColor3 = UI.WHITE, BackgroundColor3 = cfg.button.color or UI.BLUE, AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, -18, 0.5, 0), Size = UDim2.fromOffset(96, 34), Parent = card, }, { UI.round() }) b:SetAttribute("ThemeKeep", true) b.Activated:Connect(function() if cfg.button.onClick then cfg.button.onClick(b) end end) end return card end function pageObj:Section(headerStr, footerStr) local wrap = UI.make("Frame", { LayoutOrder = nextOrder(), BackgroundTransparency = 1, AutomaticSize = Enum.AutomaticSize.Y, Size = UDim2.new(1, 0, 0, 0), Parent = scroll, }, { UI.make("UIListLayout", { Padding = UDim.new(0, 6), SortOrder = Enum.SortOrder.LayoutOrder }) }) if headerStr and headerStr ~= "" then UI.text({ LayoutOrder = 1, Text = " " .. string.upper(headerStr), TextSize = 13, FontFace = UI.font(Enum.FontWeight.Medium), TextColor3 = UI.VALUE, Size = UDim2.new(1, 0, 0, 18), Parent = wrap }) end local card = UI.make("Frame", { LayoutOrder = 2, BackgroundColor3 = UI.WHITE, AutomaticSize = Enum.AutomaticSize.Y, Size = UDim2.new(1, 0, 0, 0), Parent = wrap, }, { UI.corner(14), UI.make("UIListLayout", { SortOrder = Enum.SortOrder.LayoutOrder }) }) if footerStr and footerStr ~= "" then UI.text({ LayoutOrder = 3, Text = " " .. footerStr, TextSize = 12, TextWrapped = true, AutomaticSize = Enum.AutomaticSize.Y, TextColor3 = UI.VALUE, Size = UDim2.new(1, 0, 0, 0), Parent = wrap }) end local rowCount = 0 local sec = { Card = card } local function addDivider() if rowCount > 0 then UI.make("Frame", { LayoutOrder = rowCount * 2, BackgroundColor3 = UI.LINE, Size = UDim2.new(1, 0, 0, 1), Parent = card }) end rowCount += 1 return rowCount * 2 + 1 end function sec:Row(rcfg) local ord = addDivider() local btn = UI.make("TextButton", { LayoutOrder = ord, Text = "", AutoButtonColor = false, BackgroundTransparency = 1, Size = UDim2.new(1, 0, 0, 48), Parent = card }) local valLbl if rcfg.value ~= nil then valLbl = UI.text({ Text = tostring(rcfg.value), TextSize = 16, TextColor3 = UI.VALUE, TextXAlignment = Enum.TextXAlignment.Right, AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, if rcfg.chevron then -34 else -16, 0.5, 0), Size = UDim2.new(0.5, 0, 0, 24), Parent = btn, }) end if rcfg.chevron then UI.text({ Text = "›", TextSize = 24, TextColor3 = Color3.fromRGB(196, 196, 199), TextXAlignment = Enum.TextXAlignment.Right, AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, -14, 0.5, -1), Size = UDim2.fromOffset(20, 24), Parent = btn }) end UI.text({ Text = rcfg.title or "Row", TextSize = 17, TextColor3 = rcfg.color or UI.INK, Position = UDim2.fromOffset(16, 0), Size = UDim2.new(0.65, -24, 1, 0), Parent = btn }) if rcfg.onClick then btn.Activated:Connect(function() rcfg.onClick(valLbl) end) end return { SetValue = function(_, v) if valLbl then valLbl.Text = tostring(v) end end } end function sec:Toggle(tcfg) local ord = addDivider() local row = UI.make("Frame", { LayoutOrder = ord, BackgroundTransparency = 1, Size = UDim2.new(1, 0, 0, 48), Parent = card }) UI.text({ Text = tcfg.title or "Toggle", TextSize = 17, TextColor3 = UI.INK, Position = UDim2.fromOffset(16, 0), Size = UDim2.new(1, -86, 1, 0), Parent = row }) local state = tcfg.value == true local sw = UI.make("TextButton", { Text = "", AutoButtonColor = false, AnchorPoint = Vector2.new(1, 0.5), BackgroundColor3 = if state then UI.GREEN else Color3.fromRGB(209, 209, 214), Position = UDim2.new(1, -14, 0.5, 0), Size = UDim2.fromOffset(51, 31), Parent = row, }, { UI.round() }) sw:SetAttribute("ThemeKeep", true) local knob = UI.make("Frame", { AnchorPoint = Vector2.new(0, 0.5), BackgroundColor3 = UI.WHITE, Position = UDim2.new(0, if state then 22 else 2, 0.5, 0), Size = UDim2.fromOffset(27, 27), Parent = sw, }, { UI.round() }) knob:SetAttribute("ThemeKeep", true) sw.Activated:Connect(function() state = not state local ti = TweenInfo.new(0.18, Enum.EasingStyle.Quad, Enum.EasingDirection.Out) TweenService:Create(sw, ti, { BackgroundColor3 = if state then UI.GREEN else Color3.fromRGB(209, 209, 214) }):Play() TweenService:Create(knob, ti, { Position = UDim2.new(0, if state then 22 else 2, 0.5, 0) }):Play() if tcfg.onChange then tcfg.onChange(state) end end) end function sec:Button(bcfg) local ord = addDivider() local btn = UI.make("TextButton", { LayoutOrder = ord, Text = bcfg.title or "Action", TextSize = 17, FontFace = UI.font(if bcfg.bold then Enum.FontWeight.Bold else Enum.FontWeight.Medium), TextColor3 = if bcfg.destructive then UI.RED else (bcfg.color or UI.BLUE), AutoButtonColor = false, BackgroundTransparency = 1, Size = UDim2.new(1, 0, 0, 48), Parent = card, }) btn.Activated:Connect(function() if bcfg.onClick then bcfg.onClick(btn) end end) return btn end function sec:Input(icfg) local ord = addDivider() local row = UI.make("Frame", { LayoutOrder = ord, BackgroundTransparency = 1, Size = UDim2.new(1, 0, 0, 56), Parent = card }) local box = UI.make("TextBox", { PlaceholderText = icfg.placeholder or "Enter value...", Text = icfg.text or "", ClearTextOnFocus = false, TextSize = 16, FontFace = UI.font(), TextColor3 = UI.INK, BackgroundColor3 = UI.FILL, AnchorPoint = Vector2.new(0, 0.5), Position = UDim2.new(0, 14, 0.5, 0), Size = UDim2.new(1, if icfg.buttonText then -114 else -28, 0, 36), Parent = row, }, { UI.corner(10), UI.padding(0, 10) }) if icfg.buttonText then local go = UI.make("TextButton", { Text = icfg.buttonText, TextSize = 15, FontFace = UI.font(Enum.FontWeight.Bold), TextColor3 = UI.WHITE, BackgroundColor3 = UI.BLUE, AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, -14, 0.5, 0), Size = UDim2.fromOffset(82, 36), Parent = row, }, { UI.corner(10) }) go:SetAttribute("ThemeKeep", true) go.Activated:Connect(function() if icfg.onSubmit then icfg.onSubmit(box.Text, box) end end) end return box end return sec end function pageObj:CodeBox(height, initialText) local boxCard = UI.make("Frame", { LayoutOrder = nextOrder(), BackgroundColor3 = Color3.fromRGB(18, 20, 26), Size = UDim2.new(1, 0, 0, height or 180), Parent = scroll, }, { UI.corner(14) }) boxCard:SetAttribute("ThemeKeep", true) local lbl = UI.text({ Text = initialText or "", TextSize = 13, TextColor3 = Color3.fromRGB(130, 240, 175), TextWrapped = true, TextYAlignment = Enum.TextYAlignment.Top, Position = UDim2.fromOffset(14, 12), Size = UDim2.new(1, -28, 1, -24), Parent = boxCard, }) lbl:SetAttribute("ThemeKeep", true) return lbl end return pageObj end return EK end local function validateAndCompileTrollLua(codeStr) if type(codeStr) ~= "string" or string.gsub(codeStr, "%s+", "") == "" then return false, "Code is empty. Paste Lua code matching the TrollStore Manifest format." end local loader = loadstring or load if not loader then return false, "Executor does not support loadstring()." end local fn, syntaxErr = loader(codeStr, "TrollStoreApp") if not fn then return false, "Lua syntax error:\n" .. tostring(syntaxErr) end local env = setmetatable({ AppleOS = { Config = Config, UI = UI, Theme = Theme, Preferences = Preferences, AppIcon = AppIcon, Glyphs = Glyphs, Ring = Ring, Model = Model, Shell = Shell, Notices = Notices, }, }, { __index = getfenv() }) if setfenv then pcall(setfenv, fn, env) end local ok, manifest = pcall(fn) if not ok then return false, "Runtime error in Lua script:\n" .. tostring(manifest) end if type(manifest) ~= "table" then return false, "Invalid API structure. Script must `return { Name = ..., Version = ..., Source = ..., Main = function(...) }`." end local missing = {} if type(manifest.Name) ~= "string" or string.gsub(manifest.Name, "%s+", "") == "" then table.insert(missing, "• `Name` (string): App name") end if type(manifest.Version) ~= "string" or string.gsub(manifest.Version, "%s+", "") == "" then table.insert(missing, "• `Version` (string): Version") end if type(manifest.Source) ~= "string" or string.gsub(manifest.Source, "%s+", "") == "" then table.insert(missing, "• `Source` (string): Source / Author") end if type(manifest.Main) ~= "function" then table.insert(missing, "• `Main` (function): App UI builder function") end if #missing > 0 then return false, "Missing required API fields:\n" .. table.concat(missing, "\n") end if manifest.Name == "Settings" or manifest.Name == "App Store" or manifest.Name == "Dopamine" or manifest.Name == "Sileo" or manifest.Name == "TrollStore" then return false, "Cannot overwrite system app: " .. manifest.Name end return true, manifest end local function installValidatedManifest(manifest, screenFrame, launcherObj) local meta = { name = manifest.Name, preinstalled = true, gamePassId = 0, coinPrice = 0, subtitle = manifest.Subtitle or ("v" .. manifest.Version .. " • " .. manifest.Source), developer = manifest.Source, version = manifest.Version, icon = manifest.Icon or "", tile = manifest.Tile or { Color3.fromRGB(0, 122, 255), Color3.fromRGB(25, 65, 165), string.sub(manifest.Name, 1, 2) }, } CustomApps[manifest.Name] = function(appFrame, scaledSize) local scr = appFrame:FindFirstAncestor("Screen") or screenFrame local ek = buildElleKitUI(scr) local api = createSystemAPI(scr) local handle = manifest.Main(appFrame, scaledSize, ek, api) if type(handle) ~= "table" then handle = {} end return { dark = manifest.Dark, window = manifest.Window, opened = handle.opened or function() end, closed = handle.closed or function() end, destroy = handle.destroy or function() end, } end TrollInstalled[manifest.Name] = { meta = meta, manifest = manifest, code = manifest._rawCode } if screenFrame then injectAppIntoLiveHome(screenFrame, launcherObj, meta, manifest.Themed ~= false) if launcherObj then ensureCached(launcherObj, screenFrame, manifest.Name, true) end else registerAppMeta(meta, manifest.Themed ~= false) end Shell.notify("TrollStore", string.format("Installed %s v%s (%s)", manifest.Name, manifest.Version, manifest.Source), "app", nil, manifest.Name) end CustomApps.Dopamine = function(frame, size) local scr = frame:FindFirstAncestor("Screen") local ek = buildElleKitUI(scr) local page = ek.Page(frame, size, { title = "Dopamine", subtitle = "AppleOS 26.0.1 • Jailbreak" }) local devInfo = if page.IsPhone then Model.Phone.of(LocalPlayer) else Model.of(LocalPlayer) local devName = devInfo and (devInfo.modelName or devInfo.name) or "iDevice" local devChip = devInfo and devInfo.chip or "Apple Silicon" page:HeroCard({ title = "Dopamine 2.x", subtitle = string.format("%s • %s • %s", devName, devChip, if Preferences.get("jb_done") then "Jailbroken" else "Ready"), tile = APPS_META.Dopamine.tile, }) local logLbl = page:CodeBox(180, "[*] Dopamine Kernel Exploit Engine\n[*] Target: " .. devName .. " (" .. devChip .. ")\n[*] Status: " .. (if Preferences.get("jb_done") then "ElleKit Active" else "Waiting for Jailbreak...")) local sec = page:Section("Exploit Controls", "Jailbreaking installs Sileo (AppStore Style), TrollStore (.lua SDK), and Terminal, then resprings to the Lock Screen.") local busy = false sec:Button({ title = if Preferences.get("jb_done") then "Re-Jailbreak & Respring" else "Jailbreak", bold = true, onClick = function(btn) if busy then return end busy = true btn.Text = "Exploiting..." task.spawn(function() for _, line in ipairs({ "[*] Exploiting kernel_rw...", "[*] Bypassing PPL & CoreTrust (TrollStore)...", "[*] Mounting RootFS & Bootstrapping ElleKit...", "[*] Installing Sileo, TrollStore & Terminal...", "[+] Triggering SpringBoard Respring!", }) do logLbl.Text = logLbl.Text .. "\n" .. line task.wait(0.3) end for _, app in ipairs(Config.AppStore.Apps or {}) do Config.ThemedApps[app.name] = true end for _, row in ipairs(Config.Apps or {}) do for _, app in ipairs(row) do Config.ThemedApps[app.name] = true end end for _, wp in ipairs(EXTRA_WALLPAPERS) do local f = false for _, ex in ipairs(Config.Wallpapers) do if ex.name == wp.name then f = true break end end if not f then table.insert(Config.Wallpapers, wp) end end if (Preferences.get("cyl_id") or 0) == 0 then Preferences.set("cyl_id", 1) end Preferences.set("jb_done", true) local l = findLauncherForScreen(scr) performRealRespring(scr, l, function() Shell.notify("Dopamine", "Jailbroken! Sileo & TrollStore are ready on your Home Screen.", "app", nil, "Sileo") end) busy = false end) end, }) sec:Button({ title = "Respring SpringBoard", destructive = true, onClick = function() performRealRespring(scr, findLauncherForScreen(scr)) end, }) return { opened = function() end, closed = function() end, destroy = function() end } end CustomApps.Sileo = function(frame, size) local isPhone = size.X < size.Y local topPad = if isPhone then 50 else 34 local padX = if isPhone then 20 else 44 local tabH = 74 local bottomPad = if isPhone then 30 else 0 local scrollH = size.Y - tabH - bottomPad local INK = Color3.fromRGB(0, 0, 0) local SUB = Color3.fromRGB(138, 138, 142) local LINE = Color3.fromRGB(216, 216, 220) local FILL = Color3.fromRGB(239, 239, 244) local TAB_BG = Color3.fromRGB(249, 249, 249) frame.BackgroundColor3 = UI.WHITE local scr = frame:FindFirstAncestor("Screen") local EK = buildElleKitUI(scr) local PACKAGES = { { id = "cylinder", name = "Cylinder Reborn", subtitle = "50 smooth 60FPS HomeScreen page transitions", version = "2.4.1", author = "rweich / ElleKit", repo = "Chariz", category = "HomeScreen", tile = { Color3.fromRGB(55, 145, 255), Color3.fromRGB(20, 75, 200), "🌀" }, description = "Brings 50 3D/2D Cylinder effects to AppleOS (Cube, Barrel Roll, Vortex, Scatter, Tornado, Hyperspace...) along with a Randomize Every Swipe mode.", configUI = function(parent) local sec = parent:Section("Cylinder Mode", "Swipe between HomeScreen pages to see the transition effect.") sec:Toggle({ title = "Randomize Every Swipe", value = Preferences.get("cyl_random") == true, onChange = function(v) Preferences.set("cyl_random", v) end, }) sec:Row({ title = "Disable Cylinder (Reset to Default)", color = UI.RED, onClick = function() Preferences.set("cyl_random", false); Preferences.set("cyl_id", 0) end, }) local listSec = parent:Section("Pick 1 of 50 Effects") for _, fx in ipairs(CYLINDER_EFFECTS) do listSec:Row({ title = string.format("%d. %s", fx.id, fx.name), value = if (Preferences.get("cyl_id") == fx.id) then "Active ✓" else (if fx.kind == "page" then "Page" else "Icon"), color = if (Preferences.get("cyl_id") == fx.id) then UI.BLUE else UI.INK, onClick = function(lbl) Preferences.set("cyl_random", false) Preferences.set("cyl_id", fx.id) if lbl then lbl.Text = "Active ✓" end end, }) end end, }, { id = "spectrum", name = "Spectrum Theme Engine", subtitle = "System-wide OLED, Dracula & Matrix themes", version = "1.8.0", author = "Skitty", repo = "Havoc", category = "Themes", tile = { Color3.fromRGB(175, 82, 222), Color3.fromRGB(88, 40, 165), "🎨" }, description = "Modifies the AppleOS Theme.DARK palette directly to restyle Settings, Messages, Safari, Sileo, and TrollStore with OLED, Dracula, or Matrix color schemes.", configUI = function(parent) local sec = parent:Section("Select System Theme") for _, pName in ipairs({ "Default iOS", "OLED Pure Black", "Dracula Purple", "Matrix Hacker", "Crimson Rose" }) do sec:Row({ title = pName, value = if (Preferences.get("jb_theme") or "Default iOS") == pName then "Active ✓" else "Apply", color = UI.BLUE, onClick = function(lbl) applyThemePreset(pName); if lbl then lbl.Text = "Active ✓" end end, }) end sec:Button({ title = "Respring to Apply to All Apps", destructive = true, onClick = function() performRealRespring(scr, findLauncherForScreen(scr)) end }) end, }, { id = "zeppelin", name = "Zeppelin Carrier", subtitle = "Custom carrier text on the StatusBar", version = "3.0.2", author = "Alex Zielenski", repo = "BigBoss", category = "StatusBar", tile = { Color3.fromRGB(52, 199, 89), Color3.fromRGB(20, 125, 65), "📶" }, description = "Displays a custom carrier name or symbol centered on the StatusBar across HomeScreen and inside apps.", configUI = function(parent) local sec = parent:Section("Carrier Name") sec:Input({ placeholder = "Enter text (e.g.  Vietnam 5G)...", text = Preferences.get("jb_carrier") or "", buttonText = "Apply", onSubmit = function(txt) Preferences.set("jb_carrier", txt); applyAllVisualTweaks(scr) end, }) for _, preset in ipairs({ " Vietnam 5G", "Cydia LTE", "Starlink", "" }) do sec:Row({ title = if preset == "" then "Clear Carrier Name (Reset)" else "Set: " .. preset, color = if preset == "" then UI.RED else UI.BLUE, onClick = function() Preferences.set("jb_carrier", preset); applyAllVisualTweaks(scr) end, }) end end, }, { id = "springtomize", name = "Springtomize 6", subtitle = "Hide icon labels, clear Dock & screen corner radius", version = "6.1.0", author = "SharedRoutine", repo = "Packix", category = "HomeScreen", tile = { Color3.fromRGB(255, 149, 0), Color3.fromRGB(205, 65, 20), "🛠" }, description = "Full SpringBoard customization: hide labels under icons, make the Dock background transparent, and adjust Launcher corner radius (`setCorner`).", configUI = function(parent) local sec = parent:Section("SpringBoard Tweaks") sec:Toggle({ title = "Hide Icon Labels", value = Preferences.get("jb_nolabels") == true, onChange = function(v) Preferences.set("jb_nolabels", v); applyAllVisualTweaks(scr) end, }) sec:Toggle({ title = "Clear Dock (Transparent Dock)", value = Preferences.get("jb_cleardock") == true, onChange = function(v) Preferences.set("jb_cleardock", v); applyAllVisualTweaks(scr) end, }) sec:Row({ title = "Screen Corner Radius (Launcher.setCorner)", value = tostring(Preferences.get("jb_corner") or 22) .. " px", color = UI.BLUE, onClick = function(lbl) local cur = Preferences.get("jb_corner") or 22 local nxt = if cur == 22 then 0 elseif cur == 0 then 48 else 22 Preferences.set("jb_corner", nxt) local l = findLauncherForScreen(scr) if l then l.setCorner(nxt) end if lbl then lbl.Text = tostring(nxt) .. " px" end end, }) end, }, { id = "jellyfish", name = "Jellyfish LockScreen", subtitle = "Custom clock color, unlock hint & Auto-Unlock", version = "1.6.4", author = "Justin Proulx", repo = "Dynastic", category = "LockScreen", tile = { Color3.fromRGB(255, 55, 95), Color3.fromRGB(160, 20, 75), "🔒" }, description = "Customize the AppleOS LockScreen: change the clock color, edit the unlock hint text, or toggle instant auto-unlock without swiping.", configUI = function(parent) local sec = parent:Section("LockScreen Configuration") sec:Toggle({ title = "Auto-Unlock (Skip LockScreen)", value = Preferences.get("jb_autounlock") == true, onChange = function(v) Preferences.set("jb_autounlock", v); Preferences.set("lock", not v) end, }) sec:Input({ placeholder = "Lock screen hint text...", text = Preferences.get("jb_lockhint") or "", buttonText = "Save", onSubmit = function(txt) Preferences.set("jb_lockhint", txt); applyAllVisualTweaks(scr) end, }) sec:Row({ title = "Set LockScreen Clock Color (Mint Cyan)", color = UI.BLUE, onClick = function() Preferences.set("jb_lockcolor", Color3.fromRGB(115, 245, 210)); applyAllVisualTweaks(scr) end, }) sec:Row({ title = "Reset LockScreen Defaults", color = UI.RED, onClick = function() Preferences.set("jb_lockhint", ""); Preferences.set("jb_lockcolor", nil); applyAllVisualTweaks(scr) end, }) end, }, { id = "iphone18unlock", name = "iPhone 18 Feature Unlocker", subtitle = "Unlock exclusive Wallpaper & 15× Camera Zoom", version = "1.0.0", author = "ElleKit Team", repo = "ElleKit", category = "System", tile = { Color3.fromRGB(220, 35, 65), Color3.fromRGB(100, 10, 30), "📷" }, description = "Applies the iPhone18CherryRed attribute to your held device tool to unlock exclusive wallpapers and 15× zoom in Settings > Camera.", configUI = function(parent) local sec = parent:Section("Hardware Spoof") sec:Button({ title = "Enable iPhone 18 Attribute", bold = true, onClick = function(btn) local tool = LocalPlayer.Character and LocalPlayer.Character:FindFirstChildOfClass("Tool") if tool then tool:SetAttribute("iPhone18CherryRed", true); btn.Text = "Enabled ✓" end end, }) end, }, } local iconsDraw = { Featured = function(p) Glyphs.outline(p, 0, 0, 20, 24, 4, 2); p.line(-5, -5, 5, -5, 2); p.line(-5, 0, 5, 0, 2); p.line(-5, 5, 1, 5, 2) end, Sources = function(p) for _, j in ipairs({ -6, 0, 6 }) do p.line(-10, j, 0, j - 4, 2); p.line(0, j - 4, 10, j, 2); p.line(-10, j, 0, j + 4, 2); p.line(0, j + 4, 10, j, 2) end end, Packages = function(p) Glyphs.outline(p, 0, 1, 24, 18, 5, 2); p.line(-10, -3, 10, -3, 2); p.line(0, -8, 0, 10, 2) end, Search = function(p) Glyphs.arc(p, -2, -2, 7.5, 0, 360, 2.4); p.line(3.5, 3.5, 10, 10, 2.6) end, Back = function(p) p.line(3, -9, -5, 0, 2.8); p.line(-5, 0, 3, 9, 2.8) end, } local function sketch(parent, x, y, sz, color, fn, bg) local f = UI.make("Frame", { BackgroundTransparency = 1, AnchorPoint = Vector2.new(0.5, 0.5), Position = UDim2.fromOffset(x, y), Size = UDim2.fromOffset(30, 30), Parent = parent }, { UI.make("UIScale", { Scale = sz / 30 }) }) fn(Glyphs.pen(f, bg or UI.WHITE, color)) return f end local pagesMap, tabButtons = {}, {} local openDetail local function makeTabPage(name) local sc = UI.make("ScrollingFrame", { Name = name, Visible = false, ScrollBarThickness = 4, AutomaticCanvasSize = Enum.AutomaticSize.Y, BackgroundColor3 = UI.WHITE, CanvasSize = UDim2.new(), ScrollBarImageColor3 = SUB, ScrollingDirection = Enum.ScrollingDirection.Y, Size = UDim2.fromOffset(size.X, scrollH), Parent = frame, }, { UI.make("UIPadding", { PaddingBottom = UDim.new(0, 40) }) }) pagesMap[name] = sc return sc end local function addAppStoreHeader(parent, titleStr, captionStr) local y = topPad + 18 if captionStr then UI.text({ Text = captionStr, TextSize = 15, FontFace = UI.font(Enum.FontWeight.Bold), TextColor3 = SUB, Position = UDim2.fromOffset(padX, y), Size = UDim2.fromOffset(600, 20), Parent = parent }) y += 20 end UI.text({ Text = titleStr, TextSize = 40, FontFace = UI.font(Enum.FontWeight.Bold), TextColor3 = INK, Position = UDim2.fromOffset(padX, y), Size = UDim2.fromOffset(600, 50), Parent = parent }) if LocalPlayer then UI.make("ImageLabel", { Image = UI.headshot(LocalPlayer.UserId), AnchorPoint = Vector2.new(1, 0), BackgroundColor3 = UI.FILL, Position = UDim2.new(1, -padX, 0, y + 3), Size = UDim2.fromOffset(44, 44), Parent = parent }, { UI.round() }) end return y + 66 end local function drawPackageRow(parent, pkg, x, y, w, rank, backTab) local row = UI.make("TextButton", { Text = "", AutoButtonColor = false, BackgroundTransparency = 1, Position = UDim2.fromOffset(x, y), Size = UDim2.fromOffset(w, 96), Parent = parent }) local icon = UI.make("ImageLabel", { AnchorPoint = Vector2.new(0, 0.5), BackgroundColor3 = UI.FILL, Position = UDim2.new(0, 0, 0.5, 0), Size = UDim2.fromOffset(70, 70), Parent = row }, { UI.corner(16), UI.make("UIStroke", { Thickness = 1, Transparency = 0.3, Color = LINE }) }) icon:SetAttribute("ThemeKeep", true) AppIcon.apply(icon, { name = pkg.name, icon = "", tile = pkg.tile }) local tx = 86 if rank then UI.text({ Text = tostring(rank), TextSize = 18, FontFace = UI.font(Enum.FontWeight.Bold), TextColor3 = INK, AnchorPoint = Vector2.new(0, 0.5), Position = UDim2.new(0, tx, 0.5, 0), Size = UDim2.fromOffset(24, 24), Parent = row }) tx += 30 end UI.text({ Text = pkg.name, TextSize = 18, FontFace = UI.font(Enum.FontWeight.Medium), TextColor3 = INK, TextTruncate = Enum.TextTruncate.AtEnd, Position = UDim2.new(0, tx, 0.5, -24), Size = UDim2.new(1, -tx - 96, 0, 24), Parent = row }) UI.text({ Text = pkg.subtitle, TextSize = 14, TextColor3 = SUB, TextTruncate = Enum.TextTruncate.AtEnd, Position = UDim2.new(0, tx, 0.5, 2), Size = UDim2.new(1, -tx - 96, 0, 20), Parent = row }) UI.make("Frame", { BackgroundColor3 = LINE, Position = UDim2.new(0, tx, 1, -1), Size = UDim2.new(1, -tx, 0, 1), Parent = row }) local pill = UI.make("TextButton", { Text = "OPEN", TextSize = 15, FontFace = UI.font(Enum.FontWeight.Bold), TextColor3 = UI.BLUE, BackgroundColor3 = FILL, AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, 0, 0.5, 0), Size = UDim2.fromOffset(78, 32), Parent = row }, { UI.round() }) row.Activated:Connect(function() openDetail(pkg, backTab) end) pill.Activated:Connect(function() openDetail(pkg, backTab) end) end local Featured = makeTabPage("Featured") local fy = addAppStoreHeader(Featured, "Featured", "SILEO • ELLEKIT 2.0 • " .. string.upper(os.date("%A, %b %d"))) local featW = if isPhone then size.X - padX * 2 else math.floor((size.X - padX * 2 - 28) * 0.62) local featH = if isPhone then 252 else 360 local featCard = UI.make("ImageButton", { AutoButtonColor = false, BackgroundColor3 = Color3.fromRGB(22, 32, 54), Position = UDim2.fromOffset(padX, fy), Size = UDim2.fromOffset(featW, featH), Parent = Featured }, { UI.corner(24) }) featCard:SetAttribute("ThemeKeep", true) UI.make("UIGradient", { Rotation = 45, Color = ColorSequence.new(Color3.fromRGB(28, 95, 195), Color3.fromRGB(16, 22, 46)), Parent = featCard }) UI.text({ Text = "TWEAK SPOTLIGHT", TextSize = 14, FontFace = UI.font(Enum.FontWeight.Bold), TextColor3 = Color3.fromRGB(165, 220, 255), Position = UDim2.fromOffset(26, 24), Size = UDim2.new(1, -52, 0, 20), Parent = featCard }):SetAttribute("ThemeKeep", true) UI.text({ Text = "Cylinder Reborn\n50 Page Transitions", TextSize = if isPhone then 28 else 34, TextWrapped = true, FontFace = UI.font(Enum.FontWeight.Bold), TextColor3 = UI.WHITE, Position = UDim2.fromOffset(26, 50), Size = UDim2.new(0.85, 0, 0, 100), Parent = featCard }):SetAttribute("ThemeKeep", true) local featBottom = UI.make("Frame", { BackgroundTransparency = 1, Position = UDim2.new(0, 26, 1, -90), Size = UDim2.new(1, -52, 0, 66), Parent = featCard }) local fi = UI.make("ImageLabel", { Size = UDim2.fromOffset(64, 64), Parent = featBottom }, { UI.corner(15) }) fi:SetAttribute("ThemeKeep", true) AppIcon.apply(fi, { name = PACKAGES[1].name, icon = "", tile = PACKAGES[1].tile }) UI.text({ Text = PACKAGES[1].name, TextSize = 18, FontFace = UI.font(Enum.FontWeight.Bold), TextColor3 = UI.WHITE, Position = UDim2.fromOffset(80, 10), Size = UDim2.new(1, -180, 0, 24), Parent = featBottom }):SetAttribute("ThemeKeep", true) UI.text({ Text = "60FPS SpringBoard Engine", TextSize = 14, TextColor3 = Color3.fromRGB(200, 215, 240), Position = UDim2.fromOffset(80, 36), Size = UDim2.new(1, -180, 0, 20), Parent = featBottom }):SetAttribute("ThemeKeep", true) local fBtn = UI.make("TextButton", { Text = "OPEN", TextSize = 15, FontFace = UI.font(Enum.FontWeight.Bold), TextColor3 = UI.BLUE, BackgroundColor3 = UI.WHITE, AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, 0, 0.5, 0), Size = UDim2.fromOffset(84, 34), Parent = featBottom }, { UI.round() }) fBtn:SetAttribute("ThemeKeep", true) featCard.Activated:Connect(function() openDetail(PACKAGES[1], "Featured") end) fBtn.Activated:Connect(function() openDetail(PACKAGES[1], "Featured") end) if not isPhone then local sideW = size.X - padX * 2 - 28 - featW local sideCard = UI.make("ImageButton", { AutoButtonColor = false, BackgroundColor3 = FILL, Position = UDim2.fromOffset(padX + featW + 28, fy), Size = UDim2.fromOffset(sideW, featH), Parent = Featured }, { UI.corner(24) }) UI.text({ Text = "TWEAK\nOF THE\nDAY", TextSize = 38, LineHeight = 0.92, FontFace = UI.font(Enum.FontWeight.Heavy), TextColor3 = UI.BLUE, Position = UDim2.fromOffset(24, 24), Size = UDim2.new(1, -48, 0, 120), Parent = sideCard }) local si = UI.make("ImageLabel", { AnchorPoint = Vector2.new(0.5, 0.5), Position = UDim2.new(0.5, 0, 0.55, 10), Size = UDim2.fromOffset(115, 115), Parent = sideCard }, { UI.corner(28) }) si:SetAttribute("ThemeKeep", true) AppIcon.apply(si, { name = PACKAGES[2].name, icon = "", tile = PACKAGES[2].tile }) UI.text({ Text = PACKAGES[2].name, TextSize = 18, FontFace = UI.font(Enum.FontWeight.Bold), TextColor3 = INK, AnchorPoint = Vector2.new(0, 1), Position = UDim2.new(0, 24, 1, -24), Size = UDim2.new(1, -48, 0, 24), Parent = sideCard }) sideCard.Activated:Connect(function() openDetail(PACKAGES[2], "Featured") end) end local gy = fy + featH + 34 UI.text({ Text = "Essential Tweaks", TextSize = 24, FontFace = UI.font(Enum.FontWeight.Bold), TextColor3 = INK, Position = UDim2.fromOffset(padX, gy), Size = UDim2.fromOffset(500, 30), Parent = Featured }) local cols = if isPhone then 1 else 2 local colW = (size.X - padX * 2 - (cols - 1) * 28) / cols for idx, pkg in ipairs(PACKAGES) do local cx = padX + ((idx - 1) % cols) * (colW + 28) local cy = gy + 42 + math.floor((idx - 1) / cols) * 96 drawPackageRow(Featured, pkg, cx, cy, colW, idx, "Featured") end local Sources = makeTabPage("Sources") local sy = addAppStoreHeader(Sources, "Sources", "APT REPOSITORIES") local repos = { { name = "Chariz", url = "https://repo.chariz.com", desc = "Cylinder Reborn, NewTerm, Premium Tweaks", tile = { Color3.fromRGB(255, 85, 85), Color3.fromRGB(190, 30, 50), "C" } }, { name = "Havoc", url = "https://havoc.app", desc = "Spectrum Theme Engine & Modern UI Tweaks", tile = { Color3.fromRGB(165, 80, 245), Color3.fromRGB(95, 35, 175), "H" } }, { name = "ElleKit Official", url = "https://ellekit.space", desc = "Rootless Tweak Injection & SpringBoard Hooks", tile = { Color3.fromRGB(28, 175, 132), Color3.fromRGB(14, 78, 95), "E" } }, { name = "Procursus", url = "https://apt.procurs.us", desc = "Core Unix Tools, CoreTrust & System Binaries", tile = { Color3.fromRGB(60, 65, 80), Color3.fromRGB(25, 28, 36), "P" } }, } for i, r in ipairs(repos) do local card = UI.make("Frame", { BackgroundColor3 = FILL, Position = UDim2.fromOffset(padX, sy + (i - 1) * 96), Size = UDim2.new(1, -padX * 2, 0, 82), Parent = Sources }, { UI.corner(18) }) local ri = UI.make("ImageLabel", { AnchorPoint = Vector2.new(0, 0.5), Position = UDim2.new(0, 16, 0.5, 0), Size = UDim2.fromOffset(54, 54), Parent = card }, { UI.corner(13) }) ri:SetAttribute("ThemeKeep", true) AppIcon.apply(ri, { name = r.name, icon = "", tile = r.tile }) UI.text({ Text = r.name, TextSize = 19, FontFace = UI.font(Enum.FontWeight.Bold), TextColor3 = INK, Position = UDim2.fromOffset(84, 14), Size = UDim2.new(1, -100, 0, 24), Parent = card }) UI.text({ Text = r.url .. " • " .. r.desc, TextSize = 13, TextColor3 = SUB, TextTruncate = Enum.TextTruncate.AtEnd, Position = UDim2.fromOffset(84, 42), Size = UDim2.new(1, -100, 0, 20), Parent = card }) end local Packages = makeTabPage("Packages") local py = addAppStoreHeader(Packages, "Packages", "INSTALLED & AVAILABLE") for idx, pkg in ipairs(PACKAGES) do drawPackageRow(Packages, pkg, padX, py + (idx - 1) * 96, size.X - padX * 2, nil, "Packages") end local Search = makeTabPage("Search") local shy = addAppStoreHeader(Search, "Search") local searchBoxWrap = UI.make("Frame", { BackgroundColor3 = FILL, Position = UDim2.fromOffset(padX, shy), Size = UDim2.new(1, -padX * 2, 0, 46), Parent = Search }, { UI.corner(12) }) sketch(searchBoxWrap, 24, 23, 24, SUB, iconsDraw.Search, FILL) local searchBox = UI.make("TextBox", { Text = "", PlaceholderText = "Tweaks, Themes, Cylinder, Repos...", ClearTextOnFocus = false, BackgroundTransparency = 1, TextSize = 18, PlaceholderColor3 = SUB, FontFace = UI.font(), TextColor3 = INK, TextXAlignment = Enum.TextXAlignment.Left, Position = UDim2.fromOffset(46, 0), Size = UDim2.new(1, -60, 1, 0), Parent = searchBoxWrap, }) local searchResults = UI.make("Frame", { BackgroundTransparency = 1, Position = UDim2.fromOffset(0, shy + 64), Size = UDim2.new(1, 0, 0, 700), Parent = Search }) local function renderSearch() for _, c in ipairs(searchResults:GetChildren()) do c:Destroy() end local q = string.lower(searchBox.Text) if q == "" then UI.text({ Text = "Discover", TextSize = 24, FontFace = UI.font(Enum.FontWeight.Bold), TextColor3 = INK, Position = UDim2.fromOffset(padX, 0), Size = UDim2.fromOffset(300, 30), Parent = searchResults }) for i, pkg in ipairs(PACKAGES) do local btn = UI.make("TextButton", { AutoButtonColor = false, BackgroundTransparency = 1, TextSize = 20, Text = string.lower(pkg.name), FontFace = UI.font(), TextColor3 = UI.BLUE, TextXAlignment = Enum.TextXAlignment.Left, Position = UDim2.fromOffset(padX, 40 + (i - 1) * 46), Size = UDim2.new(0.6, -padX, 0, 44), Parent = searchResults, }) UI.make("Frame", { BackgroundColor3 = LINE, Position = UDim2.new(0, 0, 1, -1), Size = UDim2.new(1, 0, 0, 1), Parent = btn }) btn.Activated:Connect(function() searchBox.Text = pkg.name end) end return end local matches = {} for _, pkg in ipairs(PACKAGES) do if string.find(string.lower(pkg.name .. " " .. pkg.subtitle .. " " .. pkg.category), q, 1, true) then table.insert(matches, pkg) end end if #matches == 0 then UI.text({ Text = "No Results", TextSize = 22, FontFace = UI.font(Enum.FontWeight.Bold), TextColor3 = SUB, TextXAlignment = Enum.TextXAlignment.Center, Position = UDim2.fromOffset(0, 100), Size = UDim2.new(1, 0, 0, 30), Parent = searchResults }) return end for i, pkg in ipairs(matches) do drawPackageRow(searchResults, pkg, padX, (i - 1) * 96, size.X - padX * 2, nil, "Search") end end searchBox:GetPropertyChangedSignal("Text"):Connect(renderSearch) renderSearch() local Detail = UI.make("ScrollingFrame", { Name = "Detail", Visible = false, ZIndex = 2, ScrollBarThickness = 4, AutomaticCanvasSize = Enum.AutomaticSize.Y, BackgroundColor3 = UI.WHITE, CanvasSize = UDim2.new(), ScrollBarImageColor3 = SUB, Size = UDim2.fromOffset(size.X, scrollH), Parent = frame, }, { UI.make("UIPadding", { PaddingBottom = UDim.new(0, 40) }) }) local function closeDetail() Detail.Visible = false for _, c in ipairs(Detail:GetChildren()) do if c:IsA("GuiObject") then c:Destroy() end end end openDetail = function(pkg, backTab) closeDetail() Detail.CanvasPosition = Vector2.zero local backBtn = UI.make("TextButton", { AutoButtonColor = false, BackgroundTransparency = 1, Text = backTab or "Back", TextSize = 19, FontFace = UI.font(), TextColor3 = UI.BLUE, TextXAlignment = Enum.TextXAlignment.Left, Position = UDim2.fromOffset(padX + 8, topPad + 8), Size = UDim2.fromOffset(200, 34), Parent = Detail, }) sketch(backBtn, -10, 17, 22, UI.BLUE, iconsDraw.Back) backBtn.Activated:Connect(closeDetail) local hy = topPad + 60 local iconSz = if isPhone then 110 else 140 local dIcon = UI.make("ImageLabel", { Position = UDim2.fromOffset(padX, hy), Size = UDim2.fromOffset(iconSz, iconSz), Parent = Detail }, { UI.corner(32), UI.make("UIStroke", { Thickness = 1, Transparency = 0.3, Color = LINE }) }) dIcon:SetAttribute("ThemeKeep", true) AppIcon.apply(dIcon, { name = pkg.name, icon = "", tile = pkg.tile }) local tx = padX + iconSz + 22 UI.text({ Text = pkg.name, TextSize = if isPhone then 26 else 32, FontFace = UI.font(Enum.FontWeight.Bold), TextColor3 = INK, TextTruncate = Enum.TextTruncate.AtEnd, Position = UDim2.fromOffset(tx, hy + 4), Size = UDim2.new(1, -tx - padX, 0, 40), Parent = Detail }) UI.text({ Text = pkg.subtitle, TextSize = 17, TextColor3 = SUB, TextTruncate = Enum.TextTruncate.AtEnd, Position = UDim2.fromOffset(tx, hy + 46), Size = UDim2.new(1, -tx - padX, 0, 24), Parent = Detail }) local instBtn = UI.make("TextButton", { Text = "INSTALLED", TextSize = 15, FontFace = UI.font(Enum.FontWeight.Bold), TextColor3 = UI.WHITE, BackgroundColor3 = UI.BLUE, Position = UDim2.fromOffset(tx, hy + iconSz - 36), Size = UDim2.fromOffset(124, 34), Parent = Detail, }, { UI.round() }) instBtn:SetAttribute("ThemeKeep", true) instBtn.Activated:Connect(function() instBtn.Visible = false local ringBox = UI.make("Frame", { BackgroundTransparency = 1, Position = instBtn.Position, Size = UDim2.fromOffset(34, 34), Parent = Detail }) local r = Ring(ringBox, 34, 3, UI.BLUE, LINE) task.spawn(function() for s = 0, 1, 0.1 do r(s); task.wait(0.03) end ringBox:Destroy(); instBtn.Text = "RE-INSTALLED ✓"; instBtn.Visible = true end) end) local my = hy + iconSz + 26 UI.make("Frame", { BackgroundColor3 = LINE, Position = UDim2.fromOffset(padX, my), Size = UDim2.new(1, -padX * 2, 0, 1), Parent = Detail }) local colsMeta = { { "VERSION", pkg.version, "Release" }, { "CATEGORY", pkg.category, "Tweak" }, { "REPO", pkg.repo, "APT Source" }, { "ACCESS", "ROOT", "ElleKit" }, } local cw = (size.X - padX * 2) / #colsMeta for m, cData in ipairs(colsMeta) do local cf = UI.make("Frame", { BackgroundTransparency = 1, Position = UDim2.fromOffset(padX + (m - 1) * cw, my + 12), Size = UDim2.fromOffset(cw, 78), Parent = Detail }) if m > 1 then UI.make("Frame", { BackgroundColor3 = LINE, Position = UDim2.fromOffset(0, 8), Size = UDim2.fromOffset(1, 56), Parent = cf }) end UI.text({ Text = cData[1], TextSize = 11, FontFace = UI.font(Enum.FontWeight.Bold), TextColor3 = SUB, TextXAlignment = Enum.TextXAlignment.Center, Size = UDim2.new(1, 0, 0, 16), Parent = cf }) UI.text({ Text = cData[2], TextSize = 20, FontFace = UI.font(Enum.FontWeight.Bold), TextColor3 = Color3.fromRGB(88, 88, 92), TextXAlignment = Enum.TextXAlignment.Center, Position = UDim2.fromOffset(0, 20), Size = UDim2.new(1, 0, 0, 26), Parent = cf }) UI.text({ Text = cData[3], TextSize = 13, TextColor3 = SUB, TextXAlignment = Enum.TextXAlignment.Center, Position = UDim2.fromOffset(0, 50), Size = UDim2.new(1, 0, 0, 18), Parent = cf }) end UI.make("Frame", { BackgroundColor3 = LINE, Position = UDim2.fromOffset(padX, my + 98), Size = UDim2.new(1, -padX * 2, 0, 1), Parent = Detail }) UI.text({ Text = pkg.description, TextSize = 16, TextWrapped = true, AutomaticSize = Enum.AutomaticSize.Y, TextColor3 = INK, Position = UDim2.fromOffset(padX, my + 116), Size = UDim2.new(1, -padX * 2, 0, 24), Parent = Detail, }) if pkg.configUI then local cfgContainer = UI.make("Frame", { BackgroundTransparency = 1, Position = UDim2.fromOffset(0, my + 185), AutomaticSize = Enum.AutomaticSize.Y, Size = UDim2.new(1, 0, 0, 0), Parent = Detail, }) local subPage = EK.Page(cfgContainer, size, { avatar = false, embedded = true }) pkg.configUI(subPage) end Detail.Visible = true end local tabBar = UI.make("Frame", { Name = "TabBar", ZIndex = 3, BackgroundColor3 = TAB_BG, Position = UDim2.fromOffset(if isPhone then 16 else 0, scrollH), Size = UDim2.fromOffset(size.X - (if isPhone then 32 else 0), tabH), Parent = frame, }) UI.make("Frame", { ZIndex = 3, BackgroundColor3 = LINE, Size = UDim2.new(1, 0, 0, 1), Parent = tabBar }) local tabDefs = { { key = "Featured" }, { key = "Sources" }, { key = "Packages" }, { key = "Search" } } local btnW = if isPhone then math.floor((size.X - 32) / #tabDefs) else 190 local startX = (size.X - (if isPhone then 32 else 0) - btnW * #tabDefs) / 2 local function selectTab(k) closeDetail() for name, pg in pairs(pagesMap) do pg.Visible = (name == k) end for name, pack in pairs(tabButtons) do local col = if name == k then UI.BLUE else SUB pack.lbl.TextColor3 = col for _, d in ipairs(pack.ico:GetDescendants()) do if d:IsA("Frame") and d.BackgroundTransparency < 1 and d.BackgroundColor3 ~= TAB_BG then d.BackgroundColor3 = col end end end end for i, t in ipairs(tabDefs) do local tb = UI.make("TextButton", { Text = "", AutoButtonColor = false, BackgroundTransparency = 1, ZIndex = 3, Position = UDim2.fromOffset(startX + (i - 1) * btnW, 0), Size = UDim2.fromOffset(btnW, 54), Parent = tabBar }) local ico = sketch(tb, btnW / 2 - 36, 27, 26, SUB, iconsDraw[t.key], TAB_BG) ico.ZIndex = 3 for _, d in ipairs(ico:GetDescendants()) do if d:IsA("GuiObject") then d.ZIndex = 3 end end local lbl = UI.text({ Text = t.key, TextSize = 15, ZIndex = 3, FontFace = UI.font(Enum.FontWeight.Medium), TextColor3 = SUB, Position = UDim2.fromOffset(btnW / 2 - 14, 17), Size = UDim2.fromOffset(100, 20), Parent = tb }) tabButtons[t.key] = { ico = ico, lbl = lbl } tb.Activated:Connect(function() selectTab(t.key) end) end selectTab("Featured") return { opened = function() selectTab("Featured") end, closed = function() searchBox:ReleaseFocus() end, destroy = function() end } end local SAMPLE_LUA_SYSINFO = [[return { Name = "SysMonitor", Version = "1.2.0", Source = "github.com/ellekit/sysmon", Subtitle = "Real-time iOS System Monitor", Tile = { Color3.fromRGB(45, 195, 155), Color3.fromRGB(18, 95, 115), "📊" }, Main = function(frame, size, EK, API) local page = EK.Page(frame, size, { title = "SysMonitor", subtitle = "ELLEKIT SDK • ROOT ACCESS" }) local lp = game:GetService("Players").LocalPlayer local bat = lp:GetAttribute("iPadBattery") or 100 local dev = if page.IsPhone then API.OS.Model.Phone.of(lp) else API.OS.Model.of(lp) page:HeroCard({ title = dev and (dev.modelName or dev.name) or "Apple Device", subtitle = string.format("Chip: %s • Battery: %d%%", dev and dev.chip or "Silicon", math.floor(bat)), tile = { Color3.fromRGB(45, 195, 155), Color3.fromRGB(18, 95, 115), "📊" }, button = { text = "Notify", onClick = function() API.Notify("SysMonitor", "Full System Access is active!", "SysMonitor") end, }, }) local sec = page:Section("System Tweaks (via TrollStore)", "Apps installed via TrollStore get direct system access.") sec:Toggle({ title = "Dark Mode", value = API.OS.Theme.dark(), onChange = function(v) API.SetDarkMode(v) end, }) sec:Row({ title = "Enable Cylinder #28 (Vortex)", color = API.OS.UI.BLUE, onClick = function() API.SetCylinder(28) EK.Alert("Cylinder", "Enabled Vortex Swirl (#28)!", {{ text = "Nice", bold = true }}) end, }) sec:Button({ title = "Respring SpringBoard", destructive = true, onClick = function() API.Respring() end }) return { opened = function() end, closed = function() end } end, }]] local SAMPLE_LUA_ISLAND = [[return { Name = "DynamicIsland", Version = "2.0.0", Source = "repo.trollstore.vn", Subtitle = "Live Floating Island HUD on Screen", Tile = { Color3.fromRGB(30, 32, 42), Color3.fromRGB(10, 10, 14), "🏝" }, Main = function(frame, size, EK, API) local page = EK.Page(frame, size, { title = "DynamicIsland", subtitle = "SCREEN OVERLAY TWEAK" }) local scr = API.GetScreen() local sec = page:Section("Dynamic Island HUD", "Overlays a live Dynamic Island directly onto the device Screen.") sec:Toggle({ title = "Show Dynamic Island on Screen", value = scr and scr:FindFirstChild("JBDynamicIsland") ~= nil, onChange = function(on) if not scr then return end local old = scr:FindFirstChild("JBDynamicIsland") if old then old:Destroy() end if on then local pill = API.OS.UI.make("TextButton", { Name = "JBDynamicIsland", Text = " TrollStore • ElleKit Active", TextSize = 15, FontFace = API.OS.UI.font(Enum.FontWeight.Bold), TextColor3 = Color3.new(1, 1, 1), BackgroundColor3 = Color3.new(0, 0, 0), AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 12), Size = UDim2.fromOffset(290, 34), ZIndex = 150, Parent = scr, }, { API.OS.UI.round() }) pill:SetAttribute("ThemeKeep", true) pill.Activated:Connect(function() API.Notify("Dynamic Island", "Tapped Dynamic Island!", "DynamicIsland") end) end end, }) return {} end, }]] local SAMPLE_LUA_BAD = [[return { Name = "BrokenApp", }]] CustomApps.TrollStore = function(frame, size) local isPhone = size.X < size.Y local topPad = if isPhone then 50 else 34 local padX = if isPhone then 20 else 44 local tabH = 74 local bottomPad = if isPhone then 30 else 0 local scrollH = size.Y - tabH - bottomPad local INK = Color3.fromRGB(0, 0, 0) local SUB = Color3.fromRGB(138, 138, 142) local LINE = Color3.fromRGB(216, 216, 220) local FILL = Color3.fromRGB(239, 239, 244) local TAB_BG = Color3.fromRGB(249, 249, 249) frame.BackgroundColor3 = UI.WHITE local scr = frame:FindFirstAncestor("Screen") local EK = buildElleKitUI(scr) local pagesMap, tabBtns = {}, {} local function makeTabPage(name) local sc = UI.make("ScrollingFrame", { Name = name, Visible = false, ScrollBarThickness = 4, AutomaticCanvasSize = Enum.AutomaticSize.Y, BackgroundColor3 = UI.WHITE, CanvasSize = UDim2.new(), ScrollBarImageColor3 = SUB, Size = UDim2.fromOffset(size.X, scrollH), Parent = frame, }, { UI.make("UIPadding", { PaddingBottom = UDim.new(0, 40) }) }) pagesMap[name] = sc return sc end local function addHeader(parent, titleStr, capStr) local y = topPad + 18 UI.text({ Text = capStr, TextSize = 15, FontFace = UI.font(Enum.FontWeight.Bold), TextColor3 = SUB, Position = UDim2.fromOffset(padX, y), Size = UDim2.fromOffset(600, 20), Parent = parent }) y += 20 UI.text({ Text = titleStr, TextSize = 40, FontFace = UI.font(Enum.FontWeight.Bold), TextColor3 = INK, Position = UDim2.fromOffset(padX, y), Size = UDim2.fromOffset(600, 50), Parent = parent }) if LocalPlayer then UI.make("ImageLabel", { Image = UI.headshot(LocalPlayer.UserId), AnchorPoint = Vector2.new(1, 0), BackgroundColor3 = UI.FILL, Position = UDim2.new(1, -padX, 0, y + 3), Size = UDim2.fromOffset(44, 44), Parent = parent }, { UI.round() }) end return y + 66 end local AppsPage = makeTabPage("Apps") local appsHeaderY = addHeader(AppsPage, "TrollStore", "CORETRUST • LUA SIDELOADER") local appsListHolder = UI.make("Frame", { BackgroundTransparency = 1, Position = UDim2.fromOffset(0, appsHeaderY), AutomaticSize = Enum.AutomaticSize.Y, Size = UDim2.new(1, 0, 0, 100), Parent = AppsPage }) local function refreshInstalledList() for _, c in ipairs(appsListHolder:GetChildren()) do c:Destroy() end local count = 0 for appName, info in pairs(TrollInstalled) do local y = count * 96 count += 1 local row = UI.make("Frame", { BackgroundTransparency = 1, Position = UDim2.fromOffset(padX, y), Size = UDim2.new(1, -padX * 2, 0, 96), Parent = appsListHolder }) local ic = UI.make("ImageLabel", { AnchorPoint = Vector2.new(0, 0.5), Position = UDim2.new(0, 0, 0.5, 0), Size = UDim2.fromOffset(68, 68), Parent = row }, { UI.corner(16) }) ic:SetAttribute("ThemeKeep", true) AppIcon.apply(ic, info.meta) UI.text({ Text = appName, TextSize = 18, FontFace = UI.font(Enum.FontWeight.Bold), TextColor3 = INK, Position = UDim2.fromOffset(84, 22), Size = UDim2.new(1, -260, 0, 24), Parent = row }) UI.text({ Text = string.format("v%s • %s", info.manifest.Version, info.manifest.Source), TextSize = 13, TextColor3 = SUB, TextTruncate = Enum.TextTruncate.AtEnd, Position = UDim2.fromOffset(84, 48), Size = UDim2.new(1, -260, 0, 20), Parent = row }) local openBtn = UI.make("TextButton", { Text = "OPEN", TextSize = 14, FontFace = UI.font(Enum.FontWeight.Bold), TextColor3 = UI.BLUE, BackgroundColor3 = FILL, AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, -86, 0.5, 0), Size = UDim2.fromOffset(74, 32), Parent = row }, { UI.round() }) openBtn.Activated:Connect(function() local l = findLauncherForScreen(scr) if l then l.close() task.delay(0.38, function() l.open(info.meta, Vector2.new(size.X / 2, size.Y / 2)) end) end end) local delBtn = UI.make("TextButton", { Text = "Remove", TextSize = 13, FontFace = UI.font(Enum.FontWeight.Bold), TextColor3 = UI.WHITE, BackgroundColor3 = UI.RED, AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, 0, 0.5, 0), Size = UDim2.fromOffset(76, 32), Parent = row }, { UI.round() }) delBtn:SetAttribute("ThemeKeep", true) delBtn.Activated:Connect(function() removeAppFromLiveHome(scr, findLauncherForScreen(scr), appName); refreshInstalledList() end) UI.make("Frame", { BackgroundColor3 = LINE, Position = UDim2.new(0, 84, 1, -1), Size = UDim2.new(1, -84, 0, 1), Parent = row }) end if count == 0 then local empty = UI.make("Frame", { BackgroundColor3 = FILL, Position = UDim2.fromOffset(padX, 0), Size = UDim2.new(1, -padX * 2, 0, 130), Parent = appsListHolder }, { UI.corner(18) }) UI.text({ Text = "No .lua apps installed yet.\nSwitch to 'Install .lua' to paste code or load a built-in sample!", TextSize = 16, TextWrapped = true, TextColor3 = SUB, TextXAlignment = Enum.TextXAlignment.Center, Size = UDim2.fromScale(1, 1), Parent = empty }) end end local InstallPage = makeTabPage("Install") local iy = addHeader(InstallPage, "Install .lua", "CORETRUST • API VALIDATOR") local sampleRow = UI.make("Frame", { BackgroundTransparency = 1, Position = UDim2.fromOffset(padX, iy), Size = UDim2.new(1, -padX * 2, 0, 36), Parent = InstallPage }, { UI.make("UIListLayout", { FillDirection = Enum.FillDirection.Horizontal, Padding = UDim.new(0, 8) }) }) local codeScroll = UI.make("ScrollingFrame", { BackgroundColor3 = Color3.fromRGB(20, 22, 28), ScrollBarThickness = 5, AutomaticCanvasSize = Enum.AutomaticSize.Y, CanvasSize = UDim2.new(), Position = UDim2.fromOffset(padX, iy + 46), Size = UDim2.new(1, -padX * 2, 0, 240), Parent = InstallPage, }, { UI.corner(16), UI.padding(12, 14) }) codeScroll:SetAttribute("ThemeKeep", true) local codeBox = UI.make("TextBox", { MultiLine = true, ClearTextOnFocus = false, TextWrapped = true, Text = SAMPLE_LUA_SYSINFO, PlaceholderText = "Paste .lua Manifest code (Name, Version, Source, Main)...", PlaceholderColor3 = Color3.fromRGB(115, 120, 135), TextSize = 13, FontFace = UI.font(), TextColor3 = Color3.fromRGB(165, 245, 195), TextXAlignment = Enum.TextXAlignment.Left, TextYAlignment = Enum.TextYAlignment.Top, AutomaticSize = Enum.AutomaticSize.Y, BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), Parent = codeScroll, }) codeBox:SetAttribute("ThemeKeep", true) local function addSampleBtn(labelStr, codeSample) local b = UI.make("TextButton", { Text = labelStr, TextSize = 13, FontFace = UI.font(Enum.FontWeight.Bold), TextColor3 = UI.BLUE, BackgroundColor3 = FILL, AutomaticSize = Enum.AutomaticSize.X, Size = UDim2.fromOffset(0, 34), Parent = sampleRow }, { UI.round(), UI.padding(0, 14) }) b.Activated:Connect(function() codeBox.Text = codeSample end) end addSampleBtn("Sample: SysMonitor", SAMPLE_LUA_SYSINFO) addSampleBtn("Sample: Dynamic Island", SAMPLE_LUA_ISLAND) addSampleBtn("Test API Error", SAMPLE_LUA_BAD) local statusBanner = UI.text({ Text = "Required API: return { Name = '...', Version = '...', Source = '...', Main = fn }", TextSize = 14, TextWrapped = true, TextColor3 = SUB, Position = UDim2.fromOffset(padX, iy + 298), Size = UDim2.new(1, -padX * 2, 0, 42), Parent = InstallPage }) local installBtn = UI.make("TextButton", { Text = "Verify & Install (.lua)", TextSize = 17, FontFace = UI.font(Enum.FontWeight.Bold), TextColor3 = UI.WHITE, BackgroundColor3 = UI.BLUE, Position = UDim2.fromOffset(padX, iy + 350), Size = UDim2.new(1, -padX * 2, 0, 48), Parent = InstallPage }, { UI.round() }) installBtn:SetAttribute("ThemeKeep", true) local installing = false installBtn.Activated:Connect(function() if installing then return end local raw = codeBox.Text local ok, res = validateAndCompileTrollLua(raw) if not ok then statusBanner.TextColor3 = UI.RED statusBanner.Text = "Install rejected: " .. tostring(res) EK.Alert("TrollStore • Invalid API Manifest", tostring(res), { { text = "Close", bold = true } }) return end installing = true res._rawCode = raw installBtn.Visible = false statusBanner.TextColor3 = UI.BLUE statusBanner.Text = string.format("CoreTrust signing: %s v%s (%s)...", res.Name, res.Version, res.Source) local ringBox = UI.make("Frame", { BackgroundTransparency = 1, AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, iy + 354), Size = UDim2.fromOffset(40, 40), Parent = InstallPage }) local r = Ring(ringBox, 40, 3.5, UI.BLUE, LINE) task.spawn(function() for s = 0, 1, 0.08 do r(s); task.wait(0.03) end ringBox:Destroy() installValidatedManifest(res, scr, findLauncherForScreen(scr)) refreshInstalledList() statusBanner.TextColor3 = UI.GREEN statusBanner.Text = string.format("✓ Installed %s v%s to HomeScreen & Jiggle!", res.Name, res.Version) installBtn.Visible = true installing = false end) end) local DocsPage = makeTabPage("Docs") local dy = addHeader(DocsPage, "ElleKit SDK", "FULL SYSTEM & UI REFERENCE") local docWrap = UI.make("Frame", { BackgroundTransparency = 1, Position = UDim2.fromOffset(0, dy), AutomaticSize = Enum.AutomaticSize.Y, Size = UDim2.new(1, 0, 0, 0), Parent = DocsPage }) local docSub = EK.Page(docWrap, size, { avatar = false, embedded = true }) docSub:CodeBox(220, [[return { Name = "MyApp", Version = "1.0.0", Source = "repo.example", Subtitle = "Description", Tile = { Color1, Color2, "Emoji" }, Main = function(frame, size, EK, API) local p = EK.Page(frame, size, { title = "Hello" }) local sec = p:Section("System") sec:Button({ title = "Respring", onClick = API.Respring }) return { opened = function() end } end }]]) local apiSec = docSub:Section("Available EK & API Methods") apiSec:Row({ title = "EK.Page / HeroCard / Section", value = "iOS UI", chevron = false }) apiSec:Row({ title = "EK.Alert / Toggle / Input / Row", value = "Components", chevron = false }) apiSec:Row({ title = "API.SetCylinder / SetThemePreset", value = "SpringBoard", chevron = false }) apiSec:Row({ title = "API.SetCarrier / SetCorner / Respring", value = "Root Access", chevron = false }) apiSec:Row({ title = "API.OS (Config, UI, Theme, Shell...)", value = "Native iOS", chevron = false }) local tabBar = UI.make("Frame", { Name = "TabBar", ZIndex = 3, BackgroundColor3 = TAB_BG, Position = UDim2.fromOffset(if isPhone then 16 else 0, scrollH), Size = UDim2.fromOffset(size.X - (if isPhone then 32 else 0), tabH), Parent = frame }) UI.make("Frame", { ZIndex = 3, BackgroundColor3 = LINE, Size = UDim2.new(1, 0, 0, 1), Parent = tabBar }) local tsIcons = { Apps = function(p) for _, j in ipairs({ -6, 0, 6 }) do p.line(-10, j, 0, j - 4, 2); p.line(0, j - 4, 10, j, 2); p.line(-10, j, 0, j + 4, 2); p.line(0, j + 4, 10, j, 2) end end, Install = function(p) p.line(0, -9, 0, 9, 2.4); p.line(-9, 0, 9, 0, 2.4) end, Docs = function(p) Glyphs.outline(p, 0, 0, 20, 24, 4, 2); p.line(-5, -5, 5, -5, 2); p.line(-5, 0, 5, 0, 2); p.line(-5, 5, 1, 5, 2) end, } local function sketch(parent, x, y, sz, color, fn) local f = UI.make("Frame", { BackgroundTransparency = 1, AnchorPoint = Vector2.new(0.5, 0.5), Position = UDim2.fromOffset(x, y), Size = UDim2.fromOffset(30, 30), Parent = parent }, { UI.make("UIScale", { Scale = sz / 30 }) }) fn(Glyphs.pen(f, TAB_BG, color)) return f end local tDefs = { { key = "Apps", label = "Apps" }, { key = "Install", label = "Install .lua" }, { key = "Docs", label = "ElleKit SDK" } } local bw = if isPhone then math.floor((size.X - 32) / #tDefs) else 210 local sx = (size.X - (if isPhone then 32 else 0) - bw * #tDefs) / 2 local function selectTab(k) if k == "Apps" then refreshInstalledList() end for name, pg in pairs(pagesMap) do pg.Visible = (name == k) end for name, pack in pairs(tabBtns) do local col = if name == k then UI.BLUE else SUB pack.lbl.TextColor3 = col for _, d in ipairs(pack.ico:GetDescendants()) do if d:IsA("Frame") and d.BackgroundTransparency < 1 and d.BackgroundColor3 ~= TAB_BG then d.BackgroundColor3 = col end end end end for i, t in ipairs(tDefs) do local tb = UI.make("TextButton", { Text = "", AutoButtonColor = false, BackgroundTransparency = 1, ZIndex = 3, Position = UDim2.fromOffset(sx + (i - 1) * bw, 0), Size = UDim2.fromOffset(bw, 54), Parent = tabBar }) local ico = sketch(tb, bw / 2 - 42, 27, 26, SUB, tsIcons[t.key]) ico.ZIndex = 3 for _, d in ipairs(ico:GetDescendants()) do if d:IsA("GuiObject") then d.ZIndex = 3 end end local lbl = UI.text({ Text = t.label, TextSize = 15, ZIndex = 3, FontFace = UI.font(Enum.FontWeight.Medium), TextColor3 = SUB, Position = UDim2.fromOffset(bw / 2 - 20, 17), Size = UDim2.fromOffset(120, 20), Parent = tb }) tabBtns[t.key] = { ico = ico, lbl = lbl } tb.Activated:Connect(function() selectTab(t.key) end) end selectTab("Apps") return { opened = function() refreshInstalledList() end, closed = function() codeBox:ReleaseFocus() end, destroy = function() end } end CustomApps.Terminal = function(frame, size) local isPhone = size.X < size.Y local topPad = if isPhone then 56 else 44 frame.BackgroundColor3 = Color3.fromRGB(12, 14, 18) local outScroll = UI.make("ScrollingFrame", { BackgroundTransparency = 1, ScrollBarThickness = 4, AutomaticCanvasSize = Enum.AutomaticSize.Y, CanvasSize = UDim2.new(), Position = UDim2.fromOffset(14, topPad + 6), Size = UDim2.new(1, -28, 1, -(topPad + 114)), Parent = frame, }) local outText = UI.text({ Text = "NewTerm 3.0 — AppleOS 26.0.1 (root)\nType 'help' for available commands.\n", TextSize = if isPhone then 13 else 15, TextColor3 = Color3.fromRGB(140, 250, 180), TextWrapped = true, AutomaticSize = Enum.AutomaticSize.Y, TextYAlignment = Enum.TextYAlignment.Top, Size = UDim2.new(1, 0, 0, 0), Parent = outScroll, }) outText:SetAttribute("ThemeKeep", true) local function printLine(msg) outText.Text = outText.Text .. "\n" .. msg task.defer(function() outScroll.CanvasPosition = Vector2.new(0, math.max(0, outScroll.AbsoluteCanvasSize.Y)) end) end local quickBar = UI.make("ScrollingFrame", { BackgroundTransparency = 1, ScrollBarThickness = 0, ScrollingDirection = Enum.ScrollingDirection.X, AutomaticCanvasSize = Enum.AutomaticSize.X, CanvasSize = UDim2.new(), AnchorPoint = Vector2.new(0, 1), Position = UDim2.new(0, 14, 1, -64), Size = UDim2.new(1, -28, 0, 34), Parent = frame, }, { UI.make("UIListLayout", { FillDirection = Enum.FillDirection.Horizontal, Padding = UDim.new(0, 8) }) }) local cmdBox = UI.make("TextBox", { PlaceholderText = "root# enter command...", PlaceholderColor3 = Color3.fromRGB(110, 120, 130), Text = "", ClearTextOnFocus = false, TextSize = 15, FontFace = UI.font(), TextColor3 = UI.WHITE, BackgroundColor3 = Color3.fromRGB(28, 32, 42), AnchorPoint = Vector2.new(0, 1), Position = UDim2.new(0, 14, 1, -18), Size = UDim2.new(1, -108, 0, 38), Parent = frame, }, { UI.corner(10), UI.padding(0, 10) }) cmdBox:SetAttribute("ThemeKeep", true) local runBtn = UI.make("TextButton", { Text = "Run", TextSize = 15, FontFace = UI.font(Enum.FontWeight.Bold), TextColor3 = UI.WHITE, BackgroundColor3 = UI.BLUE, AnchorPoint = Vector2.new(1, 1), Position = UDim2.new(1, -14, 1, -18), Size = UDim2.fromOffset(80, 38), Parent = frame, }, { UI.corner(10) }) runBtn:SetAttribute("ThemeKeep", true) local function runCommand(raw) local cmd = string.gsub(raw, "^%s*(.-)%s*$", "%1") if cmd == "" then return end printLine("root# " .. cmd) local args = {} for w in string.gmatch(cmd, "%S+") do table.insert(args, w) end local op = string.lower(args[1] or "") local rest = string.sub(cmd, #op + 2) local scr = frame:FindFirstAncestor("Screen") if op == "help" then printLine("Commands: neofetch | cylinder <1-50|random|off> | carrier | theme | corner | notify | respring | clear") elseif op == "clear" then outText.Text = "" elseif op == "neofetch" then local dev = if isPhone then Model.Phone.of(LocalPlayer) else Model.of(LocalPlayer) local bat = LocalPlayer:GetAttribute("iPadBattery") or 100 local cid = Preferences.get("cyl_id") or 0 printLine(string.format(" .:' %s@AppleOS\n /'\\ __ OS: AppleOS 26.0.1 (Jailbroken)\n| |/ \\ Host: %s (%s)\n| | Battery: %d%%\n \\ / Cylinder: #%d (%s)\n '---' Theme: %s", LocalPlayer.Name, dev and (dev.modelName or dev.name) or "iDevice", dev and dev.chip or "Silicon", math.floor(if type(bat) == "number" then bat else 100), cid, if Preferences.get("cyl_random") then "Random" elseif cid == 0 then "Off" else (CYLINDER_EFFECTS[cid] and CYLINDER_EFFECTS[cid].name or ""), Preferences.get("jb_theme") or "Default iOS")) elseif op == "cylinder" then local a = string.lower(args[2] or "") if a == "random" then Preferences.set("cyl_random", true); printLine("[+] Cylinder -> Random") elseif a == "off" or a == "0" then Preferences.set("cyl_random", false); Preferences.set("cyl_id", 0); printLine("[+] Cylinder -> Off") else local n = tonumber(a) if n and CYLINDER_EFFECTS[n] then Preferences.set("cyl_random", false); Preferences.set("cyl_id", n); printLine("[+] Cylinder -> #" .. n .. " " .. CYLINDER_EFFECTS[n].name) else printLine("[!] cylinder <1-50|random|off>") end end elseif op == "carrier" then Preferences.set("jb_carrier", rest); applyAllVisualTweaks(scr); printLine("[+] Carrier: " .. rest) elseif op == "corner" then local n = tonumber(args[2]); local l = findLauncherForScreen(scr); if n and l then l.setCorner(n); printLine("[+] Corner -> " .. n) end elseif op == "theme" then local t = string.lower(args[2] or "") if t == "light" then Preferences.set("appearance", "Light") elseif t == "dark" then Preferences.set("appearance", "Dark") elseif t == "oled" then applyThemePreset("OLED Pure Black") elseif t == "dracula" then applyThemePreset("Dracula Purple") elseif t == "matrix" then applyThemePreset("Matrix Hacker") elseif t == "crimson" then applyThemePreset("Crimson Rose") end printLine("[+] Theme -> " .. t) elseif op == "notify" then Shell.notify("Terminal", if rest ~= "" then rest else "Root Shell", "app", nil, "Terminal") elseif op == "respring" then performRealRespring(scr, findLauncherForScreen(scr)) else printLine("zsh: command not found: " .. op) end end for _, q in ipairs({ "neofetch", "help", "cylinder 28", "cylinder random", "theme dracula", "respring", "clear" }) do local qb = UI.make("TextButton", { Text = q, TextSize = 13, FontFace = UI.font(Enum.FontWeight.Medium), TextColor3 = UI.WHITE, BackgroundColor3 = Color3.fromRGB(40, 44, 58), AutomaticSize = Enum.AutomaticSize.X, Size = UDim2.fromOffset(0, 30), Parent = quickBar, }, { UI.corner(8), UI.padding(0, 12) }) qb:SetAttribute("ThemeKeep", true) qb.Activated:Connect(function() runCommand(q) end) end runBtn.Activated:Connect(function() local t = cmdBox.Text; cmdBox.Text = ""; runCommand(t) end) cmdBox.FocusLost:Connect(function(e) if e then local t = cmdBox.Text; cmdBox.Text = ""; runCommand(t) end end) return { dark = true, opened = function() end, closed = function() cmdBox:ReleaseFocus() end, destroy = function() end } end local function hookLauncherInstance(launcherObj, screenFrame) if not launcherObj then return end _G.AppleOS_Launchers[screenFrame] = launcherObj if not launcherObj._origOpen then launcherObj._origOpen = launcherObj.open launcherObj.open = function(appData, pos, rect) if appData and _G.AppleOS_CustomApps[appData.name] and _G.AppleOS_EnsureCached then _G.AppleOS_EnsureCached(launcherObj, screenFrame, appData.name, false) end return launcherObj._origOpen(appData, pos, rect) end end end Launcher._origNew = Launcher._origNew or Launcher.new Launcher.new = function(parentScreen, opts) local obj = Launcher._origNew(parentScreen, opts) hookLauncherInstance(obj, parentScreen) task.defer(function() attachCylinderToScreen(parentScreen) applyAllVisualTweaks(parentScreen) end) return obj end local activeScreen = findActiveScreen() if activeScreen then local activeLauncher = findLauncherForScreen(activeScreen) local jiggleCtx = findJiggleContext(activeScreen) print(string.format("[AppleOS v4.1] Screen: %s | Launcher: %s | Jiggle: %s", if activeScreen then "OK" else "NIL", if activeLauncher then "OK" else "NIL", if jiggleCtx then "OK" else "NIL")) if activeLauncher then hookLauncherInstance(activeLauncher, activeScreen) ensureCached(activeLauncher, activeScreen, "Dopamine", true) if Preferences.get("jb_done") then ensureCached(activeLauncher, activeScreen, "Sileo", true) ensureCached(activeLauncher, activeScreen, "TrollStore", true) ensureCached(activeLauncher, activeScreen, "Terminal", true) end end injectAppIntoLiveHome(activeScreen, activeLauncher, APPS_META.Dopamine, true) if Preferences.get("jb_done") then injectAppIntoLiveHome(activeScreen, activeLauncher, APPS_META.Sileo, true) injectAppIntoLiveHome(activeScreen, activeLauncher, APPS_META.TrollStore, true) injectAppIntoLiveHome(activeScreen, activeLauncher, APPS_META.Terminal, false) end attachCylinderToScreen(activeScreen) applyAllVisualTweaks(activeScreen) else print("[AppleOS v4.1] Hooked Launcher/Jiggle for next iPad/iPhone open.") end