PhoenixPlayzYT

Dead rails auto bond script by Phoenix Music

Apr 15th, 2025 (edited)
518
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.15 KB | None | 0 0
  1. local UserInputService = game:GetService("UserInputService")
  2. local Players = game:GetService("Players")
  3. local LocalPlayer = Players.LocalPlayer
  4. local Character = LocalPlayer.Character
  5. local Humanoid = Character:WaitForChild("Humanoid")
  6.  
  7. local gui = Instance.new("ScreenGui")
  8. local frame = Instance.new("Frame")
  9. local toggleButton = Instance.new("TextButton")
  10. local collectButton = Instance.new("TextButton")
  11.  
  12. -- GUI Setup
  13. gui.Name = "PhoenixMusic_DeadRailsAutoBond"
  14. gui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  15.  
  16. frame.Size = UDim2.new(0, 200, 0, 100)
  17. frame.Position = UDim2.new(0, 10, 0, 10)
  18. frame.BackgroundTransparency = 1
  19. frame.Parent = gui
  20.  
  21. toggleButton.Size = UDim2.new(1, 0, 0, 30)
  22. toggleButton.Position = UDim2.new(0, 0, 0, 0)
  23. toggleButton.Text = "Toggle Auto Bond"
  24. toggleButton.TextColor3 = Color3.new(1, 1, 1)
  25. toggleButton.BackgroundTransparency = 0.5
  26. toggleButton.Font = Enum.Font.SourceSansBold
  27. toggleButton.TextSize = 14
  28. toggleButton.Parent = frame
  29.  
  30. collectButton.Size = UDim2.new(1, 0, 0, 30)
  31. collectButton.Position = UDim2.new(0, 0, 0, 30)
  32. collectButton.Text = "Collect Bonds"
  33. collectButton.TextColor3 = Color3.new(1, 1, 1)
  34. collectButton.BackgroundTransparency = 0.5
  35. collectButton.Font = Enum.Font.SourceSansBold
  36. collectButton.TextSize = 14
  37. collectButton.Parent = frame
  38.  
  39. local isAutoBondEnabled = false
  40.  
  41. toggleButton.MouseButton1Click:Connect(function()
  42. isAutoBondEnabled = not isAutoBondEnabled
  43. toggleButton.Text = isAutoBondEnabled and "Disable Auto Bond" or "Enable Auto Bond"
  44. end)
  45.  
  46. collectButton.MouseButton1Click:Connect(function()
  47. for _, part in ipairs(workspace.Bonds:GetDescendants()) do
  48. if part:IsA("BasePart") then
  49. part.CanCollide = false
  50. part.Size = Vector3.new(5, 5, 5)
  51. end
  52. end
  53. end)
  54.  
  55. spawn(function()
  56. while task.wait(1) do
  57. if isAutoBondEnabled then
  58. for _, part in ipairs(workspace.Bonds:GetDescendants()) do
  59. if part:IsA("BasePart") then
  60. part.CanCollide = false
  61. part.Size = Vector3.new(5, 5, 5)
  62. end
  63. end
  64. end
  65. end
  66. end)
  67.  
Advertisement
Add Comment
Please, Sign In to add comment