Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Objects
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local Title = Instance.new("TextLabel")
- local TpTool = Instance.new("TextButton")
- local TpToTheEnd = Instance.new("TextButton")
- local NoClip = Instance.new("TextButton")
- local Btools = Instance.new("TextButton")
- -- Properties
- ScreenGui.Parent = game.CoreGui
- Frame.Parent = ScreenGui
- Frame.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame.Position = UDim2.new(0.265346527, 0, 0.356200546, 0)
- Frame.Size = UDim2.new(0, 365, 0, 317)
- Frame.Style = Enum.FrameStyle.DropShadow
- Frame.Active = true
- Frame.Draggable = true
- Title.Name = "Title"
- Title.Parent = Frame
- Title.BackgroundColor3 = Color3.new(0, 0, 0)
- Title.Position = UDim2.new(-0.00261966325, 0, -0.0255550575, 0)
- Title.Size = UDim2.new(0, 350, 0, 30)
- Title.Font = Enum.Font.SourceSans
- Title.Text = "NightHax V2"
- Title.TextColor3 = Color3.new(1, 1, 1)
- Title.TextScaled = true
- Title.TextSize = 14
- Title.TextWrapped = true
- TpTool.Name = "Tp Tool"
- TpTool.Parent = Frame
- TpTool.BackgroundColor3 = Color3.new(0, 0, 0.498039)
- TpTool.Position = UDim2.new(-0.00261966325, 0, 0.120769411, 0)
- TpTool.Size = UDim2.new(0, 121, 0, 50)
- TpTool.Font = Enum.Font.Cartoon
- TpTool.Text = "Tp Tool"
- TpTool.TextColor3 = Color3.new(0, 0, 0)
- TpTool.TextScaled = true
- TpTool.TextSize = 14
- TpTool.TextWrapped = true
- TpTool.MouseButton1Down:connect(function()
- mouse = game.Players.LocalPlayer:GetMouse()
- tool = Instance.new("Tool")
- tool.RequiresHandle = false
- tool.Name = "Click Teleport"
- tool.Activated:connect(function()
- local pos = mouse.Hit+Vector3.new(0,2.5,0)
- pos = CFrame.new(pos.X,pos.Y,pos.Z)
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = pos
- end)
- tool.Parent = game.Players.LocalPlayer.Backpack
- end)
- TpToTheEnd.Name = "Tp To The End "
- TpToTheEnd.Parent = Frame
- TpToTheEnd.BackgroundColor3 = Color3.new(0, 0, 0.498039)
- TpToTheEnd.Position = UDim2.new(0.624777555, 0, 0.120769411, 0)
- TpToTheEnd.Size = UDim2.new(0, 121, 0, 50)
- TpToTheEnd.Font = Enum.Font.Cartoon
- TpToTheEnd.Text = "Tp TO End Build Boat"
- TpToTheEnd.TextColor3 = Color3.new(0, 0, 0)
- TpToTheEnd.TextScaled = true
- TpToTheEnd.TextSize = 14
- TpToTheEnd.TextWrapped = true
- TpToTheEnd.MouseButton1Down:connect(function()
- local BuildABoatForTreasureFarmGUI = Instance.new("ScreenGui")
- local MainFrame = Instance.new("Frame")
- local Deco = Instance.new("TextLabel")
- local SpeedTextBox = Instance.new("TextBox")
- local SpeedDeco = Instance.new("TextLabel")
- local OnceButton = Instance.new("TextButton")
- local AutofarmButton = Instance.new("TextButton")
- local AutofarmDeco = Instance.new("TextLabel")
- BuildABoatForTreasureFarmGUI.Name = "BuildABoatForTreasureFarmGUI"
- BuildABoatForTreasureFarmGUI.Parent = game.CoreGui
- MainFrame.Name = "MainFrame"
- MainFrame.Parent = BuildABoatForTreasureFarmGUI
- MainFrame.Active = true
- MainFrame.Draggable = true
- MainFrame.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
- MainFrame.BorderSizePixel = 0
- MainFrame.Position = UDim2.new(0.25, 0, 0.25, 0)
- MainFrame.Size = UDim2.new(0.15, 0, 0.15, 0)
- Deco.Name = "Deco"
- Deco.Parent = MainFrame
- Deco.BackgroundColor3 = Color3.new(1, 1, 1)
- Deco.BackgroundTransparency = 0.9
- Deco.BorderSizePixel = 0
- Deco.Size = UDim2.new(1, 0, 0.15, 0)
- Deco.Font = Enum.Font.SourceSansBold
- Deco.Text = "Build A Boat For Treasure Gold GUI"
- Deco.TextColor3 = Color3.new(1, 1, 1)
- Deco.TextScaled = true
- Deco.TextSize = 14
- Deco.TextWrapped = true
- SpeedTextBox.Name = "SpeedTextBox"
- SpeedTextBox.Parent = MainFrame
- SpeedTextBox.BackgroundColor3 = Color3.new(1, 1, 1)
- SpeedTextBox.BackgroundTransparency = 0.9
- SpeedTextBox.Position = UDim2.new(0.55, 0, 0.25, 0)
- SpeedTextBox.Size = UDim2.new(0.35, 0, 0.15, 0)
- SpeedTextBox.Font = Enum.Font.SourceSansBold
- SpeedTextBox.Text = "45"
- SpeedTextBox.TextColor3 = Color3.new(1, 1, 1)
- SpeedTextBox.TextScaled = true
- SpeedTextBox.TextSize = 14
- SpeedTextBox.TextWrapped = true
- SpeedDeco.Name = "SpeedDeco"
- SpeedDeco.Parent = MainFrame
- SpeedDeco.BackgroundColor3 = Color3.new(1, 1, 1)
- SpeedDeco.BackgroundTransparency = 1
- SpeedDeco.BorderSizePixel = 0
- SpeedDeco.Position = UDim2.new(0.1, 0, 0.25, 0)
- SpeedDeco.Size = UDim2.new(0.40, 0, 0.15, 0)
- SpeedDeco.Font = Enum.Font.SourceSansBold
- SpeedDeco.Text = "Speed"
- SpeedDeco.TextColor3 = Color3.new(1, 1, 1)
- SpeedDeco.TextScaled = true
- SpeedDeco.TextSize = 14
- SpeedDeco.TextWrapped = true
- OnceButton.Name = "OnceButton"
- OnceButton.Parent = MainFrame
- OnceButton.BackgroundColor3 = Color3.new(0, 0, 0)
- OnceButton.BorderSizePixel = 0
- OnceButton.Position = UDim2.new(0.1, 0, 0.55, 0)
- OnceButton.Size = UDim2.new(0.8, 0, 0.2, 0)
- OnceButton.Font = Enum.Font.SourceSans
- OnceButton.Text = "Go once"
- OnceButton.TextColor3 = Color3.new(1, 0.85098, 0)
- OnceButton.TextScaled = true
- OnceButton.TextSize = 14
- OnceButton.TextWrapped = true
- AutofarmButton.Name = "AutofarmButton"
- AutofarmButton.Parent = MainFrame
- AutofarmButton.BackgroundColor3 = Color3.new(0, 0, 0)
- AutofarmButton.BorderSizePixel = 0
- AutofarmButton.Position = UDim2.new(0.55, 0, 0.8, 0)
- AutofarmButton.Size = UDim2.new(0.35, 0, 0.15, 0)
- AutofarmButton.Font = Enum.Font.SourceSans
- AutofarmButton.Text = "OFF"
- AutofarmButton.TextColor3 = Color3.new(1, 0, 0)
- AutofarmButton.TextScaled = true
- AutofarmButton.TextSize = 14
- AutofarmButton.TextWrapped = true
- AutofarmDeco.Name = "AutofarmDeco"
- AutofarmDeco.Parent = MainFrame
- AutofarmDeco.BackgroundColor3 = Color3.new(1, 1, 1)
- AutofarmDeco.BackgroundTransparency = 1
- AutofarmDeco.BorderSizePixel = 0
- AutofarmDeco.Position = UDim2.new(0.1, 0, 0.8, 0)
- AutofarmDeco.Size = UDim2.new(0.40, 0, 0.15, 0)
- AutofarmDeco.Font = Enum.Font.SourceSansBold
- AutofarmDeco.Text = "Autofarm"
- AutofarmDeco.TextColor3 = Color3.new(1, 1, 1)
- AutofarmDeco.TextScaled = true
- AutofarmDeco.TextSize = 14
- AutofarmDeco.TextWrapped = true
- local running = false
- spawn(function()
- game:getService("RunService"):BindToRenderStep("", 0,function()
- pcall(function()
- if not game.Players.LocalPlayer.Character:findFirstChildOfClass("Humanoid") then return end
- if not running == true then return end
- game.Players.LocalPlayer.Character:findFirstChildOfClass("Humanoid"):ChangeState(11)
- end)
- end)
- end)
- function doTheThing()
- if running == false then
- local checks = workspace.BoatTerrains:getDescendants()
- for i=1,#checks do
- running = true
- if checks[i].Name == "DarknessPart" or checks[i].Name == "GatePart" then
- if game.Players.LocalPlayer.Character:FindFirstChild("Humanoid") then
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = checks[i].CFrame
- end
- wait(18.9/tonumber(SpeedTextBox.Text)) -- lol dont ask
- end
- end
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = workspace.GoldenChest.Collider.CFrame
- repeat
- if game.Players.LocalPlayer.Character:FindFirstChild("Humanoid") then
- game.Players.LocalPlayer.Character.Humanoid.Jump = true
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = workspace.GoldenChest.Collider.CFrame
- end
- wait()
- until not game.Players.LocalPlayer.Character:FindFirstChild("Humanoid")
- running = false
- end
- end
- OnceButton.MouseButton1Down:connect(function()
- doTheThing()
- end)
- local autofarming = false
- AutofarmButton.MouseButton1Down:connect(function()
- if AutofarmButton.Text == "ON" then
- AutofarmButton.Text = "OFF"
- AutofarmButton.TextColor3 = Color3.fromRGB(255,0,0)
- autofarming = false
- running = false
- else
- AutofarmButton.Text = "ON"
- AutofarmButton.TextColor3 = Color3.fromRGB(0,255,0)
- autofarming = true
- end
- end)
- spawn(function()
- while true do
- wait(0.1)
- if autofarming == true then
- doTheThing()
- end
- end
- end)
- end)
- NoClip.Name = "NoClip"
- NoClip.Parent = Frame
- NoClip.BackgroundColor3 = Color3.new(0, 0, 0.498039)
- NoClip.Position = UDim2.new(-0.00535945594, 0, 0.477236271, 0)
- NoClip.Size = UDim2.new(0, 121, 0, 50)
- NoClip.Font = Enum.Font.Cartoon
- NoClip.Text = "NoClip"
- NoClip.TextColor3 = Color3.new(0, 0, 0)
- NoClip.TextScaled = true
- NoClip.TextSize = 14
- NoClip.TextWrapped = true
- NoClip.MouseButton1Down:connect(function()
- game:GetService("Players").LocalPlayer.Character.RightHand.Touched:connect(function(obj)
- if obj ~= workspace.Terrain then
- obj.CanCollide = false
- wait(1)
- obj.CanCollide = true
- end
- end)
- end)
- Btools.Name = "Btools"
- Btools.Parent = Frame
- Btools.BackgroundColor3 = Color3.new(0, 0, 0.498039)
- Btools.Position = UDim2.new(0.624777496, 0, 0.477236271, 0)
- Btools.Size = UDim2.new(0, 121, 0, 50)
- Btools.Font = Enum.Font.Cartoon
- Btools.Text = "Btools"
- Btools.TextColor3 = Color3.new(0, 0, 0)
- Btools.TextScaled = true
- Btools.TextSize = 14
- Btools.TextWrapped = true
- Btools.MouseButton1Down:connect(function()
- if child.ClassName == "MeshPart" then
- child.Locked = false
- end
- if child.ClassName == "UnionOperation" then
- child.Locked = false
- end
- if child.ClassName == "Model" then
- for index, chil in pairs(child:GetChildren()) do
- if chil.ClassName == "Part" then
- chil.Locked = false
- end
- if chil.ClassName == "MeshPart" then
- chil.Locked = false
- end
- if chil.ClassName == "UnionOperation" then
- chil.Locked = false
- end
- if chil.ClassName == "Model" then
- for index, childe in pairs(chil:GetChildren()) do
- if childe.ClassName == "Part" then
- childe.Locked = false
- end
- if childe.ClassName == "MeshPart" then
- childe.Locked = false
- end
- if childe.ClassName == "UnionOperation" then
- childe.Locked = false
- end
- if childe.ClassName == "Model" then
- for index, childeo in pairs(childe:GetChildren()) do
- if childeo.ClassName == "Part" then
- childeo.Locked = false
- end
- if childeo.ClassName == "MeshPart" then
- childeo.Locked = false
- end
- if childeo.ClassName == "UnionOperation" then
- childeo.Locked = false
- end
- if childeo.ClassName == "Model" then
- end
- end
- end
- end
- end
- end
- end
- end
- c = Instance.new("HopperBin", game:GetService("Players").LocalPlayer.Backpack)
- c.BinType = Enum.BinType.Hammer
- c = Instance.new("HopperBin", game:GetService("Players").LocalPlayer.Backpack)
- c.BinType = Enum.BinType.Clone
- c = Instance.new("HopperBin", game:GetService("Players").LocalPlayer.Backpack)
- c.BinType = Enum.BinType.Grab
- end)
Advertisement
Add Comment
Please, Sign In to add comment