PhoenixPlayzYT

Auto Drain script Beta V1.3

Aug 18th, 2026
12
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.12 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local ScreenGui = Instance.new("ScreenGui")
  7. local Frame = Instance.new("Frame")
  8. local UICorner = Instance.new("UICorner")
  9. local AutoButton = Instance.new("TextButton")
  10. local UICorner_2 = Instance.new("UICorner")
  11. local AutoTPSurfaceButton = Instance.new("TextButton")
  12. local UICorner_3 = Instance.new("UICorner")
  13.  
  14. --Properties:
  15.  
  16. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  17. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  18.  
  19. Frame.Parent = ScreenGui
  20. Frame.BackgroundColor3 = Color3.fromRGB(85, 85, 255)
  21. Frame.BackgroundTransparency = 0.400
  22. Frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  23. Frame.BorderSizePixel = 0
  24. Frame.Position = UDim2.new(0.785879254, 0, 0.300507903, 0)
  25. Frame.Size = UDim2.new(0, 134, 0, 152)
  26.  
  27. UICorner.Parent = Frame
  28.  
  29. AutoButton.Name = "AutoButton"
  30. AutoButton.Parent = Frame
  31. AutoButton.BackgroundColor3 = Color3.fromRGB(187, 69, 255)
  32. AutoButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
  33. AutoButton.BorderSizePixel = 0
  34. AutoButton.Position = UDim2.new(0.0969606265, 0, 0.155039579, 0)
  35. AutoButton.Size = UDim2.new(0, 108, 0, 42)
  36. AutoButton.Font = Enum.Font.SourceSans
  37. AutoButton.Text = "AutoCollect"
  38. AutoButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  39. AutoButton.TextSize = 22.000
  40. AutoButton.TextWrapped = true
  41.  
  42. UICorner_2.Parent = AutoButton
  43.  
  44. AutoTPSurfaceButton.Name = "AutoTPSurfaceButton"
  45. AutoTPSurfaceButton.Parent = Frame
  46. AutoTPSurfaceButton.BackgroundColor3 = Color3.fromRGB(187, 69, 255)
  47. AutoTPSurfaceButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
  48. AutoTPSurfaceButton.BorderSizePixel = 0
  49. AutoTPSurfaceButton.Position = UDim2.new(0.0969606265, 0, 0.548298001, 0)
  50. AutoTPSurfaceButton.Size = UDim2.new(0, 108, 0, 42)
  51. AutoTPSurfaceButton.Font = Enum.Font.SourceSans
  52. AutoTPSurfaceButton.Text = "AutoTPSurface"
  53. AutoTPSurfaceButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  54. AutoTPSurfaceButton.TextScaled = true
  55. AutoTPSurfaceButton.TextSize = 18.000
  56. AutoTPSurfaceButton.TextWrapped = true
  57.  
  58. UICorner_3.Parent = AutoTPSurfaceButton
  59.  
  60. -- Scripts:
  61.  
  62. local function VDSFDR_fake_script() -- Frame.Draggable
  63. local script = Instance.new('LocalScript', Frame)
  64.  
  65. local frame = script.Parent
  66. local UserInputService = game:GetService("UserInputService")
  67.  
  68. local dragging = false
  69. local dragStart
  70. local startPos
  71.  
  72. frame.Active = true
  73.  
  74. frame.InputBegan:Connect(function(input)
  75. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  76. dragging = true
  77. dragStart = input.Position
  78. startPos = frame.Position
  79.  
  80. input.Changed:Connect(function()
  81. if input.UserInputState == Enum.UserInputState.End then
  82. dragging = false
  83. end
  84. end)
  85. end
  86. end)
  87.  
  88. UserInputService.InputChanged:Connect(function(input)
  89. if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then
  90. local delta = input.Position - dragStart
  91.  
  92. frame.Position = UDim2.new(
  93. startPos.X.Scale,
  94. startPos.X.Offset + delta.X,
  95. startPos.Y.Scale,
  96. startPos.Y.Offset + delta.Y
  97. )
  98. end
  99. end)
  100. end
  101. coroutine.wrap(VDSFDR_fake_script)()
  102. local function PCFTBQF_fake_script() -- AutoButton.LocalScript
  103. local script = Instance.new('LocalScript', AutoButton)
  104.  
  105. -- VDT_Bucket.Used — Keybind Toggle
  106. -- Press the toggle key to START/STOP auto-firing the remote
  107.  
  108. local UserInputService = game:GetService("UserInputService")
  109.  
  110. -- ================= CONFIG =================
  111. local TOGGLE_KEY = Enum.KeyCode.X -- change this to any key you want
  112. local FIRE_DELAY = 0.5 -- seconds between fires (lower = faster)
  113. -- ==========================================
  114.  
  115. local remote = game:GetService("ReplicatedStorage"):WaitForChild("VerdantRemotes"):WaitForChild("VDT_Bucket.Used")
  116.  
  117. local args = {
  118. [1] = workspace:WaitForChild("Start"):WaitForChild("Water"):WaitForChild("Top"),
  119. [2] = Vector3.new(59.797119140625, 2524.4052734375, -420.59881591796875),
  120. [3] = Vector3.new(0.08470384031534195, -0.5462336540222168, -0.8333391547203064),
  121. [4] = Vector3.new(60.48609924316406, 2519.962158203125, -427.3771667480469)
  122. }
  123.  
  124. local firing = false
  125.  
  126. local function stopFiring()
  127. firing = false
  128. end
  129.  
  130. local function startFiring()
  131. if firing then return end
  132. firing = true
  133. task.spawn(function()
  134. while firing do
  135. remote:FireServer(unpack(args))
  136. task.wait(FIRE_DELAY)
  137. end
  138. end)
  139. end
  140.  
  141. local function toggle()
  142. if firing then
  143. stopFiring()
  144. print("[Toggle] OFF")
  145. else
  146. startFiring()
  147. print("[Toggle] ON")
  148. end
  149. end
  150.  
  151. -- Keybind handler
  152. UserInputService.InputBegan:Connect(function(input, gameProcessed)
  153. if gameProcessed then return end
  154. if input.KeyCode == TOGGLE_KEY then
  155. toggle()
  156. end
  157. end)
  158. end
  159. coroutine.wrap(PCFTBQF_fake_script)()
  160. local function OJHIJ_fake_script() -- AutoTPSurfaceButton.LocalScript
  161. local script = Instance.new('LocalScript', AutoTPSurfaceButton)
  162.  
  163. local Players = game:GetService("Players")
  164. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  165. local UserInputService = game:GetService("UserInputService")
  166.  
  167. local player = Players.LocalPlayer
  168. local button = script.Parent
  169.  
  170. local enabled = false
  171. local savedPosition = nil
  172.  
  173. -- Change this to whatever key you want
  174. local TOGGLE_KEY = Enum.KeyCode.T
  175.  
  176. local remote = ReplicatedStorage
  177. :WaitForChild("VerdantRemotes")
  178. :WaitForChild("VDT_ChunkRescue")
  179.  
  180. local function updateButton()
  181. if enabled then
  182. button.Text = "TP: ON"
  183. else
  184. button.Text = "TP: OFF"
  185. end
  186. end
  187.  
  188. local function toggle()
  189. enabled = not enabled
  190. updateButton()
  191.  
  192. if enabled then
  193. local character = player.Character
  194. local root = character and character:FindFirstChild("HumanoidRootPart")
  195.  
  196. if root then
  197. -- Save the current position
  198. savedPosition = root.Position
  199.  
  200. -- Fire the remote
  201. remote:FireServer()
  202. end
  203. end
  204. end
  205.  
  206. UserInputService.InputBegan:Connect(function(input, gameProcessed)
  207. if gameProcessed then return end
  208.  
  209. if input.KeyCode == TOGGLE_KEY then
  210. toggle()
  211. end
  212. end)
  213.  
  214. -- Button can also toggle it
  215. button.MouseButton1Click:Connect(toggle)
  216.  
  217. updateButton()
  218. end
  219. coroutine.wrap(OJHIJ_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment