Loading model...
by Calvin Ta · 5/16/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: HydrogenAtom |
| 3 | |
| 4 | local MS = game:GetService("MaterialService") |
| 5 | |
| 6 | local ok, roots = pcall(game.GetObjects, game, "rbxassetid://13386676607") |
| 7 | if not ok then return warn(roots) end |
| 8 | |
| 9 | local tmp = Instance.new("Folder") |
| 10 | for _, r in ipairs(roots) do r.Parent = tmp end |
| 11 | |
| 12 | for _, d in ipairs(tmp:GetDescendants()) do |
| 13 | if d:IsA("MaterialVariant") then |
| 14 | d.Parent = MS |
| 15 | end |
| 16 | end |
| 17 | tmp:Destroy() |
| 18 | |
| 19 | local model = Instance.new("Model") |
| 20 | model.Name = "HydrogenAtom" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Bright blue"] = "2022 Glue", |
| 25 | ["Bright red"] = "2022 Glue", |
| 26 | ["Ghost grey"] = "2022 Stud", |
| 27 | ["Pastel Blue"] = "2022 Glue", |
| 28 | } |
| 29 | do |
| 30 | local p = Instance.new("Part") |
| 31 | p.Name = "NucleusCore" |
| 32 | p.Size = Vector3.new(4.5, 4.5, 4.5) |
| 33 | p.CFrame = CFrame.new(0, 0, 0) |
| 34 | p.BrickColor = BrickColor.new("Bright blue") |
| 35 | p.Material = Enum.Material.Glacier |
| 36 | p.MaterialVariant = "2022 Stud" |
| 37 | p.Anchored = true |
| 38 | p.Parent = model |
| 39 | end |
| 40 | do |
| 41 | local p = Instance.new("Part") |
| 42 | p.Name = "NucleusTop" |
| 43 | p.Size = Vector3.new(3.5, 0.5, 3.5) |
| 44 | p.CFrame = CFrame.new(0, 2.54, 0) |
| 45 | p.BrickColor = BrickColor.new("Bright blue") |
| 46 | p.Material = Enum.Material.Glacier |
| 47 | p.MaterialVariant = "2022 Stud" |
| 48 | p.Anchored = true |
| 49 | p.Parent = model |
| 50 | end |
| 51 | do |
| 52 | local p = Instance.new("Part") |
| 53 | p.Name = "NucleusBottom" |
| 54 | p.Size = Vector3.new(3.5, 0.5, 3.5) |
| 55 | p.CFrame = CFrame.new(0, -2.54, 0) |
| 56 | p.BrickColor = BrickColor.new("Bright blue") |
| 57 | p.Material = Enum.Material.Glacier |
| 58 | p.MaterialVariant = "2022 Glue" |
| 59 | p.Anchored = true |
| 60 | p.Parent = model |
| 61 | end |
| 62 | do |
| 63 | local p = Instance.new("Part") |
| 64 | p.Name = "NucleusFront" |
| 65 | p.Size = Vector3.new(3.5, 3.5, 0.5) |
| 66 | p.CFrame = CFrame.new(0, 0, -2.54) |
| 67 | p.BrickColor = BrickColor.new("Bright blue") |
| 68 | p.Material = Enum.Material.Glacier |
| 69 | p.MaterialVariant = "2022 Glue" |
| 70 | p.Anchored = true |
| 71 | p.Parent = model |
| 72 | end |
| 73 | do |
| 74 | local p = Instance.new("Part") |
| 75 | p.Name = "NucleusBack" |
| 76 | p.Size = Vector3.new(3.5, 3.5, 0.5) |
| 77 | p.CFrame = CFrame.new(0, 0, 2.54) |
| 78 | p.BrickColor = BrickColor.new("Bright blue") |
| 79 | p.Material = Enum.Material.Glacier |
| 80 | p.MaterialVariant = "2022 Stud" |
| 81 | p.Anchored = true |
| 82 | p.Parent = model |
| 83 | end |
| 84 | do |
| 85 | local p = Instance.new("Part") |
| 86 | p.Name = "NucleusLeft" |
| 87 | p.Size = Vector3.new(0.5, 3.5, 3.5) |
| 88 | p.CFrame = CFrame.new(-2.58, 0, 0) |
| 89 | p.BrickColor = BrickColor.new("Bright blue") |
| 90 | p.Material = Enum.Material.Glacier |
| 91 | p.MaterialVariant = "2022 Glue" |
| 92 | p.Anchored = true |
| 93 | p.Parent = model |
| 94 | end |
| 95 | do |
| 96 | local p = Instance.new("Part") |
| 97 | p.Name = "NucleusRight" |
| 98 | p.Size = Vector3.new(0.5, 3.5, 3.5) |
| 99 | p.CFrame = CFrame.new(2.58, 0, 0) |
| 100 | p.BrickColor = BrickColor.new("Bright blue") |
| 101 | p.Material = Enum.Material.Glacier |
| 102 | p.MaterialVariant = "2022 Stud" |
| 103 | p.Anchored = true |
| 104 | p.Parent = model |
| 105 | end |
| 106 | do |
| 107 | local p = Instance.new("Part") |
| 108 | p.Name = "ElectronCore" |
| 109 | p.Size = Vector3.new(1.8, 1.8, 1.8) |
| 110 | p.CFrame = CFrame.new(-8.66025, 0, 5) |
| 111 | p.BrickColor = BrickColor.new("Bright red") |
| 112 | p.Material = Enum.Material.Glacier |
| 113 | p.MaterialVariant = "2022 Stud" |
| 114 | p.Anchored = true |
| 115 | p.Parent = model |
| 116 | end |
| 117 | do |
| 118 | local p = Instance.new("Part") |
| 119 | p.Name = "ElectronTop" |
| 120 | p.Size = Vector3.new(1.2, 0.2, 1.2) |
| 121 | p.CFrame = CFrame.new(-8.66025, 1.04, 5) |
| 122 | p.BrickColor = BrickColor.new("Bright red") |
| 123 | p.Material = Enum.Material.Glacier |
| 124 | p.MaterialVariant = "2022 Stud" |
| 125 | p.Anchored = true |
| 126 | p.Parent = model |
| 127 | end |
| 128 | do |
| 129 | local p = Instance.new("Part") |
| 130 | p.Name = "ElectronBottom" |
| 131 | p.Size = Vector3.new(1.2, 0.2, 1.2) |
| 132 | p.CFrame = CFrame.new(-8.66025, -1.04, 5) |
| 133 | p.BrickColor = BrickColor.new("Bright red") |
| 134 | p.Material = Enum.Material.Glacier |
| 135 | p.MaterialVariant = "2022 Glue" |
| 136 | p.Anchored = true |
| 137 | p.Parent = model |
| 138 | end |
| 139 | do |
| 140 | local p = Instance.new("Part") |
| 141 | p.Name = "ElectronShellX" |
| 142 | p.Size = Vector3.new(0.2, 1.2, 1.2) |
| 143 | p.CFrame = CFrame.new(-7.62025, 0, 5) |
| 144 | p.BrickColor = BrickColor.new("Bright red") |
| 145 | p.Material = Enum.Material.Glacier |
| 146 | p.MaterialVariant = "2022 Glue" |
| 147 | p.Anchored = true |
| 148 | p.Parent = model |
| 149 | end |
| 150 | do |
| 151 | local p = Instance.new("Part") |
| 152 | p.Name = "ElectronShellXN" |
| 153 | p.Size = Vector3.new(0.2, 1.2, 1.2) |
| 154 | p.CFrame = CFrame.new(-9.70025, 0, 5) |
| 155 | p.BrickColor = BrickColor.new("Bright red") |
| 156 | p.Material = Enum.Material.Glacier |
| 157 | p.MaterialVariant = "2022 Glue" |
| 158 | p.Anchored = true |
| 159 | p.Parent = model |
| 160 | end |
| 161 | do |
| 162 | local p = Instance.new("Part") |
| 163 | p.Name = "ElectronShellZ" |
| 164 | p.Size = Vector3.new(1.2, 1.2, 0.2) |
| 165 | p.CFrame = CFrame.new(-8.66025, 0, 6.04) |
| 166 | p.BrickColor = BrickColor.new("Bright red") |
| 167 | p.Material = Enum.Material.Glacier |
| 168 | p.MaterialVariant = "2022 Glue" |
| 169 | p.Anchored = true |
| 170 | p.Parent = model |
| 171 | end |
| 172 | do |
| 173 | local p = Instance.new("Part") |
| 174 | p.Name = "ElectronShellZN" |
| 175 | p.Size = Vector3.new(1.2, 1.2, 0.2) |
| 176 | p.CFrame = CFrame.new(-8.66025, 0, 3.96) |
| 177 | p.BrickColor = BrickColor.new("Bright red") |
| 178 | p.Material = Enum.Material.Glacier |
| 179 | p.MaterialVariant = "2022 Glue" |
| 180 | p.Anchored = true |
| 181 | p.Parent = model |
| 182 | end |
| 183 | do |
| 184 | local rightV = Vector3.new(1,0,0).Unit |
| 185 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 186 | local normalV = upV:Cross(rightV) |
| 187 | local pos = Vector3.new(0.04, 0.04, 0.04) |
| 188 | local cyl = Instance.new("Part") |
| 189 | cyl.Shape = Enum.PartType.Cylinder |
| 190 | cyl.Size = Vector3.new(0.3, 20, 20) |
| 191 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 192 | cyl.BrickColor = BrickColor.new("Pastel Blue") |
| 193 | cyl.Material = Enum.Material.Glacier |
| 194 | cyl.MaterialVariant = "2022 Glue" |
| 195 | cyl.Anchored = true; cyl.Parent = workspace |
| 196 | local cuts = {} |
| 197 | local hole = Instance.new("Part") |
| 198 | hole.Shape = Enum.PartType.Cylinder |
| 199 | hole.Size = Vector3.new(0.5, 19.4, 19.4) |
| 200 | hole.CFrame = cyl.CFrame |
| 201 | hole.BrickColor = BrickColor.new("Pastel Blue") |
| 202 | hole.Material = Enum.Material.Glacier |
| 203 | hole.MaterialVariant = "2022 Glue" |
| 204 | hole.Anchored = true; hole.Parent = workspace |
| 205 | table.insert(cuts, hole) |
| 206 | local angBoxes = {} |
| 207 | do |
| 208 | local edgeDir = 1*rightV + 0*upV |
| 209 | local edgePerp = 0*rightV + 1*upV |
| 210 | local cut = Instance.new("Part") |
| 211 | cut.Size = Vector3.new(40, 0.5, 40) |
| 212 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 20 * edgePerp, edgeDir, normalV) |
| 213 | cut.BrickColor = BrickColor.new("Pastel Blue") |
| 214 | cut.Material = Enum.Material.Glacier |
| 215 | cut.MaterialVariant = "2022 Glue" |
| 216 | cut.Anchored = true; cut.Parent = workspace |
| 217 | table.insert(angBoxes, cut) |
| 218 | end |
| 219 | do |
| 220 | local edgeDir = 0*rightV + 1*upV |
| 221 | local edgePerp = -1*rightV + 0*upV |
| 222 | local cut = Instance.new("Part") |
| 223 | cut.Size = Vector3.new(40, 0.5, 40) |
| 224 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 20 * edgePerp, edgeDir, normalV) |
| 225 | cut.BrickColor = BrickColor.new("Pastel Blue") |
| 226 | cut.Material = Enum.Material.Glacier |
| 227 | cut.MaterialVariant = "2022 Glue" |
| 228 | cut.Anchored = true; cut.Parent = workspace |
| 229 | table.insert(angBoxes, cut) |
| 230 | end |
| 231 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 232 | if #cuts > 0 then |
| 233 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 234 | for _, c in ipairs(cuts) do c:Destroy() end |
| 235 | if ok and result then |
| 236 | cyl:Destroy() |
| 237 | result.Name = "Orbit1"; result.Anchored = true; result.Parent = model |
| 238 | else |
| 239 | cyl.Name = "Orbit1"; cyl.Parent = model |
| 240 | end |
| 241 | else |
| 242 | cyl.Name = "Orbit1"; cyl.Parent = model |
| 243 | end |
| 244 | end |
| 245 | do |
| 246 | local rightV = Vector3.new(1,0,0).Unit |
| 247 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 248 | local normalV = upV:Cross(rightV) |
| 249 | local pos = Vector3.new(0, 0.04, 0.04) |
| 250 | local cyl = Instance.new("Part") |
| 251 | cyl.Shape = Enum.PartType.Cylinder |
| 252 | cyl.Size = Vector3.new(0.3, 20, 20) |
| 253 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 254 | cyl.BrickColor = BrickColor.new("Pastel Blue") |
| 255 | cyl.Material = Enum.Material.Glacier |
| 256 | cyl.MaterialVariant = "2022 Glue" |
| 257 | cyl.Anchored = true; cyl.Parent = workspace |
| 258 | local cuts = {} |
| 259 | local hole = Instance.new("Part") |
| 260 | hole.Shape = Enum.PartType.Cylinder |
| 261 | hole.Size = Vector3.new(0.5, 19.4, 19.4) |
| 262 | hole.CFrame = cyl.CFrame |
| 263 | hole.BrickColor = BrickColor.new("Pastel Blue") |
| 264 | hole.Material = Enum.Material.Glacier |
| 265 | hole.MaterialVariant = "2022 Glue" |
| 266 | hole.Anchored = true; hole.Parent = workspace |
| 267 | table.insert(cuts, hole) |
| 268 | local angBoxes = {} |
| 269 | do |
| 270 | local edgeDir = 0*rightV + 1*upV |
| 271 | local edgePerp = -1*rightV + 0*upV |
| 272 | local cut = Instance.new("Part") |
| 273 | cut.Size = Vector3.new(40, 0.5, 40) |
| 274 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 20 * edgePerp, edgeDir, normalV) |
| 275 | cut.BrickColor = BrickColor.new("Pastel Blue") |
| 276 | cut.Material = Enum.Material.Glacier |
| 277 | cut.MaterialVariant = "2022 Glue" |
| 278 | cut.Anchored = true; cut.Parent = workspace |
| 279 | table.insert(angBoxes, cut) |
| 280 | end |
| 281 | do |
| 282 | local edgeDir = -1*rightV + 0*upV |
| 283 | local edgePerp = 0*rightV + -1*upV |
| 284 | local cut = Instance.new("Part") |
| 285 | cut.Size = Vector3.new(40, 0.5, 40) |
| 286 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 20 * edgePerp, edgeDir, normalV) |
| 287 | cut.BrickColor = BrickColor.new("Pastel Blue") |
| 288 | cut.Material = Enum.Material.Glacier |
| 289 | cut.MaterialVariant = "2022 Glue" |
| 290 | cut.Anchored = true; cut.Parent = workspace |
| 291 | table.insert(angBoxes, cut) |
| 292 | end |
| 293 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 294 | if #cuts > 0 then |
| 295 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 296 | for _, c in ipairs(cuts) do c:Destroy() end |
| 297 | if ok and result then |
| 298 | cyl:Destroy() |
| 299 | result.Name = "Orbit2"; result.Anchored = true; result.Parent = model |
| 300 | else |
| 301 | cyl.Name = "Orbit2"; cyl.Parent = model |
| 302 | end |
| 303 | else |
| 304 | cyl.Name = "Orbit2"; cyl.Parent = model |
| 305 | end |
| 306 | end |
| 307 | do |
| 308 | local rightV = Vector3.new(1,0,0).Unit |
| 309 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 310 | local normalV = upV:Cross(rightV) |
| 311 | local pos = Vector3.new(0, 0, 0) |
| 312 | local cyl = Instance.new("Part") |
| 313 | cyl.Shape = Enum.PartType.Cylinder |
| 314 | cyl.Size = Vector3.new(0.3, 20, 20) |
| 315 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 316 | cyl.BrickColor = BrickColor.new("Pastel Blue") |
| 317 | cyl.Material = Enum.Material.Glacier |
| 318 | cyl.MaterialVariant = "2022 Glue" |
| 319 | cyl.Anchored = true; cyl.Parent = workspace |
| 320 | local cuts = {} |
| 321 | local hole = Instance.new("Part") |
| 322 | hole.Shape = Enum.PartType.Cylinder |
| 323 | hole.Size = Vector3.new(0.5, 19.4, 19.4) |
| 324 | hole.CFrame = cyl.CFrame |
| 325 | hole.BrickColor = BrickColor.new("Pastel Blue") |
| 326 | hole.Material = Enum.Material.Glacier |
| 327 | hole.MaterialVariant = "2022 Glue" |
| 328 | hole.Anchored = true; hole.Parent = workspace |
| 329 | table.insert(cuts, hole) |
| 330 | local angBoxes = {} |
| 331 | do |
| 332 | local edgeDir = -1*rightV + 0*upV |
| 333 | local edgePerp = 0*rightV + -1*upV |
| 334 | local cut = Instance.new("Part") |
| 335 | cut.Size = Vector3.new(40, 0.5, 40) |
| 336 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 20 * edgePerp, edgeDir, normalV) |
| 337 | cut.BrickColor = BrickColor.new("Pastel Blue") |
| 338 | cut.Material = Enum.Material.Glacier |
| 339 | cut.MaterialVariant = "2022 Glue" |
| 340 | cut.Anchored = true; cut.Parent = workspace |
| 341 | table.insert(angBoxes, cut) |
| 342 | end |
| 343 | do |
| 344 | local edgeDir = 0*rightV + -1*upV |
| 345 | local edgePerp = 1*rightV + 0*upV |
| 346 | local cut = Instance.new("Part") |
| 347 | cut.Size = Vector3.new(40, 0.5, 40) |
| 348 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 20 * edgePerp, edgeDir, normalV) |
| 349 | cut.BrickColor = BrickColor.new("Pastel Blue") |
| 350 | cut.Material = Enum.Material.Glacier |
| 351 | cut.MaterialVariant = "2022 Glue" |
| 352 | cut.Anchored = true; cut.Parent = workspace |
| 353 | table.insert(angBoxes, cut) |
| 354 | end |
| 355 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 356 | if #cuts > 0 then |
| 357 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 358 | for _, c in ipairs(cuts) do c:Destroy() end |
| 359 | if ok and result then |
| 360 | cyl:Destroy() |
| 361 | result.Name = "Orbit3"; result.Anchored = true; result.Parent = model |
| 362 | else |
| 363 | cyl.Name = "Orbit3"; cyl.Parent = model |
| 364 | end |
| 365 | else |
| 366 | cyl.Name = "Orbit3"; cyl.Parent = model |
| 367 | end |
| 368 | end |
| 369 | do |
| 370 | local rightV = Vector3.new(1,0,0).Unit |
| 371 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 372 | local normalV = upV:Cross(rightV) |
| 373 | local pos = Vector3.new(0.04, 0, 0) |
| 374 | local cyl = Instance.new("Part") |
| 375 | cyl.Shape = Enum.PartType.Cylinder |
| 376 | cyl.Size = Vector3.new(0.3, 20, 20) |
| 377 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 378 | cyl.BrickColor = BrickColor.new("Pastel Blue") |
| 379 | cyl.Material = Enum.Material.Glacier |
| 380 | cyl.MaterialVariant = "2022 Glue" |
| 381 | cyl.Anchored = true; cyl.Parent = workspace |
| 382 | local cuts = {} |
| 383 | local hole = Instance.new("Part") |
| 384 | hole.Shape = Enum.PartType.Cylinder |
| 385 | hole.Size = Vector3.new(0.5, 19.4, 19.4) |
| 386 | hole.CFrame = cyl.CFrame |
| 387 | hole.BrickColor = BrickColor.new("Pastel Blue") |
| 388 | hole.Material = Enum.Material.Glacier |
| 389 | hole.MaterialVariant = "2022 Glue" |
| 390 | hole.Anchored = true; hole.Parent = workspace |
| 391 | table.insert(cuts, hole) |
| 392 | local angBoxes = {} |
| 393 | do |
| 394 | local edgeDir = 0*rightV + -1*upV |
| 395 | local edgePerp = 1*rightV + 0*upV |
| 396 | local cut = Instance.new("Part") |
| 397 | cut.Size = Vector3.new(40, 0.5, 40) |
| 398 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 20 * edgePerp, edgeDir, normalV) |
| 399 | cut.BrickColor = BrickColor.new("Pastel Blue") |
| 400 | cut.Material = Enum.Material.Glacier |
| 401 | cut.MaterialVariant = "2022 Glue" |
| 402 | cut.Anchored = true; cut.Parent = workspace |
| 403 | table.insert(angBoxes, cut) |
| 404 | end |
| 405 | do |
| 406 | local edgeDir = 1*rightV + 0*upV |
| 407 | local edgePerp = 0*rightV + 1*upV |
| 408 | local cut = Instance.new("Part") |
| 409 | cut.Size = Vector3.new(40, 0.5, 40) |
| 410 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 20 * edgePerp, edgeDir, normalV) |
| 411 | cut.BrickColor = BrickColor.new("Pastel Blue") |
| 412 | cut.Material = Enum.Material.Glacier |
| 413 | cut.MaterialVariant = "2022 Glue" |
| 414 | cut.Anchored = true; cut.Parent = workspace |
| 415 | table.insert(angBoxes, cut) |
| 416 | end |
| 417 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 418 | if #cuts > 0 then |
| 419 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 420 | for _, c in ipairs(cuts) do c:Destroy() end |
| 421 | if ok and result then |
| 422 | cyl:Destroy() |
| 423 | result.Name = "Orbit4"; result.Anchored = true; result.Parent = model |
| 424 | else |
| 425 | cyl.Name = "Orbit4"; cyl.Parent = model |
| 426 | end |
| 427 | else |
| 428 | cyl.Name = "Orbit4"; cyl.Parent = model |
| 429 | end |
| 430 | end |
| 431 | model.PrimaryPart = model:FindFirstChild("NucleusCore") |
| 432 | print("HydrogenAtom built: " .. #model:GetChildren() .. " parts") |
Loading comments...