-- part claim
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()

-- Function to claim a part
local function claimPart(part)
    if part:IsA("Part") and part:FindFirstChild("Claimable") then
        -- Here you can add your claim logic
        print("Claiming part:", part.Name)
        -- You can change the ownership or other properties as needed
        part.BrickColor = BrickColor.Random() -- Example action: Change color
    else
        print("This part cannot be claimed.")
    end
end

-- Function to handle mouse click
mouse.Button1Down:Connect(function()
    local target = mouse.Target
    if target then
        claimPart(target)
    end
end)


-- gui
local G2L = {}
G2L["1"] = Instance.new("ScreenGui", game:GetService("CoreGui"))
G2L["2"] = Instance.new("Frame", G2L["1"])
G2L["2"]["BorderSizePixel"] = 0
G2L["2"]["BackgroundColor3"] = Color3.fromRGB(0, 0, 0)  -- Set to black
G2L["2"]["BackgroundTransparency"] = 0.8  -- Set background transparency to 0.5
G2L["2"]["Size"] = UDim2.new(0, 316, 0, 140)
G2L["2"]["Position"] = UDim2.new(0.5, 124, 0.48365, -104)
G2L["2"]["BorderColor3"] = Color3.fromRGB(254, 255, 255)
G2L["3"] = Instance.new("UICorner", G2L["2"])
G2L["3"]["CornerRadius"] = UDim.new(0, 4)

targetbox = Instance.new("TextBox", G2L["2"])  -- Change parent to Frame
targetbox["CursorPosition"] = -1
targetbox["PlaceholderColor3"] = Color3.fromRGB(255, 255, 255)
targetbox["BorderSizePixel"] = 0
targetbox["TextWrapped"] = true
targetbox["TextTransparency"] = 0.41
targetbox["Name"] = [[target]]
targetbox["TextScaled"] = true
targetbox["BackgroundColor3"] = Color3.fromRGB(72, 124, 156)
targetbox["FontFace"] =
    Font.new([[rbxasset://fonts/families/ComicNeueAngular.json]], Enum.FontWeight.Bold, Enum.FontStyle.Normal)
targetbox["PlaceholderText"] = [[player]]
targetbox["Size"] = UDim2.new(0.50156, -20, 0.33938, -10)
targetbox["Position"] = UDim2.new(0, 14, 0, 47)
targetbox["Text"] = [[]]
targetbox["LayoutOrder"] = 8
targetbox["BackgroundTransparency"] = 0.2
G2L["7"] = Instance.new("UICorner", targetbox)
G2L["7"]["CornerRadius"] = UDim.new(0, 2)

killbutton = Instance.new("TextButton", G2L["2"])  -- Change parent to Frame
killbutton["TextWrapped"] = true
killbutton["BorderSizePixel"] = 0
killbutton["TextSize"] = 23
killbutton["BackgroundColor3"] = Color3.fromRGB(79, 77, 77)
killbutton["FontFace"] =
    Font.new([[rbxasset://fonts/families/Nunito.json]], Enum.FontWeight.Bold, Enum.FontStyle.Normal)
killbutton["Size"] = UDim2.new(0.49734, -20, 0.27187, -10)
killbutton["BackgroundTransparency"] = 0.1
killbutton["LayoutOrder"] = 5
killbutton["Name"] = [[kil]]
killbutton["Text"] = [[get em]]
killbutton["Position"] = UDim2.new(0.24966, 10, 0.71157, 0)
G2L["9"] = Instance.new("UICorner", killbutton)
G2L["9"]["CornerRadius"] = UDim.new(0, 2)

killscript = Instance.new("LocalScript", killbutton)
G2L["b"] = Instance.new("TextLabel", G2L["2"])  -- Change parent to Frame
G2L["b"]["TextWrapped"] = true
G2L["b"]["TextStrokeTransparency"] = 0.73
G2L["b"]["BorderSizePixel"] = 0
G2L["b"]["TextScaled"] = true
G2L["b"]["BackgroundColor3"] = Color3.fromRGB(96, 142, 189)
G2L["b"]["TextSize"] = 14
G2L["b"]["FontFace"] =
    Font.new([[rbxasset://fonts/families/SourceSansPro.json]], Enum.FontWeight.Bold, Enum.FontStyle.Normal)
G2L["b"]["TextColor3"] = Color3.fromRGB(255, 255, 255)
G2L["b"]["BackgroundTransparency"] = 0.45
G2L["b"]["Size"] = UDim2.new(0, 316, 0, 34)
G2L["b"]["BorderColor3"] = Color3.fromRGB(0, 0, 0)
G2L["b"]["Text"] = "magnet to part"
G2L["c"] = Instance.new("UICorner", G2L["b"])
G2L["c"]["CornerRadius"] = UDim.new(0, 4)

timebox = Instance.new("TextBox", G2L["2"])  -- Change parent to Frame
timebox["CursorPosition"] = -1
timebox["PlaceholderColor3"] = Color3.fromRGB(255, 255, 255)
timebox["BorderSizePixel"] = 0
timebox["TextWrapped"] = true
timebox["TextTransparency"] = 0.41
timebox["Name"] = [[time]]
timebox["TextScaled"] = true
timebox["BackgroundColor3"] = Color3.fromRGB(72, 124, 156)
timebox["FontFace"] =
    Font.new([[rbxasset://fonts/families/ComicNeueAngular.json]], Enum.FontWeight.Bold, Enum.FontStyle.Normal)
timebox["PlaceholderText"] = [[duration (secs)]]
timebox["Size"] = UDim2.new(0.50156, -20, 0.33938, -10)
timebox["Position"] = UDim2.new(0, 162, 0, 47)
timebox["Text"] = [[]]
timebox["LayoutOrder"] = 8
timebox["BackgroundTransparency"] = 0.2
G2L["e"] = Instance.new("UICorner", timebox)
G2L["e"]["CornerRadius"] = UDim.new(0, 2)

dragscript = Instance.new("LocalScript", G2L["2"])
dragscript["Name"] = [[drag]]

local function C_a()
    local script = killscript
    local player = game.Players.LocalPlayer
    local button = script.Parent
    local function buttonclicked()
        local coolio = tonumber(timebox.Text)
        local Players = game:GetService("Players")

        local function findPlayer(input)
            local inputLower = string.lower(input)
            for _, player in ipairs(Players:GetPlayers()) do
                local displayName = player.DisplayName
                local username = player.Name
                if string.find(string.lower(displayName), inputLower, 1, true) then
                    return player
                end
                if string.find(string.lower(username), inputLower, 1, true) then
                    return player
                end
            end
            return nil
        end

        local input = targetbox.Text
        local foundPlayer = findPlayer(input)
        if foundPlayer then
            if foundPlayer == Players.LocalPlayer then
                print("targetting yourself")
            else
            end
            print("Found player: " .. foundPlayer.Name)
        else
            print("Player not found")
            return
        end

        local targetCharacter = foundPlayer.Character
        if not targetCharacter or not targetCharacter:FindFirstChild("Head") then
            return
        end

        local Forces = {}
        local frozenParts = {}

        local function handlePart(part)
            if part:IsA("BasePart") and not part.Anchored and not part:IsDescendantOf(targetCharacter) then
                if not part:IsDescendantOf(Players.LocalPlayer.Character) then
                    for _, c in pairs(part:GetChildren()) do
                        if c:IsA("BodyPosition") or c:IsA("BodyGyro") then
                            c:Destroy()
                        end
                    end
                    local ForceInstance = Instance.new("BodyPosition")
                    ForceInstance.Parent = part
                    ForceInstance.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
                    ForceInstance.Position = targetCharacter.Head.Position
                    table.insert(Forces, ForceInstance)
                    if not table.find(frozenParts, part) then
                        table.insert(frozenParts, part)
                    end
                end
            end
        end

        local imsosigma = workspace:GetDescendants()
        for _, part in pairs(imsosigma) do
            if part:IsA("BasePart") and not part.Anchored and part.Parent ~= targetCharacter then
                handlePart(part)
                part.CanCollide = false
            end
        end

        local duration = coolio
        local startTime = os.time()

        while os.time() - startTime < duration do
            for _, force in pairs(Forces) do
                force.Position = targetCharacter.Head.Position
            end
            wait(0.1)
        end

        for _, force in pairs(Forces) do
            force:Destroy()
        end
        for _, part in pairs(imsosigma) do
            if part:IsA("BasePart") and not part.Anchored then
                part.CanCollide = true
            end
        end

    end
    button.MouseButton1Click:Connect(buttonclicked)
end
task.spawn(C_a)

local function C_11()
    local script = bgscript
    local main = script.Parent.Parent  -- Updated to refer to the Frame directly
    local button = script.Parent
    local function toggleVisibility()
        for _, child in ipairs(main:GetChildren()) do
            if child:IsA("TextBox") or child:IsA("TextButton") or child:IsA("TextLabel") then
                child.Visible = not child.Visible
            end
        end
    end
    button.MouseButton1Click:Connect(toggleVisibility)
end
task.spawn(C_11)

local function C_12()
    local script = dragscript
    local UserInputService = game:GetService("UserInputService")
    local gui = script.Parent
    local dragging
    local dragInput
    local dragStart
    local startPos
    local function update(input)
        local delta = input.Position - dragStart
        gui.Position =
            UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
    end
    gui.InputBegan:Connect(
        function(input)
            if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
                dragging = true
                dragStart = input.Position
                startPos = gui.Position
                input.Changed:Connect(
                    function()
                        if input.UserInputState == Enum.UserInputState.End then
                            dragging = false
                        end
                    end
                )
            end
        end
    )
    gui.InputChanged:Connect(
        function(input)
            if
                input.UserInputType == Enum.UserInputType.MouseMovement or
                    input.UserInputType == Enum.UserInputType.Touch
             then
                dragInput = input
            end
        end
    )
    UserInputService.InputChanged:Connect(
        function(input)
            if input == dragInput and dragging then
                update(input)
            end
        end
    )
end
task.spawn(C_12)

return G2L["1"], require

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: