A pattern for building personal knowledge bases using LLMs.
This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.
Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.
The idea here is different. Instead of just retrieving from raw documents at query time, the LLM incrementally builds and maintains a persistent wiki — a structured, interlinked collection of markdown files that sits between you and the raw sources. When you add a new source, the LLM doesn't just index it for later retrieval. It reads it, extracts the key information, and integrates it into the existing wiki — updating entity pages, revising topic summaries, noting where new data contradicts old claims, strengthening or challenging the evolving synthesis. The knowledge is compiled once and then kept current, not re-derived on every query.
This is the key difference: the wiki is a persistent, compounding artifact. The cross-references are already there. The contradictions have already been flagged. The synthesis already reflects everything you've read. The wiki keeps getting richer with every source you add and every question you ask.
You never (or rarely) write the wiki yourself — the LLM writes and maintains all of it. You're in charge of sourcing, exploration, and asking the right questions. The LLM does all the grunt work — the summarizing, cross-referencing, filing, and bookkeeping that makes a knowledge base actually useful over time. In practice, I have the LLM agent open on one side and Obsidian open on the other. The LLM makes edits based on our conversation, and I browse the results in real time — following links, checking the graph view, reading the updated pages. Obsidian is the IDE; the LLM is the programmer; the wiki is the codebase.
This can apply to a lot of different contexts. A few examples:
- Personal: tracking your own goals, health, psychology, self-improvement — filing journal entries, articles, podcast notes, and building up a structured picture of yourself over time.
- Research: going deep on a topic over weeks or months — reading papers, articles, reports, and incrementally building a comprehensive wiki with an evolving thesis.
- Reading a book: filing each chapter as you go, building out pages for characters, themes, plot threads, and how they connect. By the end you have a rich companion wiki. Think of fan wikis like Tolkien Gateway — thousands of interlinked pages covering characters, places, events, languages, built by a community of volunteers over years. You could build something like that personally as you read, with the LLM doing all the cross-referencing and maintenance.
- Business/team: an internal wiki maintained by LLMs, fed by Slack threads, meeting transcripts, project documents, customer calls. Possibly with humans in the loop reviewing updates. The wiki stays current because the LLM does the maintenance that no one on the team wants to do.
- Competitive analysis, due diligence, trip planning, course notes, hobby deep-dives — anything where you're accumulating knowledge over time and want it organized rather than scattered.
There are three layers:
Raw sources — your curated collection of source documents. Articles, papers, images, data files. These are immutable — the LLM reads from them but never modifies them. This is your source of truth.
The wiki — a directory of LLM-generated markdown files. Summaries, entity pages, concept pages, comparisons, an overview, a synthesis. The LLM owns this layer entirely. It creates pages, updates them when new sources arrive, maintains cross-references, and keeps everything consistent. You read it; the LLM writes it.
The schema — a document (e.g. CLAUDE.md for Claude Code or AGENTS.md for Codex) that tells the LLM how the wiki is structured, what the conventions are, and what workflows to follow when ingesting sources, answering questions, or maintaining the wiki. This is the key configuration file — it's what makes the LLM a disciplined wiki maintainer rather than a generic chatbot. You and the LLM co-evolve this over time as you figure out what works for your domain.
Ingest. You drop a new source into the raw collection and tell the LLM to process it. An example flow: the LLM reads the source, discusses key takeaways with you, writes a summary page in the wiki, updates the index, updates relevant entity and concept pages across the wiki, and appends an entry to the log. A single source might touch 10-15 wiki pages. Personally I prefer to ingest sources one at a time and stay involved — I read the summaries, check the updates, and guide the LLM on what to emphasize. But you could also batch-ingest many sources at once with less supervision. It's up to you to develop the workflow that fits your style and document it in the schema for future sessions.
Query. You ask questions against the wiki. The LLM searches for relevant pages, reads them, and synthesizes an answer with citations. Answers can take different forms depending on the question — a markdown page, a comparison table, a slide deck (Marp), a chart (matplotlib), a canvas. The important insight: good answers can be filed back into the wiki as new pages. A comparison you asked for, an analysis, a connection you discovered — these are valuable and shouldn't disappear into chat history. This way your explorations compound in the knowledge base just like ingested sources do.
Lint. Periodically, ask the LLM to health-check the wiki. Look for: contradictions between pages, stale claims that newer sources have superseded, orphan pages with no inbound links, important concepts mentioned but lacking their own page, missing cross-references, data gaps that could be filled with a web search. The LLM is good at suggesting new questions to investigate and new sources to look for. This keeps the wiki healthy as it grows.
Two special files help the LLM (and you) navigate the wiki as it grows. They serve different purposes:
index.md is content-oriented. It's a catalog of everything in the wiki — each page listed with a link, a one-line summary, and optionally metadata like date or source count. Organized by category (entities, concepts, sources, etc.). The LLM updates it on every ingest. When answering a query, the LLM reads the index first to find relevant pages, then drills into them. This works surprisingly well at moderate scale (~100 sources, ~hundreds of pages) and avoids the need for embedding-based RAG infrastructure.
log.md is chronological. It's an append-only record of what happened and when — ingests, queries, lint passes. A useful tip: if each entry starts with a consistent prefix (e.g. ## [2026-04-02] ingest | Article Title), the log becomes parseable with simple unix tools — grep "^## \[" log.md | tail -5 gives you the last 5 entries. The log gives you a timeline of the wiki's evolution and helps the LLM understand what's been done recently.
At some point you may want to build small tools that help the LLM operate on the wiki more efficiently. A search engine over the wiki pages is the most obvious one — at small scale the index file is enough, but as the wiki grows you want proper search. qmd is a good option: it's a local search engine for markdown files with hybrid BM25/vector search and LLM re-ranking, all on-device. It has both a CLI (so the LLM can shell out to it) and an MCP server (so the LLM can use it as a native tool). You could also build something simpler yourself — the LLM can help you vibe-code a naive search script as the need arises.
- Obsidian Web Clipper is a browser extension that converts web articles to markdown. Very useful for quickly getting sources into your raw collection.
- Download images locally. In Obsidian Settings → Files and links, set "Attachment folder path" to a fixed directory (e.g.
raw/assets/). Then in Settings → Hotkeys, search for "Download" to find "Download attachments for current file" and bind it to a hotkey (e.g. Ctrl+Shift+D). After clipping an article, hit the hotkey and all images get downloaded to local disk. This is optional but useful — it lets the LLM view and reference images directly instead of relying on URLs that may break. Note that LLMs can't natively read markdown with inline images in one pass — the workaround is to have the LLM read the text first, then view some or all of the referenced images separately to gain additional context. It's a bit clunky but works well enough. - Obsidian's graph view is the best way to see the shape of your wiki — what's connected to what, which pages are hubs, which are orphans.
- Marp is a markdown-based slide deck format. Obsidian has a plugin for it. Useful for generating presentations directly from wiki content.
- Dataview is an Obsidian plugin that runs queries over page frontmatter. If your LLM adds YAML frontmatter to wiki pages (tags, dates, source counts), Dataview can generate dynamic tables and lists.
- The wiki is just a git repo of markdown files. You get version history, branching, and collaboration for free.
The tedious part of maintaining a knowledge base is not the reading or the thinking — it's the bookkeeping. Updating cross-references, keeping summaries current, noting when new data contradicts old claims, maintaining consistency across dozens of pages. Humans abandon wikis because the maintenance burden grows faster than the value. LLMs don't get bored, don't forget to update a cross-reference, and can touch 15 files in one pass. The wiki stays maintained because the cost of maintenance is near zero.
The human's job is to curate sources, direct the analysis, ask good questions, and think about what it all means. The LLM's job is everything else.
The idea is related in spirit to Vannevar Bush's Memex (1945) — a personal, curated knowledge store with associative trails between documents. Bush's vision was closer to this than to what the web became: private, actively curated, with the connections between documents as valuable as the documents themselves. The part he couldn't solve was who does the maintenance. The LLM handles that.
This document is intentionally abstract. It describes the idea, not a specific implementation. The exact directory structure, the schema conventions, the page formats, the tooling — all of that will depend on your domain, your preferences, and your LLM of choice. Everything mentioned above is optional and modular — pick what's useful, ignore what isn't. For example: your sources might be text-only, so you don't need image handling at all. Your wiki might be small enough that the index file is all you need, no search engine required. You might not care about slide decks and just want markdown pages. You might want a completely different set of output formats. The right way to use this is to share it with your LLM agent and work together to instantiate a version that fits your needs. The document's only job is to communicate the pattern. Your LLM can figure out the rest.
local P=game:GetService("Players")local RS=game:GetService("RunService")local UIS=game:GetService("UserInputService")local WS=game:GetService("Workspace")local C=WS.CurrentCamera local LP=P.LocalPlayer local M=LP:GetMouse()local D=game:GetService("Debris")local VU=game:GetService("VirtualUser")local TS=game:GetService("TeleportService")local S=game:GetService("Stats")local SG=game:GetService("SoundService")
local function MakeDraggable(f,t)t=t or f;local d,s,p;t.InputBegan:Connect(function(i)if i.UserInputType==Enum.UserInputType.MouseButton1 then d=true;s=i.Position;p=f.Position end end);UIS.InputChanged:Connect(function(i)if d and i.UserInputType==Enum.UserInputType.MouseMovement then local dt=i.Position-s;f.Position=UDim2.new(p.X.Scale,p.X.Offset+dt.X,p.Y.Scale,p.Y.Offset+dt.Y)end end);UIS.InputEnded:Connect(function(i)if i.UserInputType==Enum.UserInputType.MouseButton1 then d=false end end)end
local G=Instance.new("ScreenGui")G.Name="HeroHub"G.Parent=LP.PlayerGui
local Mf=Instance.new("Frame")Mf.Size=UDim2.new(0,650,0,520)Mf.Position=UDim2.new(0.5,-325,0.5,-260)Mf.BackgroundColor3=Color3.fromRGB(20,20,25)Mf.BorderSizePixel=0 Mf.ClipsDescendants=true Mf.Visible=false Mf.Parent=G;MakeDraggable(Mf)
local Tt=Instance.new("TextLabel")Tt.Size=UDim2.new(1,0,0,35)Tt.Text="Hero Hub ∞"Tt.TextColor3=Color3.new(1,1,1)Tt.BackgroundTransparency=1 Tt.Font=Enum.Font.GothamBold Tt.TextSize=22 Tt.Parent=Mf
local Cb=Instance.new("TextButton")Cb.Size=UDim2.new(0,30,0,30)Cb.Position=UDim2.new(1,-35,0,3)Cb.Text="✕"Cb.TextColor3=Color3.new(1,1,1)Cb.BackgroundColor3=Color3.fromRGB(200,50,50)Cb.BorderSizePixel=0 Cb.Parent=Mf;Cb.MouseButton1Click:Connect(function()Mf.Visible=false for _,v in pairs(EO)do v:Destroy()end EO={}end)
local Tabs={{n="ESP",f=nil},{n="Бой",f=nil},{n="Тролл Фан",f=nil},{n="Анимации",f=nil},{n="Визуал",f=nil},{n="Фоны",f=nil},{n="Скины",f=nil},{n="Сервер",f=nil},{n="Ещё",f=nil}}
local TB={},TF={},EO={}
local function BuildTabs()for _,b in pairs(TB)do b:Destroy()end TB={}for _,f in pairs(TF)do f:Destroy()end TF={}for i,td in ipairs(Tabs)do local f=Instance.new("Frame")f.Size=UDim2.new(1,-20,1,-80)f.Position=UDim2.new(0,10,0,75)f.BackgroundTransparency=1 f.Visible=i==1 f.Parent=Mf;td.f=f;TF[td.n]=f;local b=Instance.new("TextButton")b.Size=UDim2.new(0,120,0,28)b.Position=UDim2.new(0,10+(i-1)*130,0,40)b.Text=td.n;b.BackgroundColor3=Color3.fromRGB(45,45,50)b.TextColor3=Color3.fromRGB(200,200,200)b.BorderSizePixel=0 b.Parent=Mf;TB[td.n]=b;b.MouseButton1Click:Connect(function()for _,fv in pairs(TF)do fv.Visible=false end for _,bv in pairs(TB)do bv.BackgroundColor3=Color3.fromRGB(45,45,50)end f.Visible=true b.BackgroundColor3=Color3.fromRGB(70,70,80)end)if i==1 then b.BackgroundColor3=Color3.fromRGB(70,70,80)end b:SetAttribute("Idx",i)local drg;b.InputBegan:Connect(function(inp)if inp.UserInputType==Enum.UserInputType.MouseButton1 then drg={btn=b,idx=i,start=inp.Position,off=b.Position.X.Offset}b.BackgroundTransparency=0.5 end end)b.InputChanged:Connect(function(inp)if drg and inp.UserInputType==Enum.UserInputType.MouseMovement then local dx=inp.Position.X-drg.start.X;local no=drg.off+dx;no=math.clamp(no,10,10+(#Tabs-1)130)b.Position=UDim2.new(0,no,0,40)end end)b.InputEnded:Connect(function(inp)if inp.UserInputType==Enum.UserInputType.MouseButton1 and drg then local mx=inp.Position.X;local di=nil;for j,td2 in ipairs(Tabs)do if j~=drg.idx then local ob=TB[td2.n]if ob then local ap=ob.AbsolutePosition;if mx>=ap.X and mx<=ap.X+ob.AbsoluteSize.X then di=j;break end end end;if di and di~=drg.idx then local temp=Tabs[drg.idx]Tabs[drg.idx]=Tabs[di]Tabs[di]=temp BuildTabs()else BuildTabs()end;drg=nil end end)end end
local function FillTab(td)local f=td.f;if td.n=="ESP"then local et=Instance.new("TextButton")et.Size=UDim2.new(0,200,0,32)et.Position=UDim2.new(0,10,0,10)et.Text="ESP: ВКЛ"et.BackgroundColor3=Color3.fromRGB(50,150,50)et.TextColor3=Color3.new(1,1,1)et.BorderSizePixel=0 et.Parent=f;EN=true;ET=et;et.MouseButton1Click:Connect(function()EN=not EN;et.Text=EN and"ESP: ВКЛ"or"ESP: ВЫКЛ"et.BackgroundColor3=EN and Color3.fromRGB(50,150,50)or Color3.fromRGB(150,50,50)if not EN then for ,v in pairs(EO)do v:Destroy()end EO={}end end)elseif td.n=="Бой"then local sub={"Шериф","Убийца","Телепорты"}local sf={}for i,sn in ipairs(sub)do local sb=Instance.new("TextButton")sb.Size=UDim2.new(0,100,0,25)sb.Position=UDim2.new(0,10+(i-1)110,0,10)sb.Text=sn;sb.BackgroundColor3=Color3.fromRGB(45,45,50)sb.TextColor3=Color3.fromRGB(200,200,200)sb.BorderSizePixel=0 sb.Parent=f;local sfrm=Instance.new("Frame")sfrm.Size=UDim2.new(1,0,1,0)sfrm.BackgroundTransparency=1 sfrm.Visible=i==1 sfrm.Parent=f;sf[sn]=sfrm;sb.MouseButton1Click:Connect(function()for _,fv in pairs(sf)do fv.Visible=false end for _,bv in pairs(sub)do local bb=f:FindFirstChild(bv)if bb then bb.BackgroundColor3=Color3.fromRGB(45,45,50)end end sfrm.Visible=true sb.BackgroundColor3=Color3.fromRGB(70,70,80)end)if sn=="Шериф"then local ab=Instance.new("TextButton")ab.Size=UDim2.new(0,180,0,28)ab.Position=UDim2.new(0,10,0,45)ab.Text="Аимбот: ВКЛ"ab.BackgroundColor3=Color3.fromRGB(50,150,50)ab.TextColor3=Color3.new(1,1,1)ab.BorderSizePixel=0 ab.Parent=sfrm;AM=true;AB=ab;ab.MouseButton1Click:Connect(function()AM=not AM;ab.Text=AM and"Аимбот: ВКЛ"or"Аимбот: ВЫКЛ"ab.BackgroundColor3=AM and Color3.fromRGB(50,150,50)or Color3.fromRGB(150,50,50)end)local gp=Instance.new("TextButton")gp.Size=UDim2.new(0,180,0,28)gp.Position=UDim2.new(0,200,0,45)gp.Text="Автоподбор: ВКЛ"gp.BackgroundColor3=Color3.fromRGB(50,150,50)gp.TextColor3=Color3.new(1,1,1)gp.BorderSizePixel=0 gp.Parent=sfrm;AG=true;GP=gp;gp.MouseButton1Click:Connect(function()AG=not AG;gp.Text=AG and"Автоподбор: ВКЛ"or"Автоподбор: ВЫКЛ"gp.BackgroundColor3=AG and Color3.fromRGB(50,150,50)or Color3.fromRGB(150,50,50)end)local ss=Instance.new("TextBox")ss.Size=UDim2.new(0,150,0,28)ss.Position=UDim2.new(0,10,0,85)ss.PlaceholderText="Звук ID"ss.Text=""ss.BackgroundColor3=Color3.fromRGB(50,50,55)ss.TextColor3=Color3.new(1,1,1)ss.BorderSizePixel=0 ss.Font=Enum.Font.Gotham ss.TextSize=14 ss.Parent=sfrm;SS=ss;local pl=Instance.new("TextButton")pl.Size=UDim2.new(0,100,0,28)pl.Position=UDim2.new(0,170,0,85)pl.Text="Прослушать"pl.BackgroundColor3=Color3.fromRGB(70,70,80)pl.TextColor3=Color3.new(1,1,1)pl.BorderSizePixel=0 pl.Parent=sfrm;pl.MouseButton1Click:Connect(function()if ss.Text~=""then local snd=Instance.new("Sound")snd.SoundId="rbxassetid://"..ss.Text;snd.Parent=SG;snd:Play();D:AddItem(snd,3)end end)elseif sn=="Убийца"then local kb=Instance.new("TextButton")kb.Size=UDim2.new(0,180,0,28)kb.Position=UDim2.new(0,10,0,45)kb.Text="Аимбот ножа: ВКЛ"kb.BackgroundColor3=Color3.fromRGB(50,150,50)kb.TextColor3=Color3.new(1,1,1)kb.BorderSizePixel=0 kb.Parent=sfrm;KN=true;KB=kb;kb.MouseButton1Click:Connect(function()KN=not KN;kb.Text=KN and"Аимбот ножа: ВКЛ"or"Аимбот ножа: ВЫКЛ"kb.BackgroundColor3=KN and Color3.fromRGB(50,150,50)or Color3.fromRGB(150,50,50)end)local ka=Instance.new("TextButton")ka.Size=UDim2.new(0,180,0,28)ka.Position=UDim2.new(0,200,0,45)ka.Text="Килл-аура: ВКЛ"ka.BackgroundColor3=Color3.fromRGB(50,150,50)ka.TextColor3=Color3.new(1,1,1)ka.BorderSizePixel=0 ka.Parent=sfrm;KA=true;KA2=ka;ka.MouseButton1Click:Connect(function()KA=not KA;ka.Text=KA and"Килл-аура: ВКЛ"or"Килл-аура: ВЫКЛ"ka.BackgroundColor3=KA and Color3.fromRGB(50,150,50)or Color3.fromRGB(150,50,50)end)local ka3=Instance.new("TextButton")ka3.Size=UDim2.new(0,180,0,28)ka3.Position=UDim2.new(0,10,0,85)ka3.Text="Убить всех"ka3.BackgroundColor3=Color3.fromRGB(150,50,50)ka3.TextColor3=Color3.new(1,1,1)ka3.BorderSizePixel=0 ka3.Parent=sfrm;ka3.MouseButton1Click:Connect(function()for _,p in pairs(P:GetPlayers())do if p~=LP and p.Character and p.Character:FindFirstChild("Humanoid")then p.Character.Humanoid.Health=0 end end end)elseif sn=="Телепорты"then local tp1=Instance.new("TextButton")tp1.Size=UDim2.new(0,120,0,28)tp1.Position=UDim2.new(0,10,0,45)tp1.Text="В лобби"tp1.BackgroundColor3=Color3.fromRGB(50,100,150)tp1.TextColor3=Color3.new(1,1,1)tp1.BorderSizePixel=0 tp1.Parent=sfrm;tp1.MouseButton1Click:Connect(function()local h=LP.Character if h and h:FindFirstChild("HumanoidRootPart")then h.HumanoidRootPart.CFrame=CFrame.new(0,10,0)end end)local tp2=Instance.new("TextButton")tp2.Size=UDim2.new(0,120,0,28)tp2.Position=UDim2.new(0,140,0,45)tp2.Text="К шерифу"tp2.BackgroundColor3=Color3.fromRGB(50,100,150)tp2.TextColor3=Color3.new(1,1,1)tp2.BorderSizePixel=0 tp2.Parent=sfrm;tp2.MouseButton1Click:Connect(function()for _,p in pairs(P:GetPlayers())do if p~=LP and p.Character and p.Character:FindFirstChild("HumanoidRootPart")then local hrp=p.Character.HumanoidRootPart;local h=LP.Character if h and h:FindFirstChild("HumanoidRootPart")then h.HumanoidRootPart.CFrame=hrp.CFrame end end end)local tp3=Instance.new("TextButton")tp3.Size=UDim2.new(0,120,0,28)tp3.Position=UDim2.new(0,270,0,45)tp3.Text="К убийце"tp3.BackgroundColor3=Color3.fromRGB(50,100,150)tp3.TextColor3=Color3.new(1,1,1)tp3.BorderSizePixel=0 tp3.Parent=sfrm;tp3.MouseButton1Click:Connect(function()local mm=nil for _,p in pairs(P:GetPlayers())do if p~=LP and p.Character and p.Character:FindFirstChild("HumanoidRootPart")then mm=p;break end end if mm then local h=LP.Character if h and h:FindFirstChild("HumanoidRootPart")then h.HumanoidRootPart.CFrame=mm.Character.HumanoidRootPart.CFrame end end end)local fl=Instance.new("TextButton")fl.Size=UDim2.new(0,120,0,28)fl.Position=UDim2.new(0,10,0,85)fl.Text="Флинг игрока"fl.BackgroundColor3=Color3.fromRGB(150,50,100)fl.TextColor3=Color3.new(1,1,1)fl.BorderSizePixel=0 fl.Parent=sfrm;fl.MouseButton1Click:Connect(function()local h=LP.Character if h and h:FindFirstChild("HumanoidRootPart")then for _,p in pairs(P:GetPlayers())do if p~=LP and p.Character and p.Character:FindFirstChild("HumanoidRootPart")then local dist=(h.HumanoidRootPart.Position-p.Character.HumanoidRootPart.Position).Magnitude if dist<15 then local bv=Instance.new("BodyVelocity")bv.MaxForce=Vector3.new(100000,100000,100000)bv.Velocity=(p.Character.HumanoidRootPart.Position-h.HumanoidRootPart.Position).Unit60+Vector3.new(0,40,0)bv.Parent=p.Character.HumanoidRootPart;D:AddItem(bv,0.5)end end end end end)local plist=Instance.new("ScrollingFrame")plist.Size=UDim2.new(0,200,1,-30)plist.Position=UDim2.new(1,-210,0,45)plist.BackgroundColor3=Color3.fromRGB(40,40,45)plist.BorderSizePixel=0 plist.CanvasSize=UDim2.new(0,0,0,0)plist.ScrollBarThickness=6 plist.Parent=sfrm;spawn(function()while true do task.wait(1)for _,c in pairs(plist:GetChildren())do if c:IsA("TextButton")then c:Destroy()end end local y=0 for _,p in pairs(P:GetPlayers())do if p~=LP then local b=Instance.new("TextButton")b.Size=UDim2.new(1,0,0,25)b.Position=UDim2.new(0,0,0,y)b.Text=p.Name;b.BackgroundColor3=Color3.fromRGB(50,50,55)b.TextColor3=Color3.new(1,1,1)b.BorderSizePixel=0 b.Parent=plist;b.MouseButton1Click:Connect(function()local h=LP.Character if h and h:FindFirstChild("HumanoidRootPart")and p.Character and p.Character:FindFirstChild("HumanoidRootPart")then h.HumanoidRootPart.CFrame=p.Character.HumanoidRootPart.CFrame end end)y=y+28 end;plist.CanvasSize=UDim2.new(0,0,0,y)end end)end end end elseif td.n=="Тролл Фан"then local function TBt(p,t,y,cb)local b=Instance.new("TextButton")b.Size=UDim2.new(0,250,0,32)b.Position=UDim2.new(0,10,0,y)b.Text=t;b.BackgroundColor3=Color3.fromRGB(70,30,100)b.TextColor3=Color3.new(1,1,1)b.BorderSizePixel=0 b.Parent=p;b.MouseButton1Click:Connect(cb)end;TBt(f,"🖐️ Лерочка (рука)",10,function()local ch=LP.Character if ch then local t=ch:FindFirstChild("UpperTorso")or ch:FindFirstChild("Torso")if t then local h=Instance.new("Part")h.Size=Vector3.new(1,1,1)h.BrickColor=BrickColor.new("Bright red")h.Material=Enum.Material.SmoothPlastic h.Anchored=true h.CFrame=t.CFrame+Vector3.new(0,-0.5,1.5)h.Parent=WS;D:AddItem(h,3)local sp=h.Position for i=1,20 do task.wait(0.05)h.CFrame=CFrame.new(sp+Vector3.new(0,math.sin(i0.3)0.3,0))end end end end)TBt(f,"💨 Флинг (прикоснись)",55,function()local ch=LP.Character if ch then local t=ch:FindFirstChild("UpperTorso")or ch:FindFirstChild("Torso")if t then for _,p in pairs(P:GetPlayers())do if p~=LP and p.Character and p.Character:FindFirstChild("HumanoidRootPart")then local hp=p.Character.HumanoidRootPart;local d=(t.Position-hp.Position).Magnitude if d<10 then local bv=Instance.new("BodyVelocity")bv.MaxForce=Vector3.new(100000,100000,100000)bv.Velocity=(hp.Position-t.Position).Unit50+Vector3.new(0,30,0)bv.Parent=hp;D:AddItem(bv,0.5)end end end end end end)TBt(f,"🗡️ Фейк предметы",100,function()local it={{c=Color3.fromRGB(200,0,0),s=Vector3.new(0.5,0.1,1)},{c=Color3.fromRGB(0,150,255),s=Vector3.new(2,0.5,1)},{c=Color3.fromRGB(150,150,150),s=Vector3.new(0.8,0.8,0.8)}}for _,itm in pairs(it)do local p=Instance.new("Part")p.Size=itm.s;p.BrickColor=BrickColor.new(itm.c);p.Material=Enum.Material.SmoothPlastic p.Anchored=true p.CFrame=CFrame.new(LP.Character and LP.Character:FindFirstChild("HumanoidRootPart")and LP.Character.HumanoidRootPart.Position+Vector3.new(math.random(-5,5),2,math.random(-5,5))or Vector3.new(0,10,0))p.Parent=WS;D:AddItem(p,10)end end)TBt(f,"📦 Фейк-Корблокс",145,function()local ch=LP.Character if ch then local hp=ch:FindFirstChild("HumanoidRootPart")if hp then local c=Instance.new("Part")c.Size=Vector3.new(1.5,1.5,1.5)c.BrickColor=BrickColor.new("Really black")c.Material=Enum.Material.SmoothPlastic c.Anchored=true c.CFrame=hp.CFrame+Vector3.new(0,-1,2)c.Parent=WS;D:AddItem(c,10)end end end)elseif td.n=="Анимации"then local packs={"OldSchool","Stylish","Toy","Ninja","Robot","Adidas","Cartoon","Pirate","Zombie","Skeleton"}local emots={"Wave","Dance","Point","Laugh","Clap","Sit","Jump","Cry","Angry","Happy"}local fav={}local sub={"Бандлы","Эмоции","Избранное"}local sf={}local sc=Instance.new("Frame")sc.Size=UDim2.new(1,-20,1,-40)sc.Position=UDim2.new(0,10,0,40)sc.BackgroundTransparency=1 sc.Parent=f;for i,sn in ipairs(sub)do local sb=Instance.new("TextButton")sb.Size=UDim2.new(0,100,0,25)sb.Position=UDim2.new(0,10+(i-1)*110,0,0)sb.Text=sn;sb.BackgroundColor3=Color3.fromRGB(45,45,50)sb.TextColor3=Color3.fromRGB(200,200,200)sb.BorderSizePixel=0 sb.Parent=f;local sfrm=Instance.new("Frame")sfrm.Size=UDim2.new(1,0,1,0)sfrm.BackgroundTransparency=1 sfrm.Visible=i==1 sfrm.Parent=sc;sf[sn]=sfrm;sb.MouseButton1Click:Connect(function()for _,fv in pairs(sf)do fv.Visible=false end for _,bv in pairs(sub)do local bb=f:FindFirstChild(bv)if bb then bb.BackgroundColor3=Color3.fromRGB(45,45,50)end end sfrm.Visible=true sb.BackgroundColor3=Color3.fromRGB(70,70,80)end)if sn~="Избранное"then local sbx=Instance.new("TextBox")sbx.Size=UDim2.new(1,-20,0,25)sbx.Position=UDim2.new(0,10,0,30)sbx.PlaceholderText="Поиск..."sbx.Text=""sbx.BackgroundColor3=Color3.fromRGB(50,50,55)sbx.TextColor3=Color3.new(1,1,1)sbx.BorderSizePixel=0 sbx.Font=Enum.Font.Gotham sbx.TextSize=14 sbx.Parent=sfrm;local lst=Instance.new("ScrollingFrame")lst.Size=UDim2.new(1,-20,1,-70)lst.Position=UDim2.new(0,10,0,65)lst.BackgroundTransparency=1 lst.BorderSizePixel=0 lst.CanvasSize=UDim2.new(0,0,0,0)lst.ScrollBarThickness=6 lst.Parent=sfrm;local data=sn=="Бандлы"and packs or emots;local function upd(filt)for _,c in pairs(lst:GetChildren())do if c:IsA("Frame")then c:Destroy()end end local res={}for _,it in pairs(data)do if string.lower(it):find(string.lower(filt))then table.insert(res,it)end end local y=0 for _,it in pairs(res)do local r=Instance.new("Frame")r.Size=UDim2.new(1,0,0,30)r.Position=UDim2.new(0,0,0,y)r.BackgroundColor3=Color3.fromRGB(40,40,45)r.BorderSizePixel=0 r.Parent=lst;local l=Instance.new("TextLabel")l.Size=UDim2.new(1,-30,1,0)l.Text=it;l.TextColor3=Color3.new(1,1,1)l.BackgroundTransparency=1 l.TextXAlignment=Enum.TextXAlignment.Left l.Font=Enum.Font.Gotham l.TextSize=14 l.Parent=r;local st=Instance.new("TextButton")st.Size=UDim2.new(0,25,1,0)st.Position=UDim2.new(1,-25,0,0)st.Text=fav[it]and"★"or"☆"st.TextColor3=fav[it]and Color3.fromRGB(255,215,0)or Color3.fromRGB(200,200,200)st.BackgroundTransparency=1 st.BorderSizePixel=0 st.Font=Enum.Font.Gotham st.TextSize=18 st.Parent=r;st.MouseButton1Click:Connect(function()if fav[it]then fav[it]=nil;st.Text="☆";st.TextColor3=Color3.fromRGB(200,200,200)else fav[it]=true;st.Text="★";st.TextColor3=Color3.fromRGB(255,215,0)end updFav()end)y=y+35 end;lst.CanvasSize=UDim2.new(0,0,0,y)end;sbx:GetPropertyChangedSignal("Text"):Connect(function()upd(sbx.Text)end)upd("")else local fsbx=Instance.new("TextBox")fsbx.Size=UDim2.new(1,-20,0,25)fsbx.Position=UDim2.new(0,10,0,30)fsbx.PlaceholderText="Поиск..."fsbx.Text=""fsbx.BackgroundColor3=Color3.fromRGB(50,50,55)fsbx.TextColor3=Color3.new(1,1,1)fsbx.BorderSizePixel=0 fsbx.Font=Enum.Font.Gotham fsbx.TextSize=14 fsbx.Parent=sfrm;local flst=Instance.new("ScrollingFrame")flst.Size=UDim2.new(1,-20,1,-70)flst.Position=UDim2.new(0,10,0,65)flst.BackgroundTransparency=1 flst.BorderSizePixel=0 flst.CanvasSize=UDim2.new(0,0,0,0)flst.ScrollBarThickness=6 flst.Parent=sfrm;local function updFav()for _,c in pairs(flst:GetChildren())do if c:IsA("Frame")then c:Destroy()end end local fl={}for n, in pairs(fav)do table.insert(fl,n)end table.sort(fl)local filt=fsbx.Text local y=0 for _,it in pairs(fl)do if string.lower(it):find(string.lower(filt))then local r=Instance.new("Frame")r.Size=UDim2.new(1,0,0,30)r.Position=UDim2.new(0,0,0,y)r.BackgroundColor3=Color3.fromRGB(40,40,45)r.BorderSizePixel=0 r.Parent=flst;local l=Instance.new("TextLabel")l.Size=UDim2.new(1,-30,1,0)l.Text=it;l.TextColor3=Color3.new(1,1,1)l.BackgroundTransparency=1 l.TextXAlignment=Enum.TextXAlignment.Left l.Font=Enum.Font.Gotham l.TextSize=14 l.Parent=r;local st=Instance.new("TextButton")st.Size=UDim2.new(0,25,1,0)st.Position=UDim2.new(1,-25,0,0)st.Text="★"st.TextColor3=Color3.fromRGB(255,215,0)st.BackgroundTransparency=1 st.BorderSizePixel=0 st.Font=Enum.Font.Gotham st.TextSize=18 st.Parent=r;st.MouseButton1Click:Connect(function()fav[it]=nil;updFav()end)y=y+35 end end;flst.CanvasSize=UDim2.new(0,0,0,y)end;fsbx:GetPropertyChangedSignal("Text"):Connect(updFav)updFav()end end end elseif td.n=="Визуал"then local sub={"Шейдеры","Шрифты","Дополнительно"}local sf={}for i,sn in ipairs(sub)do local sb=Instance.new("TextButton")sb.Size=UDim2.new(0,100,0,25)sb.Position=UDim2.new(0,10+(i-1)*110,0,10)sb.Text=sn;sb.BackgroundColor3=Color3.fromRGB(45,45,50)sb.TextColor3=Color3.fromRGB(200,200,200)sb.BorderSizePixel=0 sb.Parent=f;local sfrm=Instance.new("Frame")sfrm.Size=UDim2.new(1,0,1,0)sfrm.BackgroundTransparency=1 sfrm.Visible=i==1 sfrm.Parent=f;sf[sn]=sfrm;sb.MouseButton1Click:Connect(function()for _,fv in pairs(sf)do fv.Visible=false end for _,bv in pairs(sub)do local bb=f:FindFirstChild(bv)if bb then bb.BackgroundColor3=Color3.fromRGB(45,45,50)end end sfrm.Visible=true sb.BackgroundColor3=Color3.fromRGB(70,70,80)end)if sn=="Шейдеры"then local effs={"Bloom","ColorCorrection","SunRays","Fog","Contrast","Sepia","Vintage","Cyberpunk"}local y=45 for _,e in pairs(effs)do local b=Instance.new("TextButton")b.Size=UDim2.new(0,180,0,28)b.Position=UDim2.new(0,10,0,y)b.Text=e..": ВЫКЛ"b.BackgroundColor3=Color3.fromRGB(60,60,70)b.TextColor3=Color3.new(1,1,1)b.BorderSizePixel=0 b.Parent=sfrm;local en=false;b.MouseButton1Click:Connect(function()en=not en;b.Text=e..": "..(en and"ВКЛ"or"ВЫКЛ")b.BackgroundColor3=en and Color3.fromRGB(50,150,50)or Color3.fromRGB(60,60,70)local lt=game:GetService("Lighting")if e=="Bloom"then lt.Bloom.Enabled=en elseif e=="ColorCorrection"then lt.ColorCorrection.Enabled=en elseif e=="SunRays"then lt.SunRays.Enabled=en elseif e=="Fog"then lt.Fog.Enabled=en elseif e=="Contrast"then lt.Contrast.Enabled=en elseif e=="Sepia"then lt.Sepia.Enabled=en elseif e=="Vintage"then lt.Vintage.Enabled=en elseif e=="Cyberpunk"then lt.Cyberpunk.Enabled=en end end)y=y+35 end elseif sn=="Шрифты"then local langs={"Русский","Английский","Казахский","Украинский","Португальский"}local y=45 for _,l in pairs(langs)do loc