Back to Scripts
MetaB

MetaB

ScriptBlox
Free

Game: +1 Strong Every Second 💪

178 Views
0 Likes
1 Dislikes
Rcn_XxMeltDownxX

Rcn_XxMeltDownxX

offline

Features

spam tool

Script Code

local player = game.Players.LocalPlayer
local UIS = game:GetService("UserInputService")
local PlayerGui = player:WaitForChild("PlayerGui")

-- MAIN UI CONTAINER
local InsertedObjects = Instance.new("ScreenGui")
InsertedObjects.Name = "StrengthGui"
InsertedObjects.Parent = PlayerGui 
InsertedObjects.ResetOnSpawn = false

-- TOGGLE BUTTON
local MenuToggleButton = Instance.new("ImageButton")
MenuToggleButton.Parent = InsertedObjects
MenuToggleButton.BackgroundTransparency = 1
MenuToggleButton.Position = UDim2.new(0.45, 0, 0.01, 0)
MenuToggleButton.Size = UDim2.new(0, 123, 0, 60)
MenuToggleButton.Image = "rbxassetid://8139623167"

-- MAIN WINDOW
local MainWindow = Instance.new("ImageLabel")
MainWindow.Parent = InsertedObjects
MainWindow.BackgroundTransparency = 1
MainWindow.Position = UDim2.new(0.27, 0, 0.1, 0)
MainWindow.Size = UDim2.new(0, 523, 0, 319)
MainWindow.Image = "rbxassetid://8256314783"
MainWindow.Visible = false
MainWindow.Active = true

-- ACTION BUTTON
local ActionBtn = Instance.new("ImageButton")
ActionBtn.Parent = MainWindow
ActionBtn.AnchorPoint = Vector2.new(1, 1)
ActionBtn.Position = UDim2.new(0.65, 0, 0.58, 0)
ActionBtn.Size = UDim2.new(0.39, 0, 0.16, 0)
ActionBtn.Image = "rbxassetid://2790382281"
ActionBtn.ImageColor3 = Color3.fromRGB(26, 190, 190)
ActionBtn.BackgroundTransparency = 1

local BtnText = Instance.new("TextLabel")
BtnText.Parent = ActionBtn
BtnText.AnchorPoint = Vector2.new(0.5, 0.5)
BtnText.Position = UDim2.new(0.5, 0, 0.5, 0)
BtnText.Size = UDim2.new(0.9, 0, 0.45, 0)
BtnText.Font = Enum.Font.GothamBlack
BtnText.Text = "INFINITE STRENGTH"
BtnText.TextScaled = true
BtnText.TextColor3 = Color3.new(1, 1, 1)
BtnText.BackgroundTransparency = 1

-- SMOOTH DRAGGING LOGIC
local dragToggle, dragStart, startPos
local function updateInput(input)
    local delta = input.Position - dragStart
    MainWindow.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
end

MainWindow.InputBegan:Connect(function(input)
    if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) then
        dragToggle = true
        dragStart = input.Position
        startPos = MainWindow.Position
        input.Changed:Connect(function()
            if input.UserInputState == Enum.UserInputState.End then
                dragToggle = false
            end
        end)
    end
end)

UIS.InputChanged:Connect(function(input)
    if dragToggle and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then
        updateInput(input)
    end
end)

-- TOGGLE LOGIC
MenuToggleButton.MouseButton1Click:Connect(function()
    MainWindow.Visible = not MainWindow.Visible
end)

local toggled = false
ActionBtn.MouseButton1Click:Connect(function()
    toggled = not toggled
    ActionBtn.ImageColor3 = toggled and Color3.fromRGB(60, 211, 194) or Color3.fromRGB(26, 190, 190)
    
    if toggled then
        task.spawn(function()
            while toggled do
                for _, obj in ipairs(game:GetDescendants()) do
                    if not toggled then break end
                    if obj:IsA("RemoteEvent") then
                        obj:FireServer()
                    elseif obj:IsA("RemoteFunction") then
                        pcall(function() obj:InvokeServer() end)
                    end
                end
                task.wait(0.1)
            end
        end)
    end
end)

Ratings & Reviews

No reviews yet. Be the first to review this script!

Comments (0)

Please login to comment

Login with Discord

Loading comments...