Fauzan1GDR

Script Hack Buil A Boat For Treasure !

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