SpamGuiMobile

mail@pastecode.io avatar
unknown
lua
a month ago
3.2 kB
1
Indexable
Never
local GUI = Instance.new("ScreenGui")
local Frame = Instance.new("Frame")
local TextBox = Instance.new("TextBox")
local TextLabel = Instance.new("TextLabel")
local NumericInput = Instance.new("NumberInputBox")
local Button = Instance.new("TextButton")
local Icon = Instance.new("ImageButton")
local Toggle = true
local IconSize = UDim2.new(0, 50, 0, 50)
local FrameSize = UDim2.new(0, 300, 0, 300)

GUI.Name = "SpamGUI"
GUI.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")

Frame.Parent = GUI
Frame.BackgroundColor3 = Color3.fromRGB(65, 65, 65)
Frame.Position = UDim2.new(0.5, -FrameSize.X.Offset / 2, 0.5, -FrameSize.Y.Offset / 2)
Frame.Size = FrameSize
Frame.Active = true
Frame.Draggable = true

TextBox.Parent = Frame
TextBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
TextBox.Position = UDim2.new(0.05, 0, 0.15, 0)
TextBox.Size = UDim2.new(0.85, 0, 0.2, 0)
TextBox.PlaceholderText = "Paste the script here"
TextBox.ClearTextOnFocus = false

TextLabel.Parent = Frame
TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
TextLabel.Position = UDim2.new(0.05, 0, 0.05, 0)
TextLabel.Size = UDim2.new(0.85, 0, 0.1, 0)
TextLabel.Text = "Paste the script you want to spam"

NumericInput.Parent = Frame
NumericInput.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
NumericInput.Position = UDim2.new(0.05, 0, 0.33, 0)
NumericInput.Size = UDim2.new(0.85, 0, 0.2, 0)
NumericInput.MaxValue = 999999
NumericInput.MinValue = 1
NumericInput.Value = 1
NumericInput.PlaceholderText = "How many times?"

Button.Parent = Frame
Button.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Button.Position = UDim2.new(0.05, 0, 0.53, 0)
Button.Size = UDim2.new(0.85, 0, 0.2, 0)
Button.Text = "Spam it!"
Button.FontSize = Enum.FontSize.Size36
Button.AutoButtonColor = false
Button.TextColor3 = Color3.fromRGB(0, 0, 0)
Button.MouseButton1Click:Connect(function()
    local repetitions = NumericInput.Value
    local scriptContent = TextBox.Text

    for i = 1, repetitions do
        if scriptContent ~= "" then
            local success, err = loadstring(scriptContent)
            if success then
                local spamScript = success
                spamScript()
            else
                warn("Error loading script: ", err)
            end
        else
            warn("No script provided")
        end
        wait(0.1) -- Adjust the wait time to fit your desired spam frequency
    end
end)

Icon.Parent = Frame
Icon.BackgroundTransparency = 1
Icon.Image = "rbxassetid://3926305956"
Icon.Size = IconSize
Icon.Position = UDim2.new(1 - IconSize.X.Scale, 0, 1 - IconSize.Y.Scale, 0)
Icon.AutoButtonColor = false
Icon.MouseButton1Click:Connect(function()
    if Toggle then
        Frame.Size = UDim2.new(0, 50, 0, 50)
        TextBox.Visible = false
        TextLabel.Visible = false
        NumericInput.Visible = false
        Button.Visible = false
        Icon.Image = "rbxassetid://3926305956"
    else
        Frame.Size = FrameSize
        TextBox.Visible = true
        TextLabel.Visible = true
        NumericInput.Visible = true
        Button.Visible = true
        Icon.Image = "rbxassetid://6031099452"
    end
    Toggle = not Toggle
end)
Leave a Comment