Advertisement
BrookScripts

Troll Players Tower Script OP

May 18th, 2025 (edited)
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.83 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. local player = Players.LocalPlayer
  3. local playerGui = player:WaitForChild("PlayerGui")
  4.  
  5. -- Check if a previous interface exists
  6. local oldGui = playerGui:FindFirstChild("AutoWinUI")
  7. if _G.StopAutoWinLoop then
  8. _G.StopAutoWinLoop()
  9. _G.StopAutoWinLoop = nil
  10. end
  11. if oldGui then
  12. oldGui:Destroy()
  13. end
  14.  
  15. -- Control variables
  16. local running = false
  17. local superRunning = false
  18. local teleportPosition = Vector3.new(73.2, 1348, 283)
  19. local autoWinThread = nil
  20. local superThread = nil
  21.  
  22. -- Create interface
  23. local screenGui = Instance.new("ScreenGui", playerGui)
  24. screenGui.Name = "AutoWinUI"
  25. screenGui.ResetOnSpawn = false
  26.  
  27. local frame = Instance.new("Frame", screenGui)
  28. frame.Size = UDim2.new(0, 300, 0, 320)
  29. frame.Position = UDim2.new(0.5, -150, 0.5, -160)
  30. frame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  31. frame.BackgroundTransparency = 0.2
  32. frame.BorderSizePixel = 0
  33. frame.Active = true
  34. frame.Draggable = true
  35.  
  36. Instance.new("UICorner", frame).CornerRadius = UDim.new(0, 8)
  37. local UIStroke = Instance.new("UIStroke", frame)
  38. UIStroke.Color = Color3.fromRGB(70, 70, 70)
  39. UIStroke.Thickness = 1
  40.  
  41. -- Title
  42. local titleLabel = Instance.new("TextLabel", frame)
  43. titleLabel.Size = UDim2.new(1, -10, 0, 24)
  44. titleLabel.Position = UDim2.new(0, 5, 0, 5)
  45. titleLabel.Text = "Troll Players Tower Script"
  46. titleLabel.Font = Enum.Font.GothamBold
  47. titleLabel.TextSize = 16
  48. titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  49. titleLabel.BackgroundTransparency = 1
  50.  
  51. -- Close button
  52. local closeButton = Instance.new("TextButton", frame)
  53. closeButton.Size = UDim2.new(0, 24, 0, 24)
  54. closeButton.Position = UDim2.new(1, -29, 0, 5)
  55. closeButton.Text = "X"
  56. closeButton.Font = Enum.Font.GothamBold
  57. closeButton.TextSize = 16
  58. closeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  59. closeButton.BackgroundColor3 = Color3.fromRGB(60, 0, 0)
  60. closeButton.BorderSizePixel = 0
  61. Instance.new("UICorner", closeButton).CornerRadius = UDim.new(1, 0)
  62.  
  63. -- Minimize button
  64. local minimizeButton = Instance.new("TextButton", frame)
  65. minimizeButton.Size = UDim2.new(0, 24, 0, 24)
  66. minimizeButton.Position = UDim2.new(1, -58, 0, 5)
  67. minimizeButton.Text = "-"
  68. minimizeButton.Font = Enum.Font.GothamBold
  69. minimizeButton.TextSize = 16
  70. minimizeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  71. minimizeButton.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  72. minimizeButton.BorderSizePixel = 0
  73. Instance.new("UICorner", minimizeButton).CornerRadius = UDim.new(1, 0)
  74.  
  75. -- Toggle Auto Win button
  76. local toggleButton = Instance.new("TextButton", frame)
  77. toggleButton.Size = UDim2.new(0.9, 0, 0, 40)
  78. toggleButton.Position = UDim2.new(0.05, 0, 0, 40)
  79. toggleButton.Text = "Auto Win: OFF"
  80. toggleButton.Font = Enum.Font.GothamBold
  81. toggleButton.TextSize = 18
  82. toggleButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  83. toggleButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  84. toggleButton.BorderSizePixel = 0
  85.  
  86. -- Speed button
  87. local speedButton = Instance.new("TextButton", frame)
  88. speedButton.Size = UDim2.new(0.9, 0, 0, 30)
  89. speedButton.Position = UDim2.new(0.05, 0, 0, 85)
  90. speedButton.Text = "Speed: Normal"
  91. speedButton.Font = Enum.Font.GothamBold
  92. speedButton.TextSize = 16
  93. speedButton.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  94. speedButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  95. speedButton.BorderSizePixel = 0
  96.  
  97. -- Super Auto Win button
  98. local superButton = Instance.new("TextButton", frame)
  99. superButton.Size = UDim2.new(0.9, 0, 0, 30)
  100. superButton.Position = UDim2.new(0.05, 0, 0, 120)
  101. superButton.Text = "Super Auto Win: OFF"
  102. superButton.Font = Enum.Font.GothamBold
  103. superButton.TextSize = 16
  104. superButton.BackgroundColor3 = Color3.fromRGB(80, 40, 40)
  105. superButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  106. superButton.BorderSizePixel = 0
  107.  
  108. -- Teleporter title
  109. local teleporterLabel = Instance.new("TextLabel", frame)
  110. teleporterLabel.Size = UDim2.new(1, -10, 0, 20)
  111. teleporterLabel.Position = UDim2.new(0.05, 0, 0, 160)
  112. teleporterLabel.Text = "TELEPORTER"
  113. teleporterLabel.Font = Enum.Font.GothamBold
  114. teleporterLabel.TextSize = 16
  115. teleporterLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  116. teleporterLabel.BackgroundTransparency = 1
  117. teleporterLabel.TextXAlignment = Enum.TextXAlignment.Left
  118.  
  119. -- Button holder
  120. local buttonHolder = Instance.new("Frame", frame)
  121. buttonHolder.Size = UDim2.new(0.9, 0, 0, 60)
  122. buttonHolder.Position = UDim2.new(0.05, 0, 0, 185)
  123. buttonHolder.BackgroundTransparency = 1
  124.  
  125. local layout = Instance.new("UIListLayout", buttonHolder)
  126. layout.FillDirection = Enum.FillDirection.Vertical
  127. layout.Padding = UDim.new(0, 6)
  128. layout.SortOrder = Enum.SortOrder.LayoutOrder
  129.  
  130. -- Teleport buttons
  131. local endButton = Instance.new("TextButton", buttonHolder)
  132. endButton.Size = UDim2.new(1, 0, 0, 24)
  133. endButton.Text = "End"
  134. endButton.Font = Enum.Font.GothamBold
  135. endButton.TextSize = 16
  136. endButton.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  137. endButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  138. endButton.BorderSizePixel = 0
  139.  
  140. local end2Button = Instance.new("TextButton", buttonHolder)
  141. end2Button.Size = UDim2.new(1, 0, 0, 24)
  142. end2Button.Text = "End 2"
  143. end2Button.Font = Enum.Font.GothamBold
  144. end2Button.TextSize = 16
  145. end2Button.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  146. end2Button.TextColor3 = Color3.fromRGB(255, 255, 255)
  147. end2Button.BorderSizePixel = 0
  148.  
  149. local fadingblocksButton = Instance.new("TextButton", buttonHolder)
  150. fadingblocksButton.Size = UDim2.new(1, 0, 0, 24)
  151. fadingblocksButton.Text = "Fadingblocks"
  152. fadingblocksButton.Font = Enum.Font.GothamBold
  153. fadingblocksButton.TextSize = 16
  154. fadingblocksButton.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  155. fadingblocksButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  156. fadingblocksButton.BorderSizePixel = 0
  157.  
  158. -- Credit
  159. local creditLabel = Instance.new("TextLabel", frame)
  160. creditLabel.Size = UDim2.new(1, -10, 0, 20)
  161. creditLabel.Position = UDim2.new(0, 5, 1, -24)
  162. creditLabel.Text = "Made by: @YURIPANK"
  163. creditLabel.Font = Enum.Font.Gotham
  164. creditLabel.TextSize = 16
  165. creditLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
  166. creditLabel.TextXAlignment = Enum.TextXAlignment.Right
  167. creditLabel.BackgroundTransparency = 1
  168.  
  169. -- Group content for minimize toggle
  170. local contentElements = {
  171. toggleButton,
  172. speedButton,
  173. superButton,
  174. teleporterLabel,
  175. buttonHolder,
  176. creditLabel
  177. }
  178.  
  179. -- Minimize logic
  180. local minimized = false
  181.  
  182. local function updateMinimize()
  183. for _, element in ipairs(contentElements) do
  184. element.Visible = not minimized
  185. end
  186.  
  187. frame.Size = minimized and UDim2.new(0, 300, 0, 33) or UDim2.new(0, 300, 0, 320)
  188. end
  189.  
  190. minimizeButton.MouseButton1Click:Connect(function()
  191. minimized = not minimized
  192. minimizeButton.Text = minimized and "+" or "-"
  193. updateMinimize()
  194. end)
  195.  
  196.  
  197. -- Speed settings
  198. local speedModes = {
  199. ["Slow"] = 1.5,
  200. ["Normal"] = 0.8,
  201. ["Fast"] = 0.6,
  202. }
  203. local currentSpeed = "Normal"
  204.  
  205. speedButton.MouseButton1Click:Connect(function()
  206. currentSpeed = (currentSpeed == "Slow") and "Normal" or (currentSpeed == "Normal") and "Fast" or "Slow"
  207. speedButton.Text = "Speed: " .. currentSpeed
  208. end)
  209.  
  210. -- AutoWin logic
  211. local function autoWin()
  212. while running do
  213. local char = player.Character
  214. local hrp = char and char:FindFirstChild("HumanoidRootPart")
  215. if hrp then
  216. pcall(function()
  217. char:MoveTo(teleportPosition)
  218. end)
  219. repeat task.wait(0.05) until not running or (hrp.Position - teleportPosition).Magnitude < 5
  220. task.wait(0.1)
  221. if running then pcall(function() char:BreakJoints() end) end
  222. end
  223. task.wait(speedModes[currentSpeed])
  224. end
  225. end
  226.  
  227. -- Super Auto Win
  228. local function superAutoWin()
  229. while superRunning do
  230. local char = player.Character
  231. local hrp = char and char:FindFirstChild("HumanoidRootPart")
  232. if hrp then
  233. char:MoveTo(teleportPosition)
  234. task.wait(0.05)
  235. char:BreakJoints()
  236. end
  237. task.wait(0.35)
  238. end
  239. end
  240.  
  241. -- Toggle Auto Win
  242. local debounce = false
  243. toggleButton.MouseButton1Click:Connect(function()
  244. if debounce then return end
  245. debounce = true
  246.  
  247. running = not running
  248. toggleButton.Text = running and "Auto Win: ON" or "Auto Win: OFF"
  249.  
  250. if running then
  251. autoWinThread = coroutine.create(autoWin)
  252. coroutine.resume(autoWinThread)
  253. end
  254.  
  255. task.wait(0.3)
  256. debounce = false
  257. end)
  258.  
  259. -- Toggle Super Auto Win
  260. superButton.MouseButton1Click:Connect(function()
  261. superRunning = not superRunning
  262. superButton.Text = superRunning and "Super Auto Win: ON" or "Super Auto Win: OFF"
  263.  
  264. if superRunning then
  265. superThread = coroutine.create(superAutoWin)
  266. coroutine.resume(superThread)
  267. end
  268. end)
  269.  
  270. -- Teleport buttons
  271. endButton.MouseButton1Click:Connect(function()
  272. if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
  273. player.Character:MoveTo(Vector3.new(73.2, 1348, 283))
  274. end
  275. end)
  276.  
  277. end2Button.MouseButton1Click:Connect(function()
  278. if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
  279. player.Character:MoveTo(Vector3.new(66, 1647, 405))
  280. end
  281. end)
  282.  
  283. fadingblocksButton.MouseButton1Click:Connect(function()
  284. if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
  285. player.Character:MoveTo(Vector3.new(40, 1033, -21))
  286. end
  287. end)
  288.  
  289. -- Stop loop function
  290. local function stopAutoWin()
  291. running = false
  292. superRunning = false
  293. toggleButton.Text = "Auto Win: OFF"
  294. superButton.Text = "Super Auto Win: OFF"
  295.  
  296. local char = player.Character
  297. local hrp = char and char:FindFirstChild("HumanoidRootPart")
  298. if hrp then
  299. hrp.Anchored = false
  300. end
  301. end
  302.  
  303. _G.StopAutoWinLoop = stopAutoWin
  304.  
  305. -- Close interface
  306. closeButton.MouseButton1Click:Connect(function()
  307. stopAutoWin()
  308. screenGui:Destroy()
  309. end)
  310.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement