--[[ -------------------------------------------------------------------- FREEDOM — v59 (keyless, Luau / Xeno) Improvements over v47: - frame-rate independent aim smoothing (no more speed tied to FPS) - ESP boxes sized from real head/foot projection, distance in the label - real player names instead of model names / asset ids - FOV circle drawn on screen, matches the actual lock-on cone - sliders for smoothing, FOV and max distance (saved to disk if allowed) - dead/ragdoll filter on Humanoid state instead of heuristics-only - line of sight raycast excludes the local character and the target itself - adaptive scan rate: fast when targets exist, lazy when empty - manual fire only. The script never clicks for you. v49: - bots and NPCs are targeted again, not just real players - a dead body is dropped the instant its Humanoid fires Died - corpse memory: a body seen dead is skipped for 20 s v50: - ESP has its own list: everything alive, walls included, no FOV cone, bots included - lock-on keeps its FOV cone and line-of-sight rule, separate from the ESP - corpses filtered on name, Humanoid state, lost RootPart and death spots v51: - F7 debug overlay: every model in the map, with the reason it was kept or skipped - "dummy" removed from the corpse name filter, it was hiding bots named Dummy v52: - bots are found three ways: player characters, Humanoids, and head+body rigs with no Humanoid - a Humanoid with no RootPart no longer rejects a bot, the rig itself is used - corpse clones that copy a dead player's name are refused for 25 s - F7 also prints the report to the executor console, and shows the sweep counters v53: - invisible rigs are dropped: a model whose Head and Torso are transparent is not a target - models living inside a corpse/ragdoll/debris folder are dropped as well - this is the "it aims at something invisible" case, not a corpse that stays visible v54: - death spots and dead names are only recorded for real players, bots shared one name and killed each other's targeting - a dead name is ignored while several models still answer to it - F8 dumps every model in the map: name, class, health, transparency, full path v55: - the ESP is built from the raw sweep, not from the aim list: no filter can hide a body any more - a model with only a head, or only a torso, still gets a box and a distance label - bots are judged like bots: only Dead and zero health disqualify them, not Physics or FallingDown v56: - lock-on on bots: their Humanoid health and state no longer disqualify them, visibility does - invisible colliders (glass, triggers) no longer count as cover for line of sight v57: - lock-on is player-only by request: bot rigs never steal the camera - ESP still draws everyone, bots included, through walls v58: - teammates never take the lock: Roblox Team, then Team attributes, then a name list - CFG.Allies holds exact names, CFG.IgnoreAllies switches the whole rule off - ESP keeps drawing teammates, it is a box, not a trigger v59 - Freedom: - tabbed menu: AIM / VISUALS / MISC / CONFIG, sidebar like the desktop build - six colour presets cycled by clicking a swatch row, applied live - ESP split into box / name / distance / health bar / head dot / snapline - health bar shaded green, amber, red on the Humanoid ratio - config file renamed freedom.json, old sniper48.json still read once - F9 toggles the snapline, F5 ignores the current target -------------------------------------------------------------------- ]] local Players = game:GetService("Players") local RunService = game:GetService("RunService") local Workspace = game:GetService("Workspace") local UIS = game:GetService("UserInputService") local lp = Players.LocalPlayer local cam = Workspace.CurrentCamera if type(_G.SNIPER48) == "table" and _G.SNIPER48.shutdown then pcall(_G.SNIPER48.shutdown) end -------------------------------------------------------------------- -- CONFIG -------------------------------------------------------------------- local CFG = { LockOn = true, Esp = true, VisibleOnly = true, FovCircle = true, RotateBody = false, Fov = 35, -- degrees, half-angle of the lock-on cone Smooth = 14, -- higher = snappier MaxDist = 4000, -- studs BoxFill = false, EspName = true, EspHealth = true, EspDist = true, EspHeadDot = true, EspSnapline = false, ColorBox = 1, -- index into PALETTES ColorText = 6, ColorSnapline = 3, IncludeBots = true, IgnoreAllies = true, -- never lock onto a teammate Allies = {}, -- exact names to treat as teammates, e.g. { "FriendName" } Debug = false, UiVisible = true, ScanFast = 0.10, ScanSlow = 0.30, MaxTargets = 40, BotScan = 1.5, CorpseHold = 20, } local CONFIG_FILE = "freedom.json" local LEGACY_FILE = "sniper48.json" local function saveConfig() if not writefile then return end local ok = pcall(function() writefile(CONFIG_FILE, game:GetService("HttpService"):JSONEncode(CFG)) end) return ok end local function loadConfig() if not (isfile and readfile) then return end local source = CONFIG_FILE if not isfile(source) then if isfile(LEGACY_FILE) then source = LEGACY_FILE else return end end local ok, data = pcall(function() return game:GetService("HttpService"):JSONDecode(readfile(source)) end) if ok and type(data) == "table" then for key, value in pairs(data) do if CFG[key] ~= nil then CFG[key] = value end end end end loadConfig() -------------------------------------------------------------------- -- PALETTE -------------------------------------------------------------------- local COL = { bg = Color3.fromRGB(15, 16, 19), card = Color3.fromRGB(24, 26, 30), line = Color3.fromRGB(58, 61, 68), text = Color3.fromRGB(232, 234, 238), dim = Color3.fromRGB(142, 147, 157), accent = Color3.fromRGB(124, 255, 138), off = Color3.fromRGB(46, 49, 55), danger = Color3.fromRGB(255, 96, 96), } -- six presets, one per click on a swatch row local PALETTES = { Color3.fromRGB(235, 64, 64), -- red Color3.fromRGB(124, 255, 138), -- green Color3.fromRGB(96, 200, 235), -- cyan Color3.fromRGB(255, 205, 96), -- amber Color3.fromRGB(196, 132, 255), -- violet Color3.fromRGB(240, 244, 250), -- white } local function palColor(index) local i = math.floor(tonumber(index) or 1) return PALETTES[((i - 1) % #PALETTES) + 1] end local DISCORD = "discord.gg/psxrAqpX7" local function clamp(v, lo, hi) if v < lo then return lo end if v > hi then return hi end return v end -------------------------------------------------------------------- -- GUI -------------------------------------------------------------------- local gui = Instance.new("ScreenGui") gui.Name = "Freedom59" gui.ResetOnSpawn = false gui.IgnoreGuiInset = true gui.DisplayOrder = 500 gui.Parent = (gethui and gethui()) or lp:FindFirstChild("PlayerGui") local function corner(obj, r) local c = Instance.new("UICorner") c.CornerRadius = UDim.new(0, r or 10) c.Parent = obj end local function stroke(obj, color, thick, alpha) local s = Instance.new("UIStroke") s.Color = color or COL.line s.Thickness = thick or 1 s.Transparency = alpha or 0.35 s.ApplyStrokeMode = Enum.ApplyStrokeMode.Border s.Parent = obj return s end local function label(parent, text, size, bold, color) local l = Instance.new("TextLabel") l.BackgroundTransparency = 1 l.Text = text l.TextSize = size l.Font = bold and Enum.Font.GothamBold or Enum.Font.GothamMedium l.TextColor3 = color or COL.text l.TextXAlignment = Enum.TextXAlignment.Left l.TextYAlignment = Enum.TextYAlignment.Center l.Parent = parent return l end -- late-bound hooks: the ignore toggle and the dump live further down the file local ignoreRef, dumpWorldRef local root = Instance.new("Frame") root.Name = "FD_Main" root.Size = UDim2.fromOffset(432, 452) root.Position = UDim2.fromOffset(16, 16) root.BackgroundColor3 = COL.bg root.BackgroundTransparency = 0.06 root.BorderSizePixel = 0 root.ClipsDescendants = true root.Parent = gui corner(root, 14) stroke(root, COL.line, 1, 0.45) -- header : drag handle local header = Instance.new("Frame") header.Size = UDim2.new(1, 0, 0, 38) header.BackgroundColor3 = COL.card header.BackgroundTransparency = 0.4 header.BorderSizePixel = 0 header.Parent = root corner(header, 14) local dot = Instance.new("Frame") dot.Size = UDim2.fromOffset(8, 8) dot.Position = UDim2.fromOffset(16, 15) dot.BackgroundColor3 = COL.off dot.BorderSizePixel = 0 dot.Parent = header corner(dot, 4) local title = label(header, "FREEDOM", 16, true) title.Position = UDim2.fromOffset(32, 0) title.Size = UDim2.new(1, -150, 0, 38) local chip = Instance.new("Frame") chip.Size = UDim2.fromOffset(104, 20) chip.Position = UDim2.new(1, -116, 0, 9) chip.BackgroundColor3 = COL.card chip.BorderSizePixel = 0 chip.Parent = header corner(chip, 10) local chipText = label(chip, "v59 MANUAL", 9, true, COL.dim) chipText.Size = UDim2.fromScale(1, 1) chipText.TextXAlignment = Enum.TextXAlignment.Center -- status card local card = Instance.new("Frame") card.Size = UDim2.new(1, -24, 0, 54) card.Position = UDim2.fromOffset(12, 46) card.BackgroundColor3 = COL.card card.BackgroundTransparency = 0.25 card.BorderSizePixel = 0 card.Parent = root corner(card, 9) local cardStroke = stroke(card, COL.line, 1, 0.3) local targetName = label(card, "none", 14, true) targetName.Position = UDim2.fromOffset(12, 6) targetName.Size = UDim2.new(1, -24, 0, 20) local targetSub = label(card, "0 visible / 0", 11, false, COL.dim) targetSub.Position = UDim2.fromOffset(12, 28) targetSub.Size = UDim2.new(1, -24, 0, 18) -- sidebar local SIDE_W = 96 local sidebar = Instance.new("Frame") sidebar.Size = UDim2.fromOffset(SIDE_W, 300) sidebar.Position = UDim2.fromOffset(12, 108) sidebar.BackgroundColor3 = COL.card sidebar.BackgroundTransparency = 0.55 sidebar.BorderSizePixel = 0 sidebar.Parent = root corner(sidebar, 10) local sideList = Instance.new("UIListLayout") sideList.Padding = UDim.new(0, 4) sideList.SortOrder = Enum.SortOrder.LayoutOrder sideList.Parent = sidebar local sidePad = Instance.new("UIPadding") sidePad.PaddingTop = UDim.new(0, 6) sidePad.PaddingLeft = UDim.new(0, 6) sidePad.PaddingRight = UDim.new(0, 6) sidePad.Parent = sidebar -- content local content = Instance.new("Frame") content.Size = UDim2.new(1, -(SIDE_W + 36), 0, 300) content.Position = UDim2.fromOffset(SIDE_W + 24, 108) content.BackgroundTransparency = 1 content.ClipsDescendants = true content.Parent = root local pages, tabs = {}, {} local activePage = "aim" local function makePage(id) local f = Instance.new("Frame") f.Name = id f.Size = UDim2.new(1, 0, 1, 0) f.BackgroundTransparency = 1 f.BorderSizePixel = 0 f.ClipsDescendants = true f.Visible = false f.Parent = content local l = Instance.new("UIListLayout") l.Padding = UDim.new(0, 4) l.SortOrder = Enum.SortOrder.LayoutOrder l.Parent = f pages[id] = f return f end local pageAim = makePage("aim") local pageVisual = makePage("visual") local pageMisc = makePage("misc") local pageConfig = makePage("config") local painters = {} local function selectTab(id) activePage = id for key, frame in pairs(pages) do frame.Visible = (key == id) end for key, btn in pairs(tabs) do local on = (key == id) btn.BackgroundColor3 = on and COL.card or COL.bg btn.BackgroundTransparency = on and 0.1 or 0.6 local bar = btn:FindFirstChild("Bar") if bar then bar.Visible = on end local lb = btn:FindFirstChildOfClass("TextLabel") if lb then lb.TextColor3 = on and COL.text or COL.dim end end end local function makeTab(order, id, text) local btn = Instance.new("TextButton") btn.Size = UDim2.new(1, 0, 0, 30) btn.BackgroundColor3 = COL.bg btn.BackgroundTransparency = 0.6 btn.BorderSizePixel = 0 btn.AutoButtonColor = false btn.Text = "" btn.LayoutOrder = order btn.Parent = sidebar corner(btn, 7) local bar = Instance.new("Frame") bar.Name = "Bar" bar.Size = UDim2.new(0, 3, 1, -14) bar.Position = UDim2.fromOffset(0, 7) bar.BackgroundColor3 = COL.accent bar.BorderSizePixel = 0 bar.Visible = false bar.Parent = btn corner(bar, 2) local lb = label(btn, text, 11, true, COL.dim) lb.Position = UDim2.fromOffset(12, 0) lb.Size = UDim2.new(1, -16, 1, 0) btn.MouseButton1Click:Connect(function() selectTab(id) end) tabs[id] = btn end makeTab(1, "aim", "AIM") makeTab(2, "visual", "VISUALS") makeTab(3, "misc", "MISC") makeTab(4, "config", "CONFIG") local function row(parent, order, height) local r = Instance.new("TextButton") r.Size = UDim2.new(1, 0, 0, height) r.BackgroundColor3 = COL.card r.BackgroundTransparency = 0.55 r.BorderSizePixel = 0 r.AutoButtonColor = false r.Text = "" r.LayoutOrder = order r.Parent = parent corner(r, 7) return r end local function makeToggle(parent, order, text, get, set) local r = row(parent, order, 28) local lab = label(r, text, 12, false) lab.Position = UDim2.fromOffset(10, 0) lab.Size = UDim2.new(1, -60, 1, 0) local pill = Instance.new("Frame") pill.Size = UDim2.fromOffset(34, 16) pill.Position = UDim2.new(1, -44, 0.5, -8) pill.BackgroundColor3 = COL.off pill.BorderSizePixel = 0 pill.Parent = r corner(pill, 8) local knob = Instance.new("Frame") knob.Size = UDim2.fromOffset(12, 12) knob.Position = UDim2.fromOffset(2, 2) knob.BackgroundColor3 = COL.text knob.BorderSizePixel = 0 knob.Parent = pill corner(knob, 6) local function paint() local on = get() pill.BackgroundColor3 = on and COL.accent or COL.off knob.Position = on and UDim2.fromOffset(20, 2) or UDim2.fromOffset(2, 2) lab.TextColor3 = on and COL.text or COL.dim end r.MouseButton1Click:Connect(function() set(not get()) paint() saveConfig() end) painters[#painters + 1] = paint paint() end local function makeSlider(parent, order, text, min, max, get, set, format) local r = row(parent, order, 40) local name = label(r, text, 12, false) name.Position = UDim2.fromOffset(10, 2) name.Size = UDim2.new(1, -80, 0, 16) local valueLabel = label(r, "", 11, true, COL.accent) valueLabel.Position = UDim2.new(1, -70, 0, 2) valueLabel.Size = UDim2.fromOffset(60, 16) valueLabel.TextXAlignment = Enum.TextXAlignment.Right local track = Instance.new("Frame") track.Size = UDim2.new(1, -20, 0, 6) track.Position = UDim2.fromOffset(10, 24) track.BackgroundColor3 = COL.off track.BorderSizePixel = 0 track.Parent = r corner(track, 3) local fill = Instance.new("Frame") fill.Size = UDim2.new(0, 0, 1, 0) fill.BackgroundColor3 = COL.accent fill.BorderSizePixel = 0 fill.Parent = track corner(fill, 3) local knob = Instance.new("Frame") knob.Size = UDim2.fromOffset(12, 12) knob.AnchorPoint = Vector2.new(0.5, 0.5) knob.Position = UDim2.new(0, 0, 0.5, 0) knob.BackgroundColor3 = COL.text knob.BorderSizePixel = 0 knob.Parent = track corner(knob, 6) local function paint() local v = get() local t = (clamp(v, min, max) - min) / math.max(max - min, 0.0001) fill.Size = UDim2.new(t, 0, 1, 0) knob.Position = UDim2.new(t, 0, 0.5, 0) valueLabel.Text = format and format(v) or tostring(math.floor(v + 0.5)) end local dragging = false local function apply(input) local origin = track.AbsolutePosition local width = math.max(track.AbsoluteSize.X, 1) local t = clamp((input.Position.X - origin.X) / width, 0, 1) set(min + (max - min) * t) paint() end track.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true apply(input) end end) UIS.InputChanged:Connect(function(input) if not dragging then return end if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then apply(input) end end) UIS.InputEnded:Connect(function(input) if dragging and (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) then dragging = false saveConfig() end end) painters[#painters + 1] = paint paint() end local function makeButton(parent, order, text, onClick, color) local r = row(parent, order, 30) local lab = label(r, text, 12, true, color or COL.accent) lab.Position = UDim2.fromOffset(10, 0) lab.Size = UDim2.new(1, -20, 1, 0) r.MouseButton1Click:Connect(onClick) return r end local function makePalette(parent, order, text, key) local r = row(parent, order, 28) local lab = label(r, text, 12, false) lab.Position = UDim2.fromOffset(10, 0) lab.Size = UDim2.new(1, -70, 1, 0) local swatch = Instance.new("Frame") swatch.Size = UDim2.fromOffset(28, 14) swatch.Position = UDim2.new(1, -42, 0.5, -7) swatch.BackgroundColor3 = palColor(CFG[key]) swatch.BorderSizePixel = 0 swatch.Parent = r corner(swatch, 4) r.MouseButton1Click:Connect(function() CFG[key] = (math.floor(CFG[key]) % #PALETTES) + 1 swatch.BackgroundColor3 = palColor(CFG[key]) saveConfig() end) end -- AIM page makeToggle(pageAim, 1, "Lock-On", function() return CFG.LockOn end, function(v) CFG.LockOn = v end) makeToggle(pageAim, 2, "Line of Sight", function() return CFG.VisibleOnly end, function(v) CFG.VisibleOnly = v end) makeToggle(pageAim, 3, "Rotate Body", function() return CFG.RotateBody end, function(v) CFG.RotateBody = v end) makeToggle(pageAim, 4, "Include Bots", function() return CFG.IncludeBots end, function(v) CFG.IncludeBots = v end) makeToggle(pageAim, 5, "FOV Circle", function() return CFG.FovCircle end, function(v) CFG.FovCircle = v end) makeSlider(pageAim, 6, "Smoothing", 4, 40, function() return CFG.Smooth end, function(v) CFG.Smooth = v end, function(v) return string.format("%.0f", v) end) makeSlider(pageAim, 7, "FOV", 5, 80, function() return CFG.Fov end, function(v) CFG.Fov = v end, function(v) return string.format("%.0f°", v) end) makeSlider(pageAim, 8, "Max distance", 200, 6000, function() return CFG.MaxDist end, function(v) CFG.MaxDist = v end, function(v) return string.format("%.0f", v) end) -- VISUALS page makeToggle(pageVisual, 1, "ESP Box", function() return CFG.Esp end, function(v) CFG.Esp = v end) makeToggle(pageVisual, 2, "Box Fill", function() return CFG.BoxFill end, function(v) CFG.BoxFill = v end) makeToggle(pageVisual, 3, "Name", function() return CFG.EspName end, function(v) CFG.EspName = v end) makeToggle(pageVisual, 4, "Distance", function() return CFG.EspDist end, function(v) CFG.EspDist = v end) makeToggle(pageVisual, 5, "Health Bar", function() return CFG.EspHealth end, function(v) CFG.EspHealth = v end) makeToggle(pageVisual, 6, "Head Dot", function() return CFG.EspHeadDot end, function(v) CFG.EspHeadDot = v end) makeToggle(pageVisual, 7, "Snapline", function() return CFG.EspSnapline end, function(v) CFG.EspSnapline = v end) makePalette(pageVisual, 8, "Box Color", "ColorBox") makePalette(pageVisual, 9, "Text Color", "ColorText") makePalette(pageVisual, 10, "Snapline Color", "ColorSnapline") -- MISC page local discordBar = Instance.new("TextButton") discordBar.Size = UDim2.new(1, 0, 0, 32) discordBar.BackgroundColor3 = COL.card discordBar.BackgroundTransparency = 0.35 discordBar.BorderSizePixel = 0 discordBar.AutoButtonColor = false discordBar.Text = "" discordBar.LayoutOrder = 1 discordBar.Parent = pageMisc corner(discordBar, 8) local discordStroke = stroke(discordBar, COL.line, 1, 0.4) local discordLabel = label(discordBar, DISCORD, 11, true, COL.accent) discordLabel.Position = UDim2.fromOffset(12, 0) discordLabel.Size = UDim2.new(1, -70, 1, 0) local copyBtn = label(discordBar, "COPY", 10, true, COL.accent) copyBtn.Position = UDim2.new(1, -54, 0, 0) copyBtn.Size = UDim2.fromOffset(42, 32) copyBtn.TextXAlignment = Enum.TextXAlignment.Center makeButton(pageMisc, 2, "Ignore Target F5", function() if ignoreRef then ignoreRef() end end, COL.dim) makeButton(pageMisc, 3, "Dump World F8", function() if dumpWorldRef then dumpWorldRef() end end, COL.dim) -- CONFIG page makeButton(pageConfig, 1, "Save Config", function() saveConfig() end) makeButton(pageConfig, 2, "Reload Config", function() loadConfig() for _, paint in ipairs(painters) do paint() end end) makeButton(pageConfig, 3, "Reset Defaults", function() CFG.LockOn, CFG.Esp = true, true CFG.VisibleOnly, CFG.FovCircle, CFG.RotateBody = true, true, false CFG.IncludeBots, CFG.BoxFill = true, false CFG.EspName, CFG.EspHealth, CFG.EspDist = true, true, true CFG.EspHeadDot, CFG.EspSnapline = true, false CFG.ColorBox, CFG.ColorText, CFG.ColorSnapline = 1, 6, 3 CFG.Fov, CFG.Smooth, CFG.MaxDist = 35, 14, 4000 for _, paint in ipairs(painters) do paint() end saveConfig() end, COL.danger) local versionLine = label(pageConfig, "freedom.json · built for Xeno", 10, false, COL.dim) versionLine.Size = UDim2.new(1, 0, 0, 16) versionLine.LayoutOrder = 4 -- footer + debug local footer = label(root, "F1 hide F2 lock F3 esp F5 ignore F6 fov F7 debug F8 dump F9 snapline", 10, false, COL.dim) footer.Position = UDim2.new(0, 12, 1, -22) footer.Size = UDim2.new(1, -24, 0, 14) footer.TextXAlignment = Enum.TextXAlignment.Center local debugBox = label(pageMisc, "", 10, false, COL.dim) debugBox.Size = UDim2.new(1, 0, 0, 0) debugBox.AutomaticSize = Enum.AutomaticSize.Y debugBox.TextWrapped = true debugBox.TextYAlignment = Enum.TextYAlignment.Top debugBox.LayoutOrder = 4 debugBox.Visible = false selectTab("aim") -------------------------------------------------------------------- -- ESP DRAWINGS -------------------------------------------------------------------- local drawingOk = false do local ok = pcall(function() local probe = Drawing.new("Square") probe:Remove() drawingOk = true end) end local boxCache = {} local fovCircle = nil if drawingOk then fovCircle = Drawing.new("Circle") fovCircle.Thickness = 1 fovCircle.NumSides = 64 fovCircle.Filled = false fovCircle.Transparency = 0.6 fovCircle.Color = COL.accent fovCircle.Visible = false end local function boxAt(index) if not drawingOk then return nil end local entry = boxCache[index] if entry then return entry end local ok, made = pcall(function() local square = Drawing.new("Square") square.Thickness = 1 square.Filled = false square.Transparency = 1 square.Color = palColor(CFG.ColorBox) local text = Drawing.new("Text") text.Size = 13 text.Center = true text.Outline = true text.Color = palColor(CFG.ColorText) local barBg = Drawing.new("Square") barBg.Filled = true barBg.Thickness = 0 barBg.Color = Color3.fromRGB(8, 9, 12) barBg.Transparency = 0.45 local barFill = Drawing.new("Square") barFill.Filled = true barFill.Thickness = 0 barFill.Color = Color3.fromRGB(96, 220, 128) barFill.Transparency = 0.95 local headDot = Drawing.new("Circle") headDot.Filled = true headDot.Thickness = 1 headDot.NumSides = 12 headDot.Radius = 3 headDot.Color = palColor(CFG.ColorBox) headDot.Transparency = 1 local snapLine = Drawing.new("Line") snapLine.Thickness = 1 snapLine.Color = palColor(CFG.ColorSnapline) snapLine.Transparency = 0.7 return { square = square, text = text, barBg = barBg, barFill = barFill, headDot = headDot, line = snapLine, } end) if not ok or not made then drawingOk = false return nil end boxCache[index] = made return made end local function hideBox(index) local entry = boxCache[index] if not entry then return end for _, item in pairs(entry) do if type(item) == "table" or type(item) == "userdata" then pcall(function() item.Visible = false end) end end end -------------------------------------------------------------------- -- GAME HELPERS -------------------------------------------------------------------- local DEAD_STATES = { [Enum.HumanoidStateType.Dead] = true, [Enum.HumanoidStateType.Physics] = true, [Enum.HumanoidStateType.FallingDown] = true, [Enum.HumanoidStateType.PlatformStanding] = true, } -- games keep corpses around: as a ragdoll, as a renamed clone, or as a dummy -- that still reports full health. Those words are the ones they never use for a living body. -- only names a living body never carries. "dummy" is deliberately absent: -- plenty of games call their bots Dummy or BotDummy, and that filter was hiding them. local CORPSE_WORDS = { "ragdoll", "corpse", "deadbody", "dead_body" } local function looksLikeCorpse(character) local lower = string.lower(character.Name or "") for _, word in ipairs(CORPSE_WORDS) do if string.find(lower, word, 1, true) then return true end end return false end -- a corpse clone keeps the name of the player it came from. Remember it and -- refuse any model carrying that name, since no living body answers to it. local deadNames = {} local function markDeadName(name) if name and #name > 0 then deadNames[name] = os.clock() + 25 end end local function isDeadName(character) if Players:GetPlayerFromCharacter(character) then return false end local name = character.Name if not name then return false end local expiry = deadNames[name] if not expiry then return false end if os.clock() > expiry then deadNames[name] = nil return false end return true end local HIDDEN_PARTS = { "Head", "UpperTorso", "Torso", "HumanoidRootPart" } local CORPSE_CONTAINERS = { "corpse", "ragdoll", "deadbody", "bodies", "debris" } local function inCorpseContainer(character) local node = character.Parent local depth = 0 while node and node ~= Workspace and depth < 6 do local name = string.lower(tostring(node.Name)) for _, word in ipairs(CORPSE_CONTAINERS) do if string.find(name, word, 1, true) then return true end end node = node.Parent depth = depth + 1 end return false end -- a body the game hides is still a body. Aiming a box at a transparent rig -- looks exactly like locking onto thin air, which is what players report. local function isHidden(character) local found = false for _, partName in ipairs(HIDDEN_PARTS) do local part = character:FindFirstChild(partName) if part and part:IsA("BasePart") then found = true if part.Transparency < 0.85 then return false end end end return found end local function hasBodyPart(character) return character:FindFirstChild("HumanoidRootPart") or character:FindFirstChild("UpperTorso") or character:FindFirstChild("Torso") or character.PrimaryPart end local function isAlive(character) if not character or not character.Parent then return false end if looksLikeCorpse(character) then return false end if isHidden(character) then return false end local humanoid = character:FindFirstChildOfClass("Humanoid") local isPlayer = Players:GetPlayerFromCharacter(character) ~= nil if humanoid then if isPlayer then if humanoid.Health <= 0 then return false end if DEAD_STATES[humanoid:GetState()] then return false end return hasBodyPart(character) ~= nil end -- bots: a visible rig with a body part is a target. Their Humanoid is -- decoration — plenty sit at zero health or in Physics for their whole life. return hasBodyPart(character) ~= nil end -- no Humanoid at all: some games ship bots as plain rigs, head + body only return character:FindFirstChild("Head") ~= nil and hasBodyPart(character) ~= nil end local function partsOf(character) local head = character:FindFirstChild("Head") local rootPart = character:FindFirstChild("HumanoidRootPart") or character:FindFirstChild("UpperTorso") or character:FindFirstChild("Torso") if not rootPart then local primary = character.PrimaryPart if primary then rootPart = primary end end return head, rootPart end local function nameOf(character) local player = Players:GetPlayerFromCharacter(character) if player then return player.DisplayName ~= "" and player.DisplayName or player.Name end local name = character.Name or "bot" if #name >= 32 and name:match("^%x%x%x%x%x%x%x%x-") then return "bot" end if #name > 20 then return string.sub(name, 1, 18) .. ".." end return name end -- A teammate must never eat the lock. Roblox teams first, then any Team -- attribute the game sets, then a hand-written name list in the config. local function isAlly(character) if not CFG.IgnoreAllies then return false end local player = Players:GetPlayerFromCharacter(character) if not player then return false end if lp.Team ~= nil and player.Team == lp.Team then return true end for _, key in ipairs({ "Team", "team", "TeamName", "teamName", "TeamId", "teamId" }) do local mine, theirs = lp:GetAttribute(key), player:GetAttribute(key) if mine ~= nil and theirs ~= nil and mine == theirs then return true end local myBody, theirBody = lp.Character, player.Character if myBody and theirBody then local mineC, theirsC = myBody:GetAttribute(key), theirBody:GetAttribute(key) if mineC ~= nil and theirsC ~= nil and mineC == theirsC then return true end end end for _, name in ipairs(CFG.Allies or {}) do local lowered = string.lower(tostring(name)) if lowered == string.lower(player.Name) then return true end if player.DisplayName and lowered == string.lower(player.DisplayName) then return true end end return false end local corpses = {} local function markCorpse(character, seconds) if character then corpses[character] = os.clock() + (seconds or CFG.CorpseHold) end end local function isCorpse(character) local expiry = corpses[character] if not expiry then return false end if not character.Parent or os.clock() > expiry then corpses[character] = nil return false end return true end -- games often spawn a fresh ragdoll model where the body fell. Remember the -- spot of every death for a few seconds and refuse anything standing there. local deathSpots = {} local function markDeathSpot(position) if not position then return end deathSpots[#deathSpots + 1] = { pos = position, at = os.clock() } while #deathSpots > 30 do table.remove(deathSpots, 1) end end local function nearDeathSpot(character, rootPart) if not rootPart then return false end local now = os.clock() local where = rootPart.Position for index = #deathSpots, 1, -1 do local spot = deathSpots[index] if now - spot.at > 8 then table.remove(deathSpots, index) elseif (spot.pos - where).Magnitude <= 6 then return true end end return false end local rayParams = RaycastParams.new() rayParams.FilterType = Enum.RaycastFilterType.Exclude rayParams.IgnoreWater = true local function canSee(character, targetPart) if not targetPart then return false end local ignored = { character } if lp.Character then ignored[#ignored + 1] = lp.Character end rayParams.FilterDescendantsInstances = ignored local origin = cam.CFrame.Position local result = Workspace:Raycast(origin, targetPart.Position - origin, rayParams) if not result then return true end if result.Instance:IsDescendantOf(character) then return true end -- invisible colliders are not cover: glass walls and trigger boxes must not -- block a line of sight that the eye clearly has if result.Instance:IsA("BasePart") and result.Instance.Transparency >= 0.85 then return true end return false end -------------------------------------------------------------------- -- TARGETING -------------------------------------------------------------------- local State = { visible = 0, total = 0, errors = 0, target = nil, copyUntil = 0, candidates = {}, espList = {}, report = {}, aliveCount = 0, lastScan = 0, lastSweep = 0, characters = {}, deathHooks = {}, } -------------------------------------------------------------------- -- CHARACTER SWEEP (players + bots) -------------------------------------------------------------------- local function sweepCharacters() local found, seen = {}, {} local humanoids, rigs = 0, 0 for _, other in ipairs(Players:GetPlayers()) do if other ~= lp then local character = other.Character if character and character.Parent then found[#found + 1] = character seen[character] = true end end end if CFG.IncludeBots then local ok = pcall(function() for _, descendant in ipairs(Workspace:GetDescendants()) do if descendant:IsA("Humanoid") then humanoids = humanoids + 1 local model = descendant.Parent if model and not seen[model] and model ~= lp.Character then seen[model] = true found[#found + 1] = model end elseif descendant:IsA("BasePart") and descendant.Name == "Head" then local model = descendant.Parent if model and not seen[model] and model ~= lp.Character and (model:FindFirstChild("HumanoidRootPart") or model:FindFirstChild("Torso") or model:FindFirstChild("UpperTorso")) then seen[model] = true rigs = rigs + 1 found[#found + 1] = model end end end end) if not ok then State.errors = State.errors + 1 end end local nameCount = {} for _, model in ipairs(found) do local name = model.Name nameCount[name] = (nameCount[name] or 0) + 1 end State.nameCount = nameCount State.sweepInfo = string.format("sweep %d models (%d humanoid, %d rigs)", #found, humanoids, rigs) State.characters = found State.lastSweep = os.clock() return found end -- F8: the whole map, unfiltered. Every model holding a Humanoid or a body part -- gets one line: name, class, health, transparency, full path. Nothing is judged. function dumpWorld() local seen, rows = {}, {} local ok = pcall(function() for _, item in ipairs(Workspace:GetDescendants()) do local candidate = item:IsA("Humanoid") or (item:IsA("BasePart") and (item.Name == "Head" or item.Name == "Torso" or item.Name == "UpperTorso")) if candidate then local model = item.Parent if model and not seen[model] then seen[model] = true local humanoid = model:FindFirstChildOfClass("Humanoid") local head = model:FindFirstChild("Head") local torso = model:FindFirstChild("Torso") or model:FindFirstChild("UpperTorso") rows[#rows + 1] = string.format("%s [%s] hp=%s transp=%s/%s path=%s", model.Name, model.ClassName, humanoid and tostring(math.floor(humanoid.Health)) or "-", head and string.format("%.2f", head.Transparency) or "-", torso and string.format("%.2f", torso.Transparency) or "-", model:GetFullName()) end end end end) print(string.format("[freedom] dump %d model(s)%s", #rows, ok and "" or " — scan error")) for index = 1, math.min(#rows, 40) do print("[freedom] " .. rows[index]) end end local function watchDeath(character) if State.deathHooks[character] then return end local humanoid = character:FindFirstChildOfClass("Humanoid") if not humanoid then return end local ok, connection = pcall(function() return humanoid.Died:Connect(function() State.deathHooks[character] = nil markCorpse(character) -- only a real player leaves a corpse worth remembering: bots die by the -- dozen in the same spot, and their shared names poison every filter if Players:GetPlayerFromCharacter(character) then markDeadName(character.Name) local dyingRoot = humanoid.RootPart or character:FindFirstChild("HumanoidRootPart") markDeathSpot(dyingRoot and dyingRoot.Position) end if State.target and State.target.character == character then State.target = nil State.lastScan = 0 end end) end) if ok then State.deathHooks[character] = connection end end local function scanTargets() local now = os.clock() if now - State.lastSweep >= CFG.BotScan then sweepCharacters() end local list = {} local espList = {} local report = {} local visibleCount = 0 local totalCount = 0 local viewport = cam.ViewportSize for _, character in ipairs(State.characters) do local reason = nil local isPlayerModel = Players:GetPlayerFromCharacter(character) ~= nil local ally = isAlly(character) local humanoid = character:FindFirstChildOfClass("Humanoid") if not character.Parent then reason = "gone" elseif character == lp.Character then reason = "self" elseif isCorpse(character) then reason = "corpse-memory" elseif looksLikeCorpse(character) then reason = "corpse-name" elseif isDeadName(character) and (State.nameCount[character.Name] or 0) <= 1 then reason = "corpse-name-match" elseif inCorpseContainer(character) then reason = "corpse-folder" elseif isHidden(character) then reason = "invisible" elseif not humanoid then reason = "no-humanoid" elseif humanoid.Health <= 0 then reason = "hp0" elseif DEAD_STATES[humanoid:GetState()] then reason = "state" elseif not humanoid.RootPart or not humanoid.RootPart.Parent then reason = "no-root" end if reason then report[#report + 1] = string.format("%s · %s", nameOf(character), reason) else local head, rootPart = partsOf(character) if nearDeathSpot(character, rootPart) then markCorpse(character, 8) report[#report + 1] = string.format("%s · death-spot", nameOf(character)) else totalCount = totalCount + 1 local aimPart = head or rootPart -- lock-on is for real players only, and never for a teammate if isPlayerModel and not ally and aimPart and aimPart.Parent then local origin = cam.CFrame.Position local delta = aimPart.Position - origin local distance = delta.Magnitude if distance <= CFG.MaxDist then watchDeath(character) -- ESP: everything alive around us, bots included, walls included. -- Only things actually in front of the camera get drawn, nothing behind the head. -- ESP is built separately, from the raw sweep: see below -- Lock-on stays inside the FOV cone and respects line of sight local dir = cam.CFrame.LookVector local unit = delta.Unit local angle = math.deg(math.acos(clamp(dir:Dot(unit), -1, 1))) if angle <= CFG.Fov then local visible = (not CFG.VisibleOnly) or canSee(character, aimPart) if visible then visibleCount = visibleCount + 1 list[#list + 1] = { character = character, head = head, root = rootPart, aim = aimPart, name = nameOf(character), distance = distance, angle = angle, score = angle * 0.7 + (distance / math.max(CFG.MaxDist, 1)) * 30, } end end end end end -- nearDeathSpot guard end end -- ESP: built from the raw sweep, never from the aim list. A body the aim -- filters reject still gets a box, which is the whole point of an overlay. for _, character in ipairs(State.characters) do if character.Parent and character ~= lp.Character and not isCorpse(character) then local head = character:FindFirstChild("Head") local body = character:FindFirstChild("HumanoidRootPart") or character:FindFirstChild("Torso") or character:FindFirstChild("UpperTorso") or character.PrimaryPart local anchor = head or body if anchor and anchor.Parent then local headHidden = (not head) or head.Transparency >= 0.85 local bodyHidden = (not body) or body.Transparency >= 0.85 if not (headHidden and bodyHidden) then local distance = (anchor.Position - cam.CFrame.Position).Magnitude if distance <= CFG.MaxDist then local screen, onScreen = cam:WorldToViewportPoint(anchor.Position) if onScreen and screen.Z > 0 and screen.X > -200 and screen.X < viewport.X + 200 and screen.Y > -200 and screen.Y < viewport.Y + 200 then espList[#espList + 1] = { character = character, head = head or body, root = body or head, aim = anchor, name = nameOf(character), distance = distance, score = distance, } report[#report + 1] = string.format("%s · esp %.0fm", nameOf(character), distance / 3.571) end end end end end end table.sort(list, function(a, b) return a.score < b.score end) table.sort(espList, function(a, b) return a.score < b.score end) State.candidates = list State.espList = espList State.report = report State.aliveCount = #State.characters State.visible = visibleCount State.total = totalCount State.target = list[1] return list[1] end -------------------------------------------------------------------- -- AIM -------------------------------------------------------------------- local function aimAt(target, dt) if not target or not cam then return end local desired = CFrame.lookAt(cam.CFrame.Position, target.aim.Position) -- exponential smoothing: same feel at 30 fps and at 240 fps local alpha = 1 - math.exp(-CFG.Smooth * dt) cam.CFrame = cam.CFrame:Lerp(desired, clamp(alpha, 0, 1)) if CFG.RotateBody and lp.Character then local myRoot = lp.Character:FindFirstChild("HumanoidRootPart") if myRoot then local bodyWant = CFrame.lookAt(myRoot.Position, target.aim.Position) local bodyAlpha = 1 - math.exp(-10 * dt) myRoot.CFrame = myRoot.CFrame:Lerp(bodyWant, clamp(bodyAlpha, 0, 1)) end end end -------------------------------------------------------------------- -- ESP RENDER -------------------------------------------------------------------- local function renderEsp() if not drawingOk then return end local used = 0 local viewport = cam.ViewportSize local boxColor = palColor(CFG.ColorBox) local textColor = palColor(CFG.ColorText) local lineColor = palColor(CFG.ColorSnapline) for _, entry in ipairs(State.espList) do local head = entry.head or entry.aim local bodyPart = entry.root or entry.aim or entry.head if head and bodyPart then local headScreen, headOn = cam:WorldToViewportPoint(head.Position + Vector3.new(0, 0.5, 0)) local footScreen, footOn = cam:WorldToViewportPoint(bodyPart.Position - Vector3.new(0, 2.2, 0)) if headOn and footOn and headScreen.Z > 0 and footScreen.Z > 0 then used = used + 1 if used <= CFG.MaxTargets then local box = boxAt(used) if box then local height = math.abs(footScreen.Y - headScreen.Y) local width = height * 0.5 local top = math.min(headScreen.Y, footScreen.Y) local left = headScreen.X - width * 0.5 box.square.Size = Vector2.new(width, height) box.square.Position = Vector2.new(left, top) box.square.Color = boxColor box.square.Filled = CFG.BoxFill box.square.Transparency = CFG.BoxFill and 0.7 or 1 box.square.Visible = CFG.Esp -- barre de vie, proportion Humanoid local humanoid = entry.character and entry.character:FindFirstChildOfClass("Humanoid") local health = humanoid and humanoid.Health or 100 local maxHealth = math.max(humanoid and humanoid.MaxHealth or 100, 1) local ratio = clamp(health / maxHealth, 0, 1) local barX = left - 5 box.barBg.Size = Vector2.new(3, height) box.barBg.Position = Vector2.new(barX, top) box.barBg.Visible = CFG.Esp and CFG.EspHealth box.barFill.Size = Vector2.new(3, height * ratio) box.barFill.Position = Vector2.new(barX, top + height * (1 - ratio)) if ratio > 0.6 then box.barFill.Color = Color3.fromRGB(96, 220, 128) elseif ratio > 0.3 then box.barFill.Color = Color3.fromRGB(235, 205, 96) else box.barFill.Color = Color3.fromRGB(235, 90, 90) end box.barFill.Visible = CFG.Esp and CFG.EspHealth -- point de tete box.headDot.Position = Vector2.new(headScreen.X, headScreen.Y) box.headDot.Color = boxColor box.headDot.Visible = CFG.Esp and CFG.EspHeadDot -- ligne depuis le bas de l'ecran box.line.From = Vector2.new(viewport.X * 0.5, viewport.Y) box.line.To = Vector2.new(headScreen.X, top) box.line.Color = lineColor box.line.Visible = CFG.Esp and CFG.EspSnapline -- etiquette : nom et/ou distance, chacun son interrupteur local parts = {} if CFG.EspName then parts[#parts + 1] = entry.name end if CFG.EspDist then parts[#parts + 1] = string.format("%dm", math.floor(entry.distance / 3.571)) end box.text.Text = table.concat(parts, " ") box.text.Position = Vector2.new(headScreen.X, top - 15) box.text.Color = textColor box.text.Visible = CFG.Esp and #parts > 0 end end end end end for index = math.min(used, CFG.MaxTargets) + 1, #boxCache do hideBox(index) end end local function renderFov() if not fovCircle then return end if not CFG.FovCircle or not CFG.LockOn then fovCircle.Visible = false return end local viewport = cam.ViewportSize local halfFov = math.rad(cam.FieldOfView * 0.5) local radius = (math.tan(math.rad(CFG.Fov)) / math.tan(halfFov)) * (viewport.Y * 0.5) fovCircle.Position = Vector2.new(viewport.X * 0.5, viewport.Y * 0.5) fovCircle.Radius = math.max(radius, 1) fovCircle.Visible = true end -------------------------------------------------------------------- -- UI REFRESH -------------------------------------------------------------------- local function refreshUi() local target = State.target if target then targetName.Text = string.sub(target.name, 1, 20) targetName.TextColor3 = COL.text targetSub.Text = string.format("%.0f m · %.0f°", target.distance / 3.571, target.angle) cardStroke.Color = COL.accent cardStroke.Transparency = 0.15 dot.BackgroundColor3 = COL.accent else targetName.Text = "none" targetName.TextColor3 = COL.dim targetSub.Text = string.format("%d visible / %d", State.visible, State.total) cardStroke.Color = COL.line cardStroke.Transparency = 0.25 dot.BackgroundColor3 = State.errors > 0 and COL.danger or COL.off end debugBox.Visible = CFG.Debug if CFG.Debug then local lines = { string.format("models %d · alive %d · esp %d · aim %d · err %d", State.aliveCount, State.total, #State.espList, #State.candidates, State.errors or 0), State.sweepInfo or "sweep -", } for index = 1, math.min(#State.report, 12) do lines[#lines + 1] = State.report[index] end if #State.report == 0 then lines[#lines + 1] = "no model found at all" end debugBox.Text = table.concat(lines, "\n") if os.clock() - (State.lastPrint or 0) > 2.5 then State.lastPrint = os.clock() print("[freedom] " .. table.concat(lines, " | ")) end end if os.clock() < State.copyUntil then copyBtn.Text = "COPIED" discordStroke.Color = COL.accent discordStroke.Transparency = 0.2 else copyBtn.Text = "COPY" discordStroke.Color = COL.line discordStroke.Transparency = 0.4 end end -------------------------------------------------------------------- -- DISCORD COPY -------------------------------------------------------------------- local function copyInvite() local full = "https://" .. DISCORD local ok = pcall(function() setclipboard(full) end) if not ok then pcall(function() toclipboard(full) end) end State.copyUntil = os.clock() + 1.5 end discordBar.MouseButton1Click:Connect(copyInvite) -------------------------------------------------------------------- -- IGNORE LIST (F5) -------------------------------------------------------------------- local ignored = {} local IGNORE_SECONDS = 30 local function isIgnored(character) local expiry = ignored[character] if not expiry then return false end if os.clock() > expiry then ignored[character] = nil return false end return true end -------------------------------------------------------------------- -- IGNORE TOGGLE (F5 and the menu button) -------------------------------------------------------------------- local function toggleIgnore() local target = State.target if not (target and target.character) then return end if isIgnored(target.character) then ignored[target.character] = nil else ignored[target.character] = os.clock() + IGNORE_SECONDS end end ignoreRef = toggleIgnore dumpWorldRef = dumpWorld -------------------------------------------------------------------- -- RENDER LOOP -------------------------------------------------------------------- local function onRender(dt) local ok = pcall(function() dt = clamp(dt or 0, 0, 0.1) if not cam or not cam.Parent then cam = Workspace.CurrentCamera if not cam then return end end local now = os.clock() local interval = (#State.candidates > 0) and CFG.ScanFast or CFG.ScanSlow if now - State.lastScan >= interval then State.lastScan = now scanTargets() end -- a target that died or lost its hitbox is dropped on the spot if State.target then local t = State.target local stillThere = t.character and t.character.Parent and t.aim and t.aim.Parent and not isCorpse(t.character) and isAlive(t.character) if not stillThere then markCorpse(t.character) State.target = nil State.lastScan = 0 scanTargets() end end -- filter ignored targets without rescanning if State.target and isIgnored(State.target.character) then for _, entry in ipairs(State.candidates) do if not isIgnored(entry.character) then State.target = entry break end end end if CFG.LockOn and State.target then aimAt(State.target, dt) end if CFG.Esp then local espOk = pcall(renderEsp) if not espOk then State.errors = State.errors + 1 drawingOk = false end else for index = 1, #boxCache do hideBox(index) end end renderFov() refreshUi() end) if not ok then State.errors = State.errors + 1 end end pcall(function() RunService:UnbindFromRenderStep("Freedom59") end) RunService:BindToRenderStep("Freedom59", 201, onRender) -------------------------------------------------------------------- -- KEYS -------------------------------------------------------------------- local keyConnection = UIS.InputBegan:Connect(function(input, processed) if processed then return end local key = input.KeyCode if key == Enum.KeyCode.F1 then CFG.UiVisible = not CFG.UiVisible root.Visible = CFG.UiVisible elseif key == Enum.KeyCode.F2 then CFG.LockOn = not CFG.LockOn for _, paint in ipairs(painters) do paint() end saveConfig() elseif key == Enum.KeyCode.F3 then CFG.Esp = not CFG.Esp for _, paint in ipairs(painters) do paint() end saveConfig() elseif key == Enum.KeyCode.F4 then copyInvite() elseif key == Enum.KeyCode.F5 then local target = State.target if target and target.character then if isIgnored(target.character) then ignored[target.character] = nil else ignored[target.character] = os.clock() + IGNORE_SECONDS end end elseif key == Enum.KeyCode.F6 then CFG.FovCircle = not CFG.FovCircle for _, paint in ipairs(painters) do paint() end saveConfig() elseif key == Enum.KeyCode.F7 then CFG.Debug = not CFG.Debug debugBox.Visible = CFG.Debug print("[freedom] debug " .. (CFG.Debug and "on" or "off")) elseif key == Enum.KeyCode.F8 then dumpWorld() elseif key == Enum.KeyCode.F9 then CFG.EspSnapline = not CFG.EspSnapline for _, paint in ipairs(painters) do paint() end saveConfig() end end) -------------------------------------------------------------------- -- WINDOW DRAG -------------------------------------------------------------------- local dragging, dragStart, startPos = false, nil, nil header.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = input.Position startPos = root.Position end end) UIS.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 root.Position = UDim2.new( startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y ) end end) UIS.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = false end end) -------------------------------------------------------------------- -- SHUTDOWN -------------------------------------------------------------------- local function shutdown() pcall(function() RunService:UnbindFromRenderStep("Freedom59") end) pcall(function() keyConnection:Disconnect() end) pcall(function() gui:Destroy() end) for _, entry in pairs(boxCache) do for _, item in pairs(entry) do if type(item) == "table" or type(item) == "userdata" then pcall(function() item:Remove() end) end end end if fovCircle then pcall(function() fovCircle:Remove() end) end boxCache = {} _G.SNIPER48 = nil end _G.SNIPER48 = { shutdown = shutdown, cfg = CFG } _G.FREEDOM = { shutdown = shutdown, cfg = CFG } -------------------------------------------------------------------- -- START -------------------------------------------------------------------- scanTargets() refreshUi()