local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UIS = game:GetService("UserInputService") local CAS = game:GetService("ContextActionService") local CoreGui = game:GetService("CoreGui") local LocalPlayer = Players.LocalPlayer local Settings = { TOGGLE_KEY = Enum.KeyCode.L, TARGET_LIMBS = {"Head", "Right Arm"}, LIMB_SIZE = 8, LIMB_TRANSPARENCY = 0.8, LIMB_CAN_COLLIDE = false, TEAM_CHECK = false, FORCEFIELD_CHECK = false, RESET_LIMB_ON_DEATH = false, USE_HIGHLIGHT = true, DEPTH_MODE = Enum.HighlightDepthMode.AlwaysOnTop, HIGHLIGHT_FILL_COLOR = Color3.fromRGB(200, 20, 35), HIGHLIGHT_FILL_TRANSPARENCY = 0.85, HIGHLIGHT_OUTLINE_COLOR = Color3.fromRGB(255, 45, 65), HIGHLIGHT_OUTLINE_TRANSPARENCY = 0, } -- All R6 & R15 Limbs local ALL_LIMBS = { -- Common / R6 "Head", "Torso", "Left Arm", "Right Arm", "Left Leg", "Right Leg", "HumanoidRootPart", -- R15 Torso "UpperTorso", "LowerTorso", -- R15 Left Arm "LeftUpperArm", "LeftLowerArm", "LeftHand", -- R15 Right Arm "RightUpperArm", "RightLowerArm", "RightHand", -- R15 Left Leg "LeftUpperLeg", "LeftLowerLeg", "LeftFoot", -- R15 Right Leg "RightUpperLeg", "RightLowerLeg", "RightFoot" } -- Global State Cleanup if re-executed if getgenv and getgenv().LimbExtender and getgenv().LimbExtender.DestroyAll then getgenv().LimbExtender.DestroyAll() end local State = { Running = false, Destroyed = false, PlayerData = {}, TouchConns = {}, OriginalData = {}, -- Stores original Size, Transparency, CanCollide, CanTouch, Massless, MeshScale Connections = {}, LimbButtons = {} } if getgenv then getgenv().LimbExtender = State end -- // Helper Functions \\ -- local function isTeammate(player) return Settings.TEAM_CHECK and LocalPlayer.Team ~= nil and player.Team == LocalPlayer.Team end local function isLimbSelected(limbName) return table.find(Settings.TARGET_LIMBS, limbName) ~= nil end local function createHighlight(parent) if parent:FindFirstChild("LimbExtenderHighlight") then return end local h = Instance.new("Highlight") h.Name = "LimbExtenderHighlight" h.DepthMode = Settings.DEPTH_MODE h.FillColor = Settings.HIGHLIGHT_FILL_COLOR h.FillTransparency = Settings.HIGHLIGHT_FILL_TRANSPARENCY h.OutlineColor = Settings.HIGHLIGHT_OUTLINE_COLOR h.OutlineTransparency = Settings.HIGHLIGHT_OUTLINE_TRANSPARENCY h.Adornee = parent h.Parent = parent return h end local function removeHighlight(parent) if not parent then return end local h = parent:FindFirstChild("LimbExtenderHighlight") if h then h:Destroy() end -- Catch any stray highlights created for _, child in ipairs(parent:GetChildren()) do if child:IsA("Highlight") then child:Destroy() end end end local function setNoTouch(limb) limb.CanTouch = false limb.CanCollide = Settings.LIMB_CAN_COLLIDE if State.TouchConns[limb] then State.TouchConns[limb]:Disconnect() end State.TouchConns[limb] = limb:GetPropertyChangedSignal("CanTouch"):Connect(function() if State.Running and not State.Destroyed and limb.CanTouch then limb.CanTouch = false end end) end local function saveOriginalProperties(limb) if State.OriginalData[limb] then return end local mesh = limb:FindFirstChildOfClass("SpecialMesh") State.OriginalData[limb] = { Size = limb.Size, Transparency = limb.Transparency, CanCollide = limb.CanCollide, CanTouch = limb.CanTouch, Massless = limb.Massless, MeshScale = mesh and mesh.Scale or nil } end local function extendLimb(limb) if not limb or not limb:IsA("BasePart") then return end pcall(function() saveOriginalProperties(limb) limb.Size = Vector3.new(Settings.LIMB_SIZE, Settings.LIMB_SIZE, Settings.LIMB_SIZE) limb.Transparency = Settings.LIMB_TRANSPARENCY limb.CanCollide = Settings.LIMB_CAN_COLLIDE limb.CanTouch = false limb.Massless = true setNoTouch(limb) local mesh = limb:FindFirstChildOfClass("SpecialMesh") if mesh then mesh.Scale = Vector3.new(1.25, 1.25, 1.25) end end) if Settings.USE_HIGHLIGHT then createHighlight(limb) else removeHighlight(limb) end end local function resetLimb(limb) if not limb then return end if State.TouchConns[limb] then State.TouchConns[limb]:Disconnect() State.TouchConns[limb] = nil end pcall(function() local orig = State.OriginalData[limb] if orig then limb.Size = orig.Size limb.Transparency = orig.Transparency limb.CanCollide = orig.CanCollide limb.CanTouch = orig.CanTouch limb.Massless = orig.Massless local mesh = limb:FindFirstChildOfClass("SpecialMesh") if mesh and orig.MeshScale then mesh.Scale = orig.MeshScale end State.OriginalData[limb] = nil else -- Fallback default sizes if original wasn't cached if limb.Name == "Head" then limb.Size = Vector3.new(2, 1, 1) elseif limb.Name == "HumanoidRootPart" or limb.Name == "Torso" or limb.Name == "UpperTorso" or limb.Name == "LowerTorso" then limb.Size = Vector3.new(2, 2, 1) else limb.Size = Vector3.new(1, 2, 1) end limb.Transparency = (limb.Name == "HumanoidRootPart") and 1 or 0 limb.CanCollide = (limb.Name ~= "HumanoidRootPart") limb.CanTouch = true limb.Massless = false end end) removeHighlight(limb) end local function resetAllPlayers() -- Reset any limb stored in OriginalData for limb, _ in pairs(State.OriginalData) do if limb and limb.Parent then resetLimb(limb) end end State.OriginalData = {} -- Double-check all current player characters for _, p in ipairs(Players:GetPlayers()) do if p.Character then for _, part in ipairs(p.Character:GetChildren()) do if part:IsA("BasePart") then removeHighlight(part) if isLimbSelected(part.Name) then resetLimb(part) end end end end end end local function applyToCharacter(player, char) if not char or not State.Running or State.Destroyed then return end if isTeammate(player) then return end if Settings.FORCEFIELD_CHECK and char:FindFirstChildOfClass("ForceField") then local conn conn = char.ChildRemoved:Connect(function(c) if c:IsA("ForceField") then conn:Disconnect() applyToCharacter(player, char) end end) return end local humanoid = char:FindFirstChildOfClass("Humanoid") if humanoid then for _, part in ipairs(char:GetChildren()) do if part:IsA("BasePart") then if isLimbSelected(part.Name) then extendLimb(part) if Settings.RESET_LIMB_ON_DEATH then humanoid.Died:Once(function() resetLimb(part) end) end else -- Reset if deselected while running if State.OriginalData[part] then resetLimb(part) end end end end end end local function refreshAllCharacters() if not State.Running then return end for _, p in ipairs(Players:GetPlayers()) do if p ~= LocalPlayer and p.Character then applyToCharacter(p, p.Character) end end end local function onPlayerAdded(player) if player == LocalPlayer then return end if State.PlayerData[player] then State.PlayerData[player]:Disconnect() end State.PlayerData[player] = player.CharacterAdded:Connect(function(char) task.wait(0.25) if State.Running and not State.Destroyed then applyToCharacter(player, char) end end) if player.Character then task.defer(applyToCharacter, player, player.Character) end end local function onPlayerRemoving(player) if State.PlayerData[player] then State.PlayerData[player]:Disconnect() State.PlayerData[player] = nil end end local UpdateToggleVisuals -- Forward declaration local function start() if State.Destroyed or State.Running then return end State.Running = true State.SteppedConn = RunService.Stepped:Connect(function() if not State.Running or State.Destroyed then return end for _, p in ipairs(Players:GetPlayers()) do if p ~= LocalPlayer and p.Character and not isTeammate(p) then for _, limbName in ipairs(Settings.TARGET_LIMBS) do local limb = p.Character:FindFirstChild(limbName) if limb and limb:IsA("BasePart") then limb.CanTouch = false limb.CanCollide = Settings.LIMB_CAN_COLLIDE end end end end end) for _, p in ipairs(Players:GetPlayers()) do if p ~= LocalPlayer then onPlayerAdded(p) end end State.AddConn = Players.PlayerAdded:Connect(onPlayerAdded) State.RemConn = Players.PlayerRemoving:Connect(onPlayerRemoving) if UpdateToggleVisuals then UpdateToggleVisuals() end end local function stop() if not State.Running then return end State.Running = false if State.SteppedConn then State.SteppedConn:Disconnect() State.SteppedConn = nil end for _, conn in pairs(State.PlayerData) do if typeof(conn) == "RBXScriptConnection" then conn:Disconnect() end end State.PlayerData = {} if State.AddConn then State.AddConn:Disconnect() State.AddConn = nil end if State.RemConn then State.RemConn:Disconnect() State.RemConn = nil end resetAllPlayers() if UpdateToggleVisuals then UpdateToggleVisuals() end end local function toggle() if State.Destroyed then return end if State.Running then stop() else start() end end -- // Black & Red UI Construction \\ -- local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "LimbExtenderUI_Crimson" ScreenGui.ResetOnSpawn = false ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling -- Parent safely (CoreGui for executors, PlayerGui for Studio/LocalScripts) local parentSuccess = pcall(function() ScreenGui.Parent = CoreGui end) if not parentSuccess or not ScreenGui.Parent then ScreenGui.Parent = LocalPlayer:WaitForChild("PlayerGui") end -- Color Palette local COLORS = { BgDark = Color3.fromRGB(14, 14, 16), HeaderBg = Color3.fromRGB(22, 16, 18), CardBg = Color3.fromRGB(24, 24, 28), CardHover = Color3.fromRGB(34, 26, 28), Crimson = Color3.fromRGB(215, 25, 45), CrimsonDark = Color3.fromRGB(130, 15, 28), Border = Color3.fromRGB(180, 25, 40), BorderDim = Color3.fromRGB(55, 30, 35), TextMain = Color3.fromRGB(245, 245, 245), TextDim = Color3.fromRGB(165, 165, 170) } -- Main Frame local MainFrame = Instance.new("Frame") MainFrame.Name = "MainFrame" MainFrame.Size = UDim2.new(0, 310, 0, 360) MainFrame.Position = UDim2.new(0.5, -155, 0.5, -180) MainFrame.BackgroundColor3 = COLORS.BgDark MainFrame.BorderSizePixel = 0 MainFrame.ClipsDescendants = true MainFrame.Parent = ScreenGui local MainCorner = Instance.new("UICorner") MainCorner.CornerRadius = UDim.new(0, 8) MainCorner.Parent = MainFrame local MainStroke = Instance.new("UIStroke") MainStroke.Color = COLORS.Border MainStroke.Thickness = 1.5 MainStroke.Parent = MainFrame -- Top Header Bar (Draggable) local TopBar = Instance.new("Frame") TopBar.Name = "TopBar" TopBar.Size = UDim2.new(1, 0, 0, 38) TopBar.BackgroundColor3 = COLORS.HeaderBg TopBar.BorderSizePixel = 0 TopBar.Parent = MainFrame local TopLine = Instance.new("Frame") TopLine.Size = UDim2.new(1, 0, 0, 1) TopLine.Position = UDim2.new(0, 0, 1, -1) TopLine.BackgroundColor3 = COLORS.CrimsonDark TopLine.BorderSizePixel = 0 TopLine.Parent = TopBar local TitleLabel = Instance.new("TextLabel") TitleLabel.Size = UDim2.new(1, -85, 1, 0) TitleLabel.Position = UDim2.new(0, 12, 0, 0) TitleLabel.BackgroundTransparency = 1 TitleLabel.Text = "LIMB EXTENDER // R6 & R15" TitleLabel.Font = Enum.Font.GothamBold TitleLabel.TextSize = 13 TitleLabel.TextColor3 = COLORS.TextMain TitleLabel.TextXAlignment = Enum.TextXAlignment.Left TitleLabel.Parent = TopBar -- Minimize Button local MinBtn = Instance.new("TextButton") MinBtn.Name = "MinimizeBtn" MinBtn.Size = UDim2.new(0, 26, 0, 24) MinBtn.Position = UDim2.new(1, -62, 0.5, -12) MinBtn.BackgroundColor3 = COLORS.CardBg MinBtn.Text = "-" MinBtn.Font = Enum.Font.GothamBold MinBtn.TextSize = 16 MinBtn.TextColor3 = COLORS.TextMain MinBtn.AutoButtonColor = false MinBtn.Parent = TopBar local MinCorner = Instance.new("UICorner") MinCorner.CornerRadius = UDim.new(0, 5) MinCorner.Parent = MinBtn local MinStroke = Instance.new("UIStroke") MinStroke.Color = COLORS.BorderDim MinStroke.Thickness = 1 MinStroke.Parent = MinBtn -- Close Button (Destroys Everything) local CloseBtn = Instance.new("TextButton") CloseBtn.Name = "CloseBtn" CloseBtn.Size = UDim2.new(0, 26, 0, 24) CloseBtn.Position = UDim2.new(1, -32, 0.5, -12) CloseBtn.BackgroundColor3 = COLORS.CrimsonDark CloseBtn.Text = "X" CloseBtn.Font = Enum.Font.GothamBold CloseBtn.TextSize = 12 CloseBtn.TextColor3 = COLORS.TextMain CloseBtn.AutoButtonColor = false CloseBtn.Parent = TopBar local CloseCorner = Instance.new("UICorner") CloseCorner.CornerRadius = UDim.new(0, 5) CloseCorner.Parent = CloseBtn local CloseStroke = Instance.new("UIStroke") CloseStroke.Color = COLORS.Crimson CloseStroke.Thickness = 1 CloseStroke.Parent = CloseBtn -- Content Container local Content = Instance.new("Frame") Content.Name = "Content" Content.Size = UDim2.new(1, -20, 1, -48) Content.Position = UDim2.new(0, 10, 0, 44) Content.BackgroundTransparency = 1 Content.Parent = MainFrame -- Master Toggle Button local ToggleBtn = Instance.new("TextButton") ToggleBtn.Name = "MasterToggle" ToggleBtn.Size = UDim2.new(1, 0, 0, 36) ToggleBtn.Position = UDim2.new(0, 0, 0, 0) ToggleBtn.BackgroundColor3 = COLORS.CardBg ToggleBtn.Text = "STATUS: OFF [Key: L]" ToggleBtn.Font = Enum.Font.GothamBold ToggleBtn.TextSize = 13 ToggleBtn.TextColor3 = COLORS.TextDim ToggleBtn.AutoButtonColor = false ToggleBtn.Parent = Content local ToggleCorner = Instance.new("UICorner") ToggleCorner.CornerRadius = UDim.new(0, 6) ToggleCorner.Parent = ToggleBtn local ToggleStroke = Instance.new("UIStroke") ToggleStroke.Color = COLORS.BorderDim ToggleStroke.Thickness = 1.2 ToggleStroke.Parent = ToggleBtn UpdateToggleVisuals = function() if State.Running then ToggleBtn.BackgroundColor3 = COLORS.CrimsonDark ToggleBtn.Text = "STATUS: ON [Key: L]" ToggleBtn.TextColor3 = COLORS.TextMain ToggleStroke.Color = COLORS.Crimson else ToggleBtn.BackgroundColor3 = COLORS.CardBg ToggleBtn.Text = "STATUS: OFF [Key: L]" ToggleBtn.TextColor3 = COLORS.TextDim ToggleStroke.Color = COLORS.BorderDim end end -- Size Control Row local SizeFrame = Instance.new("Frame") SizeFrame.Size = UDim2.new(1, 0, 0, 34) SizeFrame.Position = UDim2.new(0, 0, 0, 44) SizeFrame.BackgroundColor3 = COLORS.CardBg SizeFrame.BorderSizePixel = 0 SizeFrame.Parent = Content local SizeCorner = Instance.new("UICorner") SizeCorner.CornerRadius = UDim.new(0, 6) SizeCorner.Parent = SizeFrame local SizeStroke = Instance.new("UIStroke") SizeStroke.Color = COLORS.BorderDim SizeStroke.Thickness = 1 SizeStroke.Parent = SizeFrame local SizeLabel = Instance.new("TextLabel") SizeLabel.Size = UDim2.new(0.55, 0, 1, 0) SizeLabel.Position = UDim2.new(0, 10, 0, 0) SizeLabel.BackgroundTransparency = 1 SizeLabel.Text = "Hitbox Size (Studs):" SizeLabel.Font = Enum.Font.GothamSemibold SizeLabel.TextSize = 12 SizeLabel.TextColor3 = COLORS.TextMain SizeLabel.TextXAlignment = Enum.TextXAlignment.Left SizeLabel.Parent = SizeFrame local SizeBox = Instance.new("TextBox") SizeBox.Size = UDim2.new(0, 65, 0, 22) SizeBox.Position = UDim2.new(1, -73, 0.5, -11) SizeBox.BackgroundColor3 = COLORS.BgDark SizeBox.Text = tostring(Settings.LIMB_SIZE) SizeBox.Font = Enum.Font.GothamBold SizeBox.TextSize = 12 SizeBox.TextColor3 = COLORS.Crimson SizeBox.ClearTextOnFocus = false SizeBox.Parent = SizeFrame local SizeBoxCorner = Instance.new("UICorner") SizeBoxCorner.CornerRadius = UDim.new(0, 4) SizeBoxCorner.Parent = SizeBox local SizeBoxStroke = Instance.new("UIStroke") SizeBoxStroke.Color = COLORS.CrimsonDark SizeBoxStroke.Thickness = 1 SizeBoxStroke.Parent = SizeBox -- Quick R6 / R15 Preset Row local PresetFrame = Instance.new("Frame") PresetFrame.Size = UDim2.new(1, 0, 0, 28) PresetFrame.Position = UDim2.new(0, 0, 0, 86) PresetFrame.BackgroundTransparency = 1 PresetFrame.Parent = Content local function makePresetBtn(text, posX, widthScale, callback) local btn = Instance.new("TextButton") btn.Size = UDim2.new(widthScale, -3, 1, 0) btn.Position = UDim2.new(posX, 0, 0, 0) btn.BackgroundColor3 = COLORS.CardBg btn.Text = text btn.Font = Enum.Font.GothamSemibold btn.TextSize = 11 btn.TextColor3 = COLORS.TextMain btn.AutoButtonColor = false btn.Parent = PresetFrame local c = Instance.new("UICorner") c.CornerRadius = UDim.new(0, 5) c.Parent = btn local s = Instance.new("UIStroke") s.Color = COLORS.BorderDim s.Thickness = 1 s.Parent = btn btn.MouseButton1Click:Connect(callback) return btn end -- Dropdown Header Button local DropdownBtn = Instance.new("TextButton") DropdownBtn.Name = "DropdownBtn" DropdownBtn.Size = UDim2.new(1, 0, 0, 34) DropdownBtn.Position = UDim2.new(0, 0, 0, 122) DropdownBtn.BackgroundColor3 = COLORS.CardBg DropdownBtn.Text = " Select Limbs (2 Selected) ▼" DropdownBtn.Font = Enum.Font.GothamBold DropdownBtn.TextSize = 12 DropdownBtn.TextColor3 = COLORS.TextMain DropdownBtn.TextXAlignment = Enum.TextXAlignment.Left DropdownBtn.AutoButtonColor = false DropdownBtn.Parent = Content local DropCorner = Instance.new("UICorner") DropCorner.CornerRadius = UDim.new(0, 6) DropCorner.Parent = DropdownBtn local DropStroke = Instance.new("UIStroke") DropStroke.Color = COLORS.Crimson DropStroke.Thickness = 1.2 DropStroke.Parent = DropdownBtn -- Dropdown Scrolling List local DropdownList = Instance.new("ScrollingFrame") DropdownList.Name = "DropdownList" DropdownList.Size = UDim2.new(1, 0, 0, 142) DropdownList.Position = UDim2.new(0, 0, 0, 160) DropdownList.BackgroundColor3 = Color3.fromRGB(18, 18, 21) DropdownList.BorderSizePixel = 0 DropdownList.ScrollBarThickness = 4 DropdownList.ScrollBarImageColor3 = COLORS.Crimson DropdownList.Visible = true DropdownList.CanvasSize = UDim2.new(0, 0, 0, 0) DropdownList.Parent = Content local ListCorner = Instance.new("UICorner") ListCorner.CornerRadius = UDim.new(0, 6) ListCorner.Parent = DropdownList local ListStroke = Instance.new("UIStroke") ListStroke.Color = COLORS.BorderDim ListStroke.Thickness = 1 ListStroke.Parent = DropdownList local UIList = Instance.new("UIListLayout") UIList.Padding = UDim.new(0, 3) UIList.SortOrder = Enum.SortOrder.LayoutOrder UIList.Parent = DropdownList local ListPadding = Instance.new("UIPadding") ListPadding.PaddingTop = UDim.new(0, 4) ListPadding.PaddingBottom = UDim.new(0, 4) ListPadding.PaddingLeft = UDim.new(0, 4) ListPadding.PaddingRight = UDim.new(0, 6) ListPadding.Parent = DropdownList local dropdownOpen = true local function updateDropdownHeader() local count = #Settings.TARGET_LIMBS local arrow = dropdownOpen and "▲" or "▼" DropdownBtn.Text = string.format(" Select Limbs (%d Selected) %s", count, arrow) end local function syncLimbButtons() for limbName, data in pairs(State.LimbButtons) do local selected = isLimbSelected(limbName) data.Button.BackgroundColor3 = selected and COLORS.CrimsonDark or COLORS.CardBg data.Stroke.Color = selected and COLORS.Crimson or COLORS.BorderDim data.Check.Text = selected and "✓" or "" data.Label.TextColor3 = selected and COLORS.TextMain or COLORS.TextDim end updateDropdownHeader() end -- Populate Dropdown Items for i, limbName in ipairs(ALL_LIMBS) do local itemBtn = Instance.new("TextButton") itemBtn.Name = limbName itemBtn.Size = UDim2.new(1, 0, 0, 26) itemBtn.LayoutOrder = i itemBtn.BackgroundColor3 = COLORS.CardBg itemBtn.Text = "" itemBtn.AutoButtonColor = false itemBtn.Parent = DropdownList local itemCorner = Instance.new("UICorner") itemCorner.CornerRadius = UDim.new(0, 4) itemCorner.Parent = itemBtn local itemStroke = Instance.new("UIStroke") itemStroke.Color = COLORS.BorderDim itemStroke.Thickness = 1 itemStroke.Parent = itemBtn local checkLabel = Instance.new("TextLabel") checkLabel.Size = UDim2.new(0, 24, 1, 0) checkLabel.BackgroundTransparency = 1 checkLabel.Text = "" checkLabel.Font = Enum.Font.GothamBold checkLabel.TextSize = 13 checkLabel.TextColor3 = COLORS.TextMain checkLabel.Parent = itemBtn local nameLabel = Instance.new("TextLabel") nameLabel.Size = UDim2.new(1, -28, 1, 0) nameLabel.Position = UDim2.new(0, 26, 0, 0) nameLabel.BackgroundTransparency = 1 nameLabel.Text = limbName nameLabel.Font = Enum.Font.GothamSemibold nameLabel.TextSize = 12 nameLabel.TextColor3 = COLORS.TextDim nameLabel.TextXAlignment = Enum.TextXAlignment.Left nameLabel.Parent = itemBtn State.LimbButtons[limbName] = { Button = itemBtn, Stroke = itemStroke, Check = checkLabel, Label = nameLabel } itemBtn.MouseButton1Click:Connect(function() local idx = table.find(Settings.TARGET_LIMBS, limbName) if idx then table.remove(Settings.TARGET_LIMBS, idx) else table.insert(Settings.TARGET_LIMBS, limbName) end syncLimbButtons() refreshAllCharacters() end) end DropdownList.CanvasSize = UDim2.new(0, 0, 0, (#ALL_LIMBS * 29) + 8) syncLimbButtons() -- Preset Button Callbacks makePresetBtn("R6 Limbs", 0, 0.33, function() Settings.TARGET_LIMBS = {"Head", "Torso", "Left Arm", "Right Arm", "Left Leg", "Right Leg"} syncLimbButtons() refreshAllCharacters() end) makePresetBtn("R15 Limbs", 0.335, 0.33, function() Settings.TARGET_LIMBS = { "Head", "UpperTorso", "LowerTorso", "LeftUpperArm", "LeftLowerArm", "LeftHand", "RightUpperArm", "RightLowerArm", "RightHand", "LeftUpperLeg", "LeftLowerLeg", "LeftFoot", "RightUpperLeg", "RightLowerLeg", "RightFoot" } syncLimbButtons() refreshAllCharacters() end) makePresetBtn("Clear All", 0.67, 0.33, function() Settings.TARGET_LIMBS = {} syncLimbButtons() refreshAllCharacters() end) -- // UI Interactivity (Drag, Dropdown, Minimize, Size, Close) \\ -- -- Smooth Dragging local dragging = false local dragInput, dragStart, startPos TopBar.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = input.Position startPos = MainFrame.Position input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false end end) end end) TopBar.InputChanged:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then dragInput = input end end) table.insert(State.Connections, UIS.InputChanged:Connect(function(input) if input == dragInput and dragging then local delta = input.Position - dragStart MainFrame.Position = UDim2.new( startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y ) end end)) -- Dropdown Toggle DropdownBtn.MouseButton1Click:Connect(function() dropdownOpen = not dropdownOpen DropdownList.Visible = dropdownOpen if dropdownOpen then MainFrame.Size = UDim2.new(0, 310, 0, 360) else MainFrame.Size = UDim2.new(0, 310, 0, 212) end updateDropdownHeader() end) -- Minimize Toggle local minimized = false MinBtn.MouseButton1Click:Connect(function() minimized = not minimized if minimized then Content.Visible = false MainFrame.Size = UDim2.new(0, 310, 0, 38) MinBtn.Text = "+" else Content.Visible = true MainFrame.Size = dropdownOpen and UDim2.new(0, 310, 0, 360) or UDim2.new(0, 310, 0, 212) MinBtn.Text = "-" end end) -- Master Toggle Button ToggleBtn.MouseButton1Click:Connect(toggle) -- Size Input Box SizeBox.FocusLost:Connect(function() local num = tonumber(SizeBox.Text) if num and num >= 1 and num <= 100 then Settings.LIMB_SIZE = num SizeBox.Text = tostring(num) refreshAllCharacters() else SizeBox.Text = tostring(Settings.LIMB_SIZE) end end) -- Full Cleanup / Destroy Everything Function local function destroyAll() if State.Destroyed then return end stop() State.Destroyed = true -- Disconnect all Touch connections for limb, conn in pairs(State.TouchConns) do if typeof(conn) == "RBXScriptConnection" then conn:Disconnect() end end State.TouchConns = {} -- Disconnect all UI / Input connections for _, conn in ipairs(State.Connections) do if typeof(conn) == "RBXScriptConnection" then conn:Disconnect() end end State.Connections = {} -- Unbind mobile action pcall(function() CAS:UnbindAction("LimbExtenderToggle") end) -- Reset all limbs & destroy highlights one final time resetAllPlayers() -- Destroy UI if ScreenGui then ScreenGui:Destroy() end if getgenv then getgenv().LimbExtender = nil end end State.DestroyAll = destroyAll CloseBtn.MouseButton1Click:Connect(destroyAll) -- Keybind Listener (`L` toggles script; `RightControl` hides/shows UI) table.insert(State.Connections, UIS.InputBegan:Connect(function(input, gp) if gp or State.Destroyed then return end if input.KeyCode == Settings.TOGGLE_KEY then toggle() elseif input.KeyCode == Enum.KeyCode.RightControl then ScreenGui.Enabled = not ScreenGui.Enabled end end)) -- Mobile Action Button CAS:BindAction("LimbExtenderToggle", function(_, inputState) if inputState == Enum.UserInputState.Begin then toggle() end end, true, Settings.TOGGLE_KEY)