local WindUI do local ok, result = pcall(function() return require("./src/Init") end) if ok then WindUI = result else WindUI = loadstring(game:HttpGet("https://raw.githubusercontent.com/Footagesus/WindUI/main/dist/main.lua"))() end end local function getCharacter() local player = game.Players.LocalPlayer return player.Character or player.CharacterAdded:Wait() end local detachedParts = {} local function detachPart(partName) local char = getCharacter() if char and char:FindFirstChild(partName) and not detachedParts[partName] then local part = char[partName] detachedParts[partName] = part part.Parent = nil end end local function reattachPart(partName) local char = getCharacter() if detachedParts[partName] and char then detachedParts[partName].Parent = char detachedParts[partName] = nil end end local function resetAllParts() for partName, part in pairs(detachedParts) do local char = getCharacter() if char then part.Parent = char end end detachedParts = {} end local Window = WindUI:CreateWindow({ Title = "Body Part Remover | WindUI", Folder = "BodyPartRemover", Icon = "solar:folder-2-bold-duotone", NewElements = true, HideSearchBar = false, OpenButton = { Title = "Open Body Part Remover", CornerRadius = UDim.new(1,0), StrokeThickness = 3, Enabled = true, Draggable = true, OnlyMobile = false, Color = ColorSequence.new( Color3.fromHex("#30FF6A"), Color3.fromHex("#e7ff2f") ) }, Topbar = { Height = 44, ButtonsType = "Mac", }, }) Window:Tag({ Title = "v1.0", Icon = "github", Color = Color3.fromHex("#1c1c1c"), Border = true, }) local Purple = Color3.fromHex("#7775F2") local Yellow = Color3.fromHex("#ECA201") local Green = Color3.fromHex("#10C550") local Grey = Color3.fromHex("#83889E") local Blue = Color3.fromHex("#257AF7") local Red = Color3.fromHex("#EF4F1D") local BodyRemoverTab = Window:Tab({ Title = "Body Part Remover", Desc = "Detach/reattach your character's body parts", Icon = "solar:cursor-square-bold", IconColor = Blue, IconShape = "Square", Border = true, }) local BodySection = BodyRemoverTab:Section({ Title = "Body Parts", }) BodySection:Toggle({ Title = "Head", Desc = "Detach/reattach head", Callback = function(state) if state then detachPart("Head") else reattachPart("Head") end end }) BodySection:Space() BodySection:Toggle({ Title = "Torso", Desc = "Detach/reattach torso", Callback = function(state) if state then detachPart("Torso") else reattachPart("Torso") end end }) BodySection:Space() BodySection:Toggle({ Title = "Left Arm", Desc = "Detach/reattach left arm", Callback = function(state) if state then detachPart("Left Arm") else reattachPart("Left Arm") end end }) BodySection:Space() BodySection:Toggle({ Title = "Right Arm", Desc = "Detach/reattach right arm", Callback = function(state) if state then detachPart("Right Arm") else reattachPart("Right Arm") end end }) BodySection:Space() BodySection:Toggle({ Title = "Left Leg", Desc = "Detach/reattach left leg", Callback = function(state) if state then detachPart("Left Leg") else reattachPart("Left Leg") end end }) BodySection:Space() BodySection:Toggle({ Title = "Right Leg", Desc = "Detach/reattach right leg", Callback = function(state) if state then detachPart("Right Leg") else reattachPart("Right Leg") end end }) BodySection:Space() BodySection:Button({ Title = "Reset All Parts", Color = Green, Justify = "Center", Icon = "refresh-cw", Callback = function() resetAllParts() WindUI:Notify({ Title = "Reset Complete", Content = "All detached parts reattached!", Duration = 3, }) end }) local AboutTab = Window:Tab({ Title = "About", Desc = "Information about the script", Icon = "solar:info-square-bold", IconColor = Grey, IconShape = "Square", Border = true, }) AboutTab:Section({ Title = "Body Part Remover", Desc = "This script uses WindUI to provide a simple interface for detaching/reattaching your character's body parts in Roblox. It only affects your local character and is FE-compatible. Parts are stored and can be reattached without respawning.", }) AboutTab:Space() AboutTab:Button({ Title = "Destroy UI", Color = Red, Justify = "Center", Icon = "shredder", Callback = function() Window:Destroy() end })