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