Loading model...
by 🔥nate · 3/9/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: Submarine |
| 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 = "Submarine" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Bright yellow"] = "2022 Weld", |
| 25 | ["Dark stone grey"] = "2022 Weld", |
| 26 | ["Earth green"] = "2022 Stud", |
| 27 | ["Medium stone grey"] = "2022 Glue", |
| 28 | ["Really black"] = "2022 Universal", |
| 29 | } |
| 30 | if next(needed) then |
| 31 | local ok, roots = pcall(game.GetObjects, game, "rbxassetid://13386676607") |
| 32 | if not ok then warn(roots) else |
| 33 | local tmp = Instance.new("Folder") |
| 34 | for _, r in ipairs(roots) do r.Parent = tmp end |
| 35 | for _, d in ipairs(tmp:GetDescendants()) do |
| 36 | if d:IsA("MaterialVariant") and needed[d.Name] then |
| 37 | d.Parent = MS |
| 38 | end |
| 39 | end |
| 40 | tmp:Destroy() |
| 41 | end |
| 42 | end |
| 43 | end |
| 44 | do |
| 45 | local p = Instance.new("Part") |
| 46 | p.Shape = Enum.PartType.Cylinder |
| 47 | p.Name = "HullMain" |
| 48 | p.Size = Vector3.new(30, 4.96, 4.96) |
| 49 | p.CFrame = CFrame.new(0, 2.5, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 50 | p.BrickColor = BrickColor.new("Really black") |
| 51 | p.Material = Enum.Material.Glacier |
| 52 | p.MaterialVariant = "2022 Universal" |
| 53 | p.Anchored = true |
| 54 | p.Parent = model |
| 55 | end |
| 56 | do |
| 57 | local p = Instance.new("Part") |
| 58 | p.Shape = Enum.PartType.Ball |
| 59 | p.Name = "HullFront" |
| 60 | p.Size = Vector3.new(5, 5, 5) |
| 61 | p.CFrame = CFrame.new(0, 2.5, -15) |
| 62 | p.BrickColor = BrickColor.new("Really black") |
| 63 | p.Material = Enum.Material.Glacier |
| 64 | p.MaterialVariant = "2022 Universal" |
| 65 | p.Anchored = true |
| 66 | p.Parent = model |
| 67 | end |
| 68 | do |
| 69 | local p = Instance.new("Part") |
| 70 | p.Shape = Enum.PartType.Cylinder |
| 71 | p.Name = "HullRear1" |
| 72 | p.Size = Vector3.new(6, 4, 4) |
| 73 | p.CFrame = CFrame.new(0, 2.5, 18) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 74 | p.BrickColor = BrickColor.new("Really black") |
| 75 | p.Material = Enum.Material.Glacier |
| 76 | p.MaterialVariant = "2022 Universal" |
| 77 | p.Anchored = true |
| 78 | p.Parent = model |
| 79 | end |
| 80 | do |
| 81 | local p = Instance.new("Part") |
| 82 | p.Shape = Enum.PartType.Cylinder |
| 83 | p.Name = "HullRear2" |
| 84 | p.Size = Vector3.new(4, 3, 3) |
| 85 | p.CFrame = CFrame.new(0, 2.5, 23) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 86 | p.BrickColor = BrickColor.new("Really black") |
| 87 | p.Material = Enum.Material.Glacier |
| 88 | p.MaterialVariant = "2022 Universal" |
| 89 | p.Anchored = true |
| 90 | p.Parent = model |
| 91 | end |
| 92 | do |
| 93 | local p = Instance.new("Part") |
| 94 | p.Shape = Enum.PartType.Cylinder |
| 95 | p.Name = "HullRear3" |
| 96 | p.Size = Vector3.new(3, 1.96, 1.96) |
| 97 | p.CFrame = CFrame.new(0, 2.5, 26.5) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 98 | p.BrickColor = BrickColor.new("Really black") |
| 99 | p.Material = Enum.Material.Glacier |
| 100 | p.MaterialVariant = "2022 Universal" |
| 101 | p.Anchored = true |
| 102 | p.Parent = model |
| 103 | end |
| 104 | do |
| 105 | local p = Instance.new("Part") |
| 106 | p.Shape = Enum.PartType.Ball |
| 107 | p.Name = "HullRearDome" |
| 108 | p.Size = Vector3.new(2, 2, 2) |
| 109 | p.CFrame = CFrame.new(0, 2.5, 28) |
| 110 | p.BrickColor = BrickColor.new("Really black") |
| 111 | p.Material = Enum.Material.Glacier |
| 112 | p.MaterialVariant = "2022 Universal" |
| 113 | p.Anchored = true |
| 114 | p.Parent = model |
| 115 | end |
| 116 | do |
| 117 | local p = Instance.new("Part") |
| 118 | p.Name = "DeckStrip" |
| 119 | p.Size = Vector3.new(2.5, 0.2, 24) |
| 120 | p.CFrame = CFrame.new(0, 4.9, -2) |
| 121 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 122 | p.Material = Enum.Material.Glacier |
| 123 | p.MaterialVariant = "2022 Weld" |
| 124 | p.Anchored = true |
| 125 | p.Parent = model |
| 126 | end |
| 127 | do |
| 128 | local p = Instance.new("Part") |
| 129 | p.Shape = Enum.PartType.Cylinder |
| 130 | p.Name = "HatchFront" |
| 131 | p.Size = Vector3.new(0.1, 1, 1) |
| 132 | p.CFrame = CFrame.new(0, 5.05, -12) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 133 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 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.Shape = Enum.PartType.Cylinder |
| 142 | p.Name = "HatchRear" |
| 143 | p.Size = Vector3.new(0.1, 1.2, 1.2) |
| 144 | p.CFrame = CFrame.new(0, 5.05, 4) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 145 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 146 | p.Material = Enum.Material.Glacier |
| 147 | p.MaterialVariant = "2022 Glue" |
| 148 | p.Anchored = true |
| 149 | p.Parent = model |
| 150 | end |
| 151 | do |
| 152 | local p = Instance.new("Part") |
| 153 | p.Name = "SailBase" |
| 154 | p.Size = Vector3.new(2.2, 1.5, 6) |
| 155 | p.CFrame = CFrame.new(0, 5.5, -8) |
| 156 | p.BrickColor = BrickColor.new("Really black") |
| 157 | p.Material = Enum.Material.Glacier |
| 158 | p.MaterialVariant = "2022 Universal" |
| 159 | p.Anchored = true |
| 160 | p.Parent = model |
| 161 | end |
| 162 | do |
| 163 | local p = Instance.new("WedgePart") |
| 164 | p.Name = "SailBaseFront" |
| 165 | p.Size = Vector3.new(2.2, 1.5, 1) |
| 166 | p.CFrame = CFrame.new(0, 5.5, -11.5) |
| 167 | p.BrickColor = BrickColor.new("Really black") |
| 168 | p.Material = Enum.Material.Glacier |
| 169 | p.MaterialVariant = "2022 Universal" |
| 170 | p.Anchored = true |
| 171 | p.Parent = model |
| 172 | end |
| 173 | do |
| 174 | local p = Instance.new("Part") |
| 175 | p.Name = "SailMain" |
| 176 | p.Size = Vector3.new(2, 3, 5) |
| 177 | p.CFrame = CFrame.new(0, 7.5, -8) |
| 178 | p.BrickColor = BrickColor.new("Really black") |
| 179 | p.Material = Enum.Material.Glacier |
| 180 | p.MaterialVariant = "2022 Universal" |
| 181 | p.Anchored = true |
| 182 | p.Parent = model |
| 183 | end |
| 184 | do |
| 185 | local p = Instance.new("Part") |
| 186 | p.Name = "SailTop" |
| 187 | p.Size = Vector3.new(2.4, 0.2, 5.4) |
| 188 | p.CFrame = CFrame.new(0, 9.1, -8) |
| 189 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 190 | p.Material = Enum.Material.Glacier |
| 191 | p.MaterialVariant = "2022 Weld" |
| 192 | p.Anchored = true |
| 193 | p.Parent = model |
| 194 | end |
| 195 | do |
| 196 | local p = Instance.new("Part") |
| 197 | p.Shape = Enum.PartType.Cylinder |
| 198 | p.Name = "MastGreen1" |
| 199 | p.Size = Vector3.new(4, 0.3, 0.3) |
| 200 | p.CFrame = CFrame.new(0, 11.2, -9) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 201 | p.BrickColor = BrickColor.new("Earth green") |
| 202 | p.Material = Enum.Material.Glacier |
| 203 | p.MaterialVariant = "2022 Stud" |
| 204 | p.Anchored = true |
| 205 | p.Parent = model |
| 206 | end |
| 207 | do |
| 208 | local p = Instance.new("Part") |
| 209 | p.Shape = Enum.PartType.Cylinder |
| 210 | p.Name = "MastGreen2" |
| 211 | p.Size = Vector3.new(4, 0.3, 0.3) |
| 212 | p.CFrame = CFrame.new(0, 11.2, -7.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 213 | p.BrickColor = BrickColor.new("Earth green") |
| 214 | p.Material = Enum.Material.Glacier |
| 215 | p.MaterialVariant = "2022 Stud" |
| 216 | p.Anchored = true |
| 217 | p.Parent = model |
| 218 | end |
| 219 | do |
| 220 | local p = Instance.new("Part") |
| 221 | p.Shape = Enum.PartType.Cylinder |
| 222 | p.Name = "MastBlack" |
| 223 | p.Size = Vector3.new(3, 0.4, 0.4) |
| 224 | p.CFrame = CFrame.new(0, 10.7, -8.2) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 225 | p.BrickColor = BrickColor.new("Really black") |
| 226 | p.Material = Enum.Material.Glacier |
| 227 | p.MaterialVariant = "2022 Universal" |
| 228 | p.Anchored = true |
| 229 | p.Parent = model |
| 230 | end |
| 231 | do |
| 232 | local p = Instance.new("Part") |
| 233 | p.Shape = Enum.PartType.Cylinder |
| 234 | p.Name = "MastGrey" |
| 235 | p.Size = Vector3.new(2, 0.2, 0.2) |
| 236 | p.CFrame = CFrame.new(0, 10.2, -7) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 237 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 238 | p.Material = Enum.Material.Glacier |
| 239 | p.MaterialVariant = "2022 Glue" |
| 240 | p.Anchored = true |
| 241 | p.Parent = model |
| 242 | end |
| 243 | do |
| 244 | local p = Instance.new("Part") |
| 245 | p.Name = "FinTop" |
| 246 | p.Size = Vector3.new(0.4, 3.5, 2) |
| 247 | p.CFrame = CFrame.new(0, 4.5, 25.96) |
| 248 | p.BrickColor = BrickColor.new("Really black") |
| 249 | p.Material = Enum.Material.Glacier |
| 250 | p.MaterialVariant = "2022 Universal" |
| 251 | p.Anchored = true |
| 252 | p.Parent = model |
| 253 | end |
| 254 | do |
| 255 | local p = Instance.new("Part") |
| 256 | p.Name = "FinBottom" |
| 257 | p.Size = Vector3.new(0.4, 3.5, 2) |
| 258 | p.CFrame = CFrame.new(0, 0.5, 25.96) |
| 259 | p.BrickColor = BrickColor.new("Really black") |
| 260 | p.Material = Enum.Material.Glacier |
| 261 | p.MaterialVariant = "2022 Universal" |
| 262 | p.Anchored = true |
| 263 | p.Parent = model |
| 264 | end |
| 265 | do |
| 266 | local p = Instance.new("Part") |
| 267 | p.Name = "FinLeft" |
| 268 | p.Size = Vector3.new(3.5, 0.4, 2) |
| 269 | p.CFrame = CFrame.new(-2.5, 2.5, 25.92) |
| 270 | p.BrickColor = BrickColor.new("Really black") |
| 271 | p.Material = Enum.Material.Glacier |
| 272 | p.MaterialVariant = "2022 Universal" |
| 273 | p.Anchored = true |
| 274 | p.Parent = model |
| 275 | end |
| 276 | do |
| 277 | local p = Instance.new("Part") |
| 278 | p.Name = "FinRight" |
| 279 | p.Size = Vector3.new(3.5, 0.4, 2) |
| 280 | p.CFrame = CFrame.new(2.5, 2.5, 25.92) |
| 281 | p.BrickColor = BrickColor.new("Really black") |
| 282 | p.Material = Enum.Material.Glacier |
| 283 | p.MaterialVariant = "2022 Universal" |
| 284 | p.Anchored = true |
| 285 | p.Parent = model |
| 286 | end |
| 287 | do |
| 288 | local p = Instance.new("Part") |
| 289 | p.Shape = Enum.PartType.Ball |
| 290 | p.Name = "PropHub" |
| 291 | p.Size = Vector3.new(1, 1, 1) |
| 292 | p.CFrame = CFrame.new(0, 2.5, 29) |
| 293 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 294 | p.Material = Enum.Material.Glacier |
| 295 | p.MaterialVariant = "2022 Weld" |
| 296 | p.Anchored = true |
| 297 | p.Parent = model |
| 298 | end |
| 299 | do |
| 300 | local p = Instance.new("Part") |
| 301 | p.Name = "PropBlade1" |
| 302 | p.Size = Vector3.new(0.2, 1.5, 0.5) |
| 303 | p.CFrame = CFrame.new(0.04, 3.24, 29.08) |
| 304 | p.BrickColor = BrickColor.new("Bright yellow") |
| 305 | p.Material = Enum.Material.Glacier |
| 306 | p.MaterialVariant = "2022 Weld" |
| 307 | p.Anchored = true |
| 308 | p.Parent = model |
| 309 | end |
| 310 | do |
| 311 | local p = Instance.new("Part") |
| 312 | p.Name = "PropBlade2" |
| 313 | p.Size = Vector3.new(0.2, 1.5, 0.5) |
| 314 | p.CFrame = CFrame.new(0, 1.8, 29.08) |
| 315 | p.BrickColor = BrickColor.new("Bright yellow") |
| 316 | p.Material = Enum.Material.Glacier |
| 317 | p.MaterialVariant = "2022 Weld" |
| 318 | p.Anchored = true |
| 319 | p.Parent = model |
| 320 | end |
| 321 | do |
| 322 | local p = Instance.new("Part") |
| 323 | p.Name = "PropBlade3" |
| 324 | p.Size = Vector3.new(1.5, 0.2, 0.5) |
| 325 | p.CFrame = CFrame.new(0.7, 2.54, 29.04) |
| 326 | p.BrickColor = BrickColor.new("Bright yellow") |
| 327 | p.Material = Enum.Material.Glacier |
| 328 | p.MaterialVariant = "2022 Weld" |
| 329 | p.Anchored = true |
| 330 | p.Parent = model |
| 331 | end |
| 332 | do |
| 333 | local p = Instance.new("Part") |
| 334 | p.Name = "PropBlade4" |
| 335 | p.Size = Vector3.new(1.5, 0.2, 0.5) |
| 336 | p.CFrame = CFrame.new(-0.7, 2.5, 29) |
| 337 | p.BrickColor = BrickColor.new("Bright yellow") |
| 338 | p.Material = Enum.Material.Glacier |
| 339 | p.MaterialVariant = "2022 Weld" |
| 340 | p.Anchored = true |
| 341 | p.Parent = model |
| 342 | end |
| 343 | model.PrimaryPart = model:FindFirstChild("HullMain") |
| 344 | print("Submarine built: " .. #model:GetChildren() .. " parts") |
Loading comments...