Auto Win open source
Key Required

Auto Win open source

Lucky Block Tower1w691w69 8.1K views 428 executesUpdated Jul 18, 2025
5.0/ 5(2 votes)
20100% Positive
Lua Script•133 lines (4512 chars)
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RunService = game:GetService("RunService")
local TweenService = game:GetService("TweenService")

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

local gui = Instance.new("ScreenGui", PlayerGui)
gui.Name = "RainbowEdgeGui"

local frame = Instance.new("Frame", gui)
frame.Size = UDim2.new(0, 320, 0, 90)
frame.Position = UDim2.new(0.5, -160, 0.5, -45)
frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
frame.BorderSizePixel = 0
frame.Active = true
frame.Draggable = true
Instance.new("UICorner", frame).CornerRadius = UDim.new(0, 12)

local topBar = Instance.new("Frame", frame)
topBar.Size = UDim2.new(1, 0, 0, 35)
topBar.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
topBar.BorderSizePixel = 0
Instance.new("UICorner", topBar).CornerRadius = UDim.new(0, 12)

local function addRainbowGradient(parent)
	local grad = Instance.new("UIGradient", parent)
	grad.Color = ColorSequence.new{
		ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 0, 0)),
		ColorSequenceKeypoint.new(0.2, Color3.fromRGB(255, 127, 0)),
		ColorSequenceKeypoint.new(0.4, Color3.fromRGB(255, 255, 0)),
		ColorSequenceKeypoint.new(0.6, Color3.fromRGB(0, 255, 0)),
		ColorSequenceKeypoint.new(0.8, Color3.fromRGB(0, 0, 255)),
		ColorSequenceKeypoint.new(1, Color3.fromRGB(139, 0, 255)),
	}
	grad.Rotation = 45
	TweenService:Create(grad, TweenInfo.new(4, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, -1, true), {Rotation = 405}):Play()
end

addRainbowGradient(frame)
addRainbowGradient(topBar)

local discordLabel = Instance.new("TextLabel", topBar)
discordLabel.Size = UDim2.new(0, 200, 1, 0)
discordLabel.Position = UDim2.new(0, 10, 0, 0)
discordLabel.BackgroundTransparency = 1
discordLabel.Text = "discord:1w69"
discordLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
discordLabel.Font = Enum.Font.SourceSansBold
discordLabel.TextSize = 16
discordLabel.TextXAlignment = Enum.TextXAlignment.Left

local closeBtn = Instance.new("TextButton", topBar)
closeBtn.Size = UDim2.new(0, 30, 0, 30)
closeBtn.Position = UDim2.new(1, -40, 0, 2)
closeBtn.BackgroundColor3 = Color3.fromRGB(180, 30, 30)
closeBtn.Text = "❌"
closeBtn.TextColor3 = Color3.new(1, 1, 1)
closeBtn.Font = Enum.Font.SourceSansBold
closeBtn.TextSize = 20
Instance.new("UICorner", closeBtn).CornerRadius = UDim.new(0, 12)

closeBtn.MouseButton1Click:Connect(function()
	gui:Destroy()
end)

local buttonHolder = Instance.new("Frame", frame)
buttonHolder.Size = UDim2.new(1, 0, 0, 50)
buttonHolder.Position = UDim2.new(0, 0, 0, 35)
buttonHolder.BackgroundTransparency = 1

local UIList = Instance.new("UIListLayout", buttonHolder)
UIList.Padding = UDim.new(0, 10)
UIList.HorizontalAlignment = Enum.HorizontalAlignment.Center
UIList.SortOrder = Enum.SortOrder.LayoutOrder

local function createButton(text)
	local btn = Instance.new("TextButton")
	btn.Size = UDim2.new(0.8, 0, 0, 40)
	btn.BackgroundColor3 = Color3.fromRGB(40, 70, 120)
	btn.TextColor3 = Color3.fromRGB(255, 255, 255)
	btn.Font = Enum.Font.SourceSansBold
	btn.TextSize = 18
	btn.Text = text
	Instance.new("UICorner", btn).CornerRadius = UDim.new(0, 12)
	addRainbowGradient(btn)
	btn.Parent = buttonHolder
	return btn
end

local active = false
local connection

local btn = createButton("auto win ❌")
local targetPos = Vector3.new(-269.43, 190.00, -65.54)

local function moveCharacterTo(character, destination)
	local humanoid = character:FindFirstChildOfClass("Humanoid")
	local hrp = character:FindFirstChild("HumanoidRootPart")
	if humanoid and hrp then
		local direction = (destination - hrp.Position).Unit
		hrp.CFrame = CFrame.new(hrp.Position, hrp.Position + direction)
		humanoid:Move(direction, false)
	end
end

btn.MouseButton1Click:Connect(function()
	active = not active
	btn.Text = "auto win " .. (active and "✅" or "❌")

	if active then
		connection = RunService.Heartbeat:Connect(function()
			local character = LocalPlayer.Character
			if character and character:FindFirstChild("HumanoidRootPart") then
				character.HumanoidRootPart.CFrame = CFrame.new(targetPos + Vector3.new(0, 2, 0))
				moveCharacterTo(character, targetPos)
			end
		end)
	else
		if connection then
			connection:Disconnect()
			connection = nil
		end
		local character = LocalPlayer.Character
		if character then
			local humanoid = character:FindFirstChildOfClass("Humanoid")
			if humanoid then
				humanoid:Move(Vector3.new(0,0,0), false)
			end
		end
	end
end)

Features & Information

This is an automatic winning script just run it and go about your day! 🔐License: This script is open source. You are free to modify, improve, or use it in any project without restrictions.

Community Comments (0)

No comments yet for this script.

More Scripts for Lucky Block Tower