Testing Lab
Analyzing: auto collect auto rebirth auto hatch
257
Lines
--
Functions
--
Security
--
Performance
--
Quality
--
Issues
Source Code
257 lines
1
--// Made by _OpenSource_ (Modern 3D UI)
2
3
local Players = game:GetService("Players")
4
local UIS = game:GetService("UserInputService")
5
local RunService = game:GetService("RunService")
6
local ReplicatedStorage = game:GetService("ReplicatedStorage")
7
8
local player = Players.LocalPlayer
9
10
--// CHARACTER
11
local function getChar()
12
local char = player.Character or player.CharacterAdded:Wait()
13
return char, char:WaitForChild("HumanoidRootPart")
14
end
15
16
local character, root = getChar()
17
player.CharacterAdded:Connect(function()
18
character, root = getChar()
19
end)
20
21
--// REFERENCES
22
local OrbsFolder = workspace.Camera.Orbs
23
local EggRemote = ReplicatedStorage:WaitForChild("RemoteEvents"):WaitForChild("EggOpened")
24
local RebirthRemote = ReplicatedStorage:WaitForChild("RemoteEvent")
25
26
local EggList = {
27
"Starter","Desert","Swag","Ocean","Magma","Golden","Cyber","Candy"
28
}
29
30
--// GUI BASE
31
local gui = Instance.new("ScreenGui", game.CoreGui)
32
33
local frame = Instance.new("Frame", gui)
34
frame.Size = UDim2.new(0, 300, 0, 420)
35
frame.Position = UDim2.new(0.4, 0, 0.2, 0)
36
frame.BackgroundColor3 = Color3.fromRGB(18,18,18)
37
frame.Active = true
38
frame.Draggable = true
39
Instance.new("UICorner", frame).CornerRadius = UDim.new(0,16)
40
41
local stroke = Instance.new("UIStroke", frame)
42
stroke.Color = Color3.fromRGB(60,60,60)
43
stroke.Thickness = 2
44
45
local title = Instance.new("TextLabel", frame)
46
title.Size = UDim2.new(1,0,0,40)
47
title.BackgroundTransparency = 1
48
title.Text = "OpenSource Hub"
49
title.Font = Enum.Font.GothamBold
50
title.TextSize = 20
51
title.TextColor3 = Color3.new(1,1,1)
52
53
--// BUTTON CREATOR
54
local function createButton(parent, text, posY, z)
55
local btn = Instance.new("TextButton", parent)
56
btn.Size = UDim2.new(0.85,0,0,35)
57
btn.Position = UDim2.new(0.075,0,0,posY)
58
btn.Text = text
59
btn.Font = Enum.Font.GothamBold
60
btn.TextSize = 14
61
btn.TextColor3 = Color3.new(1,1,1)
62
btn.BackgroundColor3 = Color3.fromRGB(30,30,30)
63
btn.ZIndex = z or 1
64
65
Instance.new("UICorner", btn).CornerRadius = UDim.new(0,10)
66
67
local s = Instance.new("UIStroke", btn)
68
s.Color = Color3.fromRGB(70,70,70)
69
70
return btn
71
end
72
73
--// INPUT BOX
74
local function createBox(parent, placeholder, posY)
75
local box = Instance.new("TextBox", parent)
76
box.Size = UDim2.new(0.85,0,0,35)
77
box.Position = UDim2.new(0.075,0,0,posY)
78
box.PlaceholderText = placeholder
79
box.Text = ""
80
box.Font = Enum.Font.Gotham
81
box.TextSize = 14
82
box.TextColor3 = Color3.new(1,1,1)
83
box.BackgroundColor3 = Color3.fromRGB(25,25,25)
84
85
Instance.new("UICorner", box).CornerRadius = UDim.new(0,10)
86
Instance.new("UIStroke", box).Color = Color3.fromRGB(70,70,70)
87
88
return box
89
end
90
91
--// ELEMENTS
92
local orbBtn = createButton(frame, "Auto Orbs: OFF", 50, 1)
93
local speedBox = createBox(frame, "Enter Speed (e.g. 3)", 95)
94
local tpBtn = createButton(frame, "TPWalk: OFF", 140, 1)
95
96
local dropdown = createButton(frame, "Select Egg ?", 185, 4)
97
98
local dropFrame = Instance.new("Frame", frame)
99
dropFrame.Size = UDim2.new(0.85,0,0,120)
100
dropFrame.Position = UDim2.new(0.075,0,0,225)
101
dropFrame.BackgroundColor3 = Color3.fromRGB(25,25,25)
102
dropFrame.Visible = false
103
dropFrame.ZIndex = 5
104
Instance.new("UICorner", dropFrame)
105
106
local rebirthBtn = createButton(frame, "Auto Rebirth: OFF", 260, 1)
107
local modeBtn = createButton(frame, "Mode: Single", 305, 1)
108
local eggBtn = createButton(frame, "Auto Hatch: OFF", 350, 1)
109
110
--// ORBS
111
local orbOn = false
112
orbBtn.MouseButton1Click:Connect(function()
113
orbOn = not orbOn
114
orbBtn.Text = "Auto Orbs: " .. (orbOn and "ON" or "OFF")
115
orbBtn.BackgroundColor3 = orbOn and Color3.fromRGB(0,170,0) or Color3.fromRGB(30,30,30)
116
117
-- Toggle collisions and anchoring
118
for _, orb in pairs(OrbsFolder:GetChildren()) do
119
if orb:IsA("BasePart") then
120
orb.CanCollide = not orbOn
121
orb.Anchored = orbOn
122
elseif orb:FindFirstChild("Orb") and orb.Orb:IsA("BasePart") then
123
orb.Orb.CanCollide = not orbOn
124
orb.Orb.Anchored = orbOn
125
end
126
end
127
end)
128
129
-- Smooth orb movement function
130
local function moveOrbsToPlayer()
131
if not root then return end
132
for _, orb in pairs(OrbsFolder:GetChildren()) do
133
local target
134
if orb:IsA("BasePart") then
135
target = orb
136
elseif orb:FindFirstChild("Orb") and orb.Orb:IsA("BasePart") then
137
target = orb.Orb
138
end
139
if target then
140
-- Smoothly move the orb toward the player
141
target.CFrame = target.CFrame:Lerp(root.CFrame + Vector3.new(0,3,0), 0.3)
142
end
143
end
144
end
145
146
RunService.Heartbeat:Connect(function()
147
if orbOn then
148
pcall(moveOrbsToPlayer)
149
end
150
end)
151
152
--// TPWALK
153
local tpOn = false
154
local speed = 3
155
156
tpBtn.MouseButton1Click:Connect(function()
157
tpOn = not tpOn
158
speed = tonumber(speedBox.Text) or 3
159
tpBtn.Text = "TPWalk: " .. (tpOn and "ON" or "OFF")
160
tpBtn.BackgroundColor3 = tpOn and Color3.fromRGB(0,170,0) or Color3.fromRGB(30,30,30)
161
end)
162
163
RunService.Heartbeat:Connect(function()
164
if not tpOn or not root then return end
165
166
local cam = workspace.CurrentCamera
167
local f = Vector3.new(cam.CFrame.LookVector.X,0,cam.CFrame.LookVector.Z)
168
local r = Vector3.new(cam.CFrame.RightVector.X,0,cam.CFrame.RightVector.Z)
169
170
local move = Vector3.zero
171
if UIS:IsKeyDown(Enum.KeyCode.W) then move += f end
172
if UIS:IsKeyDown(Enum.KeyCode.S) then move -= f end
173
if UIS:IsKeyDown(Enum.KeyCode.A) then move -= r end
174
if UIS:IsKeyDown(Enum.KeyCode.D) then move += r end
175
176
if move.Magnitude > 0 then
177
root.CFrame += move.Unit * speed
178
end
179
end)
180
181
--// EGGS
182
local selectedEgg = "Starter"
183
local mode = "Single"
184
local eggOn = false
185
186
local function refreshDropdown()
187
dropFrame:ClearAllChildren()
188
for i, name in ipairs(EggList) do
189
local btn = Instance.new("TextButton", dropFrame)
190
btn.Size = UDim2.new(1,0,0,25)
191
btn.Position = UDim2.new(0,0,0,(i-1)*25)
192
btn.Text = name
193
btn.BackgroundColor3 = Color3.fromRGB(35,35,35)
194
btn.TextColor3 = Color3.new(1,1,1)
195
btn.ZIndex = 6
196
btn.MouseButton1Click:Connect(function()
197
selectedEgg = name
198
dropdown.Text = "Egg: " .. name
199
dropFrame.Visible = false
200
end)
201
end
202
end
203
204
dropdown.MouseButton1Click:Connect(function()
205
dropFrame.Visible = not dropFrame.Visible
206
if dropFrame.Visible then refreshDropdown() end
207
end)
208
209
modeBtn.MouseButton1Click:Connect(function()
210
mode = (mode == "Single") and "Triple" or "Single"
211
modeBtn.Text = "Mode: " .. mode
212
end)
213
214
eggBtn.MouseButton1Click:Connect(function()
215
eggOn = not eggOn
216
eggBtn.Text = "Auto Hatch: " .. (eggOn and "ON" or "OFF")
217
eggBtn.BackgroundColor3 = eggOn and Color3.fromRGB(0,170,0) or Color3.fromRGB(30,30,30)
218
end)
219
220
RunService.Heartbeat:Connect(function()
221
if eggOn then
222
pcall(function()
223
EggRemote:InvokeServer(selectedEgg, mode)
224
end)
225
end
226
end)
227
228
--// AUTO REBIRTH (UNIVERSAL)
229
local rebirthOn = false
230
231
rebirthBtn.MouseButton1Click:Connect(function()
232
rebirthOn = not rebirthOn
233
rebirthBtn.Text = "Auto Rebirth: " .. (rebirthOn and "ON" or "OFF")
234
rebirthBtn.BackgroundColor3 = rebirthOn and Color3.fromRGB(0,170,0) or Color3.fromRGB(30,30,30)
235
end)
236
237
-- universal number finder
238
local function getBestRebirthValue()
239
local leaderstats = player:FindFirstChild("leaderstats")
240
if leaderstats then
241
for _, v in pairs(leaderstats:GetChildren()) do
242
if v:IsA("IntValue") or v:IsA("NumberValue") then
243
return v.Value
244
end
245
end
246
end
247
return 1
248
end
249
250
RunService.Heartbeat:Connect(function()
251
if rebirthOn then
252
pcall(function()
253
local value = getBestRebirthValue()
254
RebirthRemote:FireServer("rebirth", value)
255
end)
256
end
257
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!