Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Gui to Lua
- -- Version: 3.2
- -- Instances:
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local UICorner = Instance.new("UICorner")
- local AutoButton = Instance.new("TextButton")
- local UICorner_2 = Instance.new("UICorner")
- local AutoTPSurfaceButton = Instance.new("TextButton")
- local UICorner_3 = Instance.new("UICorner")
- --Properties:
- ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Frame.Parent = ScreenGui
- Frame.BackgroundColor3 = Color3.fromRGB(85, 85, 255)
- Frame.BackgroundTransparency = 0.400
- Frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Frame.BorderSizePixel = 0
- Frame.Position = UDim2.new(0.785879254, 0, 0.300507903, 0)
- Frame.Size = UDim2.new(0, 134, 0, 152)
- UICorner.Parent = Frame
- AutoButton.Name = "AutoButton"
- AutoButton.Parent = Frame
- AutoButton.BackgroundColor3 = Color3.fromRGB(187, 69, 255)
- AutoButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
- AutoButton.BorderSizePixel = 0
- AutoButton.Position = UDim2.new(0.0969606265, 0, 0.155039579, 0)
- AutoButton.Size = UDim2.new(0, 108, 0, 42)
- AutoButton.Font = Enum.Font.SourceSans
- AutoButton.Text = "AutoCollect"
- AutoButton.TextColor3 = Color3.fromRGB(0, 0, 0)
- AutoButton.TextSize = 22.000
- AutoButton.TextWrapped = true
- UICorner_2.Parent = AutoButton
- AutoTPSurfaceButton.Name = "AutoTPSurfaceButton"
- AutoTPSurfaceButton.Parent = Frame
- AutoTPSurfaceButton.BackgroundColor3 = Color3.fromRGB(187, 69, 255)
- AutoTPSurfaceButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
- AutoTPSurfaceButton.BorderSizePixel = 0
- AutoTPSurfaceButton.Position = UDim2.new(0.0969606265, 0, 0.548298001, 0)
- AutoTPSurfaceButton.Size = UDim2.new(0, 108, 0, 42)
- AutoTPSurfaceButton.Font = Enum.Font.SourceSans
- AutoTPSurfaceButton.Text = "AutoTPSurface"
- AutoTPSurfaceButton.TextColor3 = Color3.fromRGB(0, 0, 0)
- AutoTPSurfaceButton.TextScaled = true
- AutoTPSurfaceButton.TextSize = 18.000
- AutoTPSurfaceButton.TextWrapped = true
- UICorner_3.Parent = AutoTPSurfaceButton
- -- Scripts:
- local function VDSFDR_fake_script() -- Frame.Draggable
- local script = Instance.new('LocalScript', Frame)
- local frame = script.Parent
- local UserInputService = game:GetService("UserInputService")
- local dragging = false
- local dragStart
- local startPos
- frame.Active = true
- frame.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 then
- dragging = true
- dragStart = input.Position
- startPos = frame.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragging = false
- end
- end)
- end
- end)
- UserInputService.InputChanged:Connect(function(input)
- if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then
- local delta = input.Position - dragStart
- frame.Position = UDim2.new(
- startPos.X.Scale,
- startPos.X.Offset + delta.X,
- startPos.Y.Scale,
- startPos.Y.Offset + delta.Y
- )
- end
- end)
- end
- coroutine.wrap(VDSFDR_fake_script)()
- local function PCFTBQF_fake_script() -- AutoButton.LocalScript
- local script = Instance.new('LocalScript', AutoButton)
- -- VDT_Bucket.Used — Keybind Toggle
- -- Press the toggle key to START/STOP auto-firing the remote
- local UserInputService = game:GetService("UserInputService")
- -- ================= CONFIG =================
- local TOGGLE_KEY = Enum.KeyCode.X -- change this to any key you want
- local FIRE_DELAY = 0.5 -- seconds between fires (lower = faster)
- -- ==========================================
- local remote = game:GetService("ReplicatedStorage"):WaitForChild("VerdantRemotes"):WaitForChild("VDT_Bucket.Used")
- local args = {
- [1] = workspace:WaitForChild("Start"):WaitForChild("Water"):WaitForChild("Top"),
- [2] = Vector3.new(59.797119140625, 2524.4052734375, -420.59881591796875),
- [3] = Vector3.new(0.08470384031534195, -0.5462336540222168, -0.8333391547203064),
- [4] = Vector3.new(60.48609924316406, 2519.962158203125, -427.3771667480469)
- }
- local firing = false
- local function stopFiring()
- firing = false
- end
- local function startFiring()
- if firing then return end
- firing = true
- task.spawn(function()
- while firing do
- remote:FireServer(unpack(args))
- task.wait(FIRE_DELAY)
- end
- end)
- end
- local function toggle()
- if firing then
- stopFiring()
- print("[Toggle] OFF")
- else
- startFiring()
- print("[Toggle] ON")
- end
- end
- -- Keybind handler
- UserInputService.InputBegan:Connect(function(input, gameProcessed)
- if gameProcessed then return end
- if input.KeyCode == TOGGLE_KEY then
- toggle()
- end
- end)
- end
- coroutine.wrap(PCFTBQF_fake_script)()
- local function OJHIJ_fake_script() -- AutoTPSurfaceButton.LocalScript
- local script = Instance.new('LocalScript', AutoTPSurfaceButton)
- local Players = game:GetService("Players")
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local UserInputService = game:GetService("UserInputService")
- local player = Players.LocalPlayer
- local button = script.Parent
- local enabled = false
- local savedPosition = nil
- -- Change this to whatever key you want
- local TOGGLE_KEY = Enum.KeyCode.T
- local remote = ReplicatedStorage
- :WaitForChild("VerdantRemotes")
- :WaitForChild("VDT_ChunkRescue")
- local function updateButton()
- if enabled then
- button.Text = "TP: ON"
- else
- button.Text = "TP: OFF"
- end
- end
- local function toggle()
- enabled = not enabled
- updateButton()
- if enabled then
- local character = player.Character
- local root = character and character:FindFirstChild("HumanoidRootPart")
- if root then
- -- Save the current position
- savedPosition = root.Position
- -- Fire the remote
- remote:FireServer()
- end
- end
- end
- UserInputService.InputBegan:Connect(function(input, gameProcessed)
- if gameProcessed then return end
- if input.KeyCode == TOGGLE_KEY then
- toggle()
- end
- end)
- -- Button can also toggle it
- button.MouseButton1Click:Connect(toggle)
- updateButton()
- end
- coroutine.wrap(OJHIJ_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment