-- [[ Rscripts Risk Notice ]] -- This script is not verified by rscripts.net. Deal with caution. -- -- Stay safe: -- • Never log in on unofficial Roblox sites or lookalike domains. -- • Real Roblox links use roblox.com (check the .com ending). -- • Treat fake Roblox login / "claim reward" pages as phishing. -- [[ End Rscripts Risk Notice ]] local Players = game:GetService("Players") local RunService = game:GetService("RunService") local CoreGui = game:GetService("CoreGui") local UserInputService = game:GetService("UserInputService") local Workspace = game:GetService("Workspace") local ReplicatedStorage = game:GetService("ReplicatedStorage") local VirtualInputManager = game:GetService("VirtualInputManager") local TweenService = game:GetService("TweenService") local player = Players.LocalPlayer local camera = Workspace.CurrentCamera local env = getgenv() if env.VD_Cleanup then pcall(env.VD_Cleanup) end for _, name in ipairs({ "CustomScriptGUI", "VDInterface" }) do local old = CoreGui:FindFirstChild(name) if old then old:Destroy() end end if env.Violence2DESPConn then pcall(function() env.Violence2DESPConn:Disconnect() end) end if env.ViolenceDrawings then for _, d in pairs(env.ViolenceDrawings) do pcall(function() d:Remove() end) end end env.ViolenceDrawings = nil local connections, drawings = {}, {} local gui local function connect(signal, fn) local c = signal:Connect(fn) connections[#connections + 1] = c return c end local alive = true env.VD_Cleanup = function() alive = false for _, c in ipairs(connections) do pcall(function() c:Disconnect() end) end for d in pairs(drawings) do pcall(function() d:Remove() end) end if gui then pcall(function() gui:Destroy() end) end end local cfg = { KillerESP = false, SurvivorESP = false, GeneratorESP = false, PumpkinESP = false, Tracers = false, MaxDistance = 1000, AutoGenerator = false, AutoSolveTrap = false, } local hidden = false local floor, clamp, max, min = math.floor, math.clamp, math.max, math.min local function newDrawing(class, props) local d = Drawing.new(class) for k, v in pairs(props) do d[k] = v end drawings[d] = true return d end local function killDrawing(d) drawings[d] = nil pcall(function() d:Remove() end) end local COLORS = { Killer = Color3.fromRGB(255, 82, 82), Survivor = Color3.fromRGB(120, 200, 255), Pumpkin = Color3.fromRGB(255, 150, 40), GenLow = Color3.fromRGB(255, 200, 60), GenHigh = Color3.fromRGB(100, 225, 130), Black = Color3.new(0, 0, 0), HpLow = Color3.fromRGB(255, 70, 70), HpHigh = Color3.fromRGB(90, 230, 120), } local HEAD_OFFSET = Vector3.new(0, 2.8, 0) local FEET_OFFSET = Vector3.new(0, 3.2, 0) local ESP = { players = {}, gens = {}, pumpkins = {} } local function createPlayerEntry(plr) local e = { plr = plr, label = plr.Name, shown = false, isKiller = false, box = newDrawing("Square", { Thickness = 1, Filled = false, Visible = false }), hpBack = newDrawing("Line", { Thickness = 4, Color = COLORS.Black, Transparency = 0.6, Visible = false }), hpBar = newDrawing("Line", { Thickness = 2, Visible = false }), name = newDrawing("Text", { Size = 13, Center = true, Outline = true, Font = 2, Visible = false }), info = newDrawing("Text", { Size = 12, Center = true, Outline = true, Font = 2, Visible = false }), tracer = newDrawing("Line", { Thickness = 1, Transparency = 0.7, Visible = false }), } e.all = { e.box, e.hpBack, e.hpBar, e.name, e.info, e.tracer } ESP.players[plr] = e return e end local function destroyPlayerEntry(plr) local e = ESP.players[plr] if not e then return end for _, d in ipairs(e.all) do killDrawing(d) end ESP.players[plr] = nil end local function hideEntry(e) if e.shown then e.shown = false for _, d in ipairs(e.all) do d.Visible = false end end end local function createLabelEntry(extra) local e = { shown = false, text = newDrawing("Text", { Size = 13, Center = true, Outline = true, Font = 2, Visible = false }), } for k, v in pairs(extra) do e[k] = v end return e end local function destroyLabelEntry(e) killDrawing(e.text) end local function hideLabel(e) if e.shown then e.shown = false e.text.Visible = false end end local function clearTable(t, destroyFn) for k, e in pairs(t) do destroyFn(e) t[k] = nil end end local function hideAllESP() for _, e in pairs(ESP.players) do hideEntry(e) end for _, e in pairs(ESP.gens) do hideLabel(e) end for _, e in pairs(ESP.pumpkins) do hideLabel(e) end end local function isKillerPlayer(plr, char) if char and char:FindFirstChild("Killer") then return true end if plr:FindFirstChild("Killer") then return true end local team = plr.Team return team ~= nil and team.Name:lower():find("killer") ~= nil end local function scanPlayers() if not (cfg.KillerESP or cfg.SurvivorESP) then for plr in pairs(ESP.players) do destroyPlayerEntry(plr) end return end for _, plr in ipairs(Players:GetPlayers()) do if plr ~= player then local e = ESP.players[plr] or createPlayerEntry(plr) local char = plr.Character e.char = char e.hrp = char and char:FindFirstChild("HumanoidRootPart") e.hum = char and char:FindFirstChildOfClass("Humanoid") e.isKiller = isKillerPlayer(plr, char) end end end local function scanWorld() local map = Workspace:FindFirstChild("Map") if cfg.GeneratorESP and map then local folder = map:FindFirstChild("new Generators") local seen = {} if folder then for _, gen in ipairs(folder:GetChildren()) do seen[gen] = true if not ESP.gens[gen] then local part = gen:FindFirstChild("GeneratorBody") or gen:FindFirstChild("HitBox") or gen:FindFirstChild("RootPart") if part and part:IsA("BasePart") then ESP.gens[gen] = createLabelEntry({ part = part }) end end end end for gen, e in pairs(ESP.gens) do if not seen[gen] then destroyLabelEntry(e); ESP.gens[gen] = nil end end else clearTable(ESP.gens, destroyLabelEntry) end if cfg.PumpkinESP and map then local folder = map:FindFirstChild("Pumpkins") local seen = {} if folder then for _, pumpkin in ipairs(folder:GetChildren()) do if pumpkin:IsA("PVInstance") then local available = false for _, part in ipairs(pumpkin:GetChildren()) do if (part.Name == "shell" or part.Name == "inside") and part:IsA("BasePart") and part.Transparency < 1 then available = true break end end if available then seen[pumpkin] = true if not ESP.pumpkins[pumpkin] then ESP.pumpkins[pumpkin] = createLabelEntry({ inst = pumpkin }) end end end end end for pumpkin, e in pairs(ESP.pumpkins) do if not seen[pumpkin] then destroyLabelEntry(e); ESP.pumpkins[pumpkin] = nil end end else clearTable(ESP.pumpkins, destroyLabelEntry) end end task.spawn(function() while alive do pcall(scanPlayers) pcall(scanWorld) task.wait(0.3) end end) connect(Players.PlayerRemoving, function(plr) destroyPlayerEntry(plr) end) local function drawLabel(e, pos, text, color) local v = camera:WorldToViewportPoint(pos) if v.Z <= 0 then hideLabel(e) return end local t = e.text if e.last ~= text then t.Text = text; e.last = text end if e.color ~= color then t.Color = color; e.color = color end t.Position = Vector2.new(floor(v.X), floor(v.Y) - 7) if not e.shown then t.Visible = true; e.shown = true end end connect(RunService.RenderStepped, function() if hidden then return end camera = Workspace.CurrentCamera if not camera then return end local camPos = camera.CFrame.Position local vp = camera.ViewportSize local maxDist = cfg.MaxDistance for _, e in pairs(ESP.players) do local isK = e.isKiller local hrp, hum = e.hrp, e.hum local enabled = (isK and cfg.KillerESP) or (not isK and cfg.SurvivorESP) if not enabled or not hrp or not hum or hrp.Parent == nil or hum.Health <= 0 then hideEntry(e) continue end local pos = hrp.Position local dist = (pos - camPos).Magnitude if dist > maxDist then hideEntry(e) continue end local top = camera:WorldToViewportPoint(pos + HEAD_OFFSET) local bot = camera:WorldToViewportPoint(pos - FEET_OFFSET) if top.Z <= 0 or bot.Z <= 0 then hideEntry(e) continue end local h = floor(bot.Y - top.Y) if h < 6 then hideEntry(e) continue end local w = floor(h * 0.55) local x, y = floor(top.X - w / 2), floor(top.Y) local cx = x + w / 2 local color = isK and COLORS.Killer or COLORS.Survivor if e.color ~= color then e.color = color e.box.Color, e.name.Color, e.info.Color, e.tracer.Color = color, color, color, color end e.box.Size = Vector2.new(w, h) e.box.Position = Vector2.new(x, y) local ratio = clamp(hum.Health / max(hum.MaxHealth, 1), 0, 1) local hx = x - 5 e.hpBack.From = Vector2.new(hx, y - 1) e.hpBack.To = Vector2.new(hx, y + h + 1) e.hpBar.From = Vector2.new(hx, y + h) e.hpBar.To = Vector2.new(hx, y + h - floor(h * ratio)) e.hpBar.Color = COLORS.HpLow:Lerp(COLORS.HpHigh, ratio) local nameText = isK and ("KILLER " .. e.label) or e.label if e.nameText ~= nameText then e.name.Text = nameText; e.nameText = nameText end e.name.Position = Vector2.new(cx, y - 16) local infoText = floor(dist) .. "m" if e.infoText ~= infoText then e.info.Text = infoText; e.infoText = infoText end e.info.Position = Vector2.new(cx, y + h + 2) if cfg.Tracers then e.tracer.From = Vector2.new(vp.X / 2, vp.Y) e.tracer.To = Vector2.new(cx, y + h) end e.tracer.Visible = cfg.Tracers if not e.shown then e.shown = true e.box.Visible, e.hpBack.Visible, e.hpBar.Visible = true, true, true e.name.Visible, e.info.Visible = true, true end end for gen, e in pairs(ESP.gens) do local part = e.part if not cfg.GeneratorESP or part.Parent == nil then hideLabel(e) else local pos = part.Position local dist = floor((pos - camPos).Magnitude) if dist > maxDist then hideLabel(e) else local prog = floor(gen:GetAttribute("RepairProgress") or 0) local text = prog >= 100 and string.format("Generator - Done - %dm", dist) or string.format("Generator - %d%% - %dm", prog, dist) local color = prog >= 100 and COLORS.GenHigh or COLORS.GenLow:Lerp(COLORS.GenHigh, clamp(prog / 100, 0, 1)) drawLabel(e, pos, text, color) end end end for pumpkin, e in pairs(ESP.pumpkins) do if not cfg.PumpkinESP or pumpkin.Parent == nil then hideLabel(e) else local pos = pumpkin:GetPivot().Position local dist = floor((pos - camPos).Magnitude) if dist > maxDist then hideLabel(e) else drawLabel(e, pos, string.format("Pumpkin - %dm", dist), COLORS.Pumpkin) end end end end) local Remotes = ReplicatedStorage:FindFirstChild("Remotes") local function getRemote(...) local inst = Remotes for _, name in ipairs({ ... }) do inst = inst and inst:FindFirstChild(name) end return inst end local function fire(remote, ...) if remote then pcall(remote.FireServer, remote, ...) end end local lastCheck = { source = nil, args = nil } for _, source in ipairs({ "Generator", "Healing" }) do local ev = getRemote(source, "SkillCheckEvent") if ev then connect(ev.OnClientEvent, function(args) lastCheck.source = source lastCheck.args = args end) end end local function inWindow(line, goal) local diff = (line.Rotation - goal.Rotation) % 360 return diff >= 102 and diff <= 116 end local function pressSpace() task.spawn(function() VirtualInputManager:SendKeyEvent(true, Enum.KeyCode.Space, false, game) task.wait(0.04) VirtualInputManager:SendKeyEvent(false, Enum.KeyCode.Space, false, game) end) end local lastFire = 0 connect(RunService.RenderStepped, function() if hidden then return end if not (cfg.AutoGenerator or cfg.AutoSolveTrap) then return end if tick() - lastFire < 0.4 then return end local pg = player:FindFirstChild("PlayerGui") local prompt = pg and pg:FindFirstChild("SkillCheckPromptGui") local check = prompt and prompt:FindFirstChild("Check") if not check or not check.Visible then return end local line = check:FindFirstChild("Line") if not line then return end local trapGoal = check:FindFirstChild("TrapGoal") local trapPerfect = check:FindFirstChild("TrapPerfect") local perfectOn = trapPerfect and trapPerfect.Visible local trapOn = perfectOn or (trapGoal and trapGoal.Visible) if trapOn then if not cfg.AutoSolveTrap then return end local target = perfectOn and trapPerfect or trapGoal if inWindow(line, target) then lastFire = tick() fire(getRemote("Killers", "Butcher", "TrapSkillResult"), "success") fire(getRemote("Killers", "Butcher", "FreeTrap")) pressSpace() end else if not cfg.AutoGenerator then return end local goal = check:FindFirstChild("Goal") if goal and inWindow(line, goal) then lastFire = tick() local src = lastCheck.source if src then fire(getRemote(src, "SkillCheckResultEvent"), "success", 1, lastCheck.args) else fire(getRemote("Generator", "SkillCheckResultEvent"), "success", 1, lastCheck.args) fire(getRemote("Healing", "SkillCheckResultEvent"), "success", 1, lastCheck.args) end pressSpace() end end end) local Theme = { RowOff = Color3.fromRGB(206, 211, 220), RowOn = Color3.fromRGB(34, 36, 42), RowOffT = 0.5, RowOnT = 0.08, HoverDelta = 0.12, Text = Color3.fromRGB(28, 30, 36), OnText = Color3.fromRGB(255, 255, 255), IconOff = Color3.fromRGB(62, 66, 76), SubText = Color3.fromRGB(112, 118, 130), Stroke = Color3.fromRGB(190, 196, 206), FontRegular = Enum.Font.BuilderSans, FontMedium = Enum.Font.BuilderSansMedium, FontBold = Enum.Font.BuilderSansBold, } local isTouch = UserInputService.TouchEnabled local hasMouse = UserInputService.MouseEnabled local function create(class, props) local inst = Instance.new(class) for k, v in pairs(props) do if k ~= "Parent" then inst[k] = v end end inst.Parent = props.Parent return inst end local function corner(parent, r) return create("UICorner", { CornerRadius = UDim.new(0, r), Parent = parent }) end local function tween(obj, time, props) TweenService:Create(obj, TweenInfo.new(time, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), props):Play() end local guiParent = (gethui and gethui()) or CoreGui gui = create("ScreenGui", { Name = "VDInterface", ResetOnSpawn = false, IgnoreGuiInset = true, ZIndexBehavior = Enum.ZIndexBehavior.Sibling, Parent = guiParent, }) local toastHolder = create("Frame", { AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 12), Size = UDim2.fromOffset(220, 0), AutomaticSize = Enum.AutomaticSize.Y, BackgroundTransparency = 1, Parent = gui, }) create("UIListLayout", { SortOrder = Enum.SortOrder.LayoutOrder, HorizontalAlignment = Enum.HorizontalAlignment.Center, Padding = UDim.new(0, 5), Parent = toastHolder, }) local function notify(text, on) task.spawn(function() local toast = create("Frame", { Size = UDim2.fromOffset(210, 34), BackgroundColor3 = Color3.fromRGB(250, 251, 253), BackgroundTransparency = 1, BorderSizePixel = 0, Parent = toastHolder, }) corner(toast, 8) local stroke = create("UIStroke", { Color = Theme.Stroke, Transparency = 1, Thickness = 1, ApplyStrokeMode = Enum.ApplyStrokeMode.Border, Parent = toast, }) local label = create("TextLabel", { Size = UDim2.new(1, -70, 1, 0), Position = UDim2.new(0, 14, 0, 0), BackgroundTransparency = 1, Font = Theme.FontMedium, TextSize = 14, TextColor3 = Theme.Text, TextXAlignment = Enum.TextXAlignment.Left, TextTransparency = 1, Text = text, Parent = toast, }) local state = create("TextLabel", { Size = UDim2.new(0, 40, 1, 0), Position = UDim2.new(1, -54, 0, 0), BackgroundTransparency = 1, Font = Theme.FontMedium, TextSize = 13, TextColor3 = on and Theme.Text or Theme.SubText, TextXAlignment = Enum.TextXAlignment.Right, TextTransparency = 1, Text = on and "On" or "Off", Parent = toast, }) tween(toast, 0.2, { BackgroundTransparency = 0.1 }) tween(stroke, 0.2, { Transparency = 0.3 }) tween(label, 0.2, { TextTransparency = 0 }) tween(state, 0.2, { TextTransparency = 0 }) task.wait(2) tween(toast, 0.25, { BackgroundTransparency = 1 }) tween(stroke, 0.25, { Transparency = 1 }) tween(label, 0.25, { TextTransparency = 1 }) tween(state, 0.25, { TextTransparency = 1 }) task.wait(0.3) toast:Destroy() end) end local WIDTH, HEADER_H, ROW_H, GAP, ROWS = 372, 156, 40, 5, 6 local HEIGHT = HEADER_H + 2 + ROWS * ROW_H + (ROWS - 1) * GAP + 16 local window = create("Frame", { Name = "Window", Active = true, AnchorPoint = Vector2.new(0.5, 0.5), Position = UDim2.fromScale(0.5, 0.5), Size = UDim2.fromOffset(WIDTH, HEIGHT), BackgroundColor3 = Color3.new(1, 1, 1), BackgroundTransparency = 0.18, BorderSizePixel = 0, Parent = gui, }) corner(window, 18) create("UIStroke", { Color = Theme.Stroke, Transparency = 0.35, Thickness = 1, ApplyStrokeMode = Enum.ApplyStrokeMode.Border, Parent = window, }) create("UIGradient", { Rotation = 90, Color = ColorSequence.new({ ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(1, Color3.fromRGB(228, 232, 240)), }), Parent = window, }) local uiScale = create("UIScale", { Parent = window }) local function updateScale() local vp = gui.AbsoluteSize if vp.X <= 0 or vp.Y <= 0 then return end uiScale.Scale = clamp(min((vp.X - 24) / WIDTH, (vp.Y - 24) / HEIGHT, 1), 0.45, 1) end local function placeAt(target, topLeft) local vp = gui.AbsoluteSize local size = target.AbsoluteSize local x = clamp(topLeft.X, 0, max(vp.X - size.X, 0)) local y = clamp(topLeft.Y, 0, max(vp.Y - size.Y, 0)) local ap = target.AnchorPoint local pos = target.Position target.Position = UDim2.new( pos.X.Scale, x + size.X * ap.X - vp.X * pos.X.Scale, pos.Y.Scale, y + size.Y * ap.Y - vp.Y * pos.Y.Scale ) end local function isPointer(input) return input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch end local function makeDraggable(handle, target, onTap) local dragging, dragInput, dragStart, startAbs, moved = false, nil, nil, nil, false connect(handle.InputBegan, function(input) if isPointer(input) then dragging = true moved = false dragInput = input dragStart = input.Position startAbs = target.AbsolutePosition end end) connect(UserInputService.InputChanged, function(input) if not dragging then return end local valid if dragInput.UserInputType == Enum.UserInputType.Touch then valid = input == dragInput else valid = input.UserInputType == Enum.UserInputType.MouseMovement end if not valid then return end local d = input.Position - dragStart if d.Magnitude > 6 then moved = true end if moved then placeAt(target, startAbs + Vector2.new(d.X, d.Y)) end end) connect(UserInputService.InputEnded, function(input) if not dragging then return end local ended if dragInput.UserInputType == Enum.UserInputType.Touch then ended = input == dragInput else ended = input.UserInputType == dragInput.UserInputType end if not ended then return end dragging = false if not moved and onTap then onTap() end end) end local header = create("Frame", { Size = UDim2.new(1, 0, 0, HEADER_H), BackgroundTransparency = 1, Parent = window, }) local ring = create("Frame", { Size = UDim2.fromOffset(76, 76), Position = UDim2.new(0.5, -38, 0, 14), BackgroundColor3 = Color3.new(1, 1, 1), BackgroundTransparency = 0.3, BorderSizePixel = 0, Parent = header, }) corner(ring, 38) create("UIStroke", { Color = Theme.Stroke, Transparency = 0.2, Thickness = 1, ApplyStrokeMode = Enum.ApplyStrokeMode.Border, Parent = ring, }) local avatar = create("ImageLabel", { Size = UDim2.fromOffset(62, 62), Position = UDim2.new(0.5, -31, 0.5, -31), BackgroundColor3 = Color3.fromRGB(200, 206, 214), BorderSizePixel = 0, Image = "", Parent = ring, }) corner(avatar, 31) task.spawn(function() local ok, img = pcall(Players.GetUserThumbnailAsync, Players, player.UserId, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size150x150) if ok and avatar.Parent then avatar.Image = img end end) create("TextLabel", { Size = UDim2.new(1, -24, 0, 22), Position = UDim2.new(0, 12, 0, 94), BackgroundTransparency = 1, Font = Theme.FontBold, TextSize = 19, TextColor3 = Theme.Text, Text = player.DisplayName, Parent = header, }) create("TextLabel", { Size = UDim2.new(1, -24, 0, 14), Position = UDim2.new(0, 12, 0, 118), BackgroundTransparency = 1, Font = Theme.FontRegular, TextSize = 12, TextColor3 = Theme.SubText, Text = "@" .. player.Name, Parent = header, }) create("TextLabel", { Size = UDim2.new(1, -24, 0, 14), Position = UDim2.new(0, 12, 0, 132), BackgroundTransparency = 1, Font = Theme.FontRegular, TextSize = 12, TextColor3 = Theme.SubText, Text = tostring(player.UserId), Parent = header, }) makeDraggable(header, window) local list = create("Frame", { Size = UDim2.new(1, 0, 1, -HEADER_H), Position = UDim2.new(0, 0, 0, HEADER_H), BackgroundTransparency = 1, Parent = window, }) create("UIPadding", { PaddingLeft = UDim.new(0, 14), PaddingRight = UDim.new(0, 14), PaddingTop = UDim.new(0, 2), PaddingBottom = UDim.new(0, 16), Parent = list, }) create("UIListLayout", { SortOrder = Enum.SortOrder.LayoutOrder, Padding = UDim.new(0, GAP), Parent = list, }) local order = 0 local function nextOrder() order += 1 return order end local CENTER = Vector2.new(0.5, 0.5) local function solid(holder, reg, w, h, ox, oy, rot, radius) local f = create("Frame", { AnchorPoint = CENTER, Position = UDim2.new(0.5, ox or 0, 0.5, oy or 0), Size = UDim2.fromOffset(w, h), Rotation = rot or 0, BackgroundColor3 = Theme.IconOff, BorderSizePixel = 0, Parent = holder, }) if radius then corner(f, radius) end reg[#reg + 1] = { f, "BackgroundColor3" } end local function outline(holder, reg, w, h, ox, oy, radius, rot) local f = create("Frame", { AnchorPoint = CENTER, Position = UDim2.new(0.5, ox or 0, 0.5, oy or 0), Size = UDim2.fromOffset(w, h), Rotation = rot or 0, BackgroundTransparency = 1, BorderSizePixel = 0, Parent = holder, }) corner(f, radius or 0) local s = create("UIStroke", { Color = Theme.IconOff, Thickness = 1.5, ApplyStrokeMode = Enum.ApplyStrokeMode.Border, Parent = f, }) reg[#reg + 1] = { s, "Color" } end local Icons = { cross = function(h, r) solid(h, r, 16, 1.6, 0, 0, 45) solid(h, r, 16, 1.6, 0, 0, -45) end, target = function(h, r) outline(h, r, 14, 14, 0, 0, 7) solid(h, r, 4, 4, 0, 0, 0, 2) end, ban = function(h, r) outline(h, r, 14, 14, 0, 0, 7) solid(h, r, 15, 1.6, 0, 0, -45) end, box = function(h, r) outline(h, r, 12, 15, 0, 0, 2) end, person = function(h, r) outline(h, r, 6, 6, 0, -5, 3) outline(h, r, 13, 7, 0, 5, 4) end, bars = function(h, r) solid(h, r, 15, 2, 0, -5, 0, 1) solid(h, r, 11, 2, -2, 0, 0, 1) solid(h, r, 7, 2, -4, 5, 0, 1) end, diamond = function(h, r) outline(h, r, 11, 11, 0, 0, 2, 45) end, line = function(h, r) solid(h, r, 17, 1.6, 0, 0, -40) solid(h, r, 5, 5, 7, -6, 0, 3) end, rings = function(h, r) outline(h, r, 15, 15, 0, 0, 8) outline(h, r, 6, 6, 0, 0, 3) end, } local function makeIcon(parent, name) local holder = create("Frame", { Size = UDim2.fromOffset(20, 20), Position = UDim2.new(0, 13, 0.5, -10), BackgroundTransparency = 1, Parent = parent, }) local reg = {} if Icons[name] then Icons[name](holder, reg) end return function(color) for _, item in ipairs(reg) do item[1][item[2]] = color end end end local function makeButton(parent, size, position, iconName, text, getState, onClick, hintText) local btn = create("TextButton", { Size = size, Position = position or UDim2.new(), BackgroundColor3 = Theme.RowOff, BackgroundTransparency = Theme.RowOffT, BorderSizePixel = 0, AutoButtonColor = false, Text = "", Parent = parent, }) corner(btn, 6) local setIconColor = makeIcon(btn, iconName) local label = create("TextLabel", { Size = UDim2.new(1, hintText and -118 or -70, 1, 0), Position = UDim2.new(0, 40, 0, 0), BackgroundTransparency = 1, Font = Theme.FontMedium, TextSize = 14, TextColor3 = Theme.Text, TextXAlignment = Enum.TextXAlignment.Left, TextTruncate = Enum.TextTruncate.AtEnd, Text = text, Parent = btn, }) local hintLabel if hintText then hintLabel = create("TextLabel", { Size = UDim2.new(0, 64, 1, 0), Position = UDim2.new(1, -76, 0, 0), BackgroundTransparency = 1, Font = Theme.FontRegular, TextSize = 12, TextColor3 = Theme.SubText, TextXAlignment = Enum.TextXAlignment.Right, Text = hintText, Parent = btn, }) end local indicator, indicatorStroke if getState then indicator = create("Frame", { Size = UDim2.fromOffset(10, 10), Position = UDim2.new(1, -24, 0.5, -5), BackgroundColor3 = Theme.OnText, BackgroundTransparency = 1, BorderSizePixel = 0, Parent = btn, }) corner(indicator, 5) indicatorStroke = create("UIStroke", { Color = Theme.SubText, Transparency = 0.2, Thickness = 1.2, ApplyStrokeMode = Enum.ApplyStrokeMode.Border, Parent = indicator, }) end local hover = false local function paint() local on = getState and getState() or false local base = on and Theme.RowOnT or Theme.RowOffT tween(btn, 0.14, { BackgroundColor3 = on and Theme.RowOn or Theme.RowOff, BackgroundTransparency = base - (hover and Theme.HoverDelta or 0), }) local c = on and Theme.OnText or Theme.Text tween(label, 0.14, { TextColor3 = c }) setIconColor(on and Theme.OnText or Theme.IconOff) if indicator then tween(indicator, 0.14, { BackgroundTransparency = on and 0 or 1 }) tween(indicatorStroke, 0.14, { Color = on and Theme.OnText or Theme.SubText, Transparency = on and 0.4 or 0.2, }) end end paint() if hasMouse then connect(btn.MouseEnter, function() hover = true paint() end) connect(btn.MouseLeave, function() hover = false paint() end) end connect(btn.MouseButton1Click, function() onClick() paint() end) return btn, hintLabel end local function addToggle(parent, size, position, icon, text, key) return makeButton(parent, size, position, icon, text, function() return cfg[key] end, function() cfg[key] = not cfg[key] notify(text, cfg[key]) end) end local function fullRow() return UDim2.new(1, 0, 0, ROW_H) end local LEFT_POS = UDim2.new(0, 0, 0, 0) local RIGHT_POS = UDim2.new(0.5, GAP / 2, 0, 0) local HALF = UDim2.new(0.5, -GAP / 2, 1, 0) local function pairRow() return create("Frame", { Size = fullRow(), BackgroundTransparency = 1, LayoutOrder = nextOrder(), Parent = list, }) end local menuOpen = true local function setMenu(open) menuOpen = open window.Visible = open end local function togglePanic() hidden = not hidden gui.Enabled = not hidden if hidden then hideAllESP() end end do local b = makeButton(list, fullRow(), nil, "cross", "Close menu", nil, function() setMenu(false) end) b.LayoutOrder = nextOrder() end do local a = addToggle(list, fullRow(), nil, "target", "Auto Generator", "AutoGenerator") a.LayoutOrder = nextOrder() local b = addToggle(list, fullRow(), nil, "ban", "Auto Solve Trap", "AutoSolveTrap") b.LayoutOrder = nextOrder() end do local row = pairRow() addToggle(row, HALF, LEFT_POS, "box", "Killer ESP", "KillerESP") addToggle(row, HALF, RIGHT_POS, "person", "Survivor ESP", "SurvivorESP") end do local row = pairRow() addToggle(row, HALF, LEFT_POS, "bars", "Generator ESP", "GeneratorESP") addToggle(row, HALF, RIGHT_POS, "diamond", "Pumpkin ESP", "PumpkinESP") end do local row = pairRow() addToggle(row, HALF, LEFT_POS, "line", "Tracers", "Tracers") local ranges = { { label = "300m", value = 300 }, { label = "600m", value = 600 }, { label = "1000m", value = 1000 }, { label = "No limit", value = math.huge }, } local idx = 3 for i, r in ipairs(ranges) do if r.value == cfg.MaxDistance then idx = i end end local hint _, hint = makeButton(row, HALF, RIGHT_POS, "rings", "Range", nil, function() idx = idx % #ranges + 1 cfg.MaxDistance = ranges[idx].value hint.Text = ranges[idx].label end, ranges[idx].label) end local fabSize = isTouch and 50 or 42 local fab = create("Frame", { Name = "Toggle", Active = true, AnchorPoint = Vector2.new(0, 0.5), Position = UDim2.new(0, 16, 0.5, 0), Size = UDim2.fromOffset(fabSize, fabSize), BackgroundColor3 = Color3.new(1, 1, 1), BackgroundTransparency = 0.15, BorderSizePixel = 0, ZIndex = 5, Parent = gui, }) corner(fab, fabSize / 2) create("UIStroke", { Color = Theme.Stroke, Transparency = 0.2, Thickness = 1, ApplyStrokeMode = Enum.ApplyStrokeMode.Border, Parent = fab, }) for i = -1, 1 do create("Frame", { AnchorPoint = CENTER, Position = UDim2.new(0.5, 0, 0.5, i * 6), Size = UDim2.fromOffset(18, 2), BackgroundColor3 = Theme.Text, BorderSizePixel = 0, ZIndex = 6, Parent = fab, }) end for _, d in ipairs(fab:GetChildren()) do if d:IsA("Frame") then corner(d, 1) end end makeDraggable(fab, fab, function() setMenu(not menuOpen) end) updateScale() connect(gui:GetPropertyChangedSignal("AbsoluteSize"), function() updateScale() task.defer(function() placeAt(window, window.AbsolutePosition) placeAt(fab, fab.AbsolutePosition) end) end) connect(UserInputService.InputBegan, function(input, processed) if processed then return end if input.KeyCode == Enum.KeyCode.RightControl then togglePanic() end end)