Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local player = Players.LocalPlayer
- local playerGui = player:WaitForChild("PlayerGui")
- -- Check if a previous interface exists
- local oldGui = playerGui:FindFirstChild("AutoWinUI")
- if _G.StopAutoWinLoop then
- _G.StopAutoWinLoop()
- _G.StopAutoWinLoop = nil
- end
- if oldGui then
- oldGui:Destroy()
- end
- -- Control variables
- local running = false
- local superRunning = false
- local teleportPosition = Vector3.new(73.2, 1348, 283)
- local autoWinThread = nil
- local superThread = nil
- -- Create interface
- local screenGui = Instance.new("ScreenGui", playerGui)
- screenGui.Name = "AutoWinUI"
- screenGui.ResetOnSpawn = false
- local frame = Instance.new("Frame", screenGui)
- frame.Size = UDim2.new(0, 300, 0, 320)
- frame.Position = UDim2.new(0.5, -150, 0.5, -160)
- frame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
- frame.BackgroundTransparency = 0.2
- frame.BorderSizePixel = 0
- frame.Active = true
- frame.Draggable = true
- Instance.new("UICorner", frame).CornerRadius = UDim.new(0, 8)
- local UIStroke = Instance.new("UIStroke", frame)
- UIStroke.Color = Color3.fromRGB(70, 70, 70)
- UIStroke.Thickness = 1
- -- Title
- local titleLabel = Instance.new("TextLabel", frame)
- titleLabel.Size = UDim2.new(1, -10, 0, 24)
- titleLabel.Position = UDim2.new(0, 5, 0, 5)
- titleLabel.Text = "Troll Players Tower Script"
- titleLabel.Font = Enum.Font.GothamBold
- titleLabel.TextSize = 16
- titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- titleLabel.BackgroundTransparency = 1
- -- Close button
- local closeButton = Instance.new("TextButton", frame)
- closeButton.Size = UDim2.new(0, 24, 0, 24)
- closeButton.Position = UDim2.new(1, -29, 0, 5)
- closeButton.Text = "X"
- closeButton.Font = Enum.Font.GothamBold
- closeButton.TextSize = 16
- closeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- closeButton.BackgroundColor3 = Color3.fromRGB(60, 0, 0)
- closeButton.BorderSizePixel = 0
- Instance.new("UICorner", closeButton).CornerRadius = UDim.new(1, 0)
- -- Minimize button
- local minimizeButton = Instance.new("TextButton", frame)
- minimizeButton.Size = UDim2.new(0, 24, 0, 24)
- minimizeButton.Position = UDim2.new(1, -58, 0, 5)
- minimizeButton.Text = "-"
- minimizeButton.Font = Enum.Font.GothamBold
- minimizeButton.TextSize = 16
- minimizeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- minimizeButton.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
- minimizeButton.BorderSizePixel = 0
- Instance.new("UICorner", minimizeButton).CornerRadius = UDim.new(1, 0)
- -- Toggle Auto Win button
- local toggleButton = Instance.new("TextButton", frame)
- toggleButton.Size = UDim2.new(0.9, 0, 0, 40)
- toggleButton.Position = UDim2.new(0.05, 0, 0, 40)
- toggleButton.Text = "Auto Win: OFF"
- toggleButton.Font = Enum.Font.GothamBold
- toggleButton.TextSize = 18
- toggleButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- toggleButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- toggleButton.BorderSizePixel = 0
- -- Speed button
- local speedButton = Instance.new("TextButton", frame)
- speedButton.Size = UDim2.new(0.9, 0, 0, 30)
- speedButton.Position = UDim2.new(0.05, 0, 0, 85)
- speedButton.Text = "Speed: Normal"
- speedButton.Font = Enum.Font.GothamBold
- speedButton.TextSize = 16
- speedButton.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
- speedButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- speedButton.BorderSizePixel = 0
- -- Super Auto Win button
- local superButton = Instance.new("TextButton", frame)
- superButton.Size = UDim2.new(0.9, 0, 0, 30)
- superButton.Position = UDim2.new(0.05, 0, 0, 120)
- superButton.Text = "Super Auto Win: OFF"
- superButton.Font = Enum.Font.GothamBold
- superButton.TextSize = 16
- superButton.BackgroundColor3 = Color3.fromRGB(80, 40, 40)
- superButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- superButton.BorderSizePixel = 0
- -- Teleporter title
- local teleporterLabel = Instance.new("TextLabel", frame)
- teleporterLabel.Size = UDim2.new(1, -10, 0, 20)
- teleporterLabel.Position = UDim2.new(0.05, 0, 0, 160)
- teleporterLabel.Text = "TELEPORTER"
- teleporterLabel.Font = Enum.Font.GothamBold
- teleporterLabel.TextSize = 16
- teleporterLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- teleporterLabel.BackgroundTransparency = 1
- teleporterLabel.TextXAlignment = Enum.TextXAlignment.Left
- -- Button holder
- local buttonHolder = Instance.new("Frame", frame)
- buttonHolder.Size = UDim2.new(0.9, 0, 0, 60)
- buttonHolder.Position = UDim2.new(0.05, 0, 0, 185)
- buttonHolder.BackgroundTransparency = 1
- local layout = Instance.new("UIListLayout", buttonHolder)
- layout.FillDirection = Enum.FillDirection.Vertical
- layout.Padding = UDim.new(0, 6)
- layout.SortOrder = Enum.SortOrder.LayoutOrder
- -- Teleport buttons
- local endButton = Instance.new("TextButton", buttonHolder)
- endButton.Size = UDim2.new(1, 0, 0, 24)
- endButton.Text = "End"
- endButton.Font = Enum.Font.GothamBold
- endButton.TextSize = 16
- endButton.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
- endButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- endButton.BorderSizePixel = 0
- local end2Button = Instance.new("TextButton", buttonHolder)
- end2Button.Size = UDim2.new(1, 0, 0, 24)
- end2Button.Text = "End 2"
- end2Button.Font = Enum.Font.GothamBold
- end2Button.TextSize = 16
- end2Button.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
- end2Button.TextColor3 = Color3.fromRGB(255, 255, 255)
- end2Button.BorderSizePixel = 0
- local fadingblocksButton = Instance.new("TextButton", buttonHolder)
- fadingblocksButton.Size = UDim2.new(1, 0, 0, 24)
- fadingblocksButton.Text = "Fadingblocks"
- fadingblocksButton.Font = Enum.Font.GothamBold
- fadingblocksButton.TextSize = 16
- fadingblocksButton.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
- fadingblocksButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- fadingblocksButton.BorderSizePixel = 0
- -- Credit
- local creditLabel = Instance.new("TextLabel", frame)
- creditLabel.Size = UDim2.new(1, -10, 0, 20)
- creditLabel.Position = UDim2.new(0, 5, 1, -24)
- creditLabel.Text = "Made by: @YURIPANK"
- creditLabel.Font = Enum.Font.Gotham
- creditLabel.TextSize = 16
- creditLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
- creditLabel.TextXAlignment = Enum.TextXAlignment.Right
- creditLabel.BackgroundTransparency = 1
- -- Group content for minimize toggle
- local contentElements = {
- toggleButton,
- speedButton,
- superButton,
- teleporterLabel,
- buttonHolder,
- creditLabel
- }
- -- Minimize logic
- local minimized = false
- local function updateMinimize()
- for _, element in ipairs(contentElements) do
- element.Visible = not minimized
- end
- frame.Size = minimized and UDim2.new(0, 300, 0, 33) or UDim2.new(0, 300, 0, 320)
- end
- minimizeButton.MouseButton1Click:Connect(function()
- minimized = not minimized
- minimizeButton.Text = minimized and "+" or "-"
- updateMinimize()
- end)
- -- Speed settings
- local speedModes = {
- ["Slow"] = 1.5,
- ["Normal"] = 0.8,
- ["Fast"] = 0.6,
- }
- local currentSpeed = "Normal"
- speedButton.MouseButton1Click:Connect(function()
- currentSpeed = (currentSpeed == "Slow") and "Normal" or (currentSpeed == "Normal") and "Fast" or "Slow"
- speedButton.Text = "Speed: " .. currentSpeed
- end)
- -- AutoWin logic
- local function autoWin()
- while running do
- local char = player.Character
- local hrp = char and char:FindFirstChild("HumanoidRootPart")
- if hrp then
- pcall(function()
- char:MoveTo(teleportPosition)
- end)
- repeat task.wait(0.05) until not running or (hrp.Position - teleportPosition).Magnitude < 5
- task.wait(0.1)
- if running then pcall(function() char:BreakJoints() end) end
- end
- task.wait(speedModes[currentSpeed])
- end
- end
- -- Super Auto Win
- local function superAutoWin()
- while superRunning do
- local char = player.Character
- local hrp = char and char:FindFirstChild("HumanoidRootPart")
- if hrp then
- char:MoveTo(teleportPosition)
- task.wait(0.05)
- char:BreakJoints()
- end
- task.wait(0.35)
- end
- end
- -- Toggle Auto Win
- local debounce = false
- toggleButton.MouseButton1Click:Connect(function()
- if debounce then return end
- debounce = true
- running = not running
- toggleButton.Text = running and "Auto Win: ON" or "Auto Win: OFF"
- if running then
- autoWinThread = coroutine.create(autoWin)
- coroutine.resume(autoWinThread)
- end
- task.wait(0.3)
- debounce = false
- end)
- -- Toggle Super Auto Win
- superButton.MouseButton1Click:Connect(function()
- superRunning = not superRunning
- superButton.Text = superRunning and "Super Auto Win: ON" or "Super Auto Win: OFF"
- if superRunning then
- superThread = coroutine.create(superAutoWin)
- coroutine.resume(superThread)
- end
- end)
- -- Teleport buttons
- endButton.MouseButton1Click:Connect(function()
- if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
- player.Character:MoveTo(Vector3.new(73.2, 1348, 283))
- end
- end)
- end2Button.MouseButton1Click:Connect(function()
- if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
- player.Character:MoveTo(Vector3.new(66, 1647, 405))
- end
- end)
- fadingblocksButton.MouseButton1Click:Connect(function()
- if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
- player.Character:MoveTo(Vector3.new(40, 1033, -21))
- end
- end)
- -- Stop loop function
- local function stopAutoWin()
- running = false
- superRunning = false
- toggleButton.Text = "Auto Win: OFF"
- superButton.Text = "Super Auto Win: OFF"
- local char = player.Character
- local hrp = char and char:FindFirstChild("HumanoidRootPart")
- if hrp then
- hrp.Anchored = false
- end
- end
- _G.StopAutoWinLoop = stopAutoWin
- -- Close interface
- closeButton.MouseButton1Click:Connect(function()
- stopAutoWin()
- screenGui:Destroy()
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement