Scripts Games Try Our Executor
Login Sign Up

Testing Lab

Analyzing: ToddHub

Back to Script
444 Lines
-- Functions
-- Security
-- Performance
-- Quality
-- Issues
Source Code 444 lines
1 - Dont change nothing if u dont understand what are you doing
2
3 local Workspace = game:GetService("Workspace")
4 local Players = game:GetService("Players")
5 local RunService = game:GetService("RunService")
6 local UserInputService = game:GetService("UserInputService")
7 local player = Players.LocalPlayer
8
9 local godMode = false
10 local flyMode = false
11 local flyBodyVelocity = nil
12 local flyConnection = nil
13 local noclipConnection = nil
14 local originalGravity = workspace.Gravity
15
16 local gui = Instance.new("ScreenGui")
17 gui.Name = "OceanX"
18 gui.ResetOnSpawn = false
19 gui.Parent = player.PlayerGui
20
21 local main = Instance.new("Frame")
22 main.Size = UDim2.new(0, 300, 0, 220)
23 main.Position = UDim2.new(0.5, -150, 0.5, -110)
24 main.BackgroundColor3 = Color3.fromRGB(15, 15, 25)
25 main.BorderSizePixel = 0
26 main.Active = true
27 main.Draggable = true
28 main.Parent = gui
29
30 local corner = Instance.new("UICorner")
31 corner.CornerRadius = UDim.new(0, 12)
32 corner.Parent = main
33
34 local stroke = Instance.new("UIStroke")
35 stroke.Color = Color3.fromRGB(0, 200, 255)
36 stroke.Thickness = 2
37 stroke.Parent = main
38
39 local title = Instance.new("TextLabel")
40 title.Text = "? OCEAN X by 1w69 ?"
41 title.Size = UDim2.new(1, 0, 0, 40)
42 title.BackgroundColor3 = Color3.fromRGB(25, 35, 55)
43 title.TextColor3 = Color3.fromRGB(0, 255, 255)
44 title.Font = Enum.Font.GothamBold
45 title.TextSize = 18
46 title.Parent = main
47
48 local titleCorner = Instance.new("UICorner")
49 titleCorner.CornerRadius = UDim.new(0, 12, 0, 0)
50 titleCorner.Parent = title
51
52 local closeBtn = Instance.new("TextButton")
53 closeBtn.Text = "X"
54 closeBtn.Size = UDim2.new(0, 30, 0, 30)
55 closeBtn.Position = UDim2.new(1, -35, 0, 5)
56 closeBtn.BackgroundColor3 = Color3.fromRGB(255, 60, 60)
57 closeBtn.TextColor3 = Color3.new(1, 1, 1)
58 closeBtn.Font = Enum.Font.GothamBlack
59 closeBtn.TextSize = 18
60 closeBtn.Parent = title
61
62 local content = Instance.new("Frame")
63 content.Size = UDim2.new(1, -20, 0, 160)
64 content.Position = UDim2.new(0, 10, 0, 50)
65 content.BackgroundTransparency = 1
66 content.Parent = main
67
68 local function createButton(text, yPos, color)
69 local btnFrame = Instance.new("Frame")
70 btnFrame.Size = UDim2.new(1, 0, 0, 45)
71 btnFrame.Position = UDim2.new(0, 0, 0, yPos)
72 btnFrame.BackgroundTransparency = 1
73 btnFrame.Parent = content
74
75 local btn = Instance.new("TextButton")
76 btn.Text = text
77 btn.Size = UDim2.new(1, 0, 1, 0)
78 btn.BackgroundColor3 = color
79 btn.TextColor3 = Color3.new(1, 1, 1)
80 btn.Font = Enum.Font.GothamBold
81 btn.TextSize = 14
82 btn.Parent = btnFrame
83
84 local btnCorner = Instance.new("UICorner")
85 btnCorner.CornerRadius = UDim.new(0, 8)
86 btnCorner.Parent = btn
87
88 return btn
89 end
90
91 local godBtn = createButton("God Mode beta: OFF", 0, Color3.fromRGB(255, 60, 60))
92 local flyBtn = createButton("Fly+NoClip: OFF", 50, Color3.fromRGB(60, 150, 255))
93
94 local tsunamiBox = Instance.new("Frame")
95 tsunamiBox.Size = UDim2.new(1, 0, 0, 45)
96 tsunamiBox.Position = UDim2.new(0, 0, 0, 100)
97 tsunamiBox.BackgroundColor3 = Color3.fromRGB(40, 40, 60)
98 tsunamiBox.Parent = content
99
100 local boxCorner = Instance.new("UICorner")
101 boxCorner.CornerRadius = UDim.new(0, 8)
102 boxCorner.Parent = tsunamiBox
103
104 local tsunamiText = Instance.new("TextLabel")
105 tsunamiText.Text = "Tsunami: Checking..."
106 tsunamiText.Size = UDim2.new(1, -20, 1, 0)
107 tsunamiText.Position = UDim2.new(0, 10, 0, 0)
108 tsunamiText.BackgroundTransparency = 1
109 tsunamiText.TextColor3 = Color3.new(1, 1, 1)
110 tsunamiText.Font = Enum.Font.GothamBold
111 tsunamiText.TextSize = 14
112 tsunamiText.Parent = tsunamiBox
113
114 local status = Instance.new("TextLabel")
115 status.Text = "Status: Ready"
116 status.Size = UDim2.new(1, -20, 0, 25)
117 status.Position = UDim2.new(0, 10, 1, -30)
118 status.BackgroundTransparency = 1
119 status.TextColor3 = Color3.fromRGB(180, 180, 255)
120 status.Font = Enum.Font.GothamMedium
121 status.TextSize = 12
122 status.TextXAlignment = Enum.TextXAlignment.Left
123 status.Parent = main
124
125 local function teleportToGround()
126 local character = player.Character
127 if not character then return end
128
129 local root = character:FindFirstChild("HumanoidRootPart")
130 if not root then return end
131
132 local ground = Workspace:FindFirstChild("Misc")
133 if ground then
134 ground = ground:FindFirstChild("Ground")
135 if ground and ground:IsA("BasePart") then
136 local target = ground.Position + Vector3.new(0, 5, 0)
137 root.CFrame = CFrame.new(target)
138 end
139 end
140 end
141
142 local function setupAutoTeleport()
143 player.CharacterAdded:Connect(function(char)
144 task.wait(1)
145 local humanoid = char:FindFirstChild("Humanoid")
146 if humanoid then
147 humanoid.Died:Connect(function()
148 task.wait(0.5)
149 if player.Character then
150 teleportToGround()
151 end
152 end)
153 end
154 end)
155
156 local currentChar = player.Character
157 if currentChar then
158 local humanoid = currentChar:FindFirstChild("Humanoid")
159 if humanoid then
160 humanoid.Died:Connect(function()
161 task.wait(0.5)
162 if player.Character then
163 teleportToGround()
164 end
165 end)
166 end
167 end
168 end
169
170 setupAutoTeleport()
171
172 local function applyGodMode(character)
173 if not character then return end
174
175 task.wait(0.5)
176 local humanoid = character:FindFirstChild("Humanoid")
177 local root = character:FindFirstChild("HumanoidRootPart")
178
179 if humanoid then
180 humanoid.MaxHealth = math.huge
181 humanoid.Health = math.huge
182
183 humanoid:GetPropertyChangedSignal("Health"):Connect(function()
184 if humanoid.Health < 1000000 then
185 humanoid.Health = 1000000
186 end
187 end)
188
189 for _, part in pairs(character:GetChildren()) do
190 if part:IsA("BasePart") then
191 part.Transparency = 0.3
192 part.CanTouch = false
193 end
194 end
195 end
196
197 if root then
198 RunService.Heartbeat:Connect(function()
199 root.Velocity = Vector3.new(0,0,0)
200 root.AssemblyLinearVelocity = Vector3.new(0,0,0)
201 end)
202 end
203 end
204
205 local function removeGodMode(character)
206 if not character then return end
207
208 local humanoid = character:FindFirstChild("Humanoid")
209 if humanoid then
210 humanoid.MaxHealth = 100
211 humanoid.Health = 100
212
213 for _, part in pairs(character:GetChildren()) do
214 if part:IsA("BasePart") then
215 part.Transparency = 0
216 part.CanTouch = true
217 end
218 end
219 end
220 end
221
222 local function toggleGodMode()
223 godMode = not godMode
224
225 if godMode then
226 godBtn.Text = "God Mode beta: ON"
227 godBtn.BackgroundColor3 = Color3.fromRGB(60, 255, 60)
228 status.Text = "God Mode beta: Active"
229
230 local character = player.Character
231 if character then
232 applyGodMode(character)
233 end
234
235 workspace.Gravity = 0
236
237 player.CharacterAdded:Connect(function(newChar)
238 task.wait(0.5)
239 if godMode then
240 applyGodMode(newChar)
241 end
242 end)
243 else
244 godBtn.Text = "God Mode beta: OFF"
245 godBtn.BackgroundColor3 = Color3.fromRGB(255, 60, 60)
246 status.Text = "God Mode beta: Inactive"
247
248 workspace.Gravity = originalGravity
249
250 local character = player.Character
251 if character then
252 removeGodMode(character)
253 end
254 end
255 end
256
257 local function toggleFly()
258 flyMode = not flyMode
259
260 if flyMode then
261 flyBtn.Text = "Fly+NoClip: ON"
262 flyBtn.BackgroundColor3 = Color3.fromRGB(100, 200, 255)
263 status.Text = "Fly+NoClip: Active"
264
265 local character = player.Character
266 if not character then return end
267
268 local root = character:FindFirstChild("HumanoidRootPart")
269 if not root then return end
270
271 if flyBodyVelocity then
272 flyBodyVelocity:Destroy()
273 end
274
275 flyBodyVelocity = Instance.new("BodyVelocity")
276 flyBodyVelocity.MaxForce = Vector3.new(100000, 100000, 100000)
277 flyBodyVelocity.Velocity = Vector3.new(0, 0, 0)
278 flyBodyVelocity.Parent = root
279
280 if flyConnection then
281 flyConnection:Disconnect()
282 end
283
284 flyConnection = RunService.Heartbeat:Connect(function()
285 if not root or not flyBodyVelocity then return end
286
287 local camera = workspace.CurrentCamera
288 local moveDir = Vector3.new(0, 0, 0)
289
290 if UserInputService:IsKeyDown(Enum.KeyCode.W) then
291 moveDir = moveDir + camera.CFrame.LookVector
292 end
293 if UserInputService:IsKeyDown(Enum.KeyCode.S) then
294 moveDir = moveDir - camera.CFrame.LookVector
295 end
296 if UserInputService:IsKeyDown(Enum.KeyCode.A) then
297 moveDir = moveDir - camera.CFrame.RightVector
298 end
299 if UserInputService:IsKeyDown(Enum.KeyCode.D) then
300 moveDir = moveDir + camera.CFrame.RightVector
301 end
302 if UserInputService:IsKeyDown(Enum.KeyCode.Space) then
303 moveDir = moveDir + Vector3.new(0, 1, 0)
304 end
305 if UserInputService:IsKeyDown(Enum.KeyCode.LeftShift) then
306 moveDir = moveDir - Vector3.new(0, 1, 0)
307 end
308
309 if moveDir.Magnitude > 0 then
310 flyBodyVelocity.Velocity = moveDir.Unit * 50
311 else
312 flyBodyVelocity.Velocity = Vector3.new(0, 0, 0)
313 end
314 end)
315
316 if noclipConnection then
317 noclipConnection:Disconnect()
318 end
319
320 noclipConnection = RunService.Stepped:Connect(function()
321 if player.Character then
322 for _, part in pairs(player.Character:GetDescendants()) do
323 if part:IsA("BasePart") then
324 part.CanCollide = false
325 end
326 end
327 end
328 end)
329 else
330 flyBtn.Text = "Fly+NoClip: OFF"
331 flyBtn.BackgroundColor3 = Color3.fromRGB(60, 150, 255)
332 status.Text = "Fly+NoClip: Inactive"
333
334 if flyConnection then
335 flyConnection:Disconnect()
336 flyConnection = nil
337 end
338
339 if noclipConnection then
340 noclipConnection:Disconnect()
341 noclipConnection = nil
342 end
343
344 if flyBodyVelocity then
345 flyBodyVelocity:Destroy()
346 flyBodyVelocity = nil
347 end
348
349 local character = player.Character
350 if character then
351 for _, part in pairs(character:GetDescendants()) do
352 if part:IsA("BasePart") then
353 part.CanCollide = true
354 end
355 end
356 end
357 end
358 end
359
360 local function getTsunamiDistance()
361 local character = player.Character
362 if not character then return math.huge end
363
364 local root = character:FindFirstChild("HumanoidRootPart")
365 if not root then return math.huge end
366
367 local closest = math.huge
368
369 local activeTsunamis = Workspace:FindFirstChild("ActiveTsunamis")
370 if activeTsunamis then
371 for i = 1, 6 do
372 local wave = activeTsunamis:FindFirstChild("Wave" .. i)
373 if wave then
374 local hitbox = wave:FindFirstChild("Hitbox")
375 if hitbox and hitbox:IsA("BasePart") then
376 local dist = (hitbox.Position - root.Position).Magnitude
377 if dist < closest then
378 closest = dist
379 end
380 end
381 end
382 end
383 end
384
385 if closest == math.huge then
386 for _, obj in pairs(Workspace:GetChildren()) do
387 if obj:IsA("Model") then
388 if obj.Name:lower():find("tsunami") or obj.Name:lower():find("wave") then
389 for _, part in pairs(obj:GetDescendants()) do
390 if part:IsA("BasePart") then
391 local dist = (part.Position - root.Position).Magnitude
392 if dist < closest then
393 closest = dist
394 end
395 end
396 end
397 end
398 end
399 end
400 end
401
402 return closest
403 end
404
405 RunService.Heartbeat:Connect(function()
406 local dist = getTsunamiDistance()
407
408 if dist < 1500 then
409 if dist <= 500 then
410 tsunamiBox.BackgroundColor3 = Color3.fromRGB(255, 50, 50)
411 tsunamiText.TextColor3 = Color3.new(1, 1, 1)
412 tsunamiText.Text = "?? Tsunami: " .. math.floor(dist) .. "m (DANGER)"
413 elseif dist <= 1000 then
414 tsunamiBox.BackgroundColor3 = Color3.fromRGB(255, 150, 50)
415 tsunamiText.TextColor3 = Color3.new(0, 0, 0)
416 tsunamiText.Text = "Tsunami: " .. math.floor(dist) .. "m (WARNING)"
417 else
418 tsunamiBox.BackgroundColor3 = Color3.fromRGB(50, 200, 50)
419 tsunamiText.TextColor3 = Color3.new(0, 0, 0)
420 tsunamiText.Text = "Tsunami: " .. math.floor(dist) .. "m (SAFE)"
421 end
422 else
423 tsunamiBox.BackgroundColor3 = Color3.fromRGB(40, 40, 60)
424 tsunamiText.TextColor3 = Color3.new(1, 1, 1)
425 tsunamiText.Text = "Tsunami: Safe (>1500m)"
426 end
427 end)
428
429 godBtn.MouseButton1Click:Connect(toggleGodMode)
430 flyBtn.MouseButton1Click:Connect(toggleFly)
431
432 closeBtn.MouseButton1Click:Connect(function()
433 if godMode then toggleGodMode() end
434 if flyMode then toggleFly() end
435 gui:Destroy()
436 end)
437
438 closeBtn.MouseEnter:Connect(function()
439 closeBtn.BackgroundColor3 = Color3.fromRGB(255, 100, 100)
440 end)
441
442 closeBtn.MouseLeave:Connect(function()
443 closeBtn.BackgroundColor3 = Color3.fromRGB(255, 60, 60)
444 end)

Ready to Analyze

Click "Run Analysis" to scan the script for issues

Security Analysis

Run analysis to see security details

Performance Analysis

Run analysis to see performance metrics

Code Quality

Run analysis to see quality metrics

Code Metrics

Run analysis to see detailed metrics

Dependencies

Run analysis to detect dependencies

Console Output

Analysis logs will appear here

Running comprehensive analysis...

Copied!