Loading model...
by Timm Suko · 6/10/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: Cannon |
| 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 = "Cannon" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Dark stone grey"] = "2022 Stud", |
| 25 | ["Really black"] = "2022 Universal", |
| 26 | ["Reddish brown"] = "2022 Small Stud", |
| 27 | } |
| 28 | do |
| 29 | local p = Instance.new("Part") |
| 30 | p.Name = "CarriageBase" |
| 31 | p.Size = Vector3.new(3, 1.5, 12) |
| 32 | p.CFrame = CFrame.new(0, 2, 0) |
| 33 | p.BrickColor = BrickColor.new("Reddish brown") |
| 34 | p.Material = Enum.Material.Glacier |
| 35 | p.MaterialVariant = "2022 Small Stud" |
| 36 | p.Anchored = true |
| 37 | p.Parent = model |
| 38 | end |
| 39 | do |
| 40 | local p = Instance.new("Part") |
| 41 | p.Name = "CarriageBaseFront" |
| 42 | p.Size = Vector3.new(3, 1.5, 2) |
| 43 | p.CFrame = CFrame.new(0, 2, -7.04) |
| 44 | p.BrickColor = BrickColor.new("Reddish brown") |
| 45 | p.Material = Enum.Material.Glacier |
| 46 | p.MaterialVariant = "2022 Small Stud" |
| 47 | p.Anchored = true |
| 48 | p.Parent = model |
| 49 | end |
| 50 | do |
| 51 | local p = Instance.new("Part") |
| 52 | p.Name = "CarriageBaseRear" |
| 53 | p.Size = Vector3.new(3, 1.5, 2) |
| 54 | p.CFrame = CFrame.new(0, 2, 7.04) |
| 55 | p.BrickColor = BrickColor.new("Reddish brown") |
| 56 | p.Material = Enum.Material.Glacier |
| 57 | p.MaterialVariant = "2022 Small Stud" |
| 58 | p.Anchored = true |
| 59 | p.Parent = model |
| 60 | end |
| 61 | do |
| 62 | local p = Instance.new("Part") |
| 63 | p.Name = "CarriageMid1" |
| 64 | p.Size = Vector3.new(3, 1.5, 10) |
| 65 | p.CFrame = CFrame.new(0, 3.54, -1) |
| 66 | p.BrickColor = BrickColor.new("Reddish brown") |
| 67 | p.Material = Enum.Material.Glacier |
| 68 | p.MaterialVariant = "2022 Small Stud" |
| 69 | p.Anchored = true |
| 70 | p.Parent = model |
| 71 | end |
| 72 | do |
| 73 | local p = Instance.new("Part") |
| 74 | p.Name = "CarriageMid2" |
| 75 | p.Size = Vector3.new(3, 1.5, 8) |
| 76 | p.CFrame = CFrame.new(0, 5.08, -2) |
| 77 | p.BrickColor = BrickColor.new("Reddish brown") |
| 78 | p.Material = Enum.Material.Glacier |
| 79 | p.MaterialVariant = "2022 Small Stud" |
| 80 | p.Anchored = true |
| 81 | p.Parent = model |
| 82 | end |
| 83 | do |
| 84 | local p = Instance.new("Part") |
| 85 | p.Name = "CarriageTopL" |
| 86 | p.Size = Vector3.new(1, 1.5, 4) |
| 87 | p.CFrame = CFrame.new(-1.5, 6.66, -2) |
| 88 | p.BrickColor = BrickColor.new("Reddish brown") |
| 89 | p.Material = Enum.Material.Glacier |
| 90 | p.MaterialVariant = "2022 Small Stud" |
| 91 | p.Anchored = true |
| 92 | p.Parent = model |
| 93 | end |
| 94 | do |
| 95 | local p = Instance.new("Part") |
| 96 | p.Name = "CarriageTopR" |
| 97 | p.Size = Vector3.new(1, 1.5, 4) |
| 98 | p.CFrame = CFrame.new(1.5, 6.66, -2) |
| 99 | p.BrickColor = BrickColor.new("Reddish brown") |
| 100 | p.Material = Enum.Material.Glacier |
| 101 | p.MaterialVariant = "2022 Small Stud" |
| 102 | p.Anchored = true |
| 103 | p.Parent = model |
| 104 | end |
| 105 | do |
| 106 | local p = Instance.new("Part") |
| 107 | p.Name = "TrunnionMountL" |
| 108 | p.Size = Vector3.new(1.1, 1.5, 2) |
| 109 | p.CFrame = CFrame.new(-1.62, 7.25, -4) |
| 110 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 111 | p.Material = Enum.Material.Glacier |
| 112 | p.MaterialVariant = "2022 Stud" |
| 113 | p.Anchored = true |
| 114 | p.Parent = model |
| 115 | end |
| 116 | do |
| 117 | local p = Instance.new("Part") |
| 118 | p.Name = "TrunnionMountR" |
| 119 | p.Size = Vector3.new(1.1, 1.5, 2) |
| 120 | p.CFrame = CFrame.new(1.62, 7.25, -4) |
| 121 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 122 | p.Material = Enum.Material.Glacier |
| 123 | p.MaterialVariant = "2022 Stud" |
| 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 = "TrunnionCapL" |
| 131 | p.Size = Vector3.new(1.2, 1.2, 1.2) |
| 132 | p.CFrame = CFrame.new(-1.5, 8, -4) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 133 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 134 | p.Material = Enum.Material.Glacier |
| 135 | p.MaterialVariant = "2022 Stud" |
| 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 = "TrunnionCapR" |
| 143 | p.Size = Vector3.new(1.2, 1.2, 1.2) |
| 144 | p.CFrame = CFrame.new(1.5, 8, -4) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 145 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 146 | p.Material = Enum.Material.Glacier |
| 147 | p.MaterialVariant = "2022 Stud" |
| 148 | p.Anchored = true |
| 149 | p.Parent = model |
| 150 | end |
| 151 | do |
| 152 | local p = Instance.new("Part") |
| 153 | p.Shape = Enum.PartType.Cylinder |
| 154 | p.Name = "AxleFront" |
| 155 | p.Size = Vector3.new(6, 1, 1) |
| 156 | p.CFrame = CFrame.new(-0.04, 2, -5) |
| 157 | p.BrickColor = BrickColor.new("Reddish brown") |
| 158 | p.Material = Enum.Material.Glacier |
| 159 | p.MaterialVariant = "2022 Small Stud" |
| 160 | p.Anchored = true |
| 161 | p.Parent = model |
| 162 | end |
| 163 | do |
| 164 | local p = Instance.new("Part") |
| 165 | p.Shape = Enum.PartType.Cylinder |
| 166 | p.Name = "AxleRear" |
| 167 | p.Size = Vector3.new(6, 1, 1) |
| 168 | p.CFrame = CFrame.new(-0.04, 2, 5) |
| 169 | p.BrickColor = BrickColor.new("Reddish brown") |
| 170 | p.Material = Enum.Material.Glacier |
| 171 | p.MaterialVariant = "2022 Small Stud" |
| 172 | p.Anchored = true |
| 173 | p.Parent = model |
| 174 | end |
| 175 | do |
| 176 | local p = Instance.new("Part") |
| 177 | p.Shape = Enum.PartType.Cylinder |
| 178 | p.Name = "WheelFL" |
| 179 | p.Size = Vector3.new(1, 5, 5) |
| 180 | p.CFrame = CFrame.new(-3.5, 2, -5) |
| 181 | p.BrickColor = BrickColor.new("Reddish brown") |
| 182 | p.Material = Enum.Material.Glacier |
| 183 | p.MaterialVariant = "2022 Small Stud" |
| 184 | p.Anchored = true |
| 185 | p.Parent = model |
| 186 | end |
| 187 | do |
| 188 | local p = Instance.new("Part") |
| 189 | p.Shape = Enum.PartType.Cylinder |
| 190 | p.Name = "WheelFR" |
| 191 | p.Size = Vector3.new(1, 5, 5) |
| 192 | p.CFrame = CFrame.new(3.5, 2, -5) |
| 193 | p.BrickColor = BrickColor.new("Reddish brown") |
| 194 | p.Material = Enum.Material.Glacier |
| 195 | p.MaterialVariant = "2022 Small Stud" |
| 196 | p.Anchored = true |
| 197 | p.Parent = model |
| 198 | end |
| 199 | do |
| 200 | local p = Instance.new("Part") |
| 201 | p.Shape = Enum.PartType.Cylinder |
| 202 | p.Name = "WheelRL" |
| 203 | p.Size = Vector3.new(1, 5, 5) |
| 204 | p.CFrame = CFrame.new(-3.5, 2, 5) |
| 205 | p.BrickColor = BrickColor.new("Reddish brown") |
| 206 | p.Material = Enum.Material.Glacier |
| 207 | p.MaterialVariant = "2022 Small Stud" |
| 208 | p.Anchored = true |
| 209 | p.Parent = model |
| 210 | end |
| 211 | do |
| 212 | local p = Instance.new("Part") |
| 213 | p.Shape = Enum.PartType.Cylinder |
| 214 | p.Name = "WheelRR" |
| 215 | p.Size = Vector3.new(1, 5, 5) |
| 216 | p.CFrame = CFrame.new(3.5, 2, 5) |
| 217 | p.BrickColor = BrickColor.new("Reddish brown") |
| 218 | p.Material = Enum.Material.Glacier |
| 219 | p.MaterialVariant = "2022 Small Stud" |
| 220 | p.Anchored = true |
| 221 | p.Parent = model |
| 222 | end |
| 223 | do |
| 224 | local p = Instance.new("Part") |
| 225 | p.Shape = Enum.PartType.Cylinder |
| 226 | p.Name = "HubFL" |
| 227 | p.Size = Vector3.new(0.5, 1.5, 1.5) |
| 228 | p.CFrame = CFrame.new(-4.2, 2, -5) |
| 229 | p.BrickColor = BrickColor.new("Reddish brown") |
| 230 | p.Material = Enum.Material.Glacier |
| 231 | p.MaterialVariant = "2022 Small Stud" |
| 232 | p.Anchored = true |
| 233 | p.Parent = model |
| 234 | end |
| 235 | do |
| 236 | local p = Instance.new("Part") |
| 237 | p.Shape = Enum.PartType.Cylinder |
| 238 | p.Name = "HubFR" |
| 239 | p.Size = Vector3.new(0.5, 1.5, 1.5) |
| 240 | p.CFrame = CFrame.new(4.2, 2, -5) |
| 241 | p.BrickColor = BrickColor.new("Reddish brown") |
| 242 | p.Material = Enum.Material.Glacier |
| 243 | p.MaterialVariant = "2022 Small Stud" |
| 244 | p.Anchored = true |
| 245 | p.Parent = model |
| 246 | end |
| 247 | do |
| 248 | local p = Instance.new("Part") |
| 249 | p.Shape = Enum.PartType.Cylinder |
| 250 | p.Name = "HubRL" |
| 251 | p.Size = Vector3.new(0.5, 1.5, 1.5) |
| 252 | p.CFrame = CFrame.new(-4.2, 2, 5) |
| 253 | p.BrickColor = BrickColor.new("Reddish brown") |
| 254 | p.Material = Enum.Material.Glacier |
| 255 | p.MaterialVariant = "2022 Small Stud" |
| 256 | p.Anchored = true |
| 257 | p.Parent = model |
| 258 | end |
| 259 | do |
| 260 | local p = Instance.new("Part") |
| 261 | p.Shape = Enum.PartType.Cylinder |
| 262 | p.Name = "HubRR" |
| 263 | p.Size = Vector3.new(0.5, 1.5, 1.5) |
| 264 | p.CFrame = CFrame.new(4.2, 2, 5) |
| 265 | p.BrickColor = BrickColor.new("Reddish brown") |
| 266 | p.Material = Enum.Material.Glacier |
| 267 | p.MaterialVariant = "2022 Small Stud" |
| 268 | p.Anchored = true |
| 269 | p.Parent = model |
| 270 | end |
| 271 | do |
| 272 | local p = Instance.new("Part") |
| 273 | p.Shape = Enum.PartType.Cylinder |
| 274 | p.Name = "PinFL" |
| 275 | p.Size = Vector3.new(0.8, 0.4, 0.4) |
| 276 | p.CFrame = CFrame.new(-4.6, 2, -5) |
| 277 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 278 | p.Material = Enum.Material.Glacier |
| 279 | p.MaterialVariant = "2022 Stud" |
| 280 | p.Anchored = true |
| 281 | p.Parent = model |
| 282 | end |
| 283 | do |
| 284 | local p = Instance.new("Part") |
| 285 | p.Shape = Enum.PartType.Cylinder |
| 286 | p.Name = "PinFR" |
| 287 | p.Size = Vector3.new(0.8, 0.4, 0.4) |
| 288 | p.CFrame = CFrame.new(4.6, 2, -5) |
| 289 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 290 | p.Material = Enum.Material.Glacier |
| 291 | p.MaterialVariant = "2022 Stud" |
| 292 | p.Anchored = true |
| 293 | p.Parent = model |
| 294 | end |
| 295 | do |
| 296 | local p = Instance.new("Part") |
| 297 | p.Shape = Enum.PartType.Cylinder |
| 298 | p.Name = "PinRL" |
| 299 | p.Size = Vector3.new(0.8, 0.4, 0.4) |
| 300 | p.CFrame = CFrame.new(-4.6, 2, 5) |
| 301 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 302 | p.Material = Enum.Material.Glacier |
| 303 | p.MaterialVariant = "2022 Stud" |
| 304 | p.Anchored = true |
| 305 | p.Parent = model |
| 306 | end |
| 307 | do |
| 308 | local p = Instance.new("Part") |
| 309 | p.Shape = Enum.PartType.Cylinder |
| 310 | p.Name = "PinRR" |
| 311 | p.Size = Vector3.new(0.8, 0.4, 0.4) |
| 312 | p.CFrame = CFrame.new(4.6, 2, 5) |
| 313 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 314 | p.Material = Enum.Material.Glacier |
| 315 | p.MaterialVariant = "2022 Stud" |
| 316 | p.Anchored = true |
| 317 | p.Parent = model |
| 318 | end |
| 319 | do |
| 320 | local p = Instance.new("Part") |
| 321 | p.Name = "SpokeFL" |
| 322 | p.Size = Vector3.new(0.2, 4.8, 0.6) |
| 323 | p.CFrame = CFrame.new(-4, 2, -5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(45)) |
| 324 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 325 | p.Material = Enum.Material.Glacier |
| 326 | p.MaterialVariant = "2022 Stud" |
| 327 | p.Anchored = true |
| 328 | p.Parent = model |
| 329 | end |
| 330 | do |
| 331 | local p = Instance.new("Part") |
| 332 | p.Name = "SpokeFR" |
| 333 | p.Size = Vector3.new(0.2, 4.8, 0.6) |
| 334 | p.CFrame = CFrame.new(4, 2, -5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(45)) |
| 335 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 336 | p.Material = Enum.Material.Glacier |
| 337 | p.MaterialVariant = "2022 Stud" |
| 338 | p.Anchored = true |
| 339 | p.Parent = model |
| 340 | end |
| 341 | do |
| 342 | local p = Instance.new("Part") |
| 343 | p.Name = "SpokeRL" |
| 344 | p.Size = Vector3.new(0.2, 4.8, 0.6) |
| 345 | p.CFrame = CFrame.new(-4, 2, 5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(45)) |
| 346 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 347 | p.Material = Enum.Material.Glacier |
| 348 | p.MaterialVariant = "2022 Stud" |
| 349 | p.Anchored = true |
| 350 | p.Parent = model |
| 351 | end |
| 352 | do |
| 353 | local p = Instance.new("Part") |
| 354 | p.Name = "SpokeRR" |
| 355 | p.Size = Vector3.new(0.2, 4.8, 0.6) |
| 356 | p.CFrame = CFrame.new(4, 2, 5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(45)) |
| 357 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 358 | p.Material = Enum.Material.Glacier |
| 359 | p.MaterialVariant = "2022 Stud" |
| 360 | p.Anchored = true |
| 361 | p.Parent = model |
| 362 | end |
| 363 | do |
| 364 | local p = Instance.new("Part") |
| 365 | p.Shape = Enum.PartType.Ball |
| 366 | p.Name = "CascabelKnob" |
| 367 | p.Size = Vector3.new(1.5, 1.5, 1.5) |
| 368 | p.CFrame = CFrame.new(0, 8.92351, 1.31259) |
| 369 | p.BrickColor = BrickColor.new("Really black") |
| 370 | p.Material = Enum.Material.Glacier |
| 371 | p.MaterialVariant = "2022 Universal" |
| 372 | p.Anchored = true |
| 373 | p.Parent = model |
| 374 | end |
| 375 | do |
| 376 | local p = Instance.new("Part") |
| 377 | p.Shape = Enum.PartType.Cylinder |
| 378 | p.Name = "CascabelNeck" |
| 379 | p.Size = Vector3.new(1, 1, 1) |
| 380 | p.CFrame = CFrame.new(0, 8.74233, 0.636444) * CFrame.Angles(math.rad(15), math.rad(90), math.rad(0)) |
| 381 | p.BrickColor = BrickColor.new("Really black") |
| 382 | p.Material = Enum.Material.Glacier |
| 383 | p.MaterialVariant = "2022 Universal" |
| 384 | p.Anchored = true |
| 385 | p.Parent = model |
| 386 | end |
| 387 | do |
| 388 | local p = Instance.new("Part") |
| 389 | p.Shape = Enum.PartType.Cylinder |
| 390 | p.Name = "BarrelRear" |
| 391 | p.Size = Vector3.new(4, 3.6, 3.6) |
| 392 | p.CFrame = CFrame.new(0, 8.01764, -2.06815) * CFrame.Angles(math.rad(15), math.rad(90), math.rad(0)) |
| 393 | p.BrickColor = BrickColor.new("Really black") |
| 394 | p.Material = Enum.Material.Glacier |
| 395 | p.MaterialVariant = "2022 Universal" |
| 396 | p.Anchored = true |
| 397 | p.Parent = model |
| 398 | end |
| 399 | do |
| 400 | local p = Instance.new("Part") |
| 401 | p.Shape = Enum.PartType.Cylinder |
| 402 | p.Name = "Ring1" |
| 403 | p.Size = Vector3.new(0.5, 3.8, 3.8) |
| 404 | p.CFrame = CFrame.new(0, 7.510353, -4.038637) * CFrame.Angles(math.rad(15), math.rad(90), math.rad(0)) |
| 405 | p.BrickColor = BrickColor.new("Really black") |
| 406 | p.Material = Enum.Material.Glacier |
| 407 | p.MaterialVariant = "2022 Universal" |
| 408 | p.Anchored = true |
| 409 | p.Parent = model |
| 410 | end |
| 411 | do |
| 412 | local p = Instance.new("Part") |
| 413 | p.Shape = Enum.PartType.Cylinder |
| 414 | p.Name = "BarrelMid" |
| 415 | p.Size = Vector3.new(5, 3.2, 3.2) |
| 416 | p.CFrame = CFrame.new(0, 6.85295, -6.41481) * CFrame.Angles(math.rad(15), math.rad(90), math.rad(0)) |
| 417 | p.BrickColor = BrickColor.new("Really black") |
| 418 | p.Material = Enum.Material.Glacier |
| 419 | p.MaterialVariant = "2022 Universal" |
| 420 | p.Anchored = true |
| 421 | p.Parent = model |
| 422 | end |
| 423 | do |
| 424 | local p = Instance.new("Part") |
| 425 | p.Shape = Enum.PartType.Cylinder |
| 426 | p.Name = "Ring2" |
| 427 | p.Size = Vector3.new(0.5, 3.4, 3.4) |
| 428 | p.CFrame = CFrame.new(0, 6.2059, -8.82963) * CFrame.Angles(math.rad(15), math.rad(90), math.rad(0)) |
| 429 | p.BrickColor = BrickColor.new("Really black") |
| 430 | p.Material = Enum.Material.Glacier |
| 431 | p.MaterialVariant = "2022 Universal" |
| 432 | p.Anchored = true |
| 433 | p.Parent = model |
| 434 | end |
| 435 | do |
| 436 | local p = Instance.new("Part") |
| 437 | p.Shape = Enum.PartType.Cylinder |
| 438 | p.Name = "BarrelFront" |
| 439 | p.Size = Vector3.new(5, 2.8, 2.8) |
| 440 | p.CFrame = CFrame.new(0, 5.55886, -11.2444) * CFrame.Angles(math.rad(15), math.rad(90), math.rad(0)) |
| 441 | p.BrickColor = BrickColor.new("Really black") |
| 442 | p.Material = Enum.Material.Glacier |
| 443 | p.MaterialVariant = "2022 Universal" |
| 444 | p.Anchored = true |
| 445 | p.Parent = model |
| 446 | end |
| 447 | do |
| 448 | local p = Instance.new("Part") |
| 449 | p.Shape = Enum.PartType.Cylinder |
| 450 | p.Name = "Muzzle" |
| 451 | p.Size = Vector3.new(1.5, 3.4, 3.4) |
| 452 | p.CFrame = CFrame.new(0, 4.7824, -14.1422) * CFrame.Angles(math.rad(15), math.rad(90), math.rad(0)) |
| 453 | p.BrickColor = BrickColor.new("Really black") |
| 454 | p.Material = Enum.Material.Glacier |
| 455 | p.MaterialVariant = "2022 Universal" |
| 456 | p.Anchored = true |
| 457 | p.Parent = model |
| 458 | end |
| 459 | do |
| 460 | local p = Instance.new("Part") |
| 461 | p.Shape = Enum.PartType.Cylinder |
| 462 | p.Name = "MuzzleHole" |
| 463 | p.Size = Vector3.new(0.6, 2, 2) |
| 464 | p.CFrame = CFrame.new(0, 4.663343, -14.663837) * CFrame.Angles(math.rad(15), math.rad(90), math.rad(0)) |
| 465 | p.BrickColor = BrickColor.new("Really black") |
| 466 | p.Material = Enum.Material.Glacier |
| 467 | p.MaterialVariant = "2022 Universal" |
| 468 | p.Anchored = true |
| 469 | p.Parent = model |
| 470 | end |
| 471 | do |
| 472 | local p = Instance.new("Part") |
| 473 | p.Shape = Enum.PartType.Cylinder |
| 474 | p.Name = "TrunnionAxle" |
| 475 | p.Size = Vector3.new(4, 1, 1) |
| 476 | p.CFrame = CFrame.new(0.04, 7.5, -4) |
| 477 | p.BrickColor = BrickColor.new("Really black") |
| 478 | p.Material = Enum.Material.Glacier |
| 479 | p.MaterialVariant = "2022 Universal" |
| 480 | p.Anchored = true |
| 481 | p.Parent = model |
| 482 | end |
| 483 | do |
| 484 | local rightV = Vector3.new(0,0,1).Unit |
| 485 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 486 | local normalV = upV:Cross(rightV) |
| 487 | local pos = Vector3.new(-1.68, 4.5, -4) |
| 488 | local cyl = Instance.new("Part") |
| 489 | cyl.Shape = Enum.PartType.Cylinder |
| 490 | cyl.Size = Vector3.new(0.2, 1.6, 1.6) |
| 491 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 492 | cyl.BrickColor = BrickColor.new("Dark stone grey") |
| 493 | cyl.Material = Enum.Material.Glacier |
| 494 | cyl.MaterialVariant = "2022 Stud" |
| 495 | cyl.Anchored = true; cyl.Parent = workspace |
| 496 | local cuts = {} |
| 497 | local hole = Instance.new("Part") |
| 498 | hole.Shape = Enum.PartType.Cylinder |
| 499 | hole.Size = Vector3.new(0.4, 1.2, 1.2) |
| 500 | hole.CFrame = cyl.CFrame |
| 501 | hole.BrickColor = BrickColor.new("Dark stone grey") |
| 502 | hole.Material = Enum.Material.Glacier |
| 503 | hole.MaterialVariant = "2022 Stud" |
| 504 | hole.Anchored = true; hole.Parent = workspace |
| 505 | table.insert(cuts, hole) |
| 506 | if #cuts > 0 then |
| 507 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 508 | for _, c in ipairs(cuts) do c:Destroy() end |
| 509 | if ok and result then |
| 510 | cyl:Destroy() |
| 511 | result.Name = "RingFrontL"; result.Anchored = true; result.Parent = model |
| 512 | else |
| 513 | cyl.Name = "RingFrontL"; cyl.Parent = model |
| 514 | end |
| 515 | else |
| 516 | cyl.Name = "RingFrontL"; cyl.Parent = model |
| 517 | end |
| 518 | end |
| 519 | do |
| 520 | local rightV = Vector3.new(0,0,1).Unit |
| 521 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 522 | local normalV = upV:Cross(rightV) |
| 523 | local pos = Vector3.new(1.68, 4.5, -4) |
| 524 | local cyl = Instance.new("Part") |
| 525 | cyl.Shape = Enum.PartType.Cylinder |
| 526 | cyl.Size = Vector3.new(0.2, 1.6, 1.6) |
| 527 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 528 | cyl.BrickColor = BrickColor.new("Dark stone grey") |
| 529 | cyl.Material = Enum.Material.Glacier |
| 530 | cyl.MaterialVariant = "2022 Stud" |
| 531 | cyl.Anchored = true; cyl.Parent = workspace |
| 532 | local cuts = {} |
| 533 | local hole = Instance.new("Part") |
| 534 | hole.Shape = Enum.PartType.Cylinder |
| 535 | hole.Size = Vector3.new(0.4, 1.2, 1.2) |
| 536 | hole.CFrame = cyl.CFrame |
| 537 | hole.BrickColor = BrickColor.new("Dark stone grey") |
| 538 | hole.Material = Enum.Material.Glacier |
| 539 | hole.MaterialVariant = "2022 Stud" |
| 540 | hole.Anchored = true; hole.Parent = workspace |
| 541 | table.insert(cuts, hole) |
| 542 | if #cuts > 0 then |
| 543 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 544 | for _, c in ipairs(cuts) do c:Destroy() end |
| 545 | if ok and result then |
| 546 | cyl:Destroy() |
| 547 | result.Name = "RingFrontR"; result.Anchored = true; result.Parent = model |
| 548 | else |
| 549 | cyl.Name = "RingFrontR"; cyl.Parent = model |
| 550 | end |
| 551 | else |
| 552 | cyl.Name = "RingFrontR"; cyl.Parent = model |
| 553 | end |
| 554 | end |
| 555 | do |
| 556 | local rightV = Vector3.new(0,0,1).Unit |
| 557 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 558 | local normalV = upV:Cross(rightV) |
| 559 | local pos = Vector3.new(-1.68, 4.5, 1) |
| 560 | local cyl = Instance.new("Part") |
| 561 | cyl.Shape = Enum.PartType.Cylinder |
| 562 | cyl.Size = Vector3.new(0.2, 1.6, 1.6) |
| 563 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 564 | cyl.BrickColor = BrickColor.new("Dark stone grey") |
| 565 | cyl.Material = Enum.Material.Glacier |
| 566 | cyl.MaterialVariant = "2022 Stud" |
| 567 | cyl.Anchored = true; cyl.Parent = workspace |
| 568 | local cuts = {} |
| 569 | local hole = Instance.new("Part") |
| 570 | hole.Shape = Enum.PartType.Cylinder |
| 571 | hole.Size = Vector3.new(0.4, 1.2, 1.2) |
| 572 | hole.CFrame = cyl.CFrame |
| 573 | hole.BrickColor = BrickColor.new("Dark stone grey") |
| 574 | hole.Material = Enum.Material.Glacier |
| 575 | hole.MaterialVariant = "2022 Stud" |
| 576 | hole.Anchored = true; hole.Parent = workspace |
| 577 | table.insert(cuts, hole) |
| 578 | if #cuts > 0 then |
| 579 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 580 | for _, c in ipairs(cuts) do c:Destroy() end |
| 581 | if ok and result then |
| 582 | cyl:Destroy() |
| 583 | result.Name = "RingRearL"; result.Anchored = true; result.Parent = model |
| 584 | else |
| 585 | cyl.Name = "RingRearL"; cyl.Parent = model |
| 586 | end |
| 587 | else |
| 588 | cyl.Name = "RingRearL"; cyl.Parent = model |
| 589 | end |
| 590 | end |
| 591 | do |
| 592 | local rightV = Vector3.new(0,0,1).Unit |
| 593 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 594 | local normalV = upV:Cross(rightV) |
| 595 | local pos = Vector3.new(1.68, 4.5, 1) |
| 596 | local cyl = Instance.new("Part") |
| 597 | cyl.Shape = Enum.PartType.Cylinder |
| 598 | cyl.Size = Vector3.new(0.2, 1.6, 1.6) |
| 599 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 600 | cyl.BrickColor = BrickColor.new("Dark stone grey") |
| 601 | cyl.Material = Enum.Material.Glacier |
| 602 | cyl.MaterialVariant = "2022 Stud" |
| 603 | cyl.Anchored = true; cyl.Parent = workspace |
| 604 | local cuts = {} |
| 605 | local hole = Instance.new("Part") |
| 606 | hole.Shape = Enum.PartType.Cylinder |
| 607 | hole.Size = Vector3.new(0.4, 1.2, 1.2) |
| 608 | hole.CFrame = cyl.CFrame |
| 609 | hole.BrickColor = BrickColor.new("Dark stone grey") |
| 610 | hole.Material = Enum.Material.Glacier |
| 611 | hole.MaterialVariant = "2022 Stud" |
| 612 | hole.Anchored = true; hole.Parent = workspace |
| 613 | table.insert(cuts, hole) |
| 614 | if #cuts > 0 then |
| 615 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 616 | for _, c in ipairs(cuts) do c:Destroy() end |
| 617 | if ok and result then |
| 618 | cyl:Destroy() |
| 619 | result.Name = "RingRearR"; result.Anchored = true; result.Parent = model |
| 620 | else |
| 621 | cyl.Name = "RingRearR"; cyl.Parent = model |
| 622 | end |
| 623 | else |
| 624 | cyl.Name = "RingRearR"; cyl.Parent = model |
| 625 | end |
| 626 | end |
| 627 | do |
| 628 | local rightV = Vector3.new(1,0,0).Unit |
| 629 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 630 | local normalV = upV:Cross(rightV) |
| 631 | local pos = Vector3.new(0, 2, 8.2) |
| 632 | local cyl = Instance.new("Part") |
| 633 | cyl.Shape = Enum.PartType.Cylinder |
| 634 | cyl.Size = Vector3.new(0.2, 1.6, 1.6) |
| 635 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 636 | cyl.BrickColor = BrickColor.new("Dark stone grey") |
| 637 | cyl.Material = Enum.Material.Glacier |
| 638 | cyl.MaterialVariant = "2022 Stud" |
| 639 | cyl.Anchored = true; cyl.Parent = workspace |
| 640 | local cuts = {} |
| 641 | local hole = Instance.new("Part") |
| 642 | hole.Shape = Enum.PartType.Cylinder |
| 643 | hole.Size = Vector3.new(0.4, 1.2, 1.2) |
| 644 | hole.CFrame = cyl.CFrame |
| 645 | hole.BrickColor = BrickColor.new("Dark stone grey") |
| 646 | hole.Material = Enum.Material.Glacier |
| 647 | hole.MaterialVariant = "2022 Stud" |
| 648 | hole.Anchored = true; hole.Parent = workspace |
| 649 | table.insert(cuts, hole) |
| 650 | if #cuts > 0 then |
| 651 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 652 | for _, c in ipairs(cuts) do c:Destroy() end |
| 653 | if ok and result then |
| 654 | cyl:Destroy() |
| 655 | result.Name = "RingTail"; result.Anchored = true; result.Parent = model |
| 656 | else |
| 657 | cyl.Name = "RingTail"; cyl.Parent = model |
| 658 | end |
| 659 | else |
| 660 | cyl.Name = "RingTail"; cyl.Parent = model |
| 661 | end |
| 662 | end |
| 663 | do |
| 664 | local upV = Vector3.new(0,0.965926,-0.258819).Unit |
| 665 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 666 | local forwardV = rightV:Cross(upV) |
| 667 | local pos = Vector3.new(0, 8.53528, -0.136297) |
| 668 | local ball = Instance.new("Part") |
| 669 | ball.Shape = Enum.PartType.Ball |
| 670 | ball.Size = Vector3.new(3.6, 3.6, 3.6) |
| 671 | ball.CFrame = CFrame.new(pos) |
| 672 | ball.BrickColor = BrickColor.new("Really black") |
| 673 | ball.Material = Enum.Material.Glacier |
| 674 | ball.MaterialVariant = "2022 Universal" |
| 675 | ball.Anchored = true; ball.Parent = workspace |
| 676 | local cuts = {} |
| 677 | do |
| 678 | local h = 0 |
| 679 | local cut = Instance.new("Part") |
| 680 | cut.Size = Vector3.new(7.2, 7.2, 7.2) |
| 681 | cut.CFrame = CFrame.fromMatrix(pos + upV*(-3.6), rightV, upV) |
| 682 | cut.BrickColor = BrickColor.new("Really black") |
| 683 | cut.Material = Enum.Material.Glacier |
| 684 | cut.MaterialVariant = "2022 Universal" |
| 685 | cut.Anchored = true; cut.Parent = workspace |
| 686 | table.insert(cuts, cut) |
| 687 | end |
| 688 | if #cuts > 0 then |
| 689 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 690 | for _, c in ipairs(cuts) do c:Destroy() end |
| 691 | if ok and result then |
| 692 | ball:Destroy() |
| 693 | result.Name = "CascabelBase"; result.Anchored = true; result.Parent = model |
| 694 | else |
| 695 | ball.Name = "CascabelBase"; ball.Parent = model |
| 696 | end |
| 697 | else |
| 698 | ball.Name = "CascabelBase"; ball.Parent = model |
| 699 | end |
| 700 | end |
| 701 | model.PrimaryPart = model:FindFirstChild("CarriageBase") |
| 702 | print("Cannon built: " .. #model:GetChildren() .. " parts") |
Loading comments...