Destroy server
Key Required

Destroy server

Survive the MinesOdafrfrfrOdafrfrfr 460 views 128 executesUpdated Feb 28, 2026
Unrated
00
Lua Script•142 lines (4574 chars)
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "TouchPartSpammer"
ScreenGui.ResetOnSpawn = false
ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")

local MainFrame = Instance.new("Frame")
MainFrame.Name = "MainFrame"
MainFrame.Size = UDim2.new(0, 250, 0, 150)
MainFrame.Position = UDim2.new(0.5, -125, 0.5, -75)
MainFrame.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
MainFrame.BorderSizePixel = 0
MainFrame.Parent = ScreenGui

local RainbowStroke = Instance.new("UIStroke")
RainbowStroke.Thickness = 3
RainbowStroke.Color = Color3.fromRGB(255, 0, 0)
RainbowStroke.Parent = MainFrame

local UICorner = Instance.new("UICorner")
UICorner.CornerRadius = UDim.new(0, 20)
UICorner.Parent = MainFrame

local Title = Instance.new("TextLabel")
Title.Name = "Title"
Title.Size = UDim2.new(1, 0, 0, 40)
Title.Position = UDim2.new(0, 0, 0, 0)
Title.BackgroundTransparency = 1
Title.Text = "Oda Troll Mine Script"
Title.TextColor3 = Color3.fromRGB(0, 0, 0)
Title.TextSize = 18
Title.Font = Enum.Font.GothamBold
Title.Parent = MainFrame

local TitleStroke = Instance.new("UIStroke")
TitleStroke.Thickness = 2
TitleStroke.Color = Color3.fromRGB(255, 0, 0)
TitleStroke.Parent = Title

local SpamButton = Instance.new("TextButton")
SpamButton.Name = "SpamButton"
SpamButton.Size = UDim2.new(0, 200, 0, 50)
SpamButton.Position = UDim2.new(0.5, -100, 0.5, 0)
SpamButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
SpamButton.Text = "Start Spamming"
SpamButton.TextColor3 = Color3.fromRGB(0, 0, 0)
SpamButton.TextSize = 16
SpamButton.Font = Enum.Font.GothamBold
SpamButton.Parent = MainFrame

local ButtonStroke = Instance.new("UIStroke")
ButtonStroke.Thickness = 2
ButtonStroke.Color = Color3.fromRGB(255, 0, 0)
ButtonStroke.Parent = SpamButton

local ButtonBorderStroke = Instance.new("UIStroke")
ButtonBorderStroke.Thickness = 3
ButtonBorderStroke.Color = Color3.fromRGB(255, 0, 0)
ButtonBorderStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
ButtonBorderStroke.Parent = SpamButton

local ButtonCorner = Instance.new("UICorner")
ButtonCorner.CornerRadius = UDim.new(0, 15)
ButtonCorner.Parent = SpamButton

local isSpamming = false
local spamConnection

spawn(function()
    local hue = 0
    while true do
        hue = (hue + 3) % 360
        local rainbowColor = Color3.fromHSV(hue / 360, 1, 1)
        RainbowStroke.Color = rainbowColor
        TitleStroke.Color = rainbowColor
        ButtonStroke.Color = rainbowColor
        ButtonBorderStroke.Color = rainbowColor
        wait(0.01)
    end
end)

local function runTouchScript()
    local r = (game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:Wait()):WaitForChild("HumanoidRootPart")
    for _, p in pairs(workspace:GetDescendants()) do
        if p.Name == "TouchPart" and p:IsA("BasePart") then
            firetouchinterest(r, p, 0)
            firetouchinterest(r, p, 1)
        end
    end
end

SpamButton.MouseButton1Click:Connect(function()
    isSpamming = not isSpamming
    if isSpamming then
        SpamButton.Text = "Stop Spamming"
        SpamButton.BackgroundColor3 = Color3.fromRGB(0, 200, 0)
        spamConnection = game:GetService("RunService").Heartbeat:Connect(function()
            pcall(runTouchScript)
        end)
    else
        SpamButton.Text = "Start Spamming"
        SpamButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
        if spamConnection then
            spamConnection:Disconnect()
        end
    end
end)

local UserInputService = game:GetService("UserInputService")
local dragging
local dragInput
local dragStart
local startPos

local function update(input)
    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

MainFrame.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)

MainFrame.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)

Features & Information

If you press the button it will spam destroy all the mines

Community Comments (0)

No comments yet for this script.

More Scripts for Survive the Mines