Delete GUI Tool
Key RequiredUniversal

Delete GUI Tool

Universal ScriptDefyzDefyz 8.7K views 1.7K executesUpdated Jul 22, 2025
5.0/ 5(3 votes)
30100% Positive
Lua Script•111 lines (3338 chars)
-- Source Code Skidds

local Players = game:GetService("Players")
local UIS = game:GetService("UserInputService")
local lp = Players.LocalPlayer
local Mouse = lp:GetMouse()

local history = {}
local uiVisible = true

-- UI Creation
local gui = Instance.new("ScreenGui", lp:WaitForChild("PlayerGui"))
gui.Name = "DeleteUndoGUI"
gui.ResetOnSpawn = false

local main = Instance.new("Frame", gui)
main.Name = "MainUI"
main.Size = UDim2.new(0, 200, 0, 130)
main.Position = UDim2.new(0.02, 0, 0.2, 0)
main.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
main.BorderSizePixel = 0
main.BackgroundTransparency = 0.1
main.Visible = true
main.Active = true
main.Draggable = true

local UIStroke = Instance.new("UIStroke", main)
UIStroke.Thickness = 2
UIStroke.Color = Color3.fromRGB(100, 255, 255)
UIStroke.Transparency = 0.3

local title = Instance.new("TextLabel", main)
title.Size = UDim2.new(1, 0, 0, 25)
title.BackgroundTransparency = 1
title.Text = "🧱 Delete / Undo"
title.TextColor3 = Color3.fromRGB(255, 255, 255)
title.Font = Enum.Font.GothamBold
title.TextSize = 16

local deleteToggle = Instance.new("TextButton", main)
deleteToggle.Size = UDim2.new(1, -20, 0, 30)
deleteToggle.Position = UDim2.new(0, 10, 0, 35)
deleteToggle.Text = "Delete: ON"
deleteToggle.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
deleteToggle.TextColor3 = Color3.fromRGB(255, 255, 255)
deleteToggle.Font = Enum.Font.Gotham
deleteToggle.TextSize = 14

local undoBtn = Instance.new("TextButton", main)
undoBtn.Size = UDim2.new(1, -20, 0, 30)
undoBtn.Position = UDim2.new(0, 10, 0, 70)
undoBtn.Text = "Undo"
undoBtn.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
undoBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
undoBtn.Font = Enum.Font.Gotham
undoBtn.TextSize = 14

local toggleBtn = Instance.new("TextButton", gui)
toggleBtn.Size = UDim2.new(0, 40, 0, 40)
toggleBtn.Position = UDim2.new(0, 10, 0.8, 0)
toggleBtn.BackgroundColor3 = Color3.fromRGB(100, 100, 255)
toggleBtn.Text = "⛶"
toggleBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
toggleBtn.Font = Enum.Font.GothamBold
toggleBtn.TextSize = 20
toggleBtn.BorderSizePixel = 0

-- Functionality
local deleting = true

deleteToggle.MouseButton1Click:Connect(function()
	deleting = not deleting
	deleteToggle.Text = "Delete: " .. (deleting and "ON" or "OFF")
	deleteToggle.BackgroundColor3 = deleting and Color3.fromRGB(50, 50, 50) or Color3.fromRGB(80, 20, 20)
end)

Mouse.Button1Down:Connect(function()
	if not deleting then return end
	local target = Mouse.Target
	if target and target:IsA("BasePart") and not target:IsDescendantOf(lp.Character) then
		local clone = target:Clone()
		local props = {
			Parent = target.Parent,
			Material = target.Material,
			Color = target.Color,
			Size = target.Size,
			CFrame = target.CFrame,
			Anchored = target.Anchored,
			Transparency = target.Transparency,
			CanCollide = target.CanCollide,
			Name = target.Name
		}
		table.insert(history, {props = props, clone = clone})
		target:Destroy()
	end
end)

undoBtn.MouseButton1Click:Connect(function()
	if #history == 0 then return end
	local data = table.remove(history)
	local newPart = data.clone:Clone()
	for prop, val in pairs(data.props) do
		newPart[prop] = val
	end
	newPart.Parent = data.props.Parent
end)

toggleBtn.MouseButton1Click:Connect(function()
	uiVisible = not uiVisible
	main.Visible = uiVisible
end)

Features & Information

• Delete Part / Click to delete part • Undo • Toggler

Community Comments (3)

Luauisbluu27Luauisbluu27Oct 16, 2025

It is good for exploring

DefyzDefyzOct 17, 2025

@Luauisbluu27 You can delete Some Part Or Undo it It Usefull of Exploring ye U can delete some Barrier or walls blocking it way

Luauisbluu27Luauisbluu27Oct 17, 2025

hey but on a game with anti cheat it will ban me? I meqn for games that i cant noclip like Die of death, forsakn, even G&B

More Scripts for Universal Scripts