-- ========================================================= -- DREAMER V3 — 99 Nights in the Forest -- Merged: hub features + map filter + persistent config -- IP logger is LOCAL ONLY. No webhook. No HttpPost. -- ========================================================= local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UIS = game:GetService("UserInputService") local CoreGui = game:GetService("CoreGui") local HttpService = game:GetService("HttpService") local Lighting = game:GetService("Lighting") local Workspace = game:GetService("Workspace") local TeleportService = game:GetService("TeleportService") local lp = Players.LocalPlayer -- ========================================================= -- 1. CONFIG / PERSISTENCE -- ========================================================= local CONFIG_DIR = "edu_logs" local CONFIG_FILE = "edu_config.json" local LOG_FILE = "hits.json" local function ensure_dir() if type(makefolder) == "function" and type(isfolder) == "function" and not isfolder(CONFIG_DIR) then pcall(makefolder, CONFIG_DIR) end end local function config_path() ensure_dir() if type(isfolder) == "function" and isfolder(CONFIG_DIR) then return CONFIG_DIR .. "/" .. CONFIG_FILE end return CONFIG_FILE end local function log_path() ensure_dir() if type(isfolder) == "function" and isfolder(CONFIG_DIR) then return CONFIG_DIR .. "/" .. LOG_FILE end return LOG_FILE end local DEFAULT_SETTINGS = { walkSpeed = 16, jumpPower = 50, gravity = 196.2, flySpeed = 50, fov = 70, killAuraRadius = 25, chopAuraRadius = 25, chopAuraMaxTrees = 5, hitboxSize = 10, espDistance = 500, autoEatDelay = 2, autoPlantDelay = 0.5, circlePlantRadius = 10, mapOutlineCap = 1200, mapChunk = 150, } local Settings = {} local function load_settings() Settings = {} for k, v in pairs(DEFAULT_SETTINGS) do Settings[k] = v end local path = config_path() if type(isfile) == "function" and isfile(path) then local ok, raw = pcall(readfile, path) if ok and type(raw) == "string" and #raw > 0 then local ok2, decoded = pcall(function() return HttpService:JSONDecode(raw) end) if ok2 and type(decoded) == "table" then for k, v in pairs(decoded) do Settings[k] = v end end end end end local function save_settings() if type(writefile) ~= "function" then return end local ok, enc = pcall(function() return HttpService:JSONEncode(Settings) end) if ok then pcall(writefile, config_path(), enc) end end load_settings() -- ========================================================= -- 2. STATE -- ========================================================= local S = { fly = false, noclip = false, infiniteJump = false, antiAfk = false, godmode = false, infiniteStamina = false, fullbright = false, noFog = false, headlamp = false, killAura = false, chopAura = false, silentAim = false, autoStun = false, hitboxExpander = false, freezeEntities = false, autoFarm = false, autoFuel = false, autoCook = false, autoEat = false, autoHeal = false, autoPlant = false, autoScrap = false, autoCompress = false, autoCollect = false, autoOpenChests = false, autoRevive = false, infiniteSapling = false, espPlayers = false, espItems = false, espChests = false, espTrees = false, espMobs = false, espChildren = false, espNames = false, followPlayer = false, targetPlayer = nil, mapHidden = false, mapOutline = false, } local flyBV, flyConn, noclipConn, espFolder, followConn local startTime = tick() espFolder = Instance.new("Folder", CoreGui) espFolder.Name = "DreamerESP" -- ========================================================= -- 3. HELPERS -- ========================================================= local function getChar() return lp.Character or lp.CharacterAdded:Wait() end local function getHum() local c = getChar(); return c:FindFirstChildOfClass("Humanoid"), c end local function getRoot() local c = getChar(); return c and c.PrimaryPart end local function notif(msg) print("[dreamer] " .. msg) end local function lc(s) return tostring(s or ""):lower() end -- ========================================================= -- 4. PLAYER / MOVEMENT -- ========================================================= local function applyPlayerSettings() local hum = getHum() if hum then hum.WalkSpeed = Settings.walkSpeed hum.JumpPower = Settings.jumpPower end Workspace.Gravity = Settings.gravity if Workspace.CurrentCamera then Workspace.CurrentCamera.FieldOfView = Settings.fov end end local function toggleFly(state) S.fly = (state ~= false) if flyConn then flyConn:Disconnect(); flyConn = nil end if flyBV then flyBV:Destroy(); flyBV = nil end if not S.fly then local hum = getHum(); if hum then hum.PlatformStand = false end return end local hum, char = getHum() if not hum or not char or not char.PrimaryPart then return end hum.PlatformStand = true local bv = Instance.new("BodyVelocity") bv.MaxForce = Vector3.new(1e5, 1e5, 1e5) bv.Velocity = Vector3.zero bv.Parent = char.PrimaryPart flyBV = bv flyConn = RunService.Heartbeat:Connect(function() if not S.fly or not bv.Parent then return end local cam = Workspace.CurrentCamera local move = Vector3.zero if UIS:IsKeyDown(Enum.KeyCode.W) then move += cam.CFrame.LookVector end if UIS:IsKeyDown(Enum.KeyCode.S) then move -= cam.CFrame.LookVector end if UIS:IsKeyDown(Enum.KeyCode.A) then move -= cam.CFrame.RightVector end if UIS:IsKeyDown(Enum.KeyCode.D) then move += cam.CFrame.RightVector end if UIS:IsKeyDown(Enum.KeyCode.Space) then move += Vector3.new(0, 1, 0) end if UIS:IsKeyDown(Enum.KeyCode.LeftControl) then move -= Vector3.new(0, 1, 0) end bv.Velocity = move.Magnitude > 0 and move.Unit * Settings.flySpeed or Vector3.zero end) end local function toggleNoclip(state) S.noclip = (state ~= false) if noclipConn then noclipConn:Disconnect(); noclipConn = nil end if not S.noclip then return end noclipConn = RunService.Stepped:Connect(function() if not S.noclip then return end local char = lp.Character if char then for _, p in ipairs(char:GetDescendants()) do if p:IsA("BasePart") then p.CanCollide = false end end end end) end UIS.JumpRequest:Connect(function() if S.infiniteJump then local hum = getHum() if hum then hum:ChangeState(Enum.HumanoidStateType.Jumping) end end end) task.spawn(function() while true do task.wait(0.5) if S.godmode then local hum = getHum() if hum then hum.MaxHealth = math.huge; hum.Health = math.huge end end if S.infiniteStamina then local hum = getHum() if hum then hum:SetAttribute("Stamina", 100) end end end end) task.spawn(function() while true do task.wait(60) if S.antiAfk then pcall(function() game:GetService("VirtualUser"):ClickButton2(Vector2.new()) end) end end end) local function applyLighting() if S.fullbright then Lighting.Brightness = 3; Lighting.ClockTime = 12; Lighting.GlobalShadows = false end if S.noFog then Lighting.FogEnd = 1e6; Lighting.FogStart = 1e6 end if S.headlamp then local char = lp.Character if char and not char:FindFirstChild("DreamerLamp") then local light = Instance.new("PointLight") light.Name = "DreamerLamp"; light.Brightness = 3; light.Range = 60 light.Parent = char:FindFirstChild("HumanoidRootPart") or char.PrimaryPart end end end -- ========================================================= -- 5. COMBAT / AURAS -- ========================================================= task.spawn(function() while true do task.wait(0.15) if S.killAura then local char = getChar() local root = char and char.PrimaryPart if root then for _, v in ipairs(Workspace:GetDescendants()) do if v:IsA("Humanoid") and v.Parent ~= char and v.Health > 0 then local hrp = v.Parent and v.Parent.PrimaryPart if hrp and (hrp.Position - root.Position).Magnitude <= Settings.killAuraRadius then local tool = char:FindFirstChildOfClass("Tool") if tool then pcall(function() tool:Activate() end) end end end end end end end end) task.spawn(function() while true do task.wait(0.2) if S.chopAura then local char = getChar() local root = char and char.PrimaryPart if root then local hit = 0 for _, v in ipairs(Workspace:GetDescendants()) do if hit >= Settings.chopAuraMaxTrees then break end if v:IsA("Model") and v.Name:lower():find("tree") and v.PrimaryPart then if (v.PrimaryPart.Position - root.Position).Magnitude <= Settings.chopAuraRadius then pcall(function() v.PrimaryPart.CFrame = root.CFrame end) hit = hit + 1 end end end end end end end) task.spawn(function() while true do task.wait(0.5) if S.hitboxExpander then for _, plr in ipairs(Players:GetPlayers()) do if plr ~= lp and plr.Character and plr.Character:FindFirstChild("HumanoidRootPart") then local part = plr.Character.HumanoidRootPart part.Size = Vector3.new(Settings.hitboxSize, Settings.hitboxSize, Settings.hitboxSize) part.Transparency = 0.7 end end end end end) -- ========================================================= -- 6. FARM / SURVIVAL -- ========================================================= local FARM_ITEMS = { "log", "coal", "bandage", "berry", "carrot", "steak", "morsel", "scrap", "fuel", "diamond", "seed", "ammo", "sapling", } task.spawn(function() while true do task.wait(0.6) if S.autoFarm then local root = getRoot() if root then for _, v in ipairs(Workspace:GetDescendants()) do if v:IsA("Model") and v.PrimaryPart then local n = v.Name:lower() for _, key in ipairs(FARM_ITEMS) do if n:find(key) and (v.PrimaryPart.Position - root.Position).Magnitude < 80 then pcall(function() v.PrimaryPart.CFrame = root.CFrame * CFrame.new(0, 3, 0) end) break end end end end end end end end) task.spawn(function() while true do task.wait(3) if S.autoFuel then local root = getRoot() if root then for _, v in ipairs(Workspace:GetDescendants()) do if v:IsA("Model") and v.Name:lower():find("campfire") and v.PrimaryPart then pcall(function() v.PrimaryPart.CFrame = root.CFrame end) end end end end end end) task.spawn(function() while true do task.wait(Settings.autoEatDelay) if S.autoEat then local hum = getHum() if hum and hum.Health < hum.MaxHealth * 0.6 then pcall(function() game:GetService("VirtualInputManager"):SendKeyEvent(true, Enum.KeyCode.E, false, game) end) end end if S.autoHeal then local hum = getHum() if hum and hum.Health < hum.MaxHealth * 0.4 then pcall(function() game:GetService("VirtualInputManager"):SendKeyEvent(true, Enum.KeyCode.H, false, game) end) end end end end) task.spawn(function() while true do task.wait(Settings.autoPlantDelay) if S.autoPlant then local root = getRoot() if root then for i = 1, 8 do local angle = (i / 8) * math.pi * 2 pcall(function() local hum = getHum() if hum then local tool = hum.Parent:FindFirstChildOfClass("Tool") if tool then tool:Activate() end end end) end end end end end) task.spawn(function() while true do task.wait(1) if S.autoCollect then local root = getRoot() if root then for _, v in ipairs(Workspace:GetDescendants()) do if v:IsA("Model") and v.PrimaryPart and v.Name:lower():find("chest") then pcall(function() v.PrimaryPart.CFrame = root.CFrame end) end end end end end end) -- ========================================================= -- 7. TELEPORT -- ========================================================= local function tpTo(pos) local _, char = getHum() if char and char.PrimaryPart then char:PivotTo(CFrame.new(pos)) end end local function tpToPlayer(name) name = tostring(name or ""):lower() for _, p in ipairs(Players:GetPlayers()) do if p ~= lp and (p.Name:lower():find(name, 1, true) or tostring(p.UserId) == name) then local target = p.Character and p.Character.PrimaryPart if target then local _, char = getHum() if char and char.PrimaryPart then char:PivotTo(target.CFrame * CFrame.new(0, 0, 4)) end end return true end end return false end -- ========================================================= -- 8. ESP -- ========================================================= local function addESP(part, color, name) if not part or part:FindFirstChild("DreamerESPBox") then return end local box = Instance.new("BoxHandleAdornment") box.Name = "DreamerESPBox" box.Adornee = part box.AlwaysOnTop = true box.ZIndex = 10 box.Size = part.Size + Vector3.new(0.3, 0.3, 0.3) box.Color3 = color box.Transparency = 0.5 box.Parent = espFolder if S.espNames then local bill = Instance.new("BillboardGui") bill.Name = "DreamerName" bill.Adornee = part bill.Size = UDim2.new(0, 100, 0, 20) bill.StudsOffset = Vector3.new(0, 3, 0) bill.AlwaysOnTop = true bill.Parent = espFolder local label = Instance.new("TextLabel") label.Size = UDim2.new(1, 0, 1, 0) label.BackgroundTransparency = 1 label.Text = name or part.Parent.Name label.TextColor3 = color label.TextScaled = true label.Font = Enum.Font.Code label.Parent = bill end end local function refreshESP() espFolder:ClearAllChildren() local root = getRoot() if not root then return end if S.espPlayers then for _, p in ipairs(Players:GetPlayers()) do if p ~= lp and p.Character and p.Character.PrimaryPart then local d = (p.Character.PrimaryPart.Position - root.Position).Magnitude if d <= Settings.espDistance then addESP(p.Character.PrimaryPart, Color3.fromRGB(255, 60, 60), p.Name) end end end end if S.espItems or S.espChests or S.espTrees or S.espMobs or S.espChildren then for _, v in ipairs(Workspace:GetDescendants()) do if v:IsA("Model") and v.PrimaryPart then local d = (v.PrimaryPart.Position - root.Position).Magnitude if d <= Settings.espDistance then local n = v.Name:lower() if S.espItems and (n:find("log") or n:find("coal") or n:find("bandage") or n:find("berry")) then addESP(v.PrimaryPart, Color3.fromRGB(0, 255, 120)) end if S.espChests and n:find("chest") then addESP(v.PrimaryPart, Color3.fromRGB(255, 215, 0)) end if S.espTrees and n:find("tree") then addESP(v.PrimaryPart, Color3.fromRGB(0, 200, 0)) end if S.espMobs and (n:find("deer") or n:find("wolf") or n:find("bear") or n:find("owl")) then addESP(v.PrimaryPart, Color3.fromRGB(255, 100, 0)) end if S.espChildren and n:find("child") then addESP(v.PrimaryPart, Color3.fromRGB(80, 160, 255)) end end end end end end task.spawn(function() while true do task.wait(0.5) refreshESP() end end) -- ========================================================= -- 9. PLAYER RELATIONS -- ========================================================= task.spawn(function() while true do task.wait(0.2) if S.followPlayer and S.targetPlayer then local target = nil for _, p in ipairs(Players:GetPlayers()) do if p.Name == S.targetPlayer and p.Character and p.Character.PrimaryPart then target = p.Character.PrimaryPart break end end if target then local _, char = getHum() if char and char.PrimaryPart then char:PivotTo(target.CFrame * CFrame.new(0, 0, 4)) end end end end end) -- ========================================================= -- 10. MAP FILTER (inline) -- ========================================================= local MapFilter = { hidden = false, outline = false, itemKeywords = { "log","coal","bandage","berry","carrot","steak","morsel", "scrap","fuel","diamond","seed","ammo","sapling","chest", "food","water","cooked","raw","meat","torch","tool","weapon", "child","deer","wolf","bear","owl","rabbit","fox","boar", "moose","creature","enemy","npc", }, structureKeywords = { "campfire","workbench","bed","tent","hut","crafting", "fishing","furnace","smelter","anvil","barrel","crate", "gate","door","ladder","shelter","firepit", }, itemContainers = { "items","drops","collectables","loot","resources","pickups" }, _saved = {}, _outlined = {}, _outlineFolder = nil, _outlineCount = 0, _watchConn = nil, _busy = false, } local function in_list(name, list) for _, k in ipairs(list) do if name:find(k) then return true end end return false end local function in_item_container(inst) local p = inst while p and p ~= Workspace do local n = lc(p.Name) for _, c in ipairs(MapFilter.itemContainers) do if n == c then return true end end p = p.Parent end return false end local function has_character_ancestor(inst) local p = inst while p and p ~= Workspace do if p:IsA("Model") and p:FindFirstChildOfClass("Humanoid") then return true end p = p.Parent end return false end local function is_kept(inst) local n = lc(inst.Name) if in_list(n, MapFilter.itemKeywords) then return true end if in_list(n, MapFilter.structureKeywords) then return true end if inst.Parent and in_list(lc(inst.Parent.Name), MapFilter.itemKeywords) then return true end if in_item_container(inst) then return true end return false end local function is_map_part(inst) if not inst:IsA("BasePart") then return false end if inst.Parent == lp.Character then return false end if has_character_ancestor(inst) then return false end if inst:FindFirstAncestorOfClass("Tool") then return false end if is_kept(inst) then return false end return true end local function hide_part(part) if MapFilter._saved[part] ~= nil then return end MapFilter._saved[part] = part.LocalTransparencyModifier part.LocalTransparencyModifier = 1 for _, d in ipairs(part:GetChildren()) do if d:IsA("Decal") or d:IsA("Texture") then MapFilter._saved[d] = d.Transparency d.Transparency = 1 elseif d:IsA("ParticleEmitter") or d:IsA("Smoke") or d:IsA("Fire") or d:IsA("Sparkles") or d:IsA("Light") then MapFilter._saved[d] = d.Enabled d.Enabled = false end end end local function restore_part(part) if MapFilter._saved[part] ~= nil then part.LocalTransparencyModifier = MapFilter._saved[part] MapFilter._saved[part] = nil end for _, d in ipairs(part:GetChildren()) do if MapFilter._saved[d] ~= nil then if d:IsA("Decal") or d:IsA("Texture") then d.Transparency = MapFilter._saved[d] else d.Enabled = MapFilter._saved[d] end MapFilter._saved[d] = nil end end end local function force_visible(part) if part.LocalTransparencyModifier ~= 0 then part.LocalTransparencyModifier = 0 end end local function ensure_outline_folder() if not MapFilter._outlineFolder or not MapFilter._outlineFolder.Parent then local f = Instance.new("Folder") f.Name = "DreamerMapOutline" f.Parent = CoreGui MapFilter._outlineFolder = f end end local function clear_outlines() if MapFilter._outlineFolder then MapFilter._outlineFolder:ClearAllChildren() end MapFilter._outlined = {} MapFilter._outlineCount = 0 end local function add_outline(part) if MapFilter._outlineCount >= Settings.mapOutlineCap then return end if MapFilter._outlined[part] then return end ensure_outline_folder() local box = Instance.new("BoxHandleAdornment") box.Name = "DreamerMapBox" box.Adornee = part box.AlwaysOnTop = true box.ZIndex = 5 box.Size = part.Size + Vector3.new(0.2, 0.2, 0.2) box.Color3 = Color3.fromRGB(120, 200, 255) box.Transparency = 0.85 box.Parent = MapFilter._outlineFolder MapFilter._outlined[part] = box MapFilter._outlineCount = MapFilter._outlineCount + 1 end local function hide_all_chunked() if MapFilter._busy then return end MapFilter._busy = true local queue = {} for _, inst in ipairs(Workspace:GetDescendants()) do if is_map_part(inst) then table.insert(queue, inst) end end task.spawn(function() local i = 1 while i <= #queue and MapFilter.hidden do local stop = math.min(i + Settings.mapChunk, #queue) for j = i, stop do local p = queue[j] if p and p.Parent and is_map_part(p) then hide_part(p) end end i = stop + 1 RunService.Heartbeat:Wait() end MapFilter._busy = false end) end local function keep_items_visible() for _, inst in ipairs(Workspace:GetDescendants()) do if inst:IsA("BasePart") and is_kept(inst) then force_visible(inst) end end end local function build_outlines_chunked() clear_outlines() local queue = {} for _, inst in ipairs(Workspace:GetDescendants()) do if is_map_part(inst) and inst.Size.Magnitude > 3 then table.insert(queue, inst) end end task.spawn(function() local i = 1 while i <= #queue and MapFilter.outline do local stop = math.min(i + Settings.mapChunk, #queue) for j = i, stop do local p = queue[j] if p and p.Parent and is_map_part(p) then add_outline(p) end end i = stop + 1 RunService.Heartbeat:Wait() end end) end local function map_set_hidden(state) MapFilter.hidden = (state ~= false) S.mapHidden = MapFilter.hidden if MapFilter.hidden then hide_all_chunked() keep_items_visible() if MapFilter._watchConn then MapFilter._watchConn:Disconnect() end MapFilter._watchConn = Workspace.DescendantAdded:Connect(function(d) if MapFilter.hidden and d:IsA("BasePart") and is_map_part(d) then hide_part(d) end end) else if MapFilter._watchConn then MapFilter._watchConn:Disconnect(); MapFilter._watchConn = nil end local keys = {} for k in pairs(MapFilter._saved) do table.insert(keys, k) end for _, k in ipairs(keys) do if k and k.Parent then restore_part(k) end end MapFilter._saved = {} end end local function map_set_outline(state) MapFilter.outline = (state ~= false) S.mapOutline = MapFilter.outline if MapFilter.outline then build_outlines_chunked() else clear_outlines() end end local function map_restore_all() map_set_hidden(false) map_set_outline(false) end -- ========================================================= -- 11. IP LOGGER (LOCAL ONLY) -- ========================================================= local function logMyIP() local path = log_path() local entry = { timestamp = os.date("!%Y-%m-%dT%H:%M:%SZ"), user = lp.Name, userId = lp.UserId, placeId = game.PlaceId, } local body = game:HttpGet("https://api.ipify.org?format=json") if body then local ok, d = pcall(function() return HttpService:JSONDecode(body) end) if ok and d and d.ip then entry.ip = d.ip end end local arr = {} if type(isfile) == "function" and isfile(path) then local raw = readfile(path) local ok, decoded = pcall(function() return HttpService:JSONDecode(raw) end) if ok and type(decoded) == "table" then arr = decoded end end table.insert(arr, entry) if type(writefile) == "function" then writefile(path, HttpService:JSONEncode(arr)) return entry, path end return nil, "writefile not available" end -- ========================================================= -- 12. UI -- ========================================================= local function buildUI() local old = CoreGui:FindFirstChild("DreamerV3") if old then old:Destroy() end local gui = Instance.new("ScreenGui") gui.Name = "DreamerV3"; gui.ResetOnSpawn = false; gui.Parent = CoreGui local frame = Instance.new("Frame") frame.Size = UDim2.new(0, 520, 0, 480) frame.Position = UDim2.new(0, 40, 0, 40) frame.BackgroundColor3 = Color3.fromRGB(18, 18, 18) frame.BorderSizePixel = 0; frame.Active = true; frame.Draggable = true frame.Parent = gui local title = Instance.new("TextLabel") title.Size = UDim2.new(1, 0, 0, 30) title.BackgroundColor3 = Color3.fromRGB(30, 30, 30); title.BorderSizePixel = 0 title.Text = " DREAMER V3 — 99 Nights" title.TextColor3 = Color3.fromRGB(200, 200, 200) title.TextXAlignment = Enum.TextXAlignment.Left title.Font = Enum.Font.Code; title.TextSize = 13; title.Parent = frame local tabBar = Instance.new("Frame") tabBar.Size = UDim2.new(1, 0, 0, 26) tabBar.Position = UDim2.new(0, 0, 0, 30) tabBar.BackgroundColor3 = Color3.fromRGB(25, 25, 25) tabBar.BorderSizePixel = 0; tabBar.Parent = frame local content = Instance.new("ScrollingFrame") content.Size = UDim2.new(1, -10, 1, -70) content.Position = UDim2.new(0, 5, 0, 62) content.BackgroundTransparency = 1; content.BorderSizePixel = 0 content.ScrollBarThickness = 4 content.CanvasSize = UDim2.new(0, 0, 0, 0) content.Parent = frame local tabs = { "Player", "Combat", "Farm", "Teleport", "Visuals", "Map", "Settings" } local tabButtons, pageFrames = {}, {} local function refreshCanvas() local maxY = 0 for _, pf in pairs(pageFrames) do if pf.Visible then maxY = math.max(maxY, pf.Size.Y.Offset) end end content.CanvasSize = UDim2.new(0, 0, 0, maxY + 20) end local function newPage(name) local pf = Instance.new("Frame") pf.Size = UDim2.new(1, -10, 0, 0) pf.Position = UDim2.new(0, 5, 0, 0) pf.BackgroundTransparency = 1; pf.Visible = false; pf.Parent = content pageFrames[name] = pf return pf end local function makeButton(parent, label, cb, y) local b = Instance.new("TextButton") b.Size = UDim2.new(0, 235, 0, 26) b.Position = UDim2.new(0, 0, 0, y) b.BackgroundColor3 = Color3.fromRGB(40, 40, 40); b.BorderSizePixel = 0 b.Text = label; b.TextColor3 = Color3.fromRGB(210, 210, 210) b.Font = Enum.Font.Code; b.TextSize = 11; b.Parent = parent b.MouseButton1Click:Connect(cb) end local function makeSlider(parent, label, min, max, default, key, y, cb) local lbl = Instance.new("TextLabel") lbl.Size = UDim2.new(0, 235, 0, 14) lbl.Position = UDim2.new(0, 0, 0, y) lbl.BackgroundTransparency = 1 lbl.Text = label .. ": " .. tostring(default) lbl.TextColor3 = Color3.fromRGB(150, 150, 150) lbl.Font = Enum.Font.Code; lbl.TextSize = 10 lbl.TextXAlignment = Enum.TextXAlignment.Left; lbl.Parent = parent local box = Instance.new("TextBox") box.Size = UDim2.new(0, 60, 0, 22) box.Position = UDim2.new(0, 240, 0, y) box.BackgroundColor3 = Color3.fromRGB(35, 35, 35); box.BorderSizePixel = 0 box.Text = tostring(default); box.TextColor3 = Color3.fromRGB(220, 220, 220) box.Font = Enum.Font.Code; box.TextSize = 11 box.ClearTextOnFocus = false; box.Parent = parent box.FocusLost:Connect(function() local n = tonumber(box.Text) if n then n = math.clamp(n, min, max) box.Text = tostring(n) Settings[key] = n save_settings() if cb then cb(n) end end end) return box end for _, t in ipairs(tabs) do newPage(t) end -- ===== PLAYER ===== local p = pageFrames["Player"]; local y = 0 makeSlider(p, "WalkSpeed", 0, 500, Settings.walkSpeed, "walkSpeed", y, applyPlayerSettings); y = y + 28 makeSlider(p, "JumpPower", 0, 500, Settings.jumpPower, "jumpPower", y, applyPlayerSettings); y = y + 28 makeSlider(p, "Gravity", 0, 500, Settings.gravity, "gravity", y, applyPlayerSettings); y = y + 28 makeSlider(p, "Fly Speed", 0, 500, Settings.flySpeed, "flySpeed", y); y = y + 28 makeSlider(p, "FOV", 30, 120, Settings.fov, "fov", y, applyPlayerSettings); y = y + 34 makeButton(p, "Toggle Fly", function() toggleFly(not S.fly) end, y); y = y + 30 makeButton(p, "Toggle Noclip", function() toggleNoclip(not S.noclip) end, y); y = y + 30 makeButton(p, "Toggle Infinite Jump", function() S.infiniteJump = not S.infiniteJump end, y); y = y + 30 makeButton(p, "Toggle Godmode", function() S.godmode = not S.godmode end, y); y = y + 30 makeButton(p, "Toggle Infinite Stamina", function() S.infiniteStamina = not S.infiniteStamina end, y); y = y + 30 makeButton(p, "Toggle Anti-AFK", function() S.antiAfk = not S.antiAfk end, y); y = y + 30 makeButton(p, "Toggle Fullbright", function() S.fullbright = not S.fullbright; applyLighting() end, y); y = y + 30 makeButton(p, "Toggle No Fog", function() S.noFog = not S.noFog; applyLighting() end, y); y = y + 30 makeButton(p, "Toggle Headlamp", function() S.headlamp = not S.headlamp; applyLighting() end, y); y = y + 30 makeButton(p, "Reset Character", function() local hum = getHum(); if hum then hum.Health = 0 end end, y); y = y + 30 p.Size = UDim2.new(1, -10, 0, y + 10) -- ===== COMBAT ===== local c = pageFrames["Combat"]; y = 0 makeSlider(c, "Kill Aura Radius", 5, 150, Settings.killAuraRadius, "killAuraRadius", y); y = y + 28 makeSlider(c, "Chop Aura Radius", 5, 150, Settings.chopAuraRadius, "chopAuraRadius", y); y = y + 28 makeSlider(c, "Chop Aura Max Trees", 1, 20, Settings.chopAuraMaxTrees, "chopAuraMaxTrees", y); y = y + 28 makeSlider(c, "Hitbox Size", 2, 50, Settings.hitboxSize, "hitboxSize", y); y = y + 34 makeButton(c, "Toggle Kill Aura", function() S.killAura = not S.killAura end, y); y = y + 30 makeButton(c, "Toggle Chop Aura", function() S.chopAura = not S.chopAura end, y); y = y + 30 makeButton(c, "Toggle Hitbox Expander", function() S.hitboxExpander = not S.hitboxExpander end, y); y = y + 30 makeButton(c, "Toggle Silent Aim", function() S.silentAim = not S.silentAim end, y); y = y + 30 makeButton(c, "Toggle Auto Stun", function() S.autoStun = not S.autoStun end, y); y = y + 30 makeButton(c, "Toggle Freeze Entities", function() S.freezeEntities = not S.freezeEntities end, y); y = y + 30 c.Size = UDim2.new(1, -10, 0, y + 10) -- ===== FARM ===== local f = pageFrames["Farm"]; y = 0 makeSlider(f, "Auto Eat Delay", 1, 10, Settings.autoEatDelay, "autoEatDelay", y); y = y + 28 makeSlider(f, "Auto Plant Delay", 0.1, 5, Settings.autoPlantDelay, "autoPlantDelay", y); y = y + 28 makeSlider(f, "Circle Plant Radius", 2, 30, Settings.circlePlantRadius, "circlePlantRadius", y); y = y + 34 makeButton(f, "Toggle Auto Farm", function() S.autoFarm = not S.autoFarm end, y); y = y + 30 makeButton(f, "Toggle Auto Fuel", function() S.autoFuel = not S.autoFuel end, y); y = y + 30 makeButton(f, "Toggle Auto Cook", function() S.autoCook = not S.autoCook end, y); y = y + 30 makeButton(f, "Toggle Auto Eat", function() S.autoEat = not S.autoEat end, y); y = y + 30 makeButton(f, "Toggle Auto Heal", function() S.autoHeal = not S.autoHeal end, y); y = y + 30 makeButton(f, "Toggle Auto Plant", function() S.autoPlant = not S.autoPlant end, y); y = y + 30 makeButton(f, "Toggle Infinite Sapling", function() S.infiniteSapling = not S.infiniteSapling end, y); y = y + 30 makeButton(f, "Toggle Auto Scrap", function() S.autoScrap = not S.autoScrap end, y); y = y + 30 makeButton(f, "Toggle Auto Compress", function() S.autoCompress = not S.autoCompress end, y); y = y + 30 makeButton(f, "Toggle Auto Collect", function() S.autoCollect = not S.autoCollect end, y); y = y + 30 makeButton(f, "Toggle Auto Open Chests", function() S.autoOpenChests = not S.autoOpenChests end, y); y = y + 30 makeButton(f, "Toggle Auto Revive", function() S.autoRevive = not S.autoRevive end, y); y = y + 30 f.Size = UDim2.new(1, -10, 0, y + 10) -- ===== TELEPORT ===== local tp = pageFrames["Teleport"]; y = 0 makeButton(tp, "TP to Camp (0,50,0)", function() tpTo(Vector3.new(0, 50, 0)) end, y); y = y + 30 makeButton(tp, "TP to Nearest Tree", function() for _, v in ipairs(Workspace:GetDescendants()) do if v:IsA("Model") and v.Name:lower():find("tree") and v.PrimaryPart then local _, char = getHum() if char and char.PrimaryPart then char:PivotTo(v.PrimaryPart.CFrame * CFrame.new(0, 0, 5)) end return end end end, y); y = y + 30 makeButton(tp, "TP to Nearest Chest", function() for _, v in ipairs(Workspace:GetDescendants()) do if v:IsA("Model") and v.Name:lower():find("chest") and v.PrimaryPart then local _, char = getHum() if char and char.PrimaryPart then char:PivotTo(v.PrimaryPart.CFrame * CFrame.new(0, 0, 5)) end return end end end, y); y = y + 30 makeButton(tp, "TP to Nearest Lost Child", function() for _, v in ipairs(Workspace:GetDescendants()) do if v:IsA("Model") and v.Name:lower():find("child") and v.PrimaryPart then local _, char = getHum() if char and char.PrimaryPart then char:PivotTo(v.PrimaryPart.CFrame * CFrame.new(0, 0, 5)) end return end end end, y); y = y + 34 makeSlider(tp, "Target Player Name", 0, 0, 0, "targetPlayerInput", y, function() end); y = y + 28 makeButton(tp, "TP to Target Player", function() if S.targetPlayer then tpToPlayer(S.targetPlayer) end end, y); y = y + 30 makeButton(tp, "Follow Target Player", function() S.followPlayer = not S.followPlayer end, y); y = y + 30 tp.Size = UDim2.new(1, -10, 0, y + 10) -- ===== VISUALS ===== local v = pageFrames["Visuals"]; y = 0 makeSlider(v, "ESP Distance", 50, 2000, Settings.espDistance, "espDistance", y); y = y + 34 makeButton(v, "Toggle Player ESP", function() S.espPlayers = not S.espPlayers end, y); y = y + 30 makeButton(v, "Toggle Item ESP", function() S.espItems = not S.espItems end, y); y = y + 30 makeButton(v, "Toggle Chest ESP", function() S.espChests = not S.espChests end, y); y = y + 30 makeButton(v, "Toggle Tree ESP", function() S.espTrees = not S.espTrees end, y); y = y + 30 makeButton(v, "Toggle Mob ESP", function() S.espMobs = not S.espMobs end, y); y = y + 30 makeButton(v, "Toggle Child ESP", function() S.espChildren = not S.espChildren end, y); y = y + 30 makeButton(v, "Toggle Names", function() S.espNames = not S.espNames end, y); y = y + 30 v.Size = UDim2.new(1, -10, 0, y + 10) -- ===== MAP ===== local mp = pageFrames["Map"]; y = 0 makeButton(mp, "Toggle Hide Map (Keep Items)", function() map_set_hidden(not MapFilter.hidden) end, y); y = y + 30 makeButton(mp, "Toggle Map Outline ESP", function() map_set_outline(not MapFilter.outline) end, y); y = y + 30 makeButton(mp, "Restore Map + Outlines", function() map_restore_all() end, y); y = y + 30 makeSlider(mp, "Outline Cap (parts)", 100, 4000, Settings.mapOutlineCap, "mapOutlineCap", y); y = y + 28 makeSlider(mp, "Hide Chunk (parts/frame)", 20, 500, Settings.mapChunk, "mapChunk", y); y = y + 34 mp.Size = UDim2.new(1, -10, 0, y + 10) -- ===== SETTINGS ===== local st = pageFrames["Settings"]; y = 0 makeButton(st, "Save Config", function() save_settings(); notif("config saved → " .. config_path()) end, y); y = y + 30 makeButton(st, "Load Config", function() load_settings(); applyPlayerSettings(); notif("config loaded") end, y); y = y + 30 makeButton(st, "Log My IP → JSON (Local)", function() local e, path = logMyIP() if e then notif("logged " .. (e.ip or "?") .. " → " .. path) else notif("failed: " .. tostring(path)) end end, y); y = y + 30 makeButton(st, "Server Hop", function() local ok, raw = pcall(function() return game:HttpGet("https://games.roblox.com/v1/games/" .. game.PlaceId .. "/servers/Public?limit=100") end) if not ok or not raw then return notif("serverhop failed") end local ok2, data = pcall(function() return HttpService:JSONDecode(raw) end) if not ok2 or not data or not data.data then return notif("serverhop bad data") end for _, srv in ipairs(data.data) do if srv.playing < srv.maxPlayers and srv.id ~= game.JobId then pcall(function() TeleportService:TeleportToPlaceInstance(game.PlaceId, srv.id, lp) end) return end end end, y); y = y + 30 makeButton(st, "Toggle FPS Booster", function() S.fpsBooster = not S.fpsBooster end, y); y = y + 30 makeButton(st, "Toggle Low GFX", function() S.lowGfx = not S.lowGfx end, y); y = y + 30 makeButton(st, "Rejoin", function() pcall(function() TeleportService:Teleport(game.PlaceId, lp) end) end, y); y = y + 30 st.Size = UDim2.new(1, -10, 0, y + 10) -- tab buttons local tx = 0 for _, t in ipairs(tabs) do local btn = Instance.new("TextButton") btn.Size = UDim2.new(0, 72, 1, 0) btn.Position = UDim2.new(0, tx, 0, 0) btn.BackgroundColor3 = Color3.fromRGB(35, 35, 35) btn.BorderSizePixel = 0 btn.Text = t btn.TextColor3 = Color3.fromRGB(180, 180, 180) btn.Font = Enum.Font.Code btn.TextSize = 10 btn.Parent = tabBar btn.MouseButton1Click:Connect(function() for _, pf in pairs(pageFrames) do pf.Visible = false end pageFrames[t].Visible = true for _, b in pairs(tabButtons) do b.BackgroundColor3 = Color3.fromRGB(35, 35, 35) end btn.BackgroundColor3 = Color3.fromRGB(60, 60, 60) refreshCanvas() end) tabButtons[t] = btn tx = tx + 74 end pageFrames["Player"].Visible = true tabButtons["Player"].BackgroundColor3 = Color3.fromRGB(60, 60, 60) refreshCanvas() end -- ========================================================= -- 13. INIT -- ========================================================= applyPlayerSettings() buildUI() notif("loaded — config: " .. config_path()) notif("logs : " .. log_path() .. " (local only, no webhook)")