inf wins
Key Required

inf wins

🚀 Fly to SPACE! [BACK!]4dclo4dclo 14.5K views 164 executesUpdated Sep 20, 2025
3.3/ 5(3 votes)
2167% Positive
Lua Script•164 lines (5064 chars)
local Players = game:GetService("Players")
local TweenService = game:GetService("TweenService")
local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")

local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")

local screenGui = Instance.new("ScreenGui")
screenGui.Name = "InfWinsGui"
screenGui.Parent = playerGui
screenGui.ResetOnSpawn = false

local mainButton = Instance.new("TextButton")
mainButton.Name = "InfWinsButton"
mainButton.Size = UDim2.new(0, 160, 0, 60)
mainButton.Position = UDim2.new(0.5, -80, 0, 20)
mainButton.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
mainButton.BorderColor3 = Color3.fromRGB(0, 255, 0)
mainButton.BorderSizePixel = 2
mainButton.Text = "Get Inf Wins"
mainButton.TextColor3 = Color3.fromRGB(0, 255, 0)
mainButton.TextScaled = true
mainButton.Font = Enum.Font.SciFi
mainButton.Parent = screenGui

local corner = Instance.new("UICorner")
corner.CornerRadius = UDim.new(0, 12)
corner.Parent = mainButton

local glow = Instance.new("Frame")
glow.Name = "Glow"
glow.Size = UDim2.new(1, 10, 1, 10)
glow.Position = UDim2.new(0, -5, 0, -5)
glow.BackgroundColor3 = Color3.fromRGB(0, 255, 0)
glow.BackgroundTransparency = 0.9
glow.BorderSizePixel = 0
glow.ZIndex = -1

local glowCorner = Instance.new("UICorner")
glowCorner.CornerRadius = UDim.new(0, 16)
glowCorner.Parent = glow

glow.Parent = mainButton

local glowTween = TweenService:Create(
    glow,
    TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, -1, true),
    {BackgroundTransparency = 0.7}
)
glowTween:Play()

-- === DRAGGING FIX ===
local isPointerDown = false
local isDragging = false
local dragStart
local startPos
local dragLoop
local DRAG_THRESHOLD = 5
local justDragged = false

local function bringToFront()
    local maxZIndex = 0
    for _, gui in ipairs(playerGui:GetChildren()) do
        if gui:IsA("ScreenGui") and gui.Enabled then
            local z = gui.ZIndexBehavior == Enum.ZIndexBehavior.Sibling and gui.ZIndex or 0
            maxZIndex = math.max(maxZIndex, z)
        end
    end
    screenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
    screenGui.ZIndex = maxZIndex + 1
end

mainButton.InputBegan:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
        isPointerDown = true
        isDragging = false
        justDragged = false
        dragStart = UserInputService:GetMouseLocation()
        startPos = mainButton.Position

        -- heartbeat loop tracks mouse ONLY when dragging starts
        dragLoop = RunService.Heartbeat:Connect(function()
            if not isPointerDown then return end
            local current = UserInputService:GetMouseLocation()
            local delta = current - dragStart

            if not isDragging then
                if math.abs(delta.X) > DRAG_THRESHOLD or math.abs(delta.Y) > DRAG_THRESHOLD then
                    isDragging = true
                    bringToFront()
                else
                    return
                end
            end

            mainButton.Position = UDim2.new(
                startPos.X.Scale,
                startPos.X.Offset + delta.X,
                startPos.Y.Scale,
                startPos.Y.Offset + delta.Y
            )
        end)

        input.Changed:Connect(function()
            if input.UserInputState == Enum.UserInputState.End then
                if isDragging then
                    justDragged = true
                end
                isPointerDown = false
                isDragging = false
                if dragLoop then
                    dragLoop:Disconnect()
                    dragLoop = nil
                end
            end
        end)
    end
end)

local function onButtonClick()
    if justDragged then
        justDragged = false
        return -- ignore click right after dragging
    end

    local ReplicatedStorage = game:GetService("ReplicatedStorage")
    local RemoteEvent = ReplicatedStorage:FindFirstChild("RemoteEvent")

    if RemoteEvent then
        RemoteEvent:FireServer(
            "ur gonna get banned lol",
            129747392,
            99999999999999999999
        )

        local clickTween = TweenService:Create(
            mainButton,
            TweenInfo.new(0.1, Enum.EasingStyle.Back, Enum.EasingDirection.Out),
            {Size = UDim2.new(0, 150, 0, 54)}
        )
        clickTween:Play()

        task.wait(0.1)

        local releaseTween = TweenService:Create(
            mainButton,
            TweenInfo.new(0.2, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out),
            {Size = UDim2.new(0, 160, 0, 60)}
        )
        releaseTween:Play()
    else
        mainButton.Text = "RemoteEvent not found!"
        task.wait(2)
        mainButton.Text = "Get Inf Wins"
    end
end

mainButton.MouseButton1Click:Connect(onButtonClick)
mainButton.TouchTap:Connect(onButtonClick)

if UserInputService.TouchEnabled then
    mainButton.Size = UDim2.new(0, 180, 0, 70)
end

Features & Information

gives u inf wins this is not my script i only tried to fix it and yeah

Community Comments (1)

4dclo4dcloSep 20, 2025

you can also drag it anywhere credits to dinas tho he made the buggy version of it

More Scripts for 🚀 Fly to SPACE! [BACK!]