NightPlays

NightHaxV2

Sep 13th, 2019
533
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.73 KB | None | 0 0
  1. -- Objects
  2.  
  3. local ScreenGui = Instance.new("ScreenGui")
  4. local Frame = Instance.new("Frame")
  5. local Title = Instance.new("TextLabel")
  6. local TpTool = Instance.new("TextButton")
  7. local TpToTheEnd = Instance.new("TextButton")
  8. local NoClip = Instance.new("TextButton")
  9. local Btools = Instance.new("TextButton")
  10.  
  11. -- Properties
  12.  
  13. ScreenGui.Parent = game.CoreGui
  14.  
  15. Frame.Parent = ScreenGui
  16. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  17. Frame.Position = UDim2.new(0.265346527, 0, 0.356200546, 0)
  18. Frame.Size = UDim2.new(0, 365, 0, 317)
  19. Frame.Style = Enum.FrameStyle.DropShadow
  20. Frame.Active = true
  21. Frame.Draggable = true
  22.  
  23.  
  24. Title.Name = "Title"
  25. Title.Parent = Frame
  26. Title.BackgroundColor3 = Color3.new(0, 0, 0)
  27. Title.Position = UDim2.new(-0.00261966325, 0, -0.0255550575, 0)
  28. Title.Size = UDim2.new(0, 350, 0, 30)
  29. Title.Font = Enum.Font.SourceSans
  30. Title.Text = "NightHax V2"
  31. Title.TextColor3 = Color3.new(1, 1, 1)
  32. Title.TextScaled = true
  33. Title.TextSize = 14
  34. Title.TextWrapped = true
  35.  
  36. TpTool.Name = "Tp Tool"
  37. TpTool.Parent = Frame
  38. TpTool.BackgroundColor3 = Color3.new(0, 0, 0.498039)
  39. TpTool.Position = UDim2.new(-0.00261966325, 0, 0.120769411, 0)
  40. TpTool.Size = UDim2.new(0, 121, 0, 50)
  41. TpTool.Font = Enum.Font.Cartoon
  42. TpTool.Text = "Tp Tool"
  43. TpTool.TextColor3 = Color3.new(0, 0, 0)
  44. TpTool.TextScaled = true
  45. TpTool.TextSize = 14
  46. TpTool.TextWrapped = true
  47. TpTool.MouseButton1Down:connect(function()
  48. mouse = game.Players.LocalPlayer:GetMouse()
  49. tool = Instance.new("Tool")
  50. tool.RequiresHandle = false
  51. tool.Name = "Click Teleport"
  52. tool.Activated:connect(function()
  53. local pos = mouse.Hit+Vector3.new(0,2.5,0)
  54. pos = CFrame.new(pos.X,pos.Y,pos.Z)
  55. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = pos
  56. end)
  57. tool.Parent = game.Players.LocalPlayer.Backpack
  58. end)
  59.  
  60. TpToTheEnd.Name = "Tp To The End "
  61. TpToTheEnd.Parent = Frame
  62. TpToTheEnd.BackgroundColor3 = Color3.new(0, 0, 0.498039)
  63. TpToTheEnd.Position = UDim2.new(0.624777555, 0, 0.120769411, 0)
  64. TpToTheEnd.Size = UDim2.new(0, 121, 0, 50)
  65. TpToTheEnd.Font = Enum.Font.Cartoon
  66. TpToTheEnd.Text = "Tp TO End Build Boat"
  67. TpToTheEnd.TextColor3 = Color3.new(0, 0, 0)
  68. TpToTheEnd.TextScaled = true
  69. TpToTheEnd.TextSize = 14
  70. TpToTheEnd.TextWrapped = true
  71. TpToTheEnd.MouseButton1Down:connect(function()
  72. local BuildABoatForTreasureFarmGUI = Instance.new("ScreenGui")
  73. local MainFrame = Instance.new("Frame")
  74. local Deco = Instance.new("TextLabel")
  75. local SpeedTextBox = Instance.new("TextBox")
  76. local SpeedDeco = Instance.new("TextLabel")
  77. local OnceButton = Instance.new("TextButton")
  78. local AutofarmButton = Instance.new("TextButton")
  79. local AutofarmDeco = Instance.new("TextLabel")
  80.  
  81. BuildABoatForTreasureFarmGUI.Name = "BuildABoatForTreasureFarmGUI"
  82. BuildABoatForTreasureFarmGUI.Parent = game.CoreGui
  83.  
  84. MainFrame.Name = "MainFrame"
  85. MainFrame.Parent = BuildABoatForTreasureFarmGUI
  86. MainFrame.Active = true
  87. MainFrame.Draggable = true
  88. MainFrame.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  89. MainFrame.BorderSizePixel = 0
  90. MainFrame.Position = UDim2.new(0.25, 0, 0.25, 0)
  91. MainFrame.Size = UDim2.new(0.15, 0, 0.15, 0)
  92.  
  93. Deco.Name = "Deco"
  94. Deco.Parent = MainFrame
  95. Deco.BackgroundColor3 = Color3.new(1, 1, 1)
  96. Deco.BackgroundTransparency = 0.9
  97. Deco.BorderSizePixel = 0
  98. Deco.Size = UDim2.new(1, 0, 0.15, 0)
  99. Deco.Font = Enum.Font.SourceSansBold
  100. Deco.Text = "Build A Boat For Treasure Gold GUI"
  101. Deco.TextColor3 = Color3.new(1, 1, 1)
  102. Deco.TextScaled = true
  103. Deco.TextSize = 14
  104. Deco.TextWrapped = true
  105.  
  106. SpeedTextBox.Name = "SpeedTextBox"
  107. SpeedTextBox.Parent = MainFrame
  108. SpeedTextBox.BackgroundColor3 = Color3.new(1, 1, 1)
  109. SpeedTextBox.BackgroundTransparency = 0.9
  110. SpeedTextBox.Position = UDim2.new(0.55, 0, 0.25, 0)
  111. SpeedTextBox.Size = UDim2.new(0.35, 0, 0.15, 0)
  112. SpeedTextBox.Font = Enum.Font.SourceSansBold
  113. SpeedTextBox.Text = "45"
  114. SpeedTextBox.TextColor3 = Color3.new(1, 1, 1)
  115. SpeedTextBox.TextScaled = true
  116. SpeedTextBox.TextSize = 14
  117. SpeedTextBox.TextWrapped = true
  118.  
  119. SpeedDeco.Name = "SpeedDeco"
  120. SpeedDeco.Parent = MainFrame
  121. SpeedDeco.BackgroundColor3 = Color3.new(1, 1, 1)
  122. SpeedDeco.BackgroundTransparency = 1
  123. SpeedDeco.BorderSizePixel = 0
  124. SpeedDeco.Position = UDim2.new(0.1, 0, 0.25, 0)
  125. SpeedDeco.Size = UDim2.new(0.40, 0, 0.15, 0)
  126. SpeedDeco.Font = Enum.Font.SourceSansBold
  127. SpeedDeco.Text = "Speed"
  128. SpeedDeco.TextColor3 = Color3.new(1, 1, 1)
  129. SpeedDeco.TextScaled = true
  130. SpeedDeco.TextSize = 14
  131. SpeedDeco.TextWrapped = true
  132.  
  133. OnceButton.Name = "OnceButton"
  134. OnceButton.Parent = MainFrame
  135. OnceButton.BackgroundColor3 = Color3.new(0, 0, 0)
  136. OnceButton.BorderSizePixel = 0
  137. OnceButton.Position = UDim2.new(0.1, 0, 0.55, 0)
  138. OnceButton.Size = UDim2.new(0.8, 0, 0.2, 0)
  139. OnceButton.Font = Enum.Font.SourceSans
  140. OnceButton.Text = "Go once"
  141. OnceButton.TextColor3 = Color3.new(1, 0.85098, 0)
  142. OnceButton.TextScaled = true
  143. OnceButton.TextSize = 14
  144. OnceButton.TextWrapped = true
  145.  
  146. AutofarmButton.Name = "AutofarmButton"
  147. AutofarmButton.Parent = MainFrame
  148. AutofarmButton.BackgroundColor3 = Color3.new(0, 0, 0)
  149. AutofarmButton.BorderSizePixel = 0
  150. AutofarmButton.Position = UDim2.new(0.55, 0, 0.8, 0)
  151. AutofarmButton.Size = UDim2.new(0.35, 0, 0.15, 0)
  152. AutofarmButton.Font = Enum.Font.SourceSans
  153. AutofarmButton.Text = "OFF"
  154. AutofarmButton.TextColor3 = Color3.new(1, 0, 0)
  155. AutofarmButton.TextScaled = true
  156. AutofarmButton.TextSize = 14
  157. AutofarmButton.TextWrapped = true
  158.  
  159. AutofarmDeco.Name = "AutofarmDeco"
  160. AutofarmDeco.Parent = MainFrame
  161. AutofarmDeco.BackgroundColor3 = Color3.new(1, 1, 1)
  162. AutofarmDeco.BackgroundTransparency = 1
  163. AutofarmDeco.BorderSizePixel = 0
  164. AutofarmDeco.Position = UDim2.new(0.1, 0, 0.8, 0)
  165. AutofarmDeco.Size = UDim2.new(0.40, 0, 0.15, 0)
  166. AutofarmDeco.Font = Enum.Font.SourceSansBold
  167. AutofarmDeco.Text = "Autofarm"
  168. AutofarmDeco.TextColor3 = Color3.new(1, 1, 1)
  169. AutofarmDeco.TextScaled = true
  170. AutofarmDeco.TextSize = 14
  171. AutofarmDeco.TextWrapped = true
  172.  
  173.  
  174.  
  175. local running = false
  176.  
  177.  
  178. spawn(function()
  179. game:getService("RunService"):BindToRenderStep("", 0,function()
  180. pcall(function()
  181. if not game.Players.LocalPlayer.Character:findFirstChildOfClass("Humanoid") then return end
  182. if not running == true then return end
  183. game.Players.LocalPlayer.Character:findFirstChildOfClass("Humanoid"):ChangeState(11)
  184. end)
  185. end)
  186. end)
  187.  
  188. function doTheThing()
  189. if running == false then
  190. local checks = workspace.BoatTerrains:getDescendants()
  191. for i=1,#checks do
  192. running = true
  193. if checks[i].Name == "DarknessPart" or checks[i].Name == "GatePart" then
  194. if game.Players.LocalPlayer.Character:FindFirstChild("Humanoid") then
  195. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = checks[i].CFrame
  196. end
  197. wait(18.9/tonumber(SpeedTextBox.Text)) -- lol dont ask
  198. end
  199. end
  200. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = workspace.GoldenChest.Collider.CFrame
  201. repeat
  202. if game.Players.LocalPlayer.Character:FindFirstChild("Humanoid") then
  203. game.Players.LocalPlayer.Character.Humanoid.Jump = true
  204. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = workspace.GoldenChest.Collider.CFrame
  205. end
  206. wait()
  207. until not game.Players.LocalPlayer.Character:FindFirstChild("Humanoid")
  208. running = false
  209. end
  210. end
  211.  
  212. OnceButton.MouseButton1Down:connect(function()
  213. doTheThing()
  214. end)
  215.  
  216. local autofarming = false
  217. AutofarmButton.MouseButton1Down:connect(function()
  218. if AutofarmButton.Text == "ON" then
  219. AutofarmButton.Text = "OFF"
  220. AutofarmButton.TextColor3 = Color3.fromRGB(255,0,0)
  221. autofarming = false
  222. running = false
  223. else
  224. AutofarmButton.Text = "ON"
  225. AutofarmButton.TextColor3 = Color3.fromRGB(0,255,0)
  226. autofarming = true
  227. end
  228. end)
  229.  
  230. spawn(function()
  231. while true do
  232. wait(0.1)
  233. if autofarming == true then
  234. doTheThing()
  235. end
  236. end
  237. end)
  238. end)
  239.  
  240. NoClip.Name = "NoClip"
  241. NoClip.Parent = Frame
  242. NoClip.BackgroundColor3 = Color3.new(0, 0, 0.498039)
  243. NoClip.Position = UDim2.new(-0.00535945594, 0, 0.477236271, 0)
  244. NoClip.Size = UDim2.new(0, 121, 0, 50)
  245. NoClip.Font = Enum.Font.Cartoon
  246. NoClip.Text = "NoClip"
  247. NoClip.TextColor3 = Color3.new(0, 0, 0)
  248. NoClip.TextScaled = true
  249. NoClip.TextSize = 14
  250. NoClip.TextWrapped = true
  251. NoClip.MouseButton1Down:connect(function()
  252. game:GetService("Players").LocalPlayer.Character.RightHand.Touched:connect(function(obj)
  253. if obj ~= workspace.Terrain then
  254. obj.CanCollide = false
  255. wait(1)
  256. obj.CanCollide = true
  257. end
  258. end)
  259. end)
  260.  
  261. Btools.Name = "Btools"
  262. Btools.Parent = Frame
  263. Btools.BackgroundColor3 = Color3.new(0, 0, 0.498039)
  264. Btools.Position = UDim2.new(0.624777496, 0, 0.477236271, 0)
  265. Btools.Size = UDim2.new(0, 121, 0, 50)
  266. Btools.Font = Enum.Font.Cartoon
  267. Btools.Text = "Btools"
  268. Btools.TextColor3 = Color3.new(0, 0, 0)
  269. Btools.TextScaled = true
  270. Btools.TextSize = 14
  271. Btools.TextWrapped = true
  272. Btools.MouseButton1Down:connect(function()
  273. if child.ClassName == "MeshPart" then
  274. child.Locked = false
  275. end
  276. if child.ClassName == "UnionOperation" then
  277. child.Locked = false
  278. end
  279. if child.ClassName == "Model" then
  280. for index, chil in pairs(child:GetChildren()) do
  281. if chil.ClassName == "Part" then
  282. chil.Locked = false
  283. end
  284. if chil.ClassName == "MeshPart" then
  285. chil.Locked = false
  286. end
  287. if chil.ClassName == "UnionOperation" then
  288. chil.Locked = false
  289. end
  290. if chil.ClassName == "Model" then
  291. for index, childe in pairs(chil:GetChildren()) do
  292. if childe.ClassName == "Part" then
  293. childe.Locked = false
  294. end
  295. if childe.ClassName == "MeshPart" then
  296. childe.Locked = false
  297. end
  298. if childe.ClassName == "UnionOperation" then
  299. childe.Locked = false
  300. end
  301. if childe.ClassName == "Model" then
  302. for index, childeo in pairs(childe:GetChildren()) do
  303. if childeo.ClassName == "Part" then
  304. childeo.Locked = false
  305. end
  306. if childeo.ClassName == "MeshPart" then
  307. childeo.Locked = false
  308. end
  309. if childeo.ClassName == "UnionOperation" then
  310. childeo.Locked = false
  311. end
  312. if childeo.ClassName == "Model" then
  313. end
  314. end
  315. end
  316. end
  317. end
  318. end
  319. end
  320. end
  321. c = Instance.new("HopperBin", game:GetService("Players").LocalPlayer.Backpack)
  322. c.BinType = Enum.BinType.Hammer
  323. c = Instance.new("HopperBin", game:GetService("Players").LocalPlayer.Backpack)
  324. c.BinType = Enum.BinType.Clone
  325. c = Instance.new("HopperBin", game:GetService("Players").LocalPlayer.Backpack)
  326. c.BinType = Enum.BinType.Grab
  327. end)
Advertisement
Add Comment
Please, Sign In to add comment