-- ENTITY ESP v5 (Baldi + Notebooks) - LocalScript en StarterPlayerScripts local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local player = Players.LocalPlayer local camera = workspace.CurrentCamera local WHITE = Color3.fromRGB(255, 255, 255) local BLACK = Color3.fromRGB(12, 12, 12) local GRAY = Color3.fromRGB(38, 38, 38) local settings = { ESP = true, Info = true, Tracers = true, } local tracked = {} -- ===== DETECCION ===== local notebooks = { ["EnglishNotebook"] = true, ["GeographyNotebook"] = true, ["HistoryNotebook"] = true, ["SpellingNotebook"] = true, ["SpellingNotebook (2)"] = true, ["HistoryNotebook (2)"] = true, ["English Notebook"] = true, ["Geography Notebook"] = true, ["History Notebook"] = true, ["Spelling Notebook (2)"] = true, ["History Notebook (2)"] = true, ["GeologyNotebook"] = true, ["MathNotebook"] = true, ["MathNotebook (1)"] = true, ["MathNotebook (2)"] = true, ["ScienceNotebook"] = true, ["ScienceNotebook (1)"] = true, ["SpellingNotebook (1)"] = true, } local function isTracked(object) if notebooks[object.Name] then return true, "notebook" end if string.find(string.lower(object.Name), "baldi") then return true, "enemy" end return false end -- El folder se resuelve SIEMPRE en vivo: entre rondas el mapa se destruye -- y se crea uno nuevo, asi que guardar la referencia vieja no sirve. local function getFolder() local root = workspace:FindFirstChild("odio el chocolate") if not root then return nil end return root:FindFirstChild("entities") end local function getPart(object) if object:IsA("BasePart") then return object end for _, name in ipairs({ "HumanoidRootPart", "marker", "sprite", "Torso", "Head", "Body" }) do local found = object:FindFirstChild(name, true) if found and found:IsA("BasePart") then return found end end return object:FindFirstChildWhichIsA("BasePart", true) end -- ===== ESP ===== local function register(object) if tracked[object] then return end if not object:IsA("Model") and not object:IsA("BasePart") and not object:IsA("ImageLabel") and not object:IsA("Part") then -- seguir igual: registramos cualquier instancia que pase el filtro de nombre end local isTrackedObject, kind = isTracked(object) if not isTrackedObject then return end local part = getPart(object) if not part then return end local highlight = Instance.new("Highlight") highlight.Adornee = object highlight.FillTransparency = kind == "enemy" and 0.7 or 0.85 highlight.FillColor = WHITE highlight.OutlineTransparency = 0 highlight.OutlineColor = WHITE highlight.Enabled = settings.ESP highlight.Parent = object local billboard = Instance.new("BillboardGui") billboard.Adornee = part billboard.Size = UDim2.fromOffset(170, 45) billboard.StudsOffset = Vector3.new(0, 4, 0) billboard.AlwaysOnTop = true billboard.Enabled = settings.ESP and settings.Info billboard.Parent = object local label = Instance.new("TextLabel") label.Size = UDim2.fromScale(1, 1) label.BackgroundTransparency = 1 label.TextColor3 = WHITE label.TextStrokeColor3 = BLACK label.TextStrokeTransparency = 0 label.TextScaled = true label.Font = Enum.Font.GothamBold label.Text = object.Name label.Parent = billboard local tracer = Drawing and Drawing.new("Line") or nil if tracer then tracer.Visible = false tracer.Thickness = 1.5 tracer.Color = WHITE end tracked[object] = { part = part, highlight = highlight, billboard = billboard, label = label, tracer = tracer, kind = kind, } end local function destroyVisuals(d) pcall(function() if d.highlight then d.highlight:Destroy() end if d.billboard then d.billboard:Destroy() end end) if d.tracer then pcall(function() d.tracer:Remove() end) end end local function remove(object) local d = tracked[object] if not d then return end destroyVisuals(d) tracked[object] = nil end -- Limpia entradas cuyas instancias ya no existen (ronda terminada, mapa cambiado) local function cleanup() for object, d in pairs(tracked) do if not object.Parent or not d.part or not d.part.Parent or not d.highlight or not d.highlight.Parent or not d.billboard or not d.billboard.Parent then destroyVisuals(d) tracked[object] = nil end end end -- Escanea el folder actual (GetDescendants cubre modelos anidados) local function scanFolder() local folder = getFolder() if not folder then return end for _, object in ipairs(folder:GetDescendants()) do register(object) end end -- Vigila TODA workspace y registra solo lo que cuelgue del folder VIGENTE. -- Asi, cuando empieza una ronda nueva y el juego crea otro "entities", -- el script lo detecta automaticamente. workspace.DescendantAdded:Connect(function(object) local folder = getFolder() if folder and object:IsDescendantOf(folder) then register(object) end end) workspace.DescendantRemoving:Connect(function(object) if tracked[object] then remove(object) end end) -- Resincronizacion periodica: repara todo lo que se haya perdido -- al cambiar de ronda y limpia fantasmas. task.spawn(function() while true do task.wait(2) cleanup() scanFolder() end end) -- Primer escaneo, con reintento por si el mapa todavia no cargo task.spawn(function() for _ = 1, 30 do if getFolder() then scanFolder() break end task.wait(1) end end) RunService.RenderStepped:Connect(function() for object, d in pairs(tracked) do -- SIEMPRE sincronizar el estado, incluso si el part no existe, -- para que los toggles apaguen todo de inmediato. local alive = object.Parent ~= nil and d.part and d.part.Parent ~= nil d.highlight.Enabled = settings.ESP and alive d.billboard.Enabled = settings.ESP and settings.Info and alive if not alive then if d.tracer then d.tracer.Visible = false end continue end local dist = (camera.CFrame.Position - d.part.Position).Magnitude d.label.Text = object.Name if settings.Info then d.label.Text ..= string.format(" [%.0f]", dist) end if d.kind == "enemy" then d.label.Text = "⚠ " .. d.label.Text end if d.tracer then local pos, onScreen = camera:WorldToViewportPoint(d.part.Position) local show = settings.ESP and settings.Tracers and onScreen d.tracer.Visible = show or false if show then d.tracer.From = Vector2.new(camera.ViewportSize.X / 2, camera.ViewportSize.Y) d.tracer.To = Vector2.new(pos.X, pos.Y) d.tracer.Color = WHITE end end end end) -- ===== MENU (minimalista negro/blanco) ===== local gui = Instance.new("ScreenGui") gui.Name = "EntityESP" gui.ResetOnSpawn = false gui.Parent = player:WaitForChild("PlayerGui") local main = Instance.new("Frame") main.Size = UDim2.fromOffset(230, 280) main.Position = UDim2.new(0, 25, 0.3, 0) main.BackgroundColor3 = BLACK main.BorderSizePixel = 0 main.Parent = gui local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 10) corner.Parent = main local accent = Instance.new("Frame") accent.Size = UDim2.new(0, 40, 0, 3) accent.Position = UDim2.new(0, 14, 0, 14) accent.BackgroundColor3 = WHITE accent.BorderSizePixel = 0 accent.Parent = main local title = Instance.new("TextLabel") title.Size = UDim2.new(1, -28, 0, 40) title.Position = UDim2.new(0, 14, 0, 12) title.BackgroundTransparency = 1 title.Text = "ENTITY ESP" title.TextColor3 = WHITE title.Font = Enum.Font.GothamBold title.TextSize = 16 title.TextXAlignment = Enum.TextXAlignment.Left title.Parent = main local subtitle = Instance.new("TextLabel") subtitle.Size = UDim2.new(1, -28, 0, 18) subtitle.Position = UDim2.new(0, 14, 0, 42) subtitle.BackgroundTransparency = 1 subtitle.Text = "baldi · notebooks" subtitle.TextColor3 = Color3.fromRGB(140, 140, 140) subtitle.Font = Enum.Font.Gotham subtitle.TextSize = 11 subtitle.TextXAlignment = Enum.TextXAlignment.Left subtitle.Parent = main local divider = Instance.new("Frame") divider.Size = UDim2.new(1, -28, 0, 1) divider.Position = UDim2.new(0, 14, 0, 66) divider.BackgroundColor3 = Color3.fromRGB(50, 50, 50) divider.BorderSizePixel = 0 divider.Parent = main local content = Instance.new("Frame") content.Position = UDim2.fromOffset(14, 76) content.Size = UDim2.new(1, -28, 1, -90) content.BackgroundTransparency = 1 content.Parent = main local layout = Instance.new("UIListLayout") layout.Padding = UDim.new(0, 8) layout.Parent = content local function button(text, callback) local b = Instance.new("TextButton") b.Size = UDim2.new(1, 0, 0, 32) b.BackgroundColor3 = GRAY b.TextColor3 = WHITE b.Font = Enum.Font.GothamMedium b.TextSize = 13 b.Text = text b.AutoButtonColor = false b.Parent = content local c = Instance.new("UICorner") c.CornerRadius = UDim.new(0, 6) c.Parent = b local bar = Instance.new("Frame") bar.Size = UDim2.new(0, 3, 1, 0) bar.BackgroundColor3 = WHITE bar.BorderSizePixel = 0 bar.Parent = b b.MouseButton1Click:Connect(function() callback(b) end) -- Respald por si MouseButton1Click no llega (movil / overlay) b.TouchTap:Connect(function() callback(b) end) return b end -- Estado visual centralizado: una sola fuente de verdad para el aspecto del boton local function applyToggleVisual(b, name, key) local on = settings[key] b.Text = name .. ": " .. (on and "ON" or "OFF") b.BackgroundColor3 = on and WHITE or GRAY b.TextColor3 = on and BLACK or WHITE if b:FindFirstChild("Bar") then b.Bar.BackgroundColor3 = on and BLACK or WHITE end end local function toggle(name, key) local b = button(name .. ": ON", function() settings[key] = not settings[key] applyToggleVisual(b, name, key) end) b.Name = "Bar" -- renombrar la barra para poder estilizarla for _, child in ipairs(b:GetChildren()) do if child:IsA("Frame") then child.Name = "Bar" end end applyToggleVisual(b, name, key) end toggle("ESP", "ESP") toggle("Info (nombre/dist)", "Info") toggle("Tracers", "Tracers") button("TP NOTEBOOK CERCANA", function() local char = player.Character local root = char and char:FindFirstChild("HumanoidRootPart") if not root then return end local best, bestDist = nil, math.huge for object, d in pairs(tracked) do if d.kind == "notebook" and d.part and d.part.Parent then local dist = (d.part.Position - root.Position).Magnitude if dist < bestDist then bestDist = dist best = d.part end end end if best then root.CFrame = best.CFrame + Vector3.new(0, 3, 0) end end) button("TP A BALDI", function() local char = player.Character local root = char and char:FindFirstChild("HumanoidRootPart") if not root then return end for object, d in pairs(tracked) do if d.kind == "enemy" and d.part and d.part.Parent then root.CFrame = d.part.CFrame + Vector3.new(0, 3, 0) break end end end) -- ===== BOTON FLOTANTE ABRIR/CERRAR ===== local toggleBtn = Instance.new("TextButton") toggleBtn.Size = UDim2.fromOffset(42, 42) toggleBtn.Position = UDim2.new(0, 15, 0.5, 0) toggleBtn.BackgroundColor3 = BLACK toggleBtn.Text = "◈" toggleBtn.TextColor3 = WHITE toggleBtn.Font = Enum.Font.GothamBold toggleBtn.TextSize = 22 toggleBtn.BorderSizePixel = 0 toggleBtn.Parent = gui local toggleCorner = Instance.new("UICorner") toggleCorner.CornerRadius = UDim.new(1, 0) toggleCorner.Parent = toggleBtn local toggleStroke = Instance.new("UIStroke") toggleStroke.Color = WHITE toggleStroke.Thickness = 1.5 toggleStroke.Parent = toggleBtn local menuVisible = true local function setMenuVisible(v) menuVisible = v main.Visible = v end toggleBtn.MouseButton1Click:Connect(function() setMenuVisible(not menuVisible) end) toggleBtn.TouchTap:Connect(function() setMenuVisible(not menuVisible) end) UserInputService.InputBegan:Connect(function(input, gameProcessed) if gameProcessed then return end if input.KeyCode == Enum.KeyCode.Insert then setMenuVisible(not menuVisible) end end) -- ===== ARRASTRAR (PC y Movil) ===== local dragging = false local dragStart, startPos local function startDrag(input) dragging = true dragStart = input.Position startPos = main.Position end local function updateDrag(input) if not dragging then return end local delta = input.Position - dragStart main.Position = UDim2.new( startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y ) end title.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then startDrag(input) end end) title.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = false end end) UserInputService.InputChanged:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then updateDrag(input) end end) -- El boton flotante tambien se puede arrastrar local btnDragging = false local btnDragStart, btnStartPos toggleBtn.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseButton1 then btnDragging = true btnDragStart = input.Position btnStartPos = toggleBtn.Position end end) toggleBtn.InputEnded:Connect(function() btnDragging = false end) UserInputService.InputChanged:Connect(function(input) if not btnDragging then return end if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then local delta = input.Position - btnDragStart toggleBtn.Position = UDim2.new( btnStartPos.X.Scale, btnStartPos.X.Offset + delta.X, btnStartPos.Y.Scale, btnStartPos.Y.Offset + delta.Y ) end end)