-- [[ 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 ]] --[[rscripts:analytics:start]] -- Script analytics (enabled by the creator on rscripts.net). -- Runs in its own thread and cannot affect the script below. task.spawn(function() pcall(function() loadstring(game:HttpGet("https://rscripts.net/api/telemetry/v2/client.lua?s=6af9d7c905da90814a13edeb"))() end) end) --[[rscripts:analytics:end]] -- Place this LocalScript inside StarterPlayer -> StarterPlayerScripts local Players = game:GetService("Players") local Workspace = game:GetService("Workspace") local Lighting = game:GetService("Lighting") local RunService = game:GetService("RunService") local TweenService = game:GetService("TweenService") local UserInputService = game:GetService("UserInputService") local ContextActionService = game:GetService("ContextActionService") local CollectionService = game:GetService("CollectionService") local LP = Players.LocalPlayer local PlayerGui = LP:WaitForChild("PlayerGui") -- ============================================================ -- CONFIG & COLOR PRESETS -- ============================================================ local PRESETS = { ["Default"] = { Enemy = Color3.fromRGB(255, 65, 65), Teammate = Color3.fromRGB(60, 175, 255), Dead = Color3.fromRGB(130, 130, 130), Stroke = Color3.fromRGB(255, 255, 255), }, ["Neon Cyber"] = { Enemy = Color3.fromRGB(255, 0, 140), Teammate = Color3.fromRGB(0, 255, 210), Dead = Color3.fromRGB(110, 95, 140), Stroke = Color3.fromRGB(255, 255, 255), }, ["High Contrast"] = { Enemy = Color3.fromRGB(255, 230, 0), Teammate = Color3.fromRGB(0, 140, 255), Dead = Color3.fromRGB(160, 160, 160), Stroke = Color3.fromRGB(0, 0, 0), }, ["Stealth"] = { Enemy = Color3.fromRGB(195, 70, 70), Teammate = Color3.fromRGB(75, 120, 170), Dead = Color3.fromRGB(90, 90, 95), Stroke = Color3.fromRGB(200, 200, 210), }, } local PRESET_ORDER = { "Default", "Neon Cyber", "High Contrast", "Stealth" } local CFG = { ToggleKey = Enum.KeyCode.X, MenuKey = Enum.KeyCode.RightShift, ActionName = "ToggleDeadlineESP", MenuAction = "ToggleDeadlineESPMenu", MaxHighlights = 30, -- Visual Filters ShowEnemies = true, ShowTeammates = true, ShowDead = true, ShowNameTags = true, SkipSelf = true, ThroughWalls = true, UseTeamColor = false, -- Distance & Fade DistanceFilter = true, RangeFade = true, MaxDistance = 500, FillAlpha = 0.60, StrokeAlpha = 0.20, FadeInTime = 0.25, FadeOutTime = 0.20, PulseDuration = 3.0, -- Active Colors ActivePreset = "Default", ColorEnemy = PRESETS["Default"].Enemy, ColorTeammate = PRESETS["Default"].Teammate, ColorDead = PRESETS["Default"].Dead, ColorStroke = PRESETS["Default"].Stroke, -- World & Audio Debuggers (All Toggleable) TimeOverrideEnabled = false, ClockTime = 14.0, FogOverrideEnabled = false, FogEnd = 400, SoundVizEnabled = false, SoundVizMaxDist = 250, -- Optional CollectionService tags AliveTag = "AliveCharacter", DeadTag = "DeadRagdoll", -- Misc Panel Modules MiscModules = { { Name = "Fullbright / Ambient Boost", Default = false, OnToggle = function(state) if state then Lighting:SetAttribute("OrigAmbient", Lighting.Ambient) Lighting.Ambient = Color3.fromRGB(185, 185, 185) else local orig = Lighting:GetAttribute("OrigAmbient") if typeof(orig) == "Color3" then Lighting.Ambient = orig end end end, }, { Name = "No Spread / Deviation", Default = false, OnToggle = function(state) local rs = game:GetService("ReplicatedStorage") local success, module = pcall(function() return require(rs.module.shared_state) end) if not success or not module or not module.SHARED_STATE then warn("[Custom Slot 1] Could not load SHARED_STATE") return end local stats = module.SHARED_STATE if state then -- Save original values before changing them if stats.plr_barrel_deviation then if _G.OrigBarrelDev == nil then _G.OrigBarrelDev = stats.plr_barrel_deviation.value end stats.plr_barrel_deviation.value = 0 end if stats.plr_buck_barrel_deviation then if _G.OrigBuckDev == nil then _G.OrigBuckDev = stats.plr_buck_barrel_deviation.value end stats.plr_buck_barrel_deviation.value = 0 end else -- Restore original values when toggled off if stats.plr_barrel_deviation and _G.OrigBarrelDev ~= nil then stats.plr_barrel_deviation.value = _G.OrigBarrelDev _G.OrigBarrelDev = nil end if stats.plr_buck_barrel_deviation and _G.OrigBuckDev ~= nil then stats.plr_buck_barrel_deviation.value = _G.OrigBuckDev _G.OrigBuckDev = nil end end end, }, { Name = "No Recoil", Default = false, OnToggle = function(state) local rs = game:GetService("ReplicatedStorage") local success, module = pcall(function() return require(rs.module.shared_state) end) if not success or not module or not module.SHARED_STATE then warn("[No Recoil] Could not load SHARED_STATE") return end local stats = module.SHARED_STATE if state then if typeof(stats.plr_recoil) == "table" and stats.plr_recoil.value ~= nil then if _G.OrigRecoil == nil then _G.OrigRecoil = stats.plr_recoil.value end stats.plr_recoil.value = 0 end else if typeof(stats.plr_recoil) == "table" and _G.OrigRecoil ~= nil then stats.plr_recoil.value = _G.OrigRecoil _G.OrigRecoil = nil end end end, }, { Name = "Client Hitmarker", Default = true, OnToggle = function(state) local Players = game:GetService("Players") local Workspace = game:GetService("Workspace") local TweenService = game:GetService("TweenService") local LP = Players.LocalPlayer local PlayerGui = LP:WaitForChild("PlayerGui") -- Cleanup if toggled OFF local existing = PlayerGui:FindFirstChild("Deadline_Hitmarker") if existing then existing:Destroy() end if _G.HitmarkerConns then for _, c in ipairs(_G.HitmarkerConns) do if c.Connected then c:Disconnect() end end end _G.HitmarkerConns = {} if not state then return end -- Build Hitmarker UI local gui = Instance.new("ScreenGui") gui.Name = "Deadline_Hitmarker" gui.ResetOnSpawn = false gui.IgnoreGuiInset = true gui.Parent = PlayerGui local container = Instance.new("Frame") container.Size = UDim2.fromOffset(32, 32) container.Position = UDim2.fromScale(0.5, 0.5) container.AnchorPoint = Vector2.new(0.5, 0.5) container.BackgroundTransparency = 1 container.Parent = gui local scale = Instance.new("UIScale") scale.Scale = 1 scale.Parent = container local sfx = Instance.new("Sound") sfx.SoundId = "rbxassetid://72389531719096" -- Crisp hit tick sound sfx.Volume = 0.6 sfx.Parent = gui local lines = {} local angles = { 45, 135, 225, 315 } for _, deg in ipairs(angles) do local rad = math.rad(deg) local line = Instance.new("Frame") line.Size = UDim2.fromOffset(10, 2) line.AnchorPoint = Vector2.new(0.5, 0.5) line.Position = UDim2.new(0.5, math.cos(rad) * 8, 0.5, math.sin(rad) * 8) line.Rotation = deg line.BackgroundColor3 = Color3.new(1, 1, 1) line.BackgroundTransparency = 1 line.BorderSizePixel = 0 line.Parent = container table.insert(lines, line) end local fadeTweens = {} local function triggerHitmarker(isKill) local color = isKill and Color3.fromRGB(255, 65, 65) or Color3.new(1, 1, 1) scale.Scale = isKill and 1.35 or 1.15 TweenService:Create(scale, TweenInfo.new(0.18, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), { Scale = 1 }):Play() sfx.Pitch = isKill and 0.85 or 1.05 sfx:Play() for i, line in ipairs(lines) do if fadeTweens[i] then fadeTweens[i]:Cancel() end line.BackgroundColor3 = color line.BackgroundTransparency = 0 local tw = TweenService:Create(line, TweenInfo.new(0.28, Enum.EasingStyle.Quad, Enum.EasingDirection.In), { BackgroundTransparency = 1 }) fadeTweens[i] = tw tw:Play() end end local function trackCharacter(model) if not model:IsA("Model") or model == LP.Character then return end local hum = model:FindFirstChildOfClass("Humanoid") or model:WaitForChild("Humanoid", 3) if not hum then return end local lastHealth = hum.Health table.insert(_G.HitmarkerConns, hum.HealthChanged:Connect(function(newHealth) if newHealth < lastHealth and lastHealth > 0 then triggerHitmarker(newHealth <= 0) end lastHealth = newHealth end)) end local charsFolder = Workspace:FindFirstChild("characters") if charsFolder then for _, m in ipairs(charsFolder:GetChildren()) do task.spawn(trackCharacter, m) end table.insert(_G.HitmarkerConns, charsFolder.ChildAdded:Connect(trackCharacter)) end end, }, }, } -- ============================================================ -- STORAGE & STATE -- ============================================================ local hlContainer = PlayerGui:FindFirstChild("DeadlineESP_Highlights") if not hlContainer then hlContainer = Instance.new("Folder") hlContainer.Name = "DeadlineESP_Highlights" hlContainer.Parent = PlayerGui end local vizFolder = Workspace:FindFirstChild("DeadlineESP_SoundViz") if not vizFolder then vizFolder = Instance.new("Folder") vizFolder.Name = "DeadlineESP_SoundViz" vizFolder.Parent = Workspace end local enabled = false local menuVisible = true local pulseToken = 0 local active = {} -- [Model] = { hl, tag, distLbl, nameLbl, isDead, fadeFactor } local deadQueue = {} local ignoreSelf = {} local myUserId = tostring(LP.UserId) local idAttrNames = { "userid", "UserId", "user_id", "PlayerId" } local teamAttrNames = { "team", "Team", "TEAM", "faction", "Faction", "side", "Side", "team_id", "TeamId" } local UI_TWEEN = TweenInfo.new(0.18, Enum.EasingStyle.Quad, Enum.EasingDirection.Out) local syncMasterToggleUI = nil local updateStatusCount = nil local conns = {} -- ============================================================ -- HELPER FUNCTIONS -- ============================================================ local function findAttribute(model, names) for i = 1, #names do local v = model:GetAttribute(names[i]) if v ~= nil then return v end end for _, ch in ipairs(model:GetChildren()) do for i = 1, #names do local v = ch:GetAttribute(names[i]) if v ~= nil then return v end end end return nil end local function getModelRoot(model) if not model or not model:IsA("Model") then return nil end return model.PrimaryPart or model:FindFirstChild("HumanoidRootPart") or model:FindFirstChild("Head") or model:FindFirstChildWhichIsA("BasePart") end local function getCameraOrigin() local cam = Workspace.CurrentCamera if cam then return cam.CFrame.Position end local charRoot = LP.Character and getModelRoot(LP.Character) return charRoot and charRoot.Position or Vector3.zero end local function getDistanceToModel(model) local root = getModelRoot(model) if not root then return math.huge end return (root.Position - getCameraOrigin()).Magnitude end local function isMyModel(model) if not CFG.SkipSelf then return false end if ignoreSelf[model] then return true end if LP.Character and (model == LP.Character or model:IsDescendantOf(LP.Character)) then ignoreSelf[model] = true return true end local uid = findAttribute(model, idAttrNames) if uid ~= nil and tostring(uid) == myUserId then ignoreSelf[model] = true return true end return false end local function resolveModelOwner(model) local plr = Players:GetPlayerFromCharacter(model) if plr then return plr end local uid = findAttribute(model, idAttrNames) if uid ~= nil then local numId = tonumber(uid) if numId then return Players:GetPlayerByUserId(numId) end end return nil end local function getEntityTeam(instance) if not instance then return nil end -- 1. Check Roblox Attributes for _, attrName in ipairs(teamAttrNames) do local val = instance:GetAttribute(attrName) if val ~= nil and tostring(val) ~= "" then return tostring(val) end end -- 2. Check StringValue / IntValue / ObjectValue children for _, attrName in ipairs(teamAttrNames) do local obj = instance:FindFirstChild(attrName) if obj and obj:IsA("ValueBase") and obj.Value ~= nil then return tostring(obj.Value) end end return nil end -- Helper: Checks Attributes, ValueBase children (StringValue/IntValue), and UI markers local function extractTeamValue(instance) if not instance then return nil end -- 1. Check Roblox Attributes (e.g., team, Team, Faction, Side) for _, attrName in ipairs(teamAttrNames) do local val = instance:GetAttribute(attrName) if val ~= nil and tostring(val) ~= "" then return tostring(val) end end -- 2. Check StringValue / IntValue / ObjectValue children for _, attrName in ipairs(teamAttrNames) do local obj = instance:FindFirstChild(attrName) if obj and obj:IsA("ValueBase") and obj.Value ~= nil then if typeof(obj.Value) == "Instance" then return obj.Value.Name end return tostring(obj.Value) end end return nil end -- Helper: Safely resolves the Player owning a custom Deadline character model local function safeResolveOwner(model) -- Try your existing resolver first if resolveModelOwner then local ok, res = pcall(resolveModelOwner, model) if ok and res then return res end end -- Standard Roblox check local plr = Players:GetPlayerFromCharacter(model) if plr then return plr end -- Match by Player Name or UserId (common in custom replicators) local byName = Players:FindFirstChild(model.Name) if byName and byName:IsA("Player") then return byName end local userIdAttr = model:GetAttribute("UserId") or model:GetAttribute("OwnerId") or model:GetAttribute("PlayerId") if userIdAttr then return Players:GetPlayerByUserId(tonumber(userIdAttr)) end return nil end local function getTeamRelation(model) local owner = safeResolveOwner(model) -- 1. Standard Roblox Teams check (when game uses Teams service) if owner and not LP.Neutral and not owner.Neutral and LP.Team and owner.Team then local sameTeam = (owner.Team == LP.Team) local tColor = owner.TeamColor and owner.TeamColor.Color or nil return sameTeam, tColor, owner.DisplayName, owner.Team.Name end -- 2. Custom Attribute / ValueBase check (checks Model, Player, and LP's active rig) local myRig = LP.Character local charsFolder = Workspace:FindFirstChild("characters") if not myRig and charsFolder then myRig = charsFolder:FindFirstChild(LP.Name) end local myTeam = extractTeamValue(myRig) or extractTeamValue(LP) or (LP.Team and LP.Team.Name) local theirTeam = extractTeamValue(model) or (owner and extractTeamValue(owner)) or (owner and owner.Team and owner.Team.Name) local displayName = (owner and owner.DisplayName) or model.Name local teamLabel = theirTeam or "Unknown" if myTeam and theirTeam then local isFriendly = (myTeam:lower() == theirTeam:lower()) return isFriendly, nil, displayName, teamLabel end -- 3. Fallback: Check if Deadline attached a friendly overhead chevron/marker to the model for _, desc in ipairs(model:GetDescendants()) do if desc:IsA("BillboardGui") and desc.Name ~= "DL_Tag" and desc.Enabled then return true, nil, displayName, "Ally" end end return false, nil, displayName, teamLabel end -- ============================================================ -- HIGHLIGHT & OVERHEAD TAG MANAGEMENT -- ============================================================ local function countActive() local n = 0 for _ in pairs(active) do n += 1 end return n end local function notifyCountChanged() if updateStatusCount then updateStatusCount(countActive()) end end local function removeFromDeadQueue(model) for i = #deadQueue, 1, -1 do if deadQueue[i] == model then table.remove(deadQueue, i) end end end local function removeESP(model) local entry = active[model] if not entry then return end active[model] = nil removeFromDeadQueue(model) notifyCountChanged() if entry.hl and entry.hl.Parent then entry.hl:Destroy() end if entry.tag and entry.tag.Parent then entry.tag:Destroy() end end local function enforceHighlightBudget(incomingIsDead) while countActive() >= CFG.MaxHighlights do local oldestDead = table.remove(deadQueue, 1) if oldestDead and active[oldestDead] then removeESP(oldestDead) else return not incomingIsDead end end return true end local function computeFillColor(model, isDead) if isDead then return CFG.ColorDead end local isTeammate, teamColor = getTeamRelation(model) if CFG.UseTeamColor and teamColor then return teamColor end return isTeammate and CFG.ColorTeammate or CFG.ColorEnemy end local function createBillboardTag(model, displayName, teamName, fillColor) local adorneePart = model:FindFirstChild("Head") or getModelRoot(model) if not adorneePart then return nil, nil, nil end local bb = Instance.new("BillboardGui") bb.Name = "DL_Tag" bb.Adornee = adorneePart bb.Size = UDim2.fromOffset(150, 34) bb.StudsOffset = Vector3.new(0, 2.6, 0) bb.AlwaysOnTop = true bb.Enabled = CFG.ShowNameTags bb.Parent = hlContainer local nameLbl = Instance.new("TextLabel") nameLbl.Size = UDim2.new(1, 0, 0, 16) nameLbl.BackgroundTransparency = 1 nameLbl.Font = Enum.Font.GothamBold nameLbl.Text = displayName nameLbl.TextColor3 = fillColor nameLbl.TextStrokeTransparency = 0.35 nameLbl.TextSize = 12 nameLbl.Parent = bb local distLbl = Instance.new("TextLabel") distLbl.Size = UDim2.new(1, 0, 0, 14) distLbl.Position = UDim2.fromOffset(0, 16) distLbl.BackgroundTransparency = 1 distLbl.Font = Enum.Font.GothamMedium distLbl.Text = string.format("[%s] • 0m", teamName) distLbl.TextColor3 = Color3.fromRGB(230, 235, 245) distLbl.TextStrokeTransparency = 0.4 distLbl.TextSize = 10 distLbl.Parent = bb return bb, nameLbl, distLbl end local function shouldShowModel(model, isDead) if isDead then if not CFG.ShowDead then return false end else local isTeammate = getTeamRelation(model) if isTeammate and not CFG.ShowTeammates then return false end if (not isTeammate) and not CFG.ShowEnemies then return false end end if CFG.DistanceFilter then local dist = getDistanceToModel(model) if dist > CFG.MaxDistance then return false end end return true end local function addOrUpdateESP(model, isDead) if not enabled then return end if not model or not model:IsA("Model") or not model.Parent then return end if isMyModel(model) then return end if not shouldShowModel(model, isDead) then removeESP(model) return end local fillColor = computeFillColor(model, isDead) local _, _, displayName, teamName = getTeamRelation(model) if isDead then teamName = "Ragdoll" end local existing = active[model] if existing then existing.isDead = isDead existing.teamName = teamName existing.hl.FillColor = fillColor existing.hl.OutlineColor = CFG.ColorStroke existing.hl.DepthMode = CFG.ThroughWalls and Enum.HighlightDepthMode.AlwaysOnTop or Enum.HighlightDepthMode.Occluded if existing.tag then existing.tag.Enabled = CFG.ShowNameTags existing.nameLbl.Text = displayName existing.nameLbl.TextColor3 = fillColor end removeFromDeadQueue(model) if isDead then table.insert(deadQueue, model) end return end if not enforceHighlightBudget(isDead) then return end local hl = Instance.new("Highlight") hl.Name = "DL_HL" hl.Adornee = model hl.FillColor = fillColor hl.OutlineColor = CFG.ColorStroke hl.FillTransparency = 1 hl.OutlineTransparency = 1 hl.DepthMode = CFG.ThroughWalls and Enum.HighlightDepthMode.AlwaysOnTop or Enum.HighlightDepthMode.Occluded hl.Parent = hlContainer local bb, nameLbl, distLbl = createBillboardTag(model, displayName, teamName, fillColor) active[model] = { hl = hl, tag = bb, nameLbl = nameLbl, distLbl = distLbl, teamName = teamName, isDead = isDead, fadeFactor = 0, -- Smoothly lerps from 0 -> 1 in RenderStepped } if isDead then table.insert(deadQueue, model) end notifyCountChanged() end local function clearAll() for model in pairs(active) do removeESP(model) end hlContainer:ClearAllChildren() deadQueue = {} ignoreSelf = {} notifyCountChanged() end -- ============================================================ -- FOLDER & TAG TRACKING -- ============================================================ local hookedFolders = {} local function onModelAdded(model, isDead) if not enabled or not model:IsA("Model") then return end task.defer(function() if not enabled or not model.Parent then return end if isMyModel(model) then removeESP(model) return end addOrUpdateESP(model, isDead) end) end local function onModelRemoved(model) removeESP(model) ignoreSelf[model] = nil end local function hookFolder(folder, isDead) if not folder or hookedFolders[folder] then return end hookedFolders[folder] = true table.insert(conns, folder.ChildAdded:Connect(function(m) onModelAdded(m, isDead) end)) table.insert(conns, folder.ChildRemoved:Connect(onModelRemoved)) table.insert(conns, folder.Destroying:Connect(function() hookedFolders[folder] = nil end)) end local function refreshFolders() local aliveFolder = Workspace:FindFirstChild("characters") if aliveFolder then hookFolder(aliveFolder, false) end local ignore = Workspace:FindFirstChild("ignore") local deadFolder = (ignore and ignore:FindFirstChild("ragdolls")) or Workspace:FindFirstChild("ragdolls") if deadFolder then hookFolder(deadFolder, true) end return aliveFolder, deadFolder end table.insert(conns, Workspace.ChildAdded:Connect(function(child) if child.Name == "characters" or child.Name == "ragdolls" or child.Name == "ignore" then task.defer(refreshFolders) end end)) table.insert(conns, Workspace.DescendantAdded:Connect(function(desc) if desc.Name == "ragdolls" and desc.Parent and desc.Parent.Name == "ignore" then hookFolder(desc, true) end end)) table.insert(conns, CollectionService:GetInstanceAddedSignal(CFG.AliveTag):Connect(function(m) onModelAdded(m, false) end)) table.insert(conns, CollectionService:GetInstanceRemovedSignal(CFG.AliveTag):Connect(onModelRemoved)) table.insert(conns, CollectionService:GetInstanceAddedSignal(CFG.DeadTag):Connect(function(m) onModelAdded(m, true) end)) table.insert(conns, CollectionService:GetInstanceRemovedSignal(CFG.DeadTag):Connect(onModelRemoved)) -- ============================================================ -- SCAN, PULSE & TOGGLE CONTROLLERS -- ============================================================ local function scan() local aliveFolder, deadFolder = refreshFolders() if aliveFolder then for _, m in ipairs(aliveFolder:GetChildren()) do if m:IsA("Model") then addOrUpdateESP(m, false) end end end for _, m in ipairs(CollectionService:GetTagged(CFG.AliveTag)) do if m:IsA("Model") then addOrUpdateESP(m, false) end end if deadFolder then for _, m in ipairs(deadFolder:GetChildren()) do if m:IsA("Model") then addOrUpdateESP(m, true) end end end for _, m in ipairs(CollectionService:GetTagged(CFG.DeadTag)) do if m:IsA("Model") then addOrUpdateESP(m, true) end end end table.insert(conns, LP:GetPropertyChangedSignal("Team"):Connect(function() if enabled then scan() end end)) local function setEnabled(state) pulseToken += 1 -- Cancel any active tactical pulse timer if enabled == state then return end enabled = state if enabled then scan() else clearAll() end if syncMasterToggleUI then syncMasterToggleUI(enabled) end end local function triggerTacticalPulse() setEnabled(true) local myToken = pulseToken task.delay(CFG.PulseDuration, function() if pulseToken == myToken and enabled then setEnabled(false) end end) end -- ============================================================ -- REAL-TIME DISTANCE FADE & OVERHEAD TAG UPDATER -- ============================================================ local lastScanCheck = 0 table.insert(conns, RunService.RenderStepped:Connect(function(dt) if not enabled then return end local camPos = getCameraOrigin() local fadeSpeed = (CFG.FadeInTime > 0) and (dt / CFG.FadeInTime) or 1 -- Periodically check if players entered MaxDistance range lastScanCheck += dt if lastScanCheck >= 0.4 then lastScanCheck = 0 scan() end for model, entry in pairs(active) do if not model or not model.Parent then removeESP(model) else local root = getModelRoot(model) local dist = root and (root.Position - camPos).Magnitude or math.huge if CFG.DistanceFilter and dist > CFG.MaxDistance then removeESP(model) else entry.fadeFactor = math.min(1, entry.fadeFactor + fadeSpeed) local rangeMultiplier = 1 if CFG.DistanceFilter and CFG.RangeFade and CFG.MaxDistance > 0 then -- Starts fading out smoothly over the last 30% of MaxDistance local fadeStart = CFG.MaxDistance * 0.70 if dist > fadeStart then rangeMultiplier = math.clamp(1 - ((dist - fadeStart) / (CFG.MaxDistance - fadeStart)), 0, 1) end end local visibility = entry.fadeFactor * rangeMultiplier entry.hl.FillTransparency = 1 - ((1 - CFG.FillAlpha) * visibility) entry.hl.OutlineTransparency = 1 - ((1 - CFG.StrokeAlpha) * visibility) if entry.tag then entry.tag.Enabled = CFG.ShowNameTags and (visibility > 0.15) if entry.tag.Enabled and entry.distLbl then entry.distLbl.Text = string.format("[%s] • %dm", entry.teamName, math.floor(dist)) end end end end end end)) -- ============================================================ -- WORLD, LIGHTING & AUDIO DEBUGGERS (ALL TOGGLEABLE) -- ============================================================ local origClockTime = Lighting.ClockTime local origFogEnd = Lighting.FogEnd local function applyWorldOverrides() if CFG.TimeOverrideEnabled then Lighting.ClockTime = CFG.ClockTime end if CFG.FogOverrideEnabled then Lighting.FogEnd = CFG.FogEnd end end -- Keep overrides locked if game scripts try to cycle time/fog while toggled ON table.insert(conns, Lighting:GetPropertyChangedSignal("ClockTime"):Connect(function() if CFG.TimeOverrideEnabled and math.abs(Lighting.ClockTime - CFG.ClockTime) > 0.05 then Lighting.ClockTime = CFG.ClockTime end end)) table.insert(conns, Lighting:GetPropertyChangedSignal("FogEnd"):Connect(function() if CFG.FogOverrideEnabled and math.abs(Lighting.FogEnd - CFG.FogEnd) > 1 then Lighting.FogEnd = CFG.FogEnd end end)) -- Sound & Footstep 3D Ring Visualizer local function spawnSoundRing(worldPos) if not CFG.SoundVizEnabled then return end if (worldPos - getCameraOrigin()).Magnitude > CFG.SoundVizMaxDist then return end local ring = Instance.new("Part") ring.Name = "SoundPing" ring.Anchored = true ring.CanCollide = false ring.CanQuery = false ring.CanTouch = false ring.CastShadow = false ring.Shape = Enum.PartType.Cylinder ring.Material = Enum.Material.Neon ring.Color = Color3.fromRGB(90, 220, 255) ring.Transparency = 0.25 ring.Size = Vector3.new(0.15, 1.5, 1.5) ring.CFrame = CFrame.new(worldPos) * CFrame.Angles(0, 0, math.rad(90)) ring.Parent = vizFolder local expandTween = TweenService:Create(ring, TweenInfo.new(0.65, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), { Size = Vector3.new(0.05, 14, 14), Transparency = 1, }) expandTween.Completed:Connect(function() if ring and ring.Parent then ring:Destroy() end end) expandTween:Play() end local hookedSounds = setmetatable({}, { __mode = "k" }) local function hookSoundInstance(inst) if not inst:IsA("Sound") or hookedSounds[inst] then return end hookedSounds[inst] = true local function onPlayed() if not CFG.SoundVizEnabled then return end local p = inst.Parent if p and p:IsA("BasePart") then spawnSoundRing(p.Position) elseif p and p:IsA("Attachment") then spawnSoundRing(p.WorldPosition) end end table.insert(conns, inst.Played:Connect(onPlayed)) if inst.IsPlaying then onPlayed() end end for _, desc in ipairs(Workspace:GetDescendants()) do if desc:IsA("Sound") then hookSoundInstance(desc) end end table.insert(conns, Workspace.DescendantAdded:Connect(function(desc) if desc:IsA("Sound") then hookSoundInstance(desc) end end)) -- ============================================================ -- BUILT-IN TABBED GUI BUILDER -- ============================================================ local oldGui = PlayerGui:FindFirstChild("DeadlineESP_UI") if oldGui then oldGui:Destroy() end local screenGui = Instance.new("ScreenGui") screenGui.Name = "DeadlineESP_UI" screenGui.ResetOnSpawn = false screenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling screenGui.Parent = PlayerGui local THEME = { BgMain = Color3.fromRGB(9, 7, 15), BgHeader = Color3.fromRGB(18, 12, 29), BgCard = Color3.fromRGB(22, 16, 35), BgCardHover = Color3.fromRGB(35, 22, 50), Stroke = Color3.fromRGB(83, 57, 108), Accent = Color3.fromRGB(255, 79, 163), AccentMisc = Color3.fromRGB(155, 92, 255), AccentWorld = Color3.fromRGB(90, 209, 255), AccentDim = Color3.fromRGB(48, 35, 64), TextPrimary = Color3.fromRGB(248, 243, 252), TextMuted = Color3.fromRGB(164, 151, 181), } local NIGHTFALL_GRADIENT = ColorSequence.new({ ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 79, 163)), ColorSequenceKeypoint.new(0.52, Color3.fromRGB(155, 92, 255)), ColorSequenceKeypoint.new(1, Color3.fromRGB(90, 209, 255)), }) local function addGradient(parent, colors, rotation) local gradient = Instance.new("UIGradient") gradient.Color = colors gradient.Rotation = rotation or 0 gradient.Parent = parent return gradient end local function addCardStroke(parent, color) local stroke = Instance.new("UIStroke") stroke.Color = color or THEME.AccentMisc stroke.Transparency = 0.82 stroke.Thickness = 1 stroke.Parent = parent return stroke end local expandedHeight = 450 local mainFrame = Instance.new("Frame") mainFrame.Name = "MainPanel" mainFrame.Size = UDim2.fromOffset(280, expandedHeight) mainFrame.Position = UDim2.new(0, 20, 0.5, -expandedHeight / 2) mainFrame.BackgroundColor3 = THEME.BgMain mainFrame.BorderSizePixel = 0 mainFrame.ClipsDescendants = true mainFrame.Parent = screenGui local mainCorner = Instance.new("UICorner") mainCorner.CornerRadius = UDim.new(0, 10) mainCorner.Parent = mainFrame local mainStroke = Instance.new("UIStroke") mainStroke.Color = THEME.Stroke mainStroke.Thickness = 1 mainStroke.Parent = mainFrame mainStroke.Color = Color3.fromRGB(111, 76, 139) mainStroke.Transparency = 0.18 addGradient(mainFrame, ColorSequence.new({ ColorSequenceKeypoint.new(0, Color3.fromRGB(22, 13, 35)), ColorSequenceKeypoint.new(0.55, Color3.fromRGB(10, 8, 17)), ColorSequenceKeypoint.new(1, Color3.fromRGB(19, 11, 31)), }), 32) -- Floating Restore Pill local restorePill = Instance.new("TextButton") restorePill.Name = "RestorePill" restorePill.Size = UDim2.fromOffset(105, 28) restorePill.Position = UDim2.new(0, 20, 0, 20) restorePill.BackgroundColor3 = THEME.BgHeader restorePill.Font = Enum.Font.GothamBold restorePill.Text = "Show Panel" restorePill.TextColor3 = THEME.TextPrimary restorePill.TextSize = 11 restorePill.AutoButtonColor = false restorePill.Visible = false restorePill.Parent = screenGui local restoreCorner = Instance.new("UICorner") restoreCorner.CornerRadius = UDim.new(0, 8) restoreCorner.Parent = restorePill local restoreStroke = Instance.new("UIStroke") restoreStroke.Color = THEME.Accent restoreStroke.Thickness = 1 restoreStroke.Parent = restorePill restoreStroke.Transparency = 0.22 addGradient(restorePill, NIGHTFALL_GRADIENT, 0) -- Header Bar local header = Instance.new("Frame") header.Name = "Header" header.Size = UDim2.new(1, 0, 0, 38) header.BackgroundColor3 = THEME.BgHeader header.BorderSizePixel = 0 header.Parent = mainFrame local headerCorner = Instance.new("UICorner") headerCorner.CornerRadius = UDim.new(0, 10) headerCorner.Parent = header local headerFlat = Instance.new("Frame") headerFlat.Size = UDim2.new(1, 0, 0, 10) headerFlat.Position = UDim2.new(0, 0, 1, -10) headerFlat.BackgroundColor3 = THEME.BgHeader headerFlat.BorderSizePixel = 0 headerFlat.Parent = header addGradient(header, ColorSequence.new({ ColorSequenceKeypoint.new(0, Color3.fromRGB(48, 19, 50)), ColorSequenceKeypoint.new(0.52, Color3.fromRGB(29, 17, 46)), ColorSequenceKeypoint.new(1, Color3.fromRGB(18, 13, 31)), }), 0) local headerAccent = Instance.new("Frame") headerAccent.Name = "AccentRule" headerAccent.Size = UDim2.new(1, -20, 0, 1) headerAccent.Position = UDim2.new(0, 10, 1, -1) headerAccent.BackgroundColor3 = Color3.new(1, 1, 1) headerAccent.BorderSizePixel = 0 headerAccent.Parent = header addGradient(headerAccent, NIGHTFALL_GRADIENT, 0) local titleLabel = Instance.new("TextLabel") titleLabel.Size = UDim2.new(1, -118, 1, 0) titleLabel.Position = UDim2.fromOffset(12, 0) titleLabel.BackgroundTransparency = 1 titleLabel.Font = Enum.Font.GothamBold titleLabel.Text = "DEADLINE SUITE" titleLabel.TextColor3 = THEME.TextPrimary titleLabel.TextSize = 12 titleLabel.TextXAlignment = Enum.TextXAlignment.Left titleLabel.Parent = header local statusBadge = Instance.new("TextLabel") statusBadge.Size = UDim2.fromOffset(42, 18) statusBadge.Position = UDim2.new(1, -108, 0.5, -9) statusBadge.BackgroundColor3 = THEME.BgCard statusBadge.Font = Enum.Font.GothamMedium statusBadge.Text = "0/" .. CFG.MaxHighlights statusBadge.TextColor3 = THEME.TextMuted statusBadge.TextSize = 10 statusBadge.Parent = header addCardStroke(statusBadge, THEME.AccentMisc) local badgeCorner = Instance.new("UICorner") badgeCorner.CornerRadius = UDim.new(0, 5) badgeCorner.Parent = statusBadge updateStatusCount = function(count) statusBadge.Text = tostring(count) .. "/" .. tostring(CFG.MaxHighlights) end local collapseBtn = Instance.new("TextButton") collapseBtn.Size = UDim2.fromOffset(24, 24) collapseBtn.Position = UDim2.new(1, -60, 0.5, -12) collapseBtn.BackgroundColor3 = THEME.BgCard collapseBtn.Font = Enum.Font.GothamBold collapseBtn.Text = "-" collapseBtn.TextColor3 = THEME.TextPrimary collapseBtn.TextSize = 14 collapseBtn.AutoButtonColor = false collapseBtn.Parent = header local collapseCorner = Instance.new("UICorner") collapseCorner.CornerRadius = UDim.new(0, 6) collapseCorner.Parent = collapseBtn addCardStroke(collapseBtn, THEME.AccentMisc) local hideBtn = Instance.new("TextButton") hideBtn.Size = UDim2.fromOffset(24, 24) hideBtn.Position = UDim2.new(1, -32, 0.5, -12) hideBtn.BackgroundColor3 = THEME.BgCard hideBtn.Font = Enum.Font.GothamBold hideBtn.Text = "H" hideBtn.TextColor3 = THEME.TextMuted hideBtn.TextSize = 11 hideBtn.AutoButtonColor = false hideBtn.Parent = header local hideCorner = Instance.new("UICorner") hideCorner.CornerRadius = UDim.new(0, 6) hideCorner.Parent = hideBtn addCardStroke(hideBtn, THEME.AccentMisc) local function setMenuVisible(visible) menuVisible = visible mainFrame.Visible = visible restorePill.Visible = not visible end hideBtn.MouseButton1Click:Connect(function() setMenuVisible(false) end) restorePill.MouseButton1Click:Connect(function() setMenuVisible(true) end) -- Top Navigation Tab Bar local tabBar = Instance.new("Frame") tabBar.Size = UDim2.new(1, -20, 0, 28) tabBar.Position = UDim2.fromOffset(10, 44) tabBar.BackgroundColor3 = THEME.BgHeader tabBar.BorderSizePixel = 0 tabBar.Parent = mainFrame local tabBarCorner = Instance.new("UICorner") tabBarCorner.CornerRadius = UDim.new(0, 7) tabBarCorner.Parent = tabBar addCardStroke(tabBar, THEME.AccentMisc) local tabLayout = Instance.new("UIListLayout") tabLayout.FillDirection = Enum.FillDirection.Horizontal tabLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center tabLayout.VerticalAlignment = Enum.VerticalAlignment.Center tabLayout.Padding = UDim.new(0, 4) tabLayout.Parent = tabBar -- Footer Hint local footerLabel = Instance.new("TextLabel") footerLabel.Size = UDim2.new(1, 0, 0, 18) footerLabel.Position = UDim2.new(0, 0, 1, -18) footerLabel.BackgroundColor3 = THEME.BgHeader footerLabel.BorderSizePixel = 0 footerLabel.Font = Enum.Font.Gotham footerLabel.Text = "Click Keybinds in Misc Tab to Rebind" footerLabel.TextColor3 = THEME.TextMuted footerLabel.TextSize = 10 footerLabel.Parent = mainFrame local footerRule = Instance.new("Frame") footerRule.Name = "FooterAccentRule" footerRule.Size = UDim2.new(1, -20, 0, 1) footerRule.Position = UDim2.new(0, 10, 0, 0) footerRule.BackgroundColor3 = Color3.new(1, 1, 1) footerRule.BorderSizePixel = 0 footerRule.Parent = footerLabel addGradient(footerRule, NIGHTFALL_GRADIENT, 0) -- Dragging & Collapse local function makeDraggable(dragHandle, targetFrame) local dragging = false local dragStart, startPos dragHandle.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = input.Position startPos = targetFrame.Position end end) table.insert(conns, UserInputService.InputChanged:Connect(function(input) if not dragging then return end if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then local delta = input.Position - dragStart targetFrame.Position = UDim2.new( startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y ) end end)) table.insert(conns, UserInputService.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = false end end)) end makeDraggable(header, mainFrame) makeDraggable(restorePill, restorePill) local collapsed = false collapseBtn.MouseButton1Click:Connect(function() collapsed = not collapsed collapseBtn.Text = collapsed and "+" or "-" local targetSize = collapsed and UDim2.fromOffset(280, 38) or UDim2.fromOffset(280, expandedHeight) TweenService:Create(mainFrame, UI_TWEEN, { Size = targetSize }):Play() end) -- ============================================================ -- REUSABLE UI COMPONENT BUILDER (TABS, TOGGLES, SLIDERS, ETC.) -- ============================================================ local UI = {} local tabs = {} local activeTabName = nil local function switchTab(tabName) activeTabName = tabName for name, data in pairs(tabs) do local isSelected = (name == tabName) data.page.Visible = isSelected TweenService:Create(data.btn, UI_TWEEN, { BackgroundColor3 = isSelected and THEME.Accent or THEME.BgHeader, TextColor3 = isSelected and Color3.new(1, 1, 1) or THEME.TextMuted, }):Play() if data.gradient then data.gradient.Enabled = isSelected end if data.stroke then TweenService:Create(data.stroke, UI_TWEEN, { Transparency = isSelected and 0.18 or 0.78, }):Play() end end end function UI.CreateTab(tabName, tabCount) local page = Instance.new("ScrollingFrame") page.Name = tabName .. "_Page" page.Size = UDim2.new(1, 0, 1, -98) page.Position = UDim2.fromOffset(0, 78) page.BackgroundTransparency = 1 page.BorderSizePixel = 0 page.ScrollBarThickness = 3 page.ScrollBarImageColor3 = THEME.Stroke page.CanvasSize = UDim2.fromOffset(0, 0) page.AutomaticCanvasSize = Enum.AutomaticSize.Y page.Visible = false page.Parent = mainFrame local layout = Instance.new("UIListLayout") layout.Padding = UDim.new(0, 6) layout.HorizontalAlignment = Enum.HorizontalAlignment.Center layout.SortOrder = Enum.SortOrder.LayoutOrder layout.Parent = page local pad = Instance.new("UIPadding") pad.PaddingTop = UDim.new(0, 2) pad.PaddingBottom = UDim.new(0, 8) pad.Parent = page local btn = Instance.new("TextButton") btn.Size = UDim2.new(1 / tabCount, -4, 0, 22) btn.BackgroundColor3 = THEME.BgHeader btn.BorderSizePixel = 0 btn.Font = Enum.Font.GothamBold btn.Text = tabName btn.TextColor3 = THEME.TextMuted btn.TextSize = 11 btn.AutoButtonColor = false btn.Parent = tabBar local btnCorner = Instance.new("UICorner") btnCorner.CornerRadius = UDim.new(0, 5) btnCorner.Parent = btn local btnStroke = addCardStroke(btn, THEME.Accent) btnStroke.Transparency = 0.78 local btnGradient = addGradient(btn, NIGHTFALL_GRADIENT, 0) btnGradient.Enabled = false btn.MouseButton1Click:Connect(function() switchTab(tabName) end) local order = 0 local function nextOrder() order += 1 return order end local tabObj = {} function tabObj.AddSection(labelText) local lbl = Instance.new("TextLabel") lbl.Size = UDim2.new(1, -24, 0, 16) lbl.BackgroundTransparency = 1 lbl.Font = Enum.Font.GothamBold lbl.Text = string.upper(labelText) lbl.TextColor3 = THEME.TextMuted lbl.TextSize = 10 lbl.TextXAlignment = Enum.TextXAlignment.Left lbl.LayoutOrder = nextOrder() lbl.Parent = page local sectionRule = Instance.new("Frame") sectionRule.Name = "SectionAccent" sectionRule.Size = UDim2.fromOffset(28, 2) sectionRule.Position = UDim2.new(0, 0, 1, -1) sectionRule.BackgroundColor3 = Color3.new(1, 1, 1) sectionRule.BorderSizePixel = 0 sectionRule.Parent = lbl addGradient(sectionRule, NIGHTFALL_GRADIENT, 0) end function tabObj.AddToggle(labelText, initialState, accentColor, callback) local state = initialState local activeColor = accentColor or THEME.Accent local row = Instance.new("TextButton") row.Size = UDim2.new(1, -20, 0, 32) row.BackgroundColor3 = THEME.BgCard row.BorderSizePixel = 0 row.Text = "" row.AutoButtonColor = false row.LayoutOrder = nextOrder() row.Parent = page local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 7) corner.Parent = row local rowStroke = addCardStroke(row) local textLbl = Instance.new("TextLabel") textLbl.Size = UDim2.new(1, -60, 1, 0) textLbl.Position = UDim2.fromOffset(10, 0) textLbl.BackgroundTransparency = 1 textLbl.Font = Enum.Font.GothamMedium textLbl.Text = labelText textLbl.TextColor3 = THEME.TextPrimary textLbl.TextSize = 11 textLbl.TextXAlignment = Enum.TextXAlignment.Left textLbl.Parent = row local pill = Instance.new("Frame") pill.Size = UDim2.fromOffset(36, 18) pill.Position = UDim2.new(1, -46, 0.5, -9) pill.BackgroundColor3 = state and activeColor or THEME.AccentDim pill.BorderSizePixel = 0 pill.Parent = row local pillCorner = Instance.new("UICorner") pillCorner.CornerRadius = UDim.new(1, 0) pillCorner.Parent = pill local knob = Instance.new("Frame") knob.Size = UDim2.fromOffset(14, 14) knob.Position = state and UDim2.fromOffset(20, 2) or UDim2.fromOffset(2, 2) knob.BackgroundColor3 = Color3.new(1, 1, 1) knob.BorderSizePixel = 0 knob.Parent = pill local knobCorner = Instance.new("UICorner") knobCorner.CornerRadius = UDim.new(1, 0) knobCorner.Parent = knob local function setVisual(newState, silent) state = newState TweenService:Create(pill, UI_TWEEN, { BackgroundColor3 = state and activeColor or THEME.AccentDim }):Play() TweenService:Create(knob, UI_TWEEN, { Position = state and UDim2.fromOffset(20, 2) or UDim2.fromOffset(2, 2) }):Play() if not silent and callback then callback(state) end end row.MouseEnter:Connect(function() TweenService:Create(row, UI_TWEEN, { BackgroundColor3 = THEME.BgCardHover }):Play() TweenService:Create(rowStroke, UI_TWEEN, { Transparency = 0.48 }):Play() end) row.MouseLeave:Connect(function() TweenService:Create(row, UI_TWEEN, { BackgroundColor3 = THEME.BgCard }):Play() TweenService:Create(rowStroke, UI_TWEEN, { Transparency = 0.82 }):Play() end) row.MouseButton1Click:Connect(function() setVisual(not state, false) end) return setVisual end function tabObj.AddSlider(labelText, minVal, maxVal, initialVal, decimals, accentColor, callback) local currentVal = math.clamp(initialVal, minVal, maxVal) local barColor = accentColor or THEME.Accent local fmt = "%." .. tostring(decimals) .. "f" local card = Instance.new("Frame") card.Size = UDim2.new(1, -20, 0, 44) card.BackgroundColor3 = THEME.BgCard card.BorderSizePixel = 0 card.LayoutOrder = nextOrder() card.Parent = page local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 7) corner.Parent = card addCardStroke(card) local titleLbl = Instance.new("TextLabel") titleLbl.Size = UDim2.new(1, -56, 0, 20) titleLbl.Position = UDim2.fromOffset(10, 4) titleLbl.BackgroundTransparency = 1 titleLbl.Font = Enum.Font.GothamMedium titleLbl.Text = labelText titleLbl.TextColor3 = THEME.TextPrimary titleLbl.TextSize = 11 titleLbl.TextXAlignment = Enum.TextXAlignment.Left titleLbl.Parent = card local valLbl = Instance.new("TextLabel") valLbl.Size = UDim2.fromOffset(44, 20) valLbl.Position = UDim2.new(1, -54, 0, 4) valLbl.BackgroundTransparency = 1 valLbl.Font = Enum.Font.GothamBold valLbl.Text = string.format(fmt, currentVal) valLbl.TextColor3 = barColor valLbl.TextSize = 11 valLbl.TextXAlignment = Enum.TextXAlignment.Right valLbl.Parent = card local track = Instance.new("TextButton") track.Size = UDim2.new(1, -20, 0, 6) track.Position = UDim2.fromOffset(10, 29) track.BackgroundColor3 = THEME.AccentDim track.BorderSizePixel = 0 track.Text = "" track.AutoButtonColor = false track.Parent = card local trackCorner = Instance.new("UICorner") trackCorner.CornerRadius = UDim.new(1, 0) trackCorner.Parent = track local pct = (currentVal - minVal) / (maxVal - minVal) local fill = Instance.new("Frame") fill.Size = UDim2.new(pct, 0, 1, 0) fill.BackgroundColor3 = barColor fill.BorderSizePixel = 0 fill.Parent = track local fillCorner = Instance.new("UICorner") fillCorner.CornerRadius = UDim.new(1, 0) fillCorner.Parent = fill addGradient(fill, NIGHTFALL_GRADIENT, 0) local sliderKnob = Instance.new("Frame") sliderKnob.Name = "SliderKnob" sliderKnob.Size = UDim2.fromOffset(12, 12) sliderKnob.AnchorPoint = Vector2.new(0.5, 0.5) sliderKnob.Position = UDim2.new(pct, 0, 0.5, 0) sliderKnob.BackgroundColor3 = THEME.TextPrimary sliderKnob.BorderSizePixel = 0 sliderKnob.ZIndex = track.ZIndex + 1 sliderKnob.Parent = track local sliderKnobCorner = Instance.new("UICorner") sliderKnobCorner.CornerRadius = UDim.new(1, 0) sliderKnobCorner.Parent = sliderKnob local sliderKnobStroke = Instance.new("UIStroke") sliderKnobStroke.Color = barColor sliderKnobStroke.Thickness = 2 sliderKnobStroke.Parent = sliderKnob local sliding = false local mult = 10 ^ decimals local function updateFromInput(inputPos) local relX = math.clamp((inputPos.X - track.AbsolutePosition.X) / track.AbsoluteSize.X, 0, 1) local raw = minVal + (maxVal - minVal) * relX currentVal = math.floor(raw * mult + 0.5) / mult fill.Size = UDim2.new(relX, 0, 1, 0) sliderKnob.Position = UDim2.new(relX, 0, 0.5, 0) valLbl.Text = string.format(fmt, currentVal) if callback then callback(currentVal) end end track.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then sliding = true updateFromInput(input.Position) end end) table.insert(conns, UserInputService.InputChanged:Connect(function(input) if sliding and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then updateFromInput(input.Position) end end)) table.insert(conns, UserInputService.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then sliding = false end end)) end function tabObj.AddButton(labelText, accentColor, callback) local btnColor = accentColor or THEME.Accent local actionBtn = Instance.new("TextButton") actionBtn.Size = UDim2.new(1, -20, 0, 30) actionBtn.BackgroundColor3 = btnColor actionBtn.BorderSizePixel = 0 actionBtn.Font = Enum.Font.GothamBold actionBtn.Text = labelText actionBtn.TextColor3 = Color3.new(1, 1, 1) actionBtn.TextSize = 11 actionBtn.AutoButtonColor = false actionBtn.LayoutOrder = nextOrder() actionBtn.Parent = page local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 7) corner.Parent = actionBtn addGradient(actionBtn, NIGHTFALL_GRADIENT, 0) addCardStroke(actionBtn, THEME.Accent) actionBtn.MouseEnter:Connect(function() TweenService:Create(actionBtn, UI_TWEEN, { BackgroundTransparency = 0.12 }):Play() end) actionBtn.MouseLeave:Connect(function() TweenService:Create(actionBtn, UI_TWEEN, { BackgroundTransparency = 0 }):Play() end) actionBtn.MouseButton1Click:Connect(function() TweenService:Create(actionBtn, TweenInfo.new(0.08), { BackgroundTransparency = 0.3 }):Play() task.delay(0.08, function() if actionBtn and actionBtn.Parent then TweenService:Create(actionBtn, TweenInfo.new(0.12), { BackgroundTransparency = 0 }):Play() end end) if callback then callback() end end) end function tabObj.AddDropdown(labelText, options, initialOption, callback) local currentIndex = 1 for i, opt in ipairs(options) do if opt == initialOption then currentIndex = i break end end local row = Instance.new("TextButton") row.Size = UDim2.new(1, -20, 0, 32) row.BackgroundColor3 = THEME.BgCard row.BorderSizePixel = 0 row.Text = "" row.AutoButtonColor = false row.LayoutOrder = nextOrder() row.Parent = page local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 7) corner.Parent = row addCardStroke(row) local textLbl = Instance.new("TextLabel") textLbl.Size = UDim2.new(0.55, 0, 1, 0) textLbl.Position = UDim2.fromOffset(10, 0) textLbl.BackgroundTransparency = 1 textLbl.Font = Enum.Font.GothamMedium textLbl.Text = labelText textLbl.TextColor3 = THEME.TextPrimary textLbl.TextSize = 11 textLbl.TextXAlignment = Enum.TextXAlignment.Left textLbl.Parent = row local valBadge = Instance.new("TextLabel") valBadge.Size = UDim2.new(0.42, -10, 0, 20) valBadge.Position = UDim2.new(0.58, 0, 0.5, -10) valBadge.BackgroundColor3 = THEME.AccentDim valBadge.Font = Enum.Font.GothamBold valBadge.Text = options[currentIndex] .. " ▾" valBadge.TextColor3 = THEME.TextPrimary valBadge.TextSize = 10 valBadge.Parent = row local badgeCorner = Instance.new("UICorner") badgeCorner.CornerRadius = UDim.new(0, 5) badgeCorner.Parent = valBadge addCardStroke(valBadge, THEME.AccentMisc) row.MouseButton1Click:Connect(function() currentIndex = (currentIndex % #options) + 1 local chosen = options[currentIndex] valBadge.Text = chosen .. " ▾" if callback then callback(chosen) end end) end function tabObj.AddKeybind(labelText, initialKeyCode, callback) local currentKey = initialKeyCode local listening = false local row = Instance.new("TextButton") row.Size = UDim2.new(1, -20, 0, 32) row.BackgroundColor3 = THEME.BgCard row.BorderSizePixel = 0 row.Text = "" row.AutoButtonColor = false row.LayoutOrder = nextOrder() row.Parent = page local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 7) corner.Parent = row addCardStroke(row) local textLbl = Instance.new("TextLabel") textLbl.Size = UDim2.new(1, -90, 1, 0) textLbl.Position = UDim2.fromOffset(10, 0) textLbl.BackgroundTransparency = 1 textLbl.Font = Enum.Font.GothamMedium textLbl.Text = labelText textLbl.TextColor3 = THEME.TextPrimary textLbl.TextSize = 11 textLbl.TextXAlignment = Enum.TextXAlignment.Left textLbl.Parent = row local keyBadge = Instance.new("TextLabel") keyBadge.Size = UDim2.fromOffset(74, 20) keyBadge.Position = UDim2.new(1, -84, 0.5, -10) keyBadge.BackgroundColor3 = THEME.AccentDim keyBadge.Font = Enum.Font.GothamBold keyBadge.Text = currentKey.Name keyBadge.TextColor3 = THEME.TextPrimary keyBadge.TextSize = 10 keyBadge.Parent = row local badgeCorner = Instance.new("UICorner") badgeCorner.CornerRadius = UDim.new(0, 5) badgeCorner.Parent = keyBadge addCardStroke(keyBadge, THEME.AccentMisc) row.MouseButton1Click:Connect(function() if listening then return end listening = true keyBadge.Text = "[ Press Key ]" keyBadge.BackgroundColor3 = THEME.Accent local bindConn bindConn = UserInputService.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.Keyboard then listening = false bindConn:Disconnect() if input.KeyCode ~= Enum.KeyCode.Escape then currentKey = input.KeyCode if callback then callback(currentKey) end end keyBadge.Text = currentKey.Name keyBadge.BackgroundColor3 = THEME.AccentDim end end) end) end tabs[tabName] = { page = page, btn = btn, gradient = btnGradient, stroke = btnStroke } if not activeTabName then switchTab(tabName) end return tabObj end -- ============================================================ -- BUILD TABS & POPULATE ALL TOGGLEABLE CONTROLS -- ============================================================ local visualTab = UI.CreateTab("Visuals", 3) local worldTab = UI.CreateTab("World", 3) local miscTab = UI.CreateTab("Misc", 3) -- TAB 1: VISUALS visualTab.AddSection("Vision Controls") syncMasterToggleUI = visualTab.AddToggle("Enable Vision", enabled, THEME.Accent, function(state) setEnabled(state) end) visualTab.AddButton("Tactical Pulse (3s Scan)", THEME.Accent, function() triggerTacticalPulse() end) visualTab.AddToggle("Overhead Name & Distance", CFG.ShowNameTags, THEME.Accent, function(state) CFG.ShowNameTags = state for _, entry in pairs(active) do if entry.tag then entry.tag.Enabled = state end end end) visualTab.AddSection("Target Filters") visualTab.AddToggle("Show Enemies", CFG.ShowEnemies, CFG.ColorEnemy, function(state) CFG.ShowEnemies = state if enabled then scan() end end) visualTab.AddToggle("Show Teammates", CFG.ShowTeammates, CFG.ColorTeammate, function(state) CFG.ShowTeammates = state if enabled then scan() end end) visualTab.AddToggle("Show Ragdolls", CFG.ShowDead, CFG.ColorDead, function(state) CFG.ShowDead = state if enabled then scan() end end) visualTab.AddToggle("Through Walls", CFG.ThroughWalls, THEME.Accent, function(state) CFG.ThroughWalls = state if enabled then scan() end end) visualTab.AddSection("Distance & Style") visualTab.AddToggle("Enable Max Distance Filter", CFG.DistanceFilter, THEME.Accent, function(state) CFG.DistanceFilter = state if enabled then scan() end end) visualTab.AddToggle("Smooth Range Fade", CFG.RangeFade, THEME.Accent, function(state) CFG.RangeFade = state end) visualTab.AddSlider("Max Distance (Studs)", 50, 1500, CFG.MaxDistance, 0, THEME.Accent, function(val) CFG.MaxDistance = val if enabled then scan() end end) visualTab.AddDropdown("Color Preset", PRESET_ORDER, CFG.ActivePreset, function(presetName) local p = PRESETS[presetName] if p then CFG.ActivePreset = presetName CFG.ColorEnemy = p.Enemy CFG.ColorTeammate = p.Teammate CFG.ColorDead = p.Dead CFG.ColorStroke = p.Stroke if enabled then scan() end end end) visualTab.AddToggle("Use Roblox TeamColor", CFG.UseTeamColor, THEME.Accent, function(state) CFG.UseTeamColor = state if enabled then scan() end end) visualTab.AddSlider("Fill Transparency", 0, 1, CFG.FillAlpha, 2, THEME.Accent, function(val) CFG.FillAlpha = val end) visualTab.AddSlider("Outline Transparency", 0, 1, CFG.StrokeAlpha, 2, THEME.Accent, function(val) CFG.StrokeAlpha = val end) -- TAB 2: WORLD, LIGHTING & AUDIO DEBUGGERS worldTab.AddSection("Time of Day Override") worldTab.AddToggle("Enable Time Override", CFG.TimeOverrideEnabled, THEME.AccentWorld, function(state) CFG.TimeOverrideEnabled = state if state then origClockTime = Lighting.ClockTime applyWorldOverrides() else Lighting.ClockTime = origClockTime end end) worldTab.AddSlider("Clock Time (0 - 24h)", 0, 24, CFG.ClockTime, 1, THEME.AccentWorld, function(val) CFG.ClockTime = val applyWorldOverrides() end) worldTab.AddSection("Fog Override") worldTab.AddToggle("Enable Fog Override", CFG.FogOverrideEnabled, THEME.AccentWorld, function(state) CFG.FogOverrideEnabled = state if state then origFogEnd = Lighting.FogEnd applyWorldOverrides() else Lighting.FogEnd = origFogEnd end end) worldTab.AddSlider("Fog End Distance", 50, 5000, CFG.FogEnd, 0, THEME.AccentWorld, function(val) CFG.FogEnd = val applyWorldOverrides() end) worldTab.AddSection("Audio Diagnostics") worldTab.AddToggle("3D Sound & Footstep Rings", CFG.SoundVizEnabled, THEME.AccentWorld, function(state) CFG.SoundVizEnabled = state if not state then vizFolder:ClearAllChildren() end end) worldTab.AddSlider("Sound Ring Range", 50, 600, CFG.SoundVizMaxDist, 0, THEME.AccentWorld, function(val) CFG.SoundVizMaxDist = val end) -- TAB 3: MISC MODULES & KEYBINDS miscTab.AddSection("Keybinds (Click to Rebind)") local function bindActionKey(actionName, keyCode, handler) ContextActionService:UnbindAction(actionName) ContextActionService:BindAction(actionName, handler, false, keyCode) end local function handleToggle(_, inputState, _) if inputState ~= Enum.UserInputState.Begin then return Enum.ContextActionResult.Pass end setEnabled(not enabled) return Enum.ContextActionResult.Sink end local function handleMenuToggle(_, inputState, _) if inputState ~= Enum.UserInputState.Begin then return Enum.ContextActionResult.Pass end setMenuVisible(not menuVisible) return Enum.ContextActionResult.Sink end miscTab.AddKeybind("Toggle Vision Key", CFG.ToggleKey, function(newKey) CFG.ToggleKey = newKey bindActionKey(CFG.ActionName, newKey, handleToggle) end) miscTab.AddKeybind("Hide / Show Menu Key", CFG.MenuKey, function(newKey) CFG.MenuKey = newKey bindActionKey(CFG.MenuAction, newKey, handleMenuToggle) end) miscTab.AddSection("Quick Actions") miscTab.AddButton("Force Rescan Folders", THEME.AccentMisc, function() refreshFolders() if enabled then scan() end end) local activeMiscCleanups = {} if #CFG.MiscModules > 0 then miscTab.AddSection("Custom Misc Modules") for index, mod in ipairs(CFG.MiscModules) do local modName = mod.Name or ("Misc Module " .. index) local defaultState = mod.Default == true local function runModuleCallback(state) if type(mod.OnToggle) ~= "function" then return end task.spawn(function() local ok, err = pcall(mod.OnToggle, state) if not ok then warn("[DeadlineSuite] Error in '" .. modName .. "': " .. tostring(err)) end end) end miscTab.AddToggle(modName, defaultState, THEME.AccentMisc, runModuleCallback) if defaultState then runModuleCallback(true) end table.insert(activeMiscCleanups, function() runModuleCallback(false) end) end end -- ============================================================ -- INIT & CLEANUP -- ============================================================ refreshFolders() bindActionKey(CFG.ActionName, CFG.ToggleKey, handleToggle) bindActionKey(CFG.MenuAction, CFG.MenuKey, handleMenuToggle) script.Destroying:Connect(function() ContextActionService:UnbindAction(CFG.ActionName) ContextActionService:UnbindAction(CFG.MenuAction) if CFG.TimeOverrideEnabled then Lighting.ClockTime = origClockTime end if CFG.FogOverrideEnabled then Lighting.FogEnd = origFogEnd end for _, cleanupFn in ipairs(activeMiscCleanups) do pcall(cleanupFn) end for _, c in ipairs(conns) do if c.Connected then c:Disconnect() end end clearAll() if hlContainer then hlContainer:Destroy() end if vizFolder then vizFolder:Destroy() end if screenGui then screenGui:Destroy() end end) print("[DeadlineSuite] Loaded | X = Toggle Vision | RightShift / [H] = Hide Menu")