Loading model...
by Petej jssjjd · 4/1/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: ShopBuilding |
| 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 = "ShopBuilding" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Baby blue"] = "2022 Stud", |
| 25 | ["Bright orange"] = "2022 Stud", |
| 26 | ["Bright yellow"] = "2022 Big Stud", |
| 27 | ["Daisy orange"] = "2022 Stud", |
| 28 | ["Institutional white"] = "2022 Stud", |
| 29 | ["Reddish brown"] = "2022 Small Stud", |
| 30 | } |
| 31 | do |
| 32 | local p = Instance.new("Part") |
| 33 | p.Name = "Base" |
| 34 | p.Size = Vector3.new(24, 1, 14) |
| 35 | p.CFrame = CFrame.new(0, 0.42, 0) |
| 36 | p.BrickColor = BrickColor.new("Reddish brown") |
| 37 | p.Material = Enum.Material.Glacier |
| 38 | p.MaterialVariant = "2022 Small Stud" |
| 39 | p.Anchored = true |
| 40 | p.Parent = model |
| 41 | end |
| 42 | do |
| 43 | local p = Instance.new("Part") |
| 44 | p.Name = "WallLower" |
| 45 | p.Size = Vector3.new(20, 3, 10) |
| 46 | p.CFrame = CFrame.new(0, 2.46, 0) |
| 47 | p.BrickColor = BrickColor.new("Daisy orange") |
| 48 | p.Material = Enum.Material.Glacier |
| 49 | p.MaterialVariant = "2022 Stud" |
| 50 | p.Anchored = true |
| 51 | p.Parent = model |
| 52 | end |
| 53 | do |
| 54 | local p = Instance.new("Part") |
| 55 | p.Name = "WallUpper" |
| 56 | p.Size = Vector3.new(20, 7, 10) |
| 57 | p.CFrame = CFrame.new(0, 7.5, 0) |
| 58 | p.BrickColor = BrickColor.new("Bright orange") |
| 59 | p.Material = Enum.Material.Glacier |
| 60 | p.MaterialVariant = "2022 Stud" |
| 61 | p.Anchored = true |
| 62 | p.Parent = model |
| 63 | end |
| 64 | do |
| 65 | local p = Instance.new("Part") |
| 66 | p.Name = "DoorFrameL" |
| 67 | p.Size = Vector3.new(0.4, 8, 0.4) |
| 68 | p.CFrame = CFrame.new(-7.38, 4.5, -5.1) |
| 69 | p.BrickColor = BrickColor.new("Reddish brown") |
| 70 | p.Material = Enum.Material.Glacier |
| 71 | p.MaterialVariant = "2022 Small Stud" |
| 72 | p.Anchored = true |
| 73 | p.Parent = model |
| 74 | end |
| 75 | do |
| 76 | local p = Instance.new("Part") |
| 77 | p.Name = "DoorFrameR" |
| 78 | p.Size = Vector3.new(0.4, 8, 0.4) |
| 79 | p.CFrame = CFrame.new(-2.62, 4.5, -5.1) |
| 80 | p.BrickColor = BrickColor.new("Reddish brown") |
| 81 | p.Material = Enum.Material.Glacier |
| 82 | p.MaterialVariant = "2022 Small Stud" |
| 83 | p.Anchored = true |
| 84 | p.Parent = model |
| 85 | end |
| 86 | do |
| 87 | local p = Instance.new("Part") |
| 88 | p.Name = "DoorFrameT" |
| 89 | p.Size = Vector3.new(5, 0.4, 0.4) |
| 90 | p.CFrame = CFrame.new(-4.96, 8.34, -5.06) |
| 91 | p.BrickColor = BrickColor.new("Reddish brown") |
| 92 | p.Material = Enum.Material.Glacier |
| 93 | p.MaterialVariant = "2022 Small Stud" |
| 94 | p.Anchored = true |
| 95 | p.Parent = model |
| 96 | end |
| 97 | do |
| 98 | local p = Instance.new("Part") |
| 99 | p.Name = "DoorPanel" |
| 100 | p.Size = Vector3.new(4.2, 7.6, 0.2) |
| 101 | p.CFrame = CFrame.new(-5, 4.3, -5) |
| 102 | p.BrickColor = BrickColor.new("Reddish brown") |
| 103 | p.Material = Enum.Material.Glacier |
| 104 | p.MaterialVariant = "2022 Small Stud" |
| 105 | p.Anchored = true |
| 106 | p.Parent = model |
| 107 | end |
| 108 | do |
| 109 | local p = Instance.new("Part") |
| 110 | p.Name = "DoorGlass" |
| 111 | p.Size = Vector3.new(3.4, 3.4, 0.2) |
| 112 | p.CFrame = CFrame.new(-5, 6, -5.15) |
| 113 | p.BrickColor = BrickColor.new("Baby blue") |
| 114 | p.Material = Enum.Material.Glacier |
| 115 | p.MaterialVariant = "2022 Stud" |
| 116 | p.Anchored = true |
| 117 | p.Parent = model |
| 118 | end |
| 119 | do |
| 120 | local p = Instance.new("Part") |
| 121 | p.Name = "DoorHigh" |
| 122 | p.Size = Vector3.new(0.4, 3, 0.1) |
| 123 | p.CFrame = CFrame.new(-5, 6, -5.25) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(20)) |
| 124 | p.BrickColor = BrickColor.new("Institutional white") |
| 125 | p.Material = Enum.Material.Glacier |
| 126 | p.MaterialVariant = "2022 Stud" |
| 127 | p.Anchored = true |
| 128 | p.Parent = model |
| 129 | end |
| 130 | do |
| 131 | local p = Instance.new("Part") |
| 132 | p.Shape = Enum.PartType.Ball |
| 133 | p.Name = "Doorknob" |
| 134 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 135 | p.CFrame = CFrame.new(-3.5, 4.5, -5.3) |
| 136 | p.BrickColor = BrickColor.new("Bright yellow") |
| 137 | p.Material = Enum.Material.Glacier |
| 138 | p.MaterialVariant = "2022 Big Stud" |
| 139 | p.Anchored = true |
| 140 | p.Parent = model |
| 141 | end |
| 142 | do |
| 143 | local p = Instance.new("Part") |
| 144 | p.Name = "WinFrameB" |
| 145 | p.Size = Vector3.new(8, 0.4, 0.4) |
| 146 | p.CFrame = CFrame.new(4, 4.46, -5.1) |
| 147 | p.BrickColor = BrickColor.new("Reddish brown") |
| 148 | p.Material = Enum.Material.Glacier |
| 149 | p.MaterialVariant = "2022 Small Stud" |
| 150 | p.Anchored = true |
| 151 | p.Parent = model |
| 152 | end |
| 153 | do |
| 154 | local p = Instance.new("Part") |
| 155 | p.Name = "WinFrameT" |
| 156 | p.Size = Vector3.new(8, 0.4, 0.4) |
| 157 | p.CFrame = CFrame.new(4, 8.54, -5.1) |
| 158 | p.BrickColor = BrickColor.new("Reddish brown") |
| 159 | p.Material = Enum.Material.Glacier |
| 160 | p.MaterialVariant = "2022 Small Stud" |
| 161 | p.Anchored = true |
| 162 | p.Parent = model |
| 163 | end |
| 164 | do |
| 165 | local p = Instance.new("Part") |
| 166 | p.Name = "WinFrameL" |
| 167 | p.Size = Vector3.new(0.4, 4.4, 0.4) |
| 168 | p.CFrame = CFrame.new(0.12, 6.5, -5.02) |
| 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.Name = "WinFrameR" |
| 178 | p.Size = Vector3.new(0.4, 4.4, 0.4) |
| 179 | p.CFrame = CFrame.new(7.88, 6.5, -5.02) |
| 180 | p.BrickColor = BrickColor.new("Reddish brown") |
| 181 | p.Material = Enum.Material.Glacier |
| 182 | p.MaterialVariant = "2022 Small Stud" |
| 183 | p.Anchored = true |
| 184 | p.Parent = model |
| 185 | end |
| 186 | do |
| 187 | local p = Instance.new("Part") |
| 188 | p.Name = "WinFrameM" |
| 189 | p.Size = Vector3.new(0.4, 4.4, 0.4) |
| 190 | p.CFrame = CFrame.new(3.96, 6.5, -5.06) |
| 191 | p.BrickColor = BrickColor.new("Reddish brown") |
| 192 | p.Material = Enum.Material.Glacier |
| 193 | p.MaterialVariant = "2022 Small Stud" |
| 194 | p.Anchored = true |
| 195 | p.Parent = model |
| 196 | end |
| 197 | do |
| 198 | local p = Instance.new("Part") |
| 199 | p.Name = "WinGlassL" |
| 200 | p.Size = Vector3.new(3.4, 3.6, 0.2) |
| 201 | p.CFrame = CFrame.new(2.1, 6.5, -5) |
| 202 | p.BrickColor = BrickColor.new("Baby blue") |
| 203 | p.Material = Enum.Material.Glacier |
| 204 | p.MaterialVariant = "2022 Stud" |
| 205 | p.Anchored = true |
| 206 | p.Parent = model |
| 207 | end |
| 208 | do |
| 209 | local p = Instance.new("Part") |
| 210 | p.Name = "WinGlassR" |
| 211 | p.Size = Vector3.new(3.4, 3.6, 0.2) |
| 212 | p.CFrame = CFrame.new(5.9, 6.5, -5) |
| 213 | p.BrickColor = BrickColor.new("Baby blue") |
| 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.Name = "GlassHighL" |
| 222 | p.Size = Vector3.new(0.4, 3, 0.1) |
| 223 | p.CFrame = CFrame.new(2.1, 6.5, -5.23) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(20)) |
| 224 | p.BrickColor = BrickColor.new("Institutional white") |
| 225 | p.Material = Enum.Material.Glacier |
| 226 | p.MaterialVariant = "2022 Stud" |
| 227 | p.Anchored = true |
| 228 | p.Parent = model |
| 229 | end |
| 230 | do |
| 231 | local p = Instance.new("Part") |
| 232 | p.Name = "GlassHighR" |
| 233 | p.Size = Vector3.new(0.4, 3, 0.1) |
| 234 | p.CFrame = CFrame.new(5.9, 6.5, -5.23) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(20)) |
| 235 | p.BrickColor = BrickColor.new("Institutional white") |
| 236 | p.Material = Enum.Material.Glacier |
| 237 | p.MaterialVariant = "2022 Stud" |
| 238 | p.Anchored = true |
| 239 | p.Parent = model |
| 240 | end |
| 241 | do |
| 242 | local p = Instance.new("Part") |
| 243 | p.Name = "AwningStripe_0" |
| 244 | p.Size = Vector3.new(2.4, 0.5, 6) |
| 245 | p.CFrame = CFrame.new(-9.8, 10, -7.6) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)) |
| 246 | p.BrickColor = BrickColor.new("Bright orange") |
| 247 | p.Material = Enum.Material.Glacier |
| 248 | p.MaterialVariant = "2022 Stud" |
| 249 | p.Anchored = true |
| 250 | p.Parent = model |
| 251 | end |
| 252 | do |
| 253 | local p = Instance.new("Part") |
| 254 | p.Name = "AwningStripe_1" |
| 255 | p.Size = Vector3.new(2.4, 0.5, 6) |
| 256 | p.CFrame = CFrame.new(-7.4, 10, -7.6) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)) |
| 257 | p.BrickColor = BrickColor.new("Institutional white") |
| 258 | p.Material = Enum.Material.Glacier |
| 259 | p.MaterialVariant = "2022 Stud" |
| 260 | p.Anchored = true |
| 261 | p.Parent = model |
| 262 | end |
| 263 | do |
| 264 | local p = Instance.new("Part") |
| 265 | p.Name = "AwningStripe_2" |
| 266 | p.Size = Vector3.new(2.4, 0.5, 6) |
| 267 | p.CFrame = CFrame.new(-5, 10, -7.6) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)) |
| 268 | p.BrickColor = BrickColor.new("Bright orange") |
| 269 | p.Material = Enum.Material.Glacier |
| 270 | p.MaterialVariant = "2022 Stud" |
| 271 | p.Anchored = true |
| 272 | p.Parent = model |
| 273 | end |
| 274 | do |
| 275 | local p = Instance.new("Part") |
| 276 | p.Name = "AwningStripe_3" |
| 277 | p.Size = Vector3.new(2.4, 0.5, 6) |
| 278 | p.CFrame = CFrame.new(-2.6, 10, -7.6) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)) |
| 279 | p.BrickColor = BrickColor.new("Institutional white") |
| 280 | p.Material = Enum.Material.Glacier |
| 281 | p.MaterialVariant = "2022 Stud" |
| 282 | p.Anchored = true |
| 283 | p.Parent = model |
| 284 | end |
| 285 | do |
| 286 | local p = Instance.new("Part") |
| 287 | p.Name = "AwningStripe_4" |
| 288 | p.Size = Vector3.new(2.4, 0.5, 6) |
| 289 | p.CFrame = CFrame.new(-0.16, 10, -7.6) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)) |
| 290 | p.BrickColor = BrickColor.new("Bright orange") |
| 291 | p.Material = Enum.Material.Glacier |
| 292 | p.MaterialVariant = "2022 Stud" |
| 293 | p.Anchored = true |
| 294 | p.Parent = model |
| 295 | end |
| 296 | do |
| 297 | local p = Instance.new("Part") |
| 298 | p.Name = "AwningStripe_5" |
| 299 | p.Size = Vector3.new(2.4, 0.5, 6) |
| 300 | p.CFrame = CFrame.new(2.28, 10, -7.6) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)) |
| 301 | p.BrickColor = BrickColor.new("Institutional white") |
| 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.Name = "AwningStripe_6" |
| 310 | p.Size = Vector3.new(2.4, 0.5, 6) |
| 311 | p.CFrame = CFrame.new(4.72, 10, -7.6) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)) |
| 312 | p.BrickColor = BrickColor.new("Bright orange") |
| 313 | p.Material = Enum.Material.Glacier |
| 314 | p.MaterialVariant = "2022 Stud" |
| 315 | p.Anchored = true |
| 316 | p.Parent = model |
| 317 | end |
| 318 | do |
| 319 | local p = Instance.new("Part") |
| 320 | p.Name = "AwningStripe_7" |
| 321 | p.Size = Vector3.new(2.4, 0.5, 6) |
| 322 | p.CFrame = CFrame.new(7.16, 10, -7.6) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)) |
| 323 | p.BrickColor = BrickColor.new("Institutional white") |
| 324 | p.Material = Enum.Material.Glacier |
| 325 | p.MaterialVariant = "2022 Stud" |
| 326 | p.Anchored = true |
| 327 | p.Parent = model |
| 328 | end |
| 329 | do |
| 330 | local p = Instance.new("Part") |
| 331 | p.Name = "AwningStripe_8" |
| 332 | p.Size = Vector3.new(2.4, 0.5, 6) |
| 333 | p.CFrame = CFrame.new(9.6, 10, -7.6) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)) |
| 334 | p.BrickColor = BrickColor.new("Bright orange") |
| 335 | p.Material = Enum.Material.Glacier |
| 336 | p.MaterialVariant = "2022 Stud" |
| 337 | p.Anchored = true |
| 338 | p.Parent = model |
| 339 | end |
| 340 | do |
| 341 | local p = Instance.new("Part") |
| 342 | p.Name = "Cornice" |
| 343 | p.Size = Vector3.new(22, 1.5, 1.5) |
| 344 | p.CFrame = CFrame.new(0, 11.5, -4.5) |
| 345 | p.BrickColor = BrickColor.new("Bright orange") |
| 346 | p.Material = Enum.Material.Glacier |
| 347 | p.MaterialVariant = "2022 Stud" |
| 348 | p.Anchored = true |
| 349 | p.Parent = model |
| 350 | end |
| 351 | do |
| 352 | local p = Instance.new("Part") |
| 353 | p.Name = "SignBase" |
| 354 | p.Size = Vector3.new(12, 4.5, 1) |
| 355 | p.CFrame = CFrame.new(0, 14.5, -3) |
| 356 | p.BrickColor = BrickColor.new("Reddish brown") |
| 357 | p.Material = Enum.Material.Glacier |
| 358 | p.MaterialVariant = "2022 Small Stud" |
| 359 | p.Anchored = true |
| 360 | p.Parent = model |
| 361 | end |
| 362 | do |
| 363 | local p = Instance.new("Part") |
| 364 | p.Name = "SignBorderT" |
| 365 | p.Size = Vector3.new(11.5, 0.3, 0.3) |
| 366 | p.CFrame = CFrame.new(0, 16.5, -3.1) |
| 367 | p.BrickColor = BrickColor.new("Institutional white") |
| 368 | p.Material = Enum.Material.Glacier |
| 369 | p.MaterialVariant = "2022 Stud" |
| 370 | p.Anchored = true |
| 371 | p.Parent = model |
| 372 | end |
| 373 | do |
| 374 | local p = Instance.new("Part") |
| 375 | p.Name = "SignBorderB" |
| 376 | p.Size = Vector3.new(11.5, 0.3, 0.3) |
| 377 | p.CFrame = CFrame.new(0, 12.5, -3.1) |
| 378 | p.BrickColor = BrickColor.new("Institutional white") |
| 379 | p.Material = Enum.Material.Glacier |
| 380 | p.MaterialVariant = "2022 Stud" |
| 381 | p.Anchored = true |
| 382 | p.Parent = model |
| 383 | end |
| 384 | do |
| 385 | local p = Instance.new("Part") |
| 386 | p.Name = "SignBorderL" |
| 387 | p.Size = Vector3.new(0.3, 4.3, 0.3) |
| 388 | p.CFrame = CFrame.new(-5.68, 14.42, -3.02) |
| 389 | p.BrickColor = BrickColor.new("Institutional white") |
| 390 | p.Material = Enum.Material.Glacier |
| 391 | p.MaterialVariant = "2022 Stud" |
| 392 | p.Anchored = true |
| 393 | p.Parent = model |
| 394 | end |
| 395 | do |
| 396 | local p = Instance.new("Part") |
| 397 | p.Name = "SignBorderR" |
| 398 | p.Size = Vector3.new(0.3, 4.3, 0.3) |
| 399 | p.CFrame = CFrame.new(5.68, 14.42, -3.02) |
| 400 | p.BrickColor = BrickColor.new("Institutional white") |
| 401 | p.Material = Enum.Material.Glacier |
| 402 | p.MaterialVariant = "2022 Stud" |
| 403 | p.Anchored = true |
| 404 | p.Parent = model |
| 405 | end |
| 406 | do |
| 407 | local p = Instance.new("Part") |
| 408 | p.Name = "SignText" |
| 409 | p.Size = Vector3.new(6, 2, 0.2) |
| 410 | p.CFrame = CFrame.new(0, 14.5, -3.15) |
| 411 | p.BrickColor = BrickColor.new("Institutional white") |
| 412 | p.Material = Enum.Material.Glacier |
| 413 | p.MaterialVariant = "2022 Stud" |
| 414 | p.Anchored = true |
| 415 | p.Parent = model |
| 416 | end |
| 417 | do |
| 418 | local rightV = Vector3.new(1,0,0).Unit |
| 419 | local upV = (Vector3.new(0,0.866025,-0.5) - Vector3.new(0,0.866025,-0.5):Dot(rightV)*rightV).Unit |
| 420 | local normalV = upV:Cross(rightV) |
| 421 | local pos = Vector3.new(-9.6, 8.5, -10.2) |
| 422 | local cyl = Instance.new("Part") |
| 423 | cyl.Shape = Enum.PartType.Cylinder |
| 424 | cyl.Size = Vector3.new(0.5, 2.4, 2.4) |
| 425 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 426 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 427 | cyl.Material = Enum.Material.Glacier |
| 428 | cyl.MaterialVariant = "2022 Stud" |
| 429 | cyl.Anchored = true; cyl.Parent = workspace |
| 430 | local cuts = {} |
| 431 | local angBoxes = {} |
| 432 | do |
| 433 | local edgeDir = -1*rightV + 0*upV |
| 434 | local edgePerp = 0*rightV + -1*upV |
| 435 | local cut = Instance.new("Part") |
| 436 | cut.Size = Vector3.new(4.8, 0.7, 4.8) |
| 437 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 2.4 * edgePerp, edgeDir, normalV) |
| 438 | cut.BrickColor = BrickColor.new("Bright orange") |
| 439 | cut.Material = Enum.Material.Glacier |
| 440 | cut.MaterialVariant = "2022 Stud" |
| 441 | cut.Anchored = true; cut.Parent = workspace |
| 442 | table.insert(angBoxes, cut) |
| 443 | end |
| 444 | do |
| 445 | local edgeDir = 1*rightV + 0*upV |
| 446 | local edgePerp = 0*rightV + 1*upV |
| 447 | local cut = Instance.new("Part") |
| 448 | cut.Size = Vector3.new(4.8, 0.7, 4.8) |
| 449 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 2.4 * edgePerp, edgeDir, normalV) |
| 450 | cut.BrickColor = BrickColor.new("Bright orange") |
| 451 | cut.Material = Enum.Material.Glacier |
| 452 | cut.MaterialVariant = "2022 Stud" |
| 453 | cut.Anchored = true; cut.Parent = workspace |
| 454 | table.insert(angBoxes, cut) |
| 455 | end |
| 456 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 457 | if #cuts > 0 then |
| 458 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 459 | for _, c in ipairs(cuts) do c:Destroy() end |
| 460 | if ok and result then |
| 461 | cyl:Destroy() |
| 462 | result.Name = "Scallop_0"; result.Anchored = true; result.Parent = model |
| 463 | else |
| 464 | cyl.Name = "Scallop_0"; cyl.Parent = model |
| 465 | end |
| 466 | else |
| 467 | cyl.Name = "Scallop_0"; cyl.Parent = model |
| 468 | end |
| 469 | end |
| 470 | do |
| 471 | local rightV = Vector3.new(1,0,0).Unit |
| 472 | local upV = (Vector3.new(0,0.866025,-0.5) - Vector3.new(0,0.866025,-0.5):Dot(rightV)*rightV).Unit |
| 473 | local normalV = upV:Cross(rightV) |
| 474 | local pos = Vector3.new(-7.2, 8.5, -10.2) |
| 475 | local cyl = Instance.new("Part") |
| 476 | cyl.Shape = Enum.PartType.Cylinder |
| 477 | cyl.Size = Vector3.new(0.5, 2.4, 2.4) |
| 478 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 479 | cyl.BrickColor = BrickColor.new("Institutional white") |
| 480 | cyl.Material = Enum.Material.Glacier |
| 481 | cyl.MaterialVariant = "2022 Stud" |
| 482 | cyl.Anchored = true; cyl.Parent = workspace |
| 483 | local cuts = {} |
| 484 | local angBoxes = {} |
| 485 | do |
| 486 | local edgeDir = -1*rightV + 0*upV |
| 487 | local edgePerp = 0*rightV + -1*upV |
| 488 | local cut = Instance.new("Part") |
| 489 | cut.Size = Vector3.new(4.8, 0.7, 4.8) |
| 490 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 2.4 * edgePerp, edgeDir, normalV) |
| 491 | cut.BrickColor = BrickColor.new("Institutional white") |
| 492 | cut.Material = Enum.Material.Glacier |
| 493 | cut.MaterialVariant = "2022 Stud" |
| 494 | cut.Anchored = true; cut.Parent = workspace |
| 495 | table.insert(angBoxes, cut) |
| 496 | end |
| 497 | do |
| 498 | local edgeDir = 1*rightV + 0*upV |
| 499 | local edgePerp = 0*rightV + 1*upV |
| 500 | local cut = Instance.new("Part") |
| 501 | cut.Size = Vector3.new(4.8, 0.7, 4.8) |
| 502 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 2.4 * edgePerp, edgeDir, normalV) |
| 503 | cut.BrickColor = BrickColor.new("Institutional white") |
| 504 | cut.Material = Enum.Material.Glacier |
| 505 | cut.MaterialVariant = "2022 Stud" |
| 506 | cut.Anchored = true; cut.Parent = workspace |
| 507 | table.insert(angBoxes, cut) |
| 508 | end |
| 509 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 510 | if #cuts > 0 then |
| 511 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 512 | for _, c in ipairs(cuts) do c:Destroy() end |
| 513 | if ok and result then |
| 514 | cyl:Destroy() |
| 515 | result.Name = "Scallop_1"; result.Anchored = true; result.Parent = model |
| 516 | else |
| 517 | cyl.Name = "Scallop_1"; cyl.Parent = model |
| 518 | end |
| 519 | else |
| 520 | cyl.Name = "Scallop_1"; cyl.Parent = model |
| 521 | end |
| 522 | end |
| 523 | do |
| 524 | local rightV = Vector3.new(1,0,0).Unit |
| 525 | local upV = (Vector3.new(0,0.866025,-0.5) - Vector3.new(0,0.866025,-0.5):Dot(rightV)*rightV).Unit |
| 526 | local normalV = upV:Cross(rightV) |
| 527 | local pos = Vector3.new(-4.8, 8.5, -10.2) |
| 528 | local cyl = Instance.new("Part") |
| 529 | cyl.Shape = Enum.PartType.Cylinder |
| 530 | cyl.Size = Vector3.new(0.5, 2.4, 2.4) |
| 531 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 532 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 533 | cyl.Material = Enum.Material.Glacier |
| 534 | cyl.MaterialVariant = "2022 Stud" |
| 535 | cyl.Anchored = true; cyl.Parent = workspace |
| 536 | local cuts = {} |
| 537 | local angBoxes = {} |
| 538 | do |
| 539 | local edgeDir = -1*rightV + 0*upV |
| 540 | local edgePerp = 0*rightV + -1*upV |
| 541 | local cut = Instance.new("Part") |
| 542 | cut.Size = Vector3.new(4.8, 0.7, 4.8) |
| 543 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 2.4 * edgePerp, edgeDir, normalV) |
| 544 | cut.BrickColor = BrickColor.new("Bright orange") |
| 545 | cut.Material = Enum.Material.Glacier |
| 546 | cut.MaterialVariant = "2022 Stud" |
| 547 | cut.Anchored = true; cut.Parent = workspace |
| 548 | table.insert(angBoxes, cut) |
| 549 | end |
| 550 | do |
| 551 | local edgeDir = 1*rightV + 0*upV |
| 552 | local edgePerp = 0*rightV + 1*upV |
| 553 | local cut = Instance.new("Part") |
| 554 | cut.Size = Vector3.new(4.8, 0.7, 4.8) |
| 555 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 2.4 * edgePerp, edgeDir, normalV) |
| 556 | cut.BrickColor = BrickColor.new("Bright orange") |
| 557 | cut.Material = Enum.Material.Glacier |
| 558 | cut.MaterialVariant = "2022 Stud" |
| 559 | cut.Anchored = true; cut.Parent = workspace |
| 560 | table.insert(angBoxes, cut) |
| 561 | end |
| 562 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 563 | if #cuts > 0 then |
| 564 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 565 | for _, c in ipairs(cuts) do c:Destroy() end |
| 566 | if ok and result then |
| 567 | cyl:Destroy() |
| 568 | result.Name = "Scallop_2"; result.Anchored = true; result.Parent = model |
| 569 | else |
| 570 | cyl.Name = "Scallop_2"; cyl.Parent = model |
| 571 | end |
| 572 | else |
| 573 | cyl.Name = "Scallop_2"; cyl.Parent = model |
| 574 | end |
| 575 | end |
| 576 | do |
| 577 | local rightV = Vector3.new(1,0,0).Unit |
| 578 | local upV = (Vector3.new(0,0.866025,-0.5) - Vector3.new(0,0.866025,-0.5):Dot(rightV)*rightV).Unit |
| 579 | local normalV = upV:Cross(rightV) |
| 580 | local pos = Vector3.new(-2.4, 8.5, -10.2) |
| 581 | local cyl = Instance.new("Part") |
| 582 | cyl.Shape = Enum.PartType.Cylinder |
| 583 | cyl.Size = Vector3.new(0.5, 2.4, 2.4) |
| 584 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 585 | cyl.BrickColor = BrickColor.new("Institutional white") |
| 586 | cyl.Material = Enum.Material.Glacier |
| 587 | cyl.MaterialVariant = "2022 Stud" |
| 588 | cyl.Anchored = true; cyl.Parent = workspace |
| 589 | local cuts = {} |
| 590 | local angBoxes = {} |
| 591 | do |
| 592 | local edgeDir = -1*rightV + 0*upV |
| 593 | local edgePerp = 0*rightV + -1*upV |
| 594 | local cut = Instance.new("Part") |
| 595 | cut.Size = Vector3.new(4.8, 0.7, 4.8) |
| 596 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 2.4 * edgePerp, edgeDir, normalV) |
| 597 | cut.BrickColor = BrickColor.new("Institutional white") |
| 598 | cut.Material = Enum.Material.Glacier |
| 599 | cut.MaterialVariant = "2022 Stud" |
| 600 | cut.Anchored = true; cut.Parent = workspace |
| 601 | table.insert(angBoxes, cut) |
| 602 | end |
| 603 | do |
| 604 | local edgeDir = 1*rightV + 0*upV |
| 605 | local edgePerp = 0*rightV + 1*upV |
| 606 | local cut = Instance.new("Part") |
| 607 | cut.Size = Vector3.new(4.8, 0.7, 4.8) |
| 608 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 2.4 * edgePerp, edgeDir, normalV) |
| 609 | cut.BrickColor = BrickColor.new("Institutional white") |
| 610 | cut.Material = Enum.Material.Glacier |
| 611 | cut.MaterialVariant = "2022 Stud" |
| 612 | cut.Anchored = true; cut.Parent = workspace |
| 613 | table.insert(angBoxes, cut) |
| 614 | end |
| 615 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 616 | if #cuts > 0 then |
| 617 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 618 | for _, c in ipairs(cuts) do c:Destroy() end |
| 619 | if ok and result then |
| 620 | cyl:Destroy() |
| 621 | result.Name = "Scallop_3"; result.Anchored = true; result.Parent = model |
| 622 | else |
| 623 | cyl.Name = "Scallop_3"; cyl.Parent = model |
| 624 | end |
| 625 | else |
| 626 | cyl.Name = "Scallop_3"; cyl.Parent = model |
| 627 | end |
| 628 | end |
| 629 | do |
| 630 | local rightV = Vector3.new(1,0,0).Unit |
| 631 | local upV = (Vector3.new(0,0.866025,-0.5) - Vector3.new(0,0.866025,-0.5):Dot(rightV)*rightV).Unit |
| 632 | local normalV = upV:Cross(rightV) |
| 633 | local pos = Vector3.new(0, 8.5, -10.2) |
| 634 | local cyl = Instance.new("Part") |
| 635 | cyl.Shape = Enum.PartType.Cylinder |
| 636 | cyl.Size = Vector3.new(0.5, 2.4, 2.4) |
| 637 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 638 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 639 | cyl.Material = Enum.Material.Glacier |
| 640 | cyl.MaterialVariant = "2022 Stud" |
| 641 | cyl.Anchored = true; cyl.Parent = workspace |
| 642 | local cuts = {} |
| 643 | local angBoxes = {} |
| 644 | do |
| 645 | local edgeDir = -1*rightV + 0*upV |
| 646 | local edgePerp = 0*rightV + -1*upV |
| 647 | local cut = Instance.new("Part") |
| 648 | cut.Size = Vector3.new(4.8, 0.7, 4.8) |
| 649 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 2.4 * edgePerp, edgeDir, normalV) |
| 650 | cut.BrickColor = BrickColor.new("Bright orange") |
| 651 | cut.Material = Enum.Material.Glacier |
| 652 | cut.MaterialVariant = "2022 Stud" |
| 653 | cut.Anchored = true; cut.Parent = workspace |
| 654 | table.insert(angBoxes, cut) |
| 655 | end |
| 656 | do |
| 657 | local edgeDir = 1*rightV + 0*upV |
| 658 | local edgePerp = 0*rightV + 1*upV |
| 659 | local cut = Instance.new("Part") |
| 660 | cut.Size = Vector3.new(4.8, 0.7, 4.8) |
| 661 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 2.4 * edgePerp, edgeDir, normalV) |
| 662 | cut.BrickColor = BrickColor.new("Bright orange") |
| 663 | cut.Material = Enum.Material.Glacier |
| 664 | cut.MaterialVariant = "2022 Stud" |
| 665 | cut.Anchored = true; cut.Parent = workspace |
| 666 | table.insert(angBoxes, cut) |
| 667 | end |
| 668 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 669 | if #cuts > 0 then |
| 670 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 671 | for _, c in ipairs(cuts) do c:Destroy() end |
| 672 | if ok and result then |
| 673 | cyl:Destroy() |
| 674 | result.Name = "Scallop_4"; result.Anchored = true; result.Parent = model |
| 675 | else |
| 676 | cyl.Name = "Scallop_4"; cyl.Parent = model |
| 677 | end |
| 678 | else |
| 679 | cyl.Name = "Scallop_4"; cyl.Parent = model |
| 680 | end |
| 681 | end |
| 682 | do |
| 683 | local rightV = Vector3.new(1,0,0).Unit |
| 684 | local upV = (Vector3.new(0,0.866025,-0.5) - Vector3.new(0,0.866025,-0.5):Dot(rightV)*rightV).Unit |
| 685 | local normalV = upV:Cross(rightV) |
| 686 | local pos = Vector3.new(2.4, 8.5, -10.2) |
| 687 | local cyl = Instance.new("Part") |
| 688 | cyl.Shape = Enum.PartType.Cylinder |
| 689 | cyl.Size = Vector3.new(0.5, 2.4, 2.4) |
| 690 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 691 | cyl.BrickColor = BrickColor.new("Institutional white") |
| 692 | cyl.Material = Enum.Material.Glacier |
| 693 | cyl.MaterialVariant = "2022 Stud" |
| 694 | cyl.Anchored = true; cyl.Parent = workspace |
| 695 | local cuts = {} |
| 696 | local angBoxes = {} |
| 697 | do |
| 698 | local edgeDir = -1*rightV + 0*upV |
| 699 | local edgePerp = 0*rightV + -1*upV |
| 700 | local cut = Instance.new("Part") |
| 701 | cut.Size = Vector3.new(4.8, 0.7, 4.8) |
| 702 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 2.4 * edgePerp, edgeDir, normalV) |
| 703 | cut.BrickColor = BrickColor.new("Institutional white") |
| 704 | cut.Material = Enum.Material.Glacier |
| 705 | cut.MaterialVariant = "2022 Stud" |
| 706 | cut.Anchored = true; cut.Parent = workspace |
| 707 | table.insert(angBoxes, cut) |
| 708 | end |
| 709 | do |
| 710 | local edgeDir = 1*rightV + 0*upV |
| 711 | local edgePerp = 0*rightV + 1*upV |
| 712 | local cut = Instance.new("Part") |
| 713 | cut.Size = Vector3.new(4.8, 0.7, 4.8) |
| 714 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 2.4 * edgePerp, edgeDir, normalV) |
| 715 | cut.BrickColor = BrickColor.new("Institutional white") |
| 716 | cut.Material = Enum.Material.Glacier |
| 717 | cut.MaterialVariant = "2022 Stud" |
| 718 | cut.Anchored = true; cut.Parent = workspace |
| 719 | table.insert(angBoxes, cut) |
| 720 | end |
| 721 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 722 | if #cuts > 0 then |
| 723 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 724 | for _, c in ipairs(cuts) do c:Destroy() end |
| 725 | if ok and result then |
| 726 | cyl:Destroy() |
| 727 | result.Name = "Scallop_5"; result.Anchored = true; result.Parent = model |
| 728 | else |
| 729 | cyl.Name = "Scallop_5"; cyl.Parent = model |
| 730 | end |
| 731 | else |
| 732 | cyl.Name = "Scallop_5"; cyl.Parent = model |
| 733 | end |
| 734 | end |
| 735 | do |
| 736 | local rightV = Vector3.new(1,0,0).Unit |
| 737 | local upV = (Vector3.new(0,0.866025,-0.5) - Vector3.new(0,0.866025,-0.5):Dot(rightV)*rightV).Unit |
| 738 | local normalV = upV:Cross(rightV) |
| 739 | local pos = Vector3.new(4.8, 8.5, -10.2) |
| 740 | local cyl = Instance.new("Part") |
| 741 | cyl.Shape = Enum.PartType.Cylinder |
| 742 | cyl.Size = Vector3.new(0.5, 2.4, 2.4) |
| 743 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 744 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 745 | cyl.Material = Enum.Material.Glacier |
| 746 | cyl.MaterialVariant = "2022 Stud" |
| 747 | cyl.Anchored = true; cyl.Parent = workspace |
| 748 | local cuts = {} |
| 749 | local angBoxes = {} |
| 750 | do |
| 751 | local edgeDir = -1*rightV + 0*upV |
| 752 | local edgePerp = 0*rightV + -1*upV |
| 753 | local cut = Instance.new("Part") |
| 754 | cut.Size = Vector3.new(4.8, 0.7, 4.8) |
| 755 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 2.4 * edgePerp, edgeDir, normalV) |
| 756 | cut.BrickColor = BrickColor.new("Bright orange") |
| 757 | cut.Material = Enum.Material.Glacier |
| 758 | cut.MaterialVariant = "2022 Stud" |
| 759 | cut.Anchored = true; cut.Parent = workspace |
| 760 | table.insert(angBoxes, cut) |
| 761 | end |
| 762 | do |
| 763 | local edgeDir = 1*rightV + 0*upV |
| 764 | local edgePerp = 0*rightV + 1*upV |
| 765 | local cut = Instance.new("Part") |
| 766 | cut.Size = Vector3.new(4.8, 0.7, 4.8) |
| 767 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 2.4 * edgePerp, edgeDir, normalV) |
| 768 | cut.BrickColor = BrickColor.new("Bright orange") |
| 769 | cut.Material = Enum.Material.Glacier |
| 770 | cut.MaterialVariant = "2022 Stud" |
| 771 | cut.Anchored = true; cut.Parent = workspace |
| 772 | table.insert(angBoxes, cut) |
| 773 | end |
| 774 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 775 | if #cuts > 0 then |
| 776 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 777 | for _, c in ipairs(cuts) do c:Destroy() end |
| 778 | if ok and result then |
| 779 | cyl:Destroy() |
| 780 | result.Name = "Scallop_6"; result.Anchored = true; result.Parent = model |
| 781 | else |
| 782 | cyl.Name = "Scallop_6"; cyl.Parent = model |
| 783 | end |
| 784 | else |
| 785 | cyl.Name = "Scallop_6"; cyl.Parent = model |
| 786 | end |
| 787 | end |
| 788 | do |
| 789 | local rightV = Vector3.new(1,0,0).Unit |
| 790 | local upV = (Vector3.new(0,0.866025,-0.5) - Vector3.new(0,0.866025,-0.5):Dot(rightV)*rightV).Unit |
| 791 | local normalV = upV:Cross(rightV) |
| 792 | local pos = Vector3.new(7.2, 8.5, -10.2) |
| 793 | local cyl = Instance.new("Part") |
| 794 | cyl.Shape = Enum.PartType.Cylinder |
| 795 | cyl.Size = Vector3.new(0.5, 2.4, 2.4) |
| 796 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 797 | cyl.BrickColor = BrickColor.new("Institutional white") |
| 798 | cyl.Material = Enum.Material.Glacier |
| 799 | cyl.MaterialVariant = "2022 Stud" |
| 800 | cyl.Anchored = true; cyl.Parent = workspace |
| 801 | local cuts = {} |
| 802 | local angBoxes = {} |
| 803 | do |
| 804 | local edgeDir = -1*rightV + 0*upV |
| 805 | local edgePerp = 0*rightV + -1*upV |
| 806 | local cut = Instance.new("Part") |
| 807 | cut.Size = Vector3.new(4.8, 0.7, 4.8) |
| 808 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 2.4 * edgePerp, edgeDir, normalV) |
| 809 | cut.BrickColor = BrickColor.new("Institutional white") |
| 810 | cut.Material = Enum.Material.Glacier |
| 811 | cut.MaterialVariant = "2022 Stud" |
| 812 | cut.Anchored = true; cut.Parent = workspace |
| 813 | table.insert(angBoxes, cut) |
| 814 | end |
| 815 | do |
| 816 | local edgeDir = 1*rightV + 0*upV |
| 817 | local edgePerp = 0*rightV + 1*upV |
| 818 | local cut = Instance.new("Part") |
| 819 | cut.Size = Vector3.new(4.8, 0.7, 4.8) |
| 820 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 2.4 * edgePerp, edgeDir, normalV) |
| 821 | cut.BrickColor = BrickColor.new("Institutional white") |
| 822 | cut.Material = Enum.Material.Glacier |
| 823 | cut.MaterialVariant = "2022 Stud" |
| 824 | cut.Anchored = true; cut.Parent = workspace |
| 825 | table.insert(angBoxes, cut) |
| 826 | end |
| 827 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 828 | if #cuts > 0 then |
| 829 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 830 | for _, c in ipairs(cuts) do c:Destroy() end |
| 831 | if ok and result then |
| 832 | cyl:Destroy() |
| 833 | result.Name = "Scallop_7"; result.Anchored = true; result.Parent = model |
| 834 | else |
| 835 | cyl.Name = "Scallop_7"; cyl.Parent = model |
| 836 | end |
| 837 | else |
| 838 | cyl.Name = "Scallop_7"; cyl.Parent = model |
| 839 | end |
| 840 | end |
| 841 | do |
| 842 | local rightV = Vector3.new(1,0,0).Unit |
| 843 | local upV = (Vector3.new(0,0.866025,-0.5) - Vector3.new(0,0.866025,-0.5):Dot(rightV)*rightV).Unit |
| 844 | local normalV = upV:Cross(rightV) |
| 845 | local pos = Vector3.new(9.6, 8.5, -10.2) |
| 846 | local cyl = Instance.new("Part") |
| 847 | cyl.Shape = Enum.PartType.Cylinder |
| 848 | cyl.Size = Vector3.new(0.5, 2.4, 2.4) |
| 849 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 850 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 851 | cyl.Material = Enum.Material.Glacier |
| 852 | cyl.MaterialVariant = "2022 Stud" |
| 853 | cyl.Anchored = true; cyl.Parent = workspace |
| 854 | local cuts = {} |
| 855 | local angBoxes = {} |
| 856 | do |
| 857 | local edgeDir = -1*rightV + 0*upV |
| 858 | local edgePerp = 0*rightV + -1*upV |
| 859 | local cut = Instance.new("Part") |
| 860 | cut.Size = Vector3.new(4.8, 0.7, 4.8) |
| 861 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 2.4 * edgePerp, edgeDir, normalV) |
| 862 | cut.BrickColor = BrickColor.new("Bright orange") |
| 863 | cut.Material = Enum.Material.Glacier |
| 864 | cut.MaterialVariant = "2022 Stud" |
| 865 | cut.Anchored = true; cut.Parent = workspace |
| 866 | table.insert(angBoxes, cut) |
| 867 | end |
| 868 | do |
| 869 | local edgeDir = 1*rightV + 0*upV |
| 870 | local edgePerp = 0*rightV + 1*upV |
| 871 | local cut = Instance.new("Part") |
| 872 | cut.Size = Vector3.new(4.8, 0.7, 4.8) |
| 873 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 2.4 * edgePerp, edgeDir, normalV) |
| 874 | cut.BrickColor = BrickColor.new("Bright orange") |
| 875 | cut.Material = Enum.Material.Glacier |
| 876 | cut.MaterialVariant = "2022 Stud" |
| 877 | cut.Anchored = true; cut.Parent = workspace |
| 878 | table.insert(angBoxes, cut) |
| 879 | end |
| 880 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 881 | if #cuts > 0 then |
| 882 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 883 | for _, c in ipairs(cuts) do c:Destroy() end |
| 884 | if ok and result then |
| 885 | cyl:Destroy() |
| 886 | result.Name = "Scallop_8"; result.Anchored = true; result.Parent = model |
| 887 | else |
| 888 | cyl.Name = "Scallop_8"; cyl.Parent = model |
| 889 | end |
| 890 | else |
| 891 | cyl.Name = "Scallop_8"; cyl.Parent = model |
| 892 | end |
| 893 | end |
| 894 | model.PrimaryPart = model:FindFirstChild("Base") |
| 895 | print("ShopBuilding built: " .. #model:GetChildren() .. " parts") |
Loading comments...