Advertisement
hackerslayercohen11

build a boat

Apr 3rd, 2020
1,051
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.21 KB | None | 0 0
  1. local Deco = Instance.new("TextLabel")
  2. local SpeedTextBox = Instance.new("TextBox")
  3. local SpeedDeco = Instance.new("TextLabel")
  4. local OnceButton = Instance.new("TextButton")
  5. local AutofarmButton = Instance.new("TextButton")
  6. local AutofarmDeco = Instance.new("TextLabel")
  7.  
  8. BuildABoatForTreasureFarmGUI.Name = "BuildABoatForTreasureFarmGUI"
  9. BuildABoatForTreasureFarmGUI.Parent = game.CoreGui
  10.  
  11. MainFrame.Name = "MainFrame"
  12. MainFrame.Parent = BuildABoatForTreasureFarmGUI
  13. MainFrame.Active = true
  14. MainFrame.Draggable = true
  15. MainFrame.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  16. MainFrame.BorderSizePixel = 0
  17. MainFrame.Position = UDim2.new(0.25, 0, 0.25, 0)
  18. MainFrame.Size = UDim2.new(0.15, 0, 0.15, 0)
  19.  
  20. Deco.Name = "Deco"
  21. Deco.Parent = MainFrame
  22. Deco.BackgroundColor3 = Color3.new(1, 1, 1)
  23. Deco.BackgroundTransparency = 0.9
  24. Deco.BorderSizePixel = 0
  25. Deco.Size = UDim2.new(1, 0, 0.15, 0)
  26. Deco.Font = Enum.Font.SourceSansBold
  27. Deco.Text = "Build A Boat For Treasure Gold GUI"
  28. Deco.TextColor3 = Color3.new(1, 1, 1)
  29. Deco.TextScaled = true
  30. Deco.TextSize = 14
  31. Deco.TextWrapped = true
  32.  
  33. SpeedTextBox.Name = "SpeedTextBox"
  34. SpeedTextBox.Parent = MainFrame
  35. SpeedTextBox.BackgroundColor3 = Color3.new(1, 1, 1)
  36. SpeedTextBox.BackgroundTransparency = 0.9
  37. SpeedTextBox.Position = UDim2.new(0.55, 0, 0.25, 0)
  38. SpeedTextBox.Size = UDim2.new(0.35, 0, 0.15, 0)
  39. SpeedTextBox.Font = Enum.Font.SourceSansBold
  40. SpeedTextBox.Text = "45"
  41. SpeedTextBox.TextColor3 = Color3.new(1, 1, 1)
  42. SpeedTextBox.TextScaled = true
  43. SpeedTextBox.TextSize = 14
  44. SpeedTextBox.TextWrapped = true
  45.  
  46. SpeedDeco.Name = "SpeedDeco"
  47. SpeedDeco.Parent = MainFrame
  48. SpeedDeco.BackgroundColor3 = Color3.new(1, 1, 1)
  49. SpeedDeco.BackgroundTransparency = 1
  50. SpeedDeco.BorderSizePixel = 0
  51. SpeedDeco.Position = UDim2.new(0.1, 0, 0.25, 0)
  52. SpeedDeco.Size = UDim2.new(0.40, 0, 0.15, 0)
  53. SpeedDeco.Font = Enum.Font.SourceSansBold
  54. SpeedDeco.Text = "Speed"
  55. SpeedDeco.TextColor3 = Color3.new(1, 1, 1)
  56. SpeedDeco.TextScaled = true
  57. SpeedDeco.TextSize = 14
  58. SpeedDeco.TextWrapped = true
  59.  
  60. OnceButton.Name = "OnceButton"
  61. OnceButton.Parent = MainFrame
  62. OnceButton.BackgroundColor3 = Color3.new(0, 0, 0)
  63. OnceButton.BorderSizePixel = 0
  64. OnceButton.Position = UDim2.new(0.1, 0, 0.55, 0)
  65. OnceButton.Size = UDim2.new(0.8, 0, 0.2, 0)
  66. OnceButton.Font = Enum.Font.SourceSans
  67. OnceButton.Text = "Go once"
  68. OnceButton.TextColor3 = Color3.new(1, 0.85098, 0)
  69. OnceButton.TextScaled = true
  70. OnceButton.TextSize = 14
  71. OnceButton.TextWrapped = true
  72.  
  73. AutofarmButton.Name = "AutofarmButton"
  74. AutofarmButton.Parent = MainFrame
  75. AutofarmButton.BackgroundColor3 = Color3.new(0, 0, 0)
  76. AutofarmButton.BorderSizePixel = 0
  77. AutofarmButton.Position = UDim2.new(0.55, 0, 0.8, 0)
  78. AutofarmButton.Size = UDim2.new(0.35, 0, 0.15, 0)
  79. AutofarmButton.Font = Enum.Font.SourceSans
  80. AutofarmButton.Text = "OFF"
  81. AutofarmButton.TextColor3 = Color3.new(1, 0, 0)
  82. AutofarmButton.TextScaled = true
  83. AutofarmButton.TextSize = 14
  84. AutofarmButton.TextWrapped = true
  85.  
  86. AutofarmDeco.Name = "AutofarmDeco"
  87. AutofarmDeco.Parent = MainFrame
  88. AutofarmDeco.BackgroundColor3 = Color3.new(1, 1, 1)
  89. AutofarmDeco.BackgroundTransparency = 1
  90. AutofarmDeco.BorderSizePixel = 0
  91. AutofarmDeco.Position = UDim2.new(0.1, 0, 0.8, 0)
  92. AutofarmDeco.Size = UDim2.new(0.40, 0, 0.15, 0)
  93. AutofarmDeco.Font = Enum.Font.SourceSansBold
  94. AutofarmDeco.Text = "Autofarm"
  95. AutofarmDeco.TextColor3 = Color3.new(1, 1, 1)
  96. AutofarmDeco.TextScaled = true
  97. AutofarmDeco.TextSize = 14
  98. AutofarmDeco.TextWrapped = true
  99.  
  100.  
  101.  
  102. local running = false
  103.  
  104.  
  105. spawn(function()
  106. game:getService("RunService"):BindToRenderStep("", 0,function()
  107. pcall(function()
  108. if not game.Players.LocalPlayer.Character:findFirstChildOfClass("Humanoid") then return end
  109. if not running == true then return end
  110. game.Players.LocalPlayer.Character:findFirstChildOfClass("Humanoid"):ChangeState(11)
  111. end)
  112. end)
  113. end)
  114.  
  115. function doTheThing()
  116. if running == false then
  117. local checks = workspace.BoatTerrains:getDescendants()
  118. for i=1,#checks do
  119. running = true
  120. if checks[i].Name == "DarknessPart" or checks[i].Name == "GatePart" then
  121. if game.Players.LocalPlayer.Character:FindFirstChild("Humanoid") then
  122. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = checks[i].CFrame
  123. end
  124. wait(18.9/tonumber(SpeedTextBox.Text)) -- lol dont ask
  125. end
  126. end
  127. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = workspace.GoldenChest.Collider.CFrame
  128. repeat
  129. if game.Players.LocalPlayer.Character:FindFirstChild("Humanoid") then
  130. game.Players.LocalPlayer.Character.Humanoid.Jump = true
  131. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = workspace.GoldenChest.Collider.CFrame
  132. end
  133. wait()
  134. until not game.Players.LocalPlayer.Character:FindFirstChild("Humanoid")
  135. running = false
  136. end
  137. end
  138.  
  139. OnceButton.MouseButton1Down:connect(function()
  140. doTheThing()
  141. end)
  142.  
  143. local autofarming = false
  144. AutofarmButton.MouseButton1Down:connect(function()
  145. if AutofarmButton.Text == "ON" then
  146. AutofarmButton.Text = "OFF"
  147. AutofarmButton.TextColor3 = Color3.fromRGB(255,0,0)
  148. autofarming = false
  149. running = false
  150. else
  151. AutofarmButton.Text = "ON"
  152. AutofarmButton.TextColor3 = Color3.fromRGB(0,255,0)
  153. autofarming = true
  154. end
  155. end)
  156.  
  157. spawn(function()
  158. while true do
  159. wait(0.1)
  160. if autofarming == true then
  161. doTheThing()
  162. end
  163. end
  164. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement