-- 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)Features
WalkSpeed changer
JumpPower changer
Fly (toggle)
Infinite Jump
Noclip
Auto Farm Gold (teleport path)
Auto Win (teleport to end)
Godmode (anti-damage)
Anti Void
Rejoin button
No comments yet. Be the first to comment!
1-- Build A Boat For Treasure Hub
2-- LocalScript / Executor Script
3
4local Players = game:GetService("Players")
5local UIS = game:GetService("UserInputService")
6local RunService = game:GetService("RunService")
7local TeleportService = game:GetService("TeleportService")
8
9local lp = Players.LocalPlayer
10local char = lp.Character or lp.CharacterAdded:Wait()
11local hum = char:WaitForChild("Humanoid")
12local root = char:WaitForChild("HumanoidRootPart")
13
14-- Refresh on respawn
15lp.CharacterAdded:Connect(function(c)
16 char = c
17 hum = c:WaitForChild("Humanoid")
18 root = c:WaitForChild("HumanoidRootPart")
19end)
20
21-- GUI
22local gui = Instance.new("ScreenGui", lp.PlayerGui)
23gui.Name = "BABHub"
24gui.ResetOnSpawn = false
25
26local main = Instance.new("Frame", gui)
27main.Size = UDim2.fromScale(0.32, 0.42)
28main.Position = UDim2.fromScale(0.34, 0.28)
29main.BackgroundColor3 = Color3.fromRGB(30,30,30)
30main.BorderSizePixel = 0
31main.Active = true
32main.Draggable = true
33
34local title = Instance.new("TextLabel", main)
35title.Size = UDim2.fromScale(1, 0.12)
36title.BackgroundTransparency = 1
37title.Text = "🛶 Build A Boat Hub"
38title.TextColor3 = Color3.new(1,1,1)
39title.Font = Enum.Font.GothamBold
40title.TextScaled = true
41
42local layout = Instance.new("UIListLayout", main)
43layout.Padding = UDim.new(0,6)
44layout.HorizontalAlignment = Enum.HorizontalAlignment.Center
45
46-- Button creator
47local function button(text)
48 local b = Instance.new("TextButton", main)
49 b.Size = UDim2.fromScale(0.9, 0.1)
50 b.Text = text
51 b.BackgroundColor3 = Color3.fromRGB(50,50,50)
52 b.TextColor3 = Color3.new(1,1,1)
53 b.Font = Enum.Font.Gotham
54 b.TextScaled = true
55 return b
56end
57
58local function box(placeholder)
59 local t = Instance.new("TextBox", main)
60 t.Size = UDim2.fromScale(0.9, 0.1)
61 t.PlaceholderText = placeholder
62 t.Text = ""
63 t.BackgroundColor3 = Color3.fromRGB(45,45,45)
64 t.TextColor3 = Color3.new(1,1,1)
65 t.Font = Enum.Font.Gotham
66 t.TextScaled = true
67 return t
68end
69
70-- WalkSpeed
71local wsBox = box("WalkSpeed")
72wsBox.FocusLost:Connect(function()
73 hum.WalkSpeed = tonumber(wsBox.Text) or 16
74end)
75
76-- JumpPower
77local jpBox = box("JumpPower")
78jpBox.FocusLost:Connect(function()
79 hum.JumpPower = tonumber(jpBox.Text) or 50
80end)
81
82-- Infinite Jump
83local infJump = false
84button("Infinite Jump (Toggle)").MouseButton1Click:Connect(function()
85 infJump = not infJump
86end)
87
88UIS.JumpRequest:Connect(function()
89 if infJump then
90 hum:ChangeState(Enum.HumanoidStateType.Jumping)
91 end
92end)
93
94-- Noclip
95local noclip = false
96button("Noclip (Toggle)").MouseButton1Click:Connect(function()
97 noclip = not noclip
98end)
99
100RunService.Stepped:Connect(function()
101 if noclip then
102 for _,v in pairs(char:GetDescendants()) do
103 if v:IsA("BasePart") then
104 v.CanCollide = false
105 end
106 end
107 end
108end)
109
110-- Fly
111local flying = false
112local bv, bg
113
114button("Fly (Toggle)").MouseButton1Click:Connect(function()
115 flying = not flying
116 if flying then
117 bv = Instance.new("BodyVelocity", root)
118 bg = Instance.new("BodyGyro", root)
119 bv.MaxForce = Vector3.new(1e9,1e9,1e9)
120 bg.MaxTorque = Vector3.new(1e9,1e9,1e9)
121
122 RunService.RenderStepped:Connect(function()
123 if flying then
124 bv.Velocity = workspace.CurrentCamera.CFrame.LookVector * 80
125 bg.CFrame = workspace.CurrentCamera.CFrame
126 end
127 end)
128 else
129 if bv then bv:Destroy() end
130 if bg then bg:Destroy() end
131 end
132end)
133
134-- Auto Win
135button("Auto Win (Teleport End)").MouseButton1Click:Connect(function()
136 root.CFrame = CFrame.new(0, 10, -10000)
137end)
138
139-- Auto Farm Gold (simple)
140button("Auto Farm Gold").MouseButton1Click:Connect(function()
141 for i = 1, 8 do
142 root.CFrame = root.CFrame * CFrame.new(0, 0, -1200)
143 task.wait(0.4)
144 end
145end)
146
147-- Godmode
148button("Godmode").MouseButton1Click:Connect(function()
149 hum.MaxHealth = math.huge
150 hum.Health = math.huge
151end)
152
153-- Anti Void
154RunService.Heartbeat:Connect(function()
155 if root.Position.Y < -20 then
156 root.CFrame = CFrame.new(0, 20, 0)
157 end
158end)
159
160-- Rejoin
161button("Rejoin").MouseButton1Click:Connect(function()
162 TeleportService:Teleport(game.PlaceId, lp)
163end)