-- Build A Boat For Treasure Hub -- LocalScript / Executor Script local Players = game:GetService("Players") local UIS = game:GetService("UserInputService") local RunService = game:GetService("RunService") local TeleportService = game:GetService("TeleportService") local lp = Players.LocalPlayer local char = lp.Character or lp.CharacterAdded:Wait() local hum = char:WaitForChild("Humanoid") local root = char:WaitForChild("HumanoidRootPart") -- Refresh on respawn lp.CharacterAdded:Connect(function(c) char = c hum = c:WaitForChild("Humanoid") root = c:WaitForChild("HumanoidRootPart") end) -- GUI local gui = Instance.new("ScreenGui", lp.PlayerGui) gui.Name = "BABHub" gui.ResetOnSpawn = false local main = Instance.new("Frame", gui) main.Size = UDim2.fromScale(0.32, 0.42) main.Position = UDim2.fromScale(0.34, 0.28) main.BackgroundColor3 = Color3.fromRGB(30,30,30) main.BorderSizePixel = 0 main.Active = true main.Draggable = true local title = Instance.new("TextLabel", main) title.Size = UDim2.fromScale(1, 0.12) title.BackgroundTransparency = 1 title.Text = "🛶 Build A Boat Hub" title.TextColor3 = Color3.new(1,1,1) title.Font = Enum.Font.GothamBold title.TextScaled = true local layout = Instance.new("UIListLayout", main) layout.Padding = UDim.new(0,6) layout.HorizontalAlignment = Enum.HorizontalAlignment.Center -- Button creator local function button(text) local b = Instance.new("TextButton", main) b.Size = UDim2.fromScale(0.9, 0.1) b.Text = text b.BackgroundColor3 = Color3.fromRGB(50,50,50) b.TextColor3 = Color3.new(1,1,1) b.Font = Enum.Font.Gotham b.TextScaled = true return b end local function box(placeholder) local t = Instance.new("TextBox", main) t.Size = UDim2.fromScale(0.9, 0.1) t.PlaceholderText = placeholder t.Text = "" t.BackgroundColor3 = Color3.fromRGB(45,45,45) t.TextColor3 = Color3.new(1,1,1) t.Font = Enum.Font.Gotham t.TextScaled = true return t end -- WalkSpeed local wsBox = box("WalkSpeed") wsBox.FocusLost:Connect(function() hum.WalkSpeed = tonumber(wsBox.Text) or 16 end) -- JumpPower local jpBox = box("JumpPower") jpBox.FocusLost:Connect(function() hum.JumpPower = tonumber(jpBox.Text) or 50 end) -- Infinite Jump local infJump = false button("Infinite Jump (Toggle)").MouseButton1Click:Connect(function() infJump = not infJump end) UIS.JumpRequest:Connect(function() if infJump then hum:ChangeState(Enum.HumanoidStateType.Jumping) end end) -- Noclip local noclip = false button("Noclip (Toggle)").MouseButton1Click:Connect(function() noclip = not noclip end) RunService.Stepped:Connect(function() if noclip then for _,v in pairs(char:GetDescendants()) do if v:IsA("BasePart") then v.CanCollide = false end end end end) -- Fly local flying = false local bv, bg button("Fly (Toggle)").MouseButton1Click:Connect(function() flying = not flying if flying then bv = Instance.new("BodyVelocity", root) bg = Instance.new("BodyGyro", root) bv.MaxForce = Vector3.new(1e9,1e9,1e9) bg.MaxTorque = Vector3.new(1e9,1e9,1e9) RunService.RenderStepped:Connect(function() if flying then bv.Velocity = workspace.CurrentCamera.CFrame.LookVector * 80 bg.CFrame = workspace.CurrentCamera.CFrame end end) else if bv then bv:Destroy() end if bg then bg:Destroy() end end end) -- Auto Win button("Auto Win (Teleport End)").MouseButton1Click:Connect(function() root.CFrame = CFrame.new(0, 10, -10000) end) -- Auto Farm Gold (simple) button("Auto Farm Gold").MouseButton1Click:Connect(function() for i = 1, 8 do root.CFrame = root.CFrame * CFrame.new(0, 0, -1200) task.wait(0.4) end end) -- Godmode button("Godmode").MouseButton1Click:Connect(function() hum.MaxHealth = math.huge hum.Health = math.huge end) -- Anti Void RunService.Heartbeat:Connect(function() if root.Position.Y < -20 then root.CFrame = CFrame.new(0, 20, 0) end end) -- Rejoin button("Rejoin").MouseButton1Click:Connect(function() TeleportService:Teleport(game.PlaceId, lp) end)