Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local UserInputService = game:GetService("UserInputService")
- local Players = game:GetService("Players")
- local LocalPlayer = Players.LocalPlayer
- local Character = LocalPlayer.Character
- local Humanoid = Character:WaitForChild("Humanoid")
- local gui = Instance.new("ScreenGui")
- local frame = Instance.new("Frame")
- local toggleButton = Instance.new("TextButton")
- local collectButton = Instance.new("TextButton")
- -- GUI Setup
- gui.Name = "PhoenixMusic_DeadRailsAutoBond"
- gui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- frame.Size = UDim2.new(0, 200, 0, 100)
- frame.Position = UDim2.new(0, 10, 0, 10)
- frame.BackgroundTransparency = 1
- frame.Parent = gui
- toggleButton.Size = UDim2.new(1, 0, 0, 30)
- toggleButton.Position = UDim2.new(0, 0, 0, 0)
- toggleButton.Text = "Toggle Auto Bond"
- toggleButton.TextColor3 = Color3.new(1, 1, 1)
- toggleButton.BackgroundTransparency = 0.5
- toggleButton.Font = Enum.Font.SourceSansBold
- toggleButton.TextSize = 14
- toggleButton.Parent = frame
- collectButton.Size = UDim2.new(1, 0, 0, 30)
- collectButton.Position = UDim2.new(0, 0, 0, 30)
- collectButton.Text = "Collect Bonds"
- collectButton.TextColor3 = Color3.new(1, 1, 1)
- collectButton.BackgroundTransparency = 0.5
- collectButton.Font = Enum.Font.SourceSansBold
- collectButton.TextSize = 14
- collectButton.Parent = frame
- local isAutoBondEnabled = false
- toggleButton.MouseButton1Click:Connect(function()
- isAutoBondEnabled = not isAutoBondEnabled
- toggleButton.Text = isAutoBondEnabled and "Disable Auto Bond" or "Enable Auto Bond"
- end)
- collectButton.MouseButton1Click:Connect(function()
- for _, part in ipairs(workspace.Bonds:GetDescendants()) do
- if part:IsA("BasePart") then
- part.CanCollide = false
- part.Size = Vector3.new(5, 5, 5)
- end
- end
- end)
- spawn(function()
- while task.wait(1) do
- if isAutoBondEnabled then
- for _, part in ipairs(workspace.Bonds:GetDescendants()) do
- if part:IsA("BasePart") then
- part.CanCollide = false
- part.Size = Vector3.new(5, 5, 5)
- end
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment