Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Create a ScreenGui
- local screenGui = Instance.new("ScreenGui")
- screenGui.Name = "DeletePartsGui"
- screenGui.Parent = game:GetService("CoreGui")
- -- Create a Frame to hold the buttons
- local frame = Instance.new("Frame")
- frame.Size = UDim2.new(0, 200, 0, 150)
- frame.Position = UDim2.new(0.5, -100, 0.5, -75) -- Center of the screen
- frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
- frame.Active = true
- frame.Draggable = true -- Make the frame draggable
- frame.Parent = screenGui
- -- Create a TextButton to activate the deletion mode
- local activateDeleteButton = Instance.new("TextButton")
- activateDeleteButton.Size = UDim2.new(0.8, 0, 0.25, 0)
- activateDeleteButton.Position = UDim2.new(0.1, 0, 0.2, 0) -- Position inside the frame
- activateDeleteButton.Text = "Activate Delete Mode"
- activateDeleteButton.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
- activateDeleteButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- activateDeleteButton.Parent = frame
- -- Create a TextButton to activate the ESP mode
- local activateESPButton = Instance.new("TextButton")
- activateESPButton.Size = UDim2.new(0.8, 0, 0.25, 0)
- activateESPButton.Position = UDim2.new(0.1, 0, 0.6, 0) -- Position inside the frame
- activateESPButton.Text = "Activate ESP Mode"
- activateESPButton.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
- activateESPButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- activateESPButton.Parent = frame
- -- Variable to store connections
- local deleteConnection
- local espConnection
- -- Function to activate the deletion script
- local function activateDeleteScript()
- local Plr = game:GetService("Players").LocalPlayer
- local Mouse = Plr:GetMouse()
- deleteConnection = Mouse.Button1Down:Connect(function()
- if not game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.LeftControl) then return end
- if not Mouse.Target then return end
- Mouse.Target:Destroy()
- end)
- end
- -- Connect delete button click to activate the script
- activateDeleteButton.MouseButton1Click:Connect(function()
- if not deleteConnection then
- activateDeleteScript()
- activateDeleteButton.Text = "Delete Mode Activated"
- activateDeleteButton.TextColor3 = Color3.fromRGB(200, 200, 200)
- activateDeleteButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- activateDeleteButton.Active = false -- Disable button after activation
- end
- end)
- -- Obfuscated ESP settings
- local eS, sP = {
- txSz = 15,
- clr = Color3.fromRGB(238, 75, 43)
- }, game:GetService("Players")
- -- Create the ESP GUI with obfuscation
- local function createESP()
- local gI = Instance.new("BillboardGui")
- local eL = Instance.new("TextLabel")
- gI.Name, gI.ResetOnSpawn, gI.AlwaysOnTop = "ESP_"..math.random(1000), false, true
- gI.LightInfluence = 0
- gI.Size = UDim2.new(1.75, 0, 1.75, 0)
- eL.Size = UDim2.new(1, 0, 1, 0)
- eL.BackgroundTransparency = 1
- eL.TextColor3, eL.TextSize = eS.clr, eS.txSz
- eL.Font = Enum.Font.GothamSemibold
- eL.Parent = gI
- return gI
- end
- -- Update ESP with random behavior
- local function updateESP(p)
- if p ~= sP.LocalPlayer and p.Character then
- local h = p.Character:FindFirstChild("Head")
- if h and not h:FindFirstChildWhichIsA("BillboardGui") then
- local gI = createESP()
- gI.TextLabel.Text = "{" .. string.reverse(p.Name) .. "}" -- Reverse text as obfuscation
- gI.Parent = h
- end
- end
- end
- -- Function to activate the ESP script
- local function activateESPScript()
- espConnection = game:GetService("RunService").RenderStepped:Connect(function()
- if math.random() > 0.5 then -- Randomize execution
- for _, plr in ipairs(sP:GetPlayers()) do
- updateESP(plr)
- end
- end
- end)
- -- Handle new players with obfuscation
- sP.PlayerAdded:Connect(function(p)
- p.CharacterAdded:Connect(function()
- wait(math.random(1, 3)) -- Random delay to mimic latency
- updateESP(p)
- end)
- end)
- end
- -- Connect ESP button click to activate the script
- activateESPButton.MouseButton1Click:Connect(function()
- if not espConnection then
- activateESPScript()
- activateESPButton.Text = "ESP Mode Activated"
- activateESPButton.TextColor3 = Color3.fromRGB(200, 200, 200)
- activateESPButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- activateESPButton.Active = false -- Disable button after activation
- end
- end)
- -- Implement dragging functionality
- local dragging = false
- local dragStart
- local startPos
- local function update(input)
- local delta = input.Position - dragStart
- frame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
- end
- frame.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 then
- dragging = true
- dragStart = input.Position
- startPos = frame.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragging = false
- end
- end)
- end
- end)
- frame.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement then
- if dragging then
- update(input)
- end
- end
- end)
- -- Clean up when the GUI is removed
- screenGui.AncestryChanged:Connect(function()
- if not screenGui.Parent then
- if deleteConnection then
- deleteConnection:Disconnect()
- end
- if espConnection then
- espConnection:Disconnect()
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement