Loading model...
by N S · 3/25/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: iPadAir_Folio |
| 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 = "iPadAir_Folio" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Black"] = "2022 Glue", |
| 25 | ["Dark stone grey"] = "2022 Glue", |
| 26 | ["Really black"] = "2022 Glue", |
| 27 | ["Sand blue"] = "2022 Glue", |
| 28 | } |
| 29 | do |
| 30 | local p = Instance.new("Part") |
| 31 | p.Name = "BodyCenter" |
| 32 | p.Size = Vector3.new(12, 0.6, 18) |
| 33 | p.CFrame = CFrame.new(0, 0, 0) |
| 34 | p.BrickColor = BrickColor.new("Sand blue") |
| 35 | p.Material = Enum.Material.Glacier |
| 36 | p.MaterialVariant = "2022 Glue" |
| 37 | p.Anchored = true |
| 38 | p.Parent = model |
| 39 | end |
| 40 | do |
| 41 | local p = Instance.new("Part") |
| 42 | p.Name = "BodyLeft" |
| 43 | p.Size = Vector3.new(1, 0.6, 18) |
| 44 | p.CFrame = CFrame.new(-6.58, -0.08, 0) |
| 45 | p.BrickColor = BrickColor.new("Sand blue") |
| 46 | p.Material = Enum.Material.Glacier |
| 47 | p.MaterialVariant = "2022 Glue" |
| 48 | p.Anchored = true |
| 49 | p.Parent = model |
| 50 | end |
| 51 | do |
| 52 | local p = Instance.new("Part") |
| 53 | p.Name = "BodyRight" |
| 54 | p.Size = Vector3.new(1, 0.6, 18) |
| 55 | p.CFrame = CFrame.new(6.58, -0.08, 0) |
| 56 | p.BrickColor = BrickColor.new("Sand blue") |
| 57 | p.Material = Enum.Material.Glacier |
| 58 | p.MaterialVariant = "2022 Glue" |
| 59 | p.Anchored = true |
| 60 | p.Parent = model |
| 61 | end |
| 62 | do |
| 63 | local p = Instance.new("Part") |
| 64 | p.Name = "BodyBack" |
| 65 | p.Size = Vector3.new(12, 0.6, 1) |
| 66 | p.CFrame = CFrame.new(0, 0, 9.54) |
| 67 | p.BrickColor = BrickColor.new("Sand blue") |
| 68 | p.Material = Enum.Material.Glacier |
| 69 | p.MaterialVariant = "2022 Glue" |
| 70 | p.Anchored = true |
| 71 | p.Parent = model |
| 72 | end |
| 73 | do |
| 74 | local p = Instance.new("Part") |
| 75 | p.Name = "BodyFrontLeft" |
| 76 | p.Size = Vector3.new(5, 0.6, 1) |
| 77 | p.CFrame = CFrame.new(-3.5, -0.08, -9.58) |
| 78 | p.BrickColor = BrickColor.new("Sand blue") |
| 79 | p.Material = Enum.Material.Glacier |
| 80 | p.MaterialVariant = "2022 Glue" |
| 81 | p.Anchored = true |
| 82 | p.Parent = model |
| 83 | end |
| 84 | do |
| 85 | local p = Instance.new("Part") |
| 86 | p.Name = "BodyFrontRight" |
| 87 | p.Size = Vector3.new(5, 0.6, 1) |
| 88 | p.CFrame = CFrame.new(3.5, -0.08, -9.58) |
| 89 | p.BrickColor = BrickColor.new("Sand blue") |
| 90 | p.Material = Enum.Material.Glacier |
| 91 | p.MaterialVariant = "2022 Glue" |
| 92 | p.Anchored = true |
| 93 | p.Parent = model |
| 94 | end |
| 95 | do |
| 96 | local p = Instance.new("Part") |
| 97 | p.Name = "PortTop" |
| 98 | p.Size = Vector3.new(2, 0.2, 1) |
| 99 | p.CFrame = CFrame.new(0.04, 0.16, -9.54) |
| 100 | p.BrickColor = BrickColor.new("Sand blue") |
| 101 | p.Material = Enum.Material.Glacier |
| 102 | p.MaterialVariant = "2022 Glue" |
| 103 | p.Anchored = true |
| 104 | p.Parent = model |
| 105 | end |
| 106 | do |
| 107 | local p = Instance.new("Part") |
| 108 | p.Name = "PortBottom" |
| 109 | p.Size = Vector3.new(2, 0.2, 1) |
| 110 | p.CFrame = CFrame.new(0.04, -0.16, -9.54) |
| 111 | p.BrickColor = BrickColor.new("Sand blue") |
| 112 | p.Material = Enum.Material.Glacier |
| 113 | p.MaterialVariant = "2022 Glue" |
| 114 | p.Anchored = true |
| 115 | p.Parent = model |
| 116 | end |
| 117 | do |
| 118 | local p = Instance.new("Part") |
| 119 | p.Name = "PortLeft" |
| 120 | p.Size = Vector3.new(0.2, 0.2, 1) |
| 121 | p.CFrame = CFrame.new(-0.82, 0, -9.58) |
| 122 | p.BrickColor = BrickColor.new("Sand blue") |
| 123 | p.Material = Enum.Material.Glacier |
| 124 | p.MaterialVariant = "2022 Glue" |
| 125 | p.Anchored = true |
| 126 | p.Parent = model |
| 127 | end |
| 128 | do |
| 129 | local p = Instance.new("Part") |
| 130 | p.Name = "PortRight" |
| 131 | p.Size = Vector3.new(0.2, 0.2, 1) |
| 132 | p.CFrame = CFrame.new(0.82, 0, -9.58) |
| 133 | p.BrickColor = BrickColor.new("Sand blue") |
| 134 | p.Material = Enum.Material.Glacier |
| 135 | p.MaterialVariant = "2022 Glue" |
| 136 | p.Anchored = true |
| 137 | p.Parent = model |
| 138 | end |
| 139 | do |
| 140 | local p = Instance.new("Part") |
| 141 | p.Name = "PortHole" |
| 142 | p.Size = Vector3.new(1.6, 0.2, 1) |
| 143 | p.CFrame = CFrame.new(0, -0.08, -9.54) |
| 144 | p.BrickColor = BrickColor.new("Really black") |
| 145 | p.Material = Enum.Material.Glacier |
| 146 | p.MaterialVariant = "2022 Glue" |
| 147 | p.Anchored = true |
| 148 | p.Parent = model |
| 149 | end |
| 150 | do |
| 151 | local p = Instance.new("Part") |
| 152 | p.Shape = Enum.PartType.Cylinder |
| 153 | p.Name = "SpeakerL_0" |
| 154 | p.Size = Vector3.new(0.1, 0.15, 0.15) |
| 155 | p.CFrame = CFrame.new(-5.5, 0, -10) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 156 | p.BrickColor = BrickColor.new("Really black") |
| 157 | p.Material = Enum.Material.Glacier |
| 158 | p.MaterialVariant = "2022 Glue" |
| 159 | p.Anchored = true |
| 160 | p.Parent = model |
| 161 | end |
| 162 | do |
| 163 | local p = Instance.new("Part") |
| 164 | p.Shape = Enum.PartType.Cylinder |
| 165 | p.Name = "SpeakerR_0" |
| 166 | p.Size = Vector3.new(0.1, 0.15, 0.15) |
| 167 | p.CFrame = CFrame.new(1.5, 0, -10) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 168 | p.BrickColor = BrickColor.new("Really black") |
| 169 | p.Material = Enum.Material.Glacier |
| 170 | p.MaterialVariant = "2022 Glue" |
| 171 | p.Anchored = true |
| 172 | p.Parent = model |
| 173 | end |
| 174 | do |
| 175 | local p = Instance.new("Part") |
| 176 | p.Shape = Enum.PartType.Cylinder |
| 177 | p.Name = "SpeakerL_1" |
| 178 | p.Size = Vector3.new(0.1, 0.15, 0.15) |
| 179 | p.CFrame = CFrame.new(-5.13636, 0, -10) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 180 | p.BrickColor = BrickColor.new("Really black") |
| 181 | p.Material = Enum.Material.Glacier |
| 182 | p.MaterialVariant = "2022 Glue" |
| 183 | p.Anchored = true |
| 184 | p.Parent = model |
| 185 | end |
| 186 | do |
| 187 | local p = Instance.new("Part") |
| 188 | p.Shape = Enum.PartType.Cylinder |
| 189 | p.Name = "SpeakerR_1" |
| 190 | p.Size = Vector3.new(0.1, 0.15, 0.15) |
| 191 | p.CFrame = CFrame.new(1.86364, 0, -10) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 192 | p.BrickColor = BrickColor.new("Really black") |
| 193 | p.Material = Enum.Material.Glacier |
| 194 | p.MaterialVariant = "2022 Glue" |
| 195 | p.Anchored = true |
| 196 | p.Parent = model |
| 197 | end |
| 198 | do |
| 199 | local p = Instance.new("Part") |
| 200 | p.Shape = Enum.PartType.Cylinder |
| 201 | p.Name = "SpeakerL_2" |
| 202 | p.Size = Vector3.new(0.1, 0.15, 0.15) |
| 203 | p.CFrame = CFrame.new(-4.77273, 0, -10) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 204 | p.BrickColor = BrickColor.new("Really black") |
| 205 | p.Material = Enum.Material.Glacier |
| 206 | p.MaterialVariant = "2022 Glue" |
| 207 | p.Anchored = true |
| 208 | p.Parent = model |
| 209 | end |
| 210 | do |
| 211 | local p = Instance.new("Part") |
| 212 | p.Shape = Enum.PartType.Cylinder |
| 213 | p.Name = "SpeakerR_2" |
| 214 | p.Size = Vector3.new(0.1, 0.15, 0.15) |
| 215 | p.CFrame = CFrame.new(2.22727, 0, -10) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 216 | p.BrickColor = BrickColor.new("Really black") |
| 217 | p.Material = Enum.Material.Glacier |
| 218 | p.MaterialVariant = "2022 Glue" |
| 219 | p.Anchored = true |
| 220 | p.Parent = model |
| 221 | end |
| 222 | do |
| 223 | local p = Instance.new("Part") |
| 224 | p.Shape = Enum.PartType.Cylinder |
| 225 | p.Name = "SpeakerL_3" |
| 226 | p.Size = Vector3.new(0.1, 0.15, 0.15) |
| 227 | p.CFrame = CFrame.new(-4.40909, 0, -10) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 228 | p.BrickColor = BrickColor.new("Really black") |
| 229 | p.Material = Enum.Material.Glacier |
| 230 | p.MaterialVariant = "2022 Glue" |
| 231 | p.Anchored = true |
| 232 | p.Parent = model |
| 233 | end |
| 234 | do |
| 235 | local p = Instance.new("Part") |
| 236 | p.Shape = Enum.PartType.Cylinder |
| 237 | p.Name = "SpeakerR_3" |
| 238 | p.Size = Vector3.new(0.1, 0.15, 0.15) |
| 239 | p.CFrame = CFrame.new(2.59091, 0, -10) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 240 | p.BrickColor = BrickColor.new("Really black") |
| 241 | p.Material = Enum.Material.Glacier |
| 242 | p.MaterialVariant = "2022 Glue" |
| 243 | p.Anchored = true |
| 244 | p.Parent = model |
| 245 | end |
| 246 | do |
| 247 | local p = Instance.new("Part") |
| 248 | p.Shape = Enum.PartType.Cylinder |
| 249 | p.Name = "SpeakerL_4" |
| 250 | p.Size = Vector3.new(0.1, 0.15, 0.15) |
| 251 | p.CFrame = CFrame.new(-4.04545, 0, -10) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 252 | p.BrickColor = BrickColor.new("Really black") |
| 253 | p.Material = Enum.Material.Glacier |
| 254 | p.MaterialVariant = "2022 Glue" |
| 255 | p.Anchored = true |
| 256 | p.Parent = model |
| 257 | end |
| 258 | do |
| 259 | local p = Instance.new("Part") |
| 260 | p.Shape = Enum.PartType.Cylinder |
| 261 | p.Name = "SpeakerR_4" |
| 262 | p.Size = Vector3.new(0.1, 0.15, 0.15) |
| 263 | p.CFrame = CFrame.new(2.95454, 0, -10) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 264 | p.BrickColor = BrickColor.new("Really black") |
| 265 | p.Material = Enum.Material.Glacier |
| 266 | p.MaterialVariant = "2022 Glue" |
| 267 | p.Anchored = true |
| 268 | p.Parent = model |
| 269 | end |
| 270 | do |
| 271 | local p = Instance.new("Part") |
| 272 | p.Shape = Enum.PartType.Cylinder |
| 273 | p.Name = "SpeakerL_5" |
| 274 | p.Size = Vector3.new(0.1, 0.15, 0.15) |
| 275 | p.CFrame = CFrame.new(-3.68182, 0, -10) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 276 | p.BrickColor = BrickColor.new("Really black") |
| 277 | p.Material = Enum.Material.Glacier |
| 278 | p.MaterialVariant = "2022 Glue" |
| 279 | p.Anchored = true |
| 280 | p.Parent = model |
| 281 | end |
| 282 | do |
| 283 | local p = Instance.new("Part") |
| 284 | p.Shape = Enum.PartType.Cylinder |
| 285 | p.Name = "SpeakerR_5" |
| 286 | p.Size = Vector3.new(0.1, 0.15, 0.15) |
| 287 | p.CFrame = CFrame.new(3.31818, 0, -10) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 288 | p.BrickColor = BrickColor.new("Really black") |
| 289 | p.Material = Enum.Material.Glacier |
| 290 | p.MaterialVariant = "2022 Glue" |
| 291 | p.Anchored = true |
| 292 | p.Parent = model |
| 293 | end |
| 294 | do |
| 295 | local p = Instance.new("Part") |
| 296 | p.Shape = Enum.PartType.Cylinder |
| 297 | p.Name = "SpeakerL_6" |
| 298 | p.Size = Vector3.new(0.1, 0.15, 0.15) |
| 299 | p.CFrame = CFrame.new(-3.31818, 0, -10) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 300 | p.BrickColor = BrickColor.new("Really black") |
| 301 | p.Material = Enum.Material.Glacier |
| 302 | p.MaterialVariant = "2022 Glue" |
| 303 | p.Anchored = true |
| 304 | p.Parent = model |
| 305 | end |
| 306 | do |
| 307 | local p = Instance.new("Part") |
| 308 | p.Shape = Enum.PartType.Cylinder |
| 309 | p.Name = "SpeakerR_6" |
| 310 | p.Size = Vector3.new(0.1, 0.15, 0.15) |
| 311 | p.CFrame = CFrame.new(3.68182, 0, -10) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 312 | p.BrickColor = BrickColor.new("Really black") |
| 313 | p.Material = Enum.Material.Glacier |
| 314 | p.MaterialVariant = "2022 Glue" |
| 315 | p.Anchored = true |
| 316 | p.Parent = model |
| 317 | end |
| 318 | do |
| 319 | local p = Instance.new("Part") |
| 320 | p.Shape = Enum.PartType.Cylinder |
| 321 | p.Name = "SpeakerL_7" |
| 322 | p.Size = Vector3.new(0.1, 0.15, 0.15) |
| 323 | p.CFrame = CFrame.new(-2.95454, 0, -10) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 324 | p.BrickColor = BrickColor.new("Really black") |
| 325 | p.Material = Enum.Material.Glacier |
| 326 | p.MaterialVariant = "2022 Glue" |
| 327 | p.Anchored = true |
| 328 | p.Parent = model |
| 329 | end |
| 330 | do |
| 331 | local p = Instance.new("Part") |
| 332 | p.Shape = Enum.PartType.Cylinder |
| 333 | p.Name = "SpeakerR_7" |
| 334 | p.Size = Vector3.new(0.1, 0.15, 0.15) |
| 335 | p.CFrame = CFrame.new(4.04545, 0, -10) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 336 | p.BrickColor = BrickColor.new("Really black") |
| 337 | p.Material = Enum.Material.Glacier |
| 338 | p.MaterialVariant = "2022 Glue" |
| 339 | p.Anchored = true |
| 340 | p.Parent = model |
| 341 | end |
| 342 | do |
| 343 | local p = Instance.new("Part") |
| 344 | p.Shape = Enum.PartType.Cylinder |
| 345 | p.Name = "SpeakerL_8" |
| 346 | p.Size = Vector3.new(0.1, 0.15, 0.15) |
| 347 | p.CFrame = CFrame.new(-2.59091, 0, -10) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 348 | p.BrickColor = BrickColor.new("Really black") |
| 349 | p.Material = Enum.Material.Glacier |
| 350 | p.MaterialVariant = "2022 Glue" |
| 351 | p.Anchored = true |
| 352 | p.Parent = model |
| 353 | end |
| 354 | do |
| 355 | local p = Instance.new("Part") |
| 356 | p.Shape = Enum.PartType.Cylinder |
| 357 | p.Name = "SpeakerR_8" |
| 358 | p.Size = Vector3.new(0.1, 0.15, 0.15) |
| 359 | p.CFrame = CFrame.new(4.40909, 0, -10) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 360 | p.BrickColor = BrickColor.new("Really black") |
| 361 | p.Material = Enum.Material.Glacier |
| 362 | p.MaterialVariant = "2022 Glue" |
| 363 | p.Anchored = true |
| 364 | p.Parent = model |
| 365 | end |
| 366 | do |
| 367 | local p = Instance.new("Part") |
| 368 | p.Shape = Enum.PartType.Cylinder |
| 369 | p.Name = "SpeakerL_9" |
| 370 | p.Size = Vector3.new(0.1, 0.15, 0.15) |
| 371 | p.CFrame = CFrame.new(-2.22727, 0, -10) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 372 | p.BrickColor = BrickColor.new("Really black") |
| 373 | p.Material = Enum.Material.Glacier |
| 374 | p.MaterialVariant = "2022 Glue" |
| 375 | p.Anchored = true |
| 376 | p.Parent = model |
| 377 | end |
| 378 | do |
| 379 | local p = Instance.new("Part") |
| 380 | p.Shape = Enum.PartType.Cylinder |
| 381 | p.Name = "SpeakerR_9" |
| 382 | p.Size = Vector3.new(0.1, 0.15, 0.15) |
| 383 | p.CFrame = CFrame.new(4.77273, 0, -10) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 384 | p.BrickColor = BrickColor.new("Really black") |
| 385 | p.Material = Enum.Material.Glacier |
| 386 | p.MaterialVariant = "2022 Glue" |
| 387 | p.Anchored = true |
| 388 | p.Parent = model |
| 389 | end |
| 390 | do |
| 391 | local p = Instance.new("Part") |
| 392 | p.Shape = Enum.PartType.Cylinder |
| 393 | p.Name = "SpeakerL_10" |
| 394 | p.Size = Vector3.new(0.1, 0.15, 0.15) |
| 395 | p.CFrame = CFrame.new(-1.86364, 0, -10) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 396 | p.BrickColor = BrickColor.new("Really black") |
| 397 | p.Material = Enum.Material.Glacier |
| 398 | p.MaterialVariant = "2022 Glue" |
| 399 | p.Anchored = true |
| 400 | p.Parent = model |
| 401 | end |
| 402 | do |
| 403 | local p = Instance.new("Part") |
| 404 | p.Shape = Enum.PartType.Cylinder |
| 405 | p.Name = "SpeakerR_10" |
| 406 | p.Size = Vector3.new(0.1, 0.15, 0.15) |
| 407 | p.CFrame = CFrame.new(5.13636, 0, -10) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 408 | p.BrickColor = BrickColor.new("Really black") |
| 409 | p.Material = Enum.Material.Glacier |
| 410 | p.MaterialVariant = "2022 Glue" |
| 411 | p.Anchored = true |
| 412 | p.Parent = model |
| 413 | end |
| 414 | do |
| 415 | local p = Instance.new("Part") |
| 416 | p.Shape = Enum.PartType.Cylinder |
| 417 | p.Name = "SpeakerL_11" |
| 418 | p.Size = Vector3.new(0.1, 0.15, 0.15) |
| 419 | p.CFrame = CFrame.new(-1.5, 0, -10) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 420 | p.BrickColor = BrickColor.new("Really black") |
| 421 | p.Material = Enum.Material.Glacier |
| 422 | p.MaterialVariant = "2022 Glue" |
| 423 | p.Anchored = true |
| 424 | p.Parent = model |
| 425 | end |
| 426 | do |
| 427 | local p = Instance.new("Part") |
| 428 | p.Shape = Enum.PartType.Cylinder |
| 429 | p.Name = "SpeakerR_11" |
| 430 | p.Size = Vector3.new(0.1, 0.15, 0.15) |
| 431 | p.CFrame = CFrame.new(5.5, 0, -10) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 432 | p.BrickColor = BrickColor.new("Really black") |
| 433 | p.Material = Enum.Material.Glacier |
| 434 | p.MaterialVariant = "2022 Glue" |
| 435 | p.Anchored = true |
| 436 | p.Parent = model |
| 437 | end |
| 438 | do |
| 439 | local p = Instance.new("Part") |
| 440 | p.Name = "VolUp" |
| 441 | p.Size = Vector3.new(0.1, 0.15, 0.8) |
| 442 | p.CFrame = CFrame.new(7, 0, -7) |
| 443 | p.BrickColor = BrickColor.new("Sand blue") |
| 444 | p.Material = Enum.Material.Glacier |
| 445 | p.MaterialVariant = "2022 Glue" |
| 446 | p.Anchored = true |
| 447 | p.Parent = model |
| 448 | end |
| 449 | do |
| 450 | local p = Instance.new("Part") |
| 451 | p.Name = "VolDown" |
| 452 | p.Size = Vector3.new(0.1, 0.15, 0.8) |
| 453 | p.CFrame = CFrame.new(7, 0, -5.8) |
| 454 | p.BrickColor = BrickColor.new("Sand blue") |
| 455 | p.Material = Enum.Material.Glacier |
| 456 | p.MaterialVariant = "2022 Glue" |
| 457 | p.Anchored = true |
| 458 | p.Parent = model |
| 459 | end |
| 460 | do |
| 461 | local p = Instance.new("Part") |
| 462 | p.Name = "PowerButton" |
| 463 | p.Size = Vector3.new(1.2, 0.2, 0.1) |
| 464 | p.CFrame = CFrame.new(5, 0, 10.04) |
| 465 | p.BrickColor = BrickColor.new("Sand blue") |
| 466 | p.Material = Enum.Material.Glacier |
| 467 | p.MaterialVariant = "2022 Glue" |
| 468 | p.Anchored = true |
| 469 | p.Parent = model |
| 470 | end |
| 471 | do |
| 472 | local p = Instance.new("Part") |
| 473 | p.Name = "CaseTopCenter" |
| 474 | p.Size = Vector3.new(12.2, 0.2, 18.2) |
| 475 | p.CFrame = CFrame.new(0, 0.44, 0) |
| 476 | p.BrickColor = BrickColor.new("Really black") |
| 477 | p.Material = Enum.Material.Glacier |
| 478 | p.MaterialVariant = "2022 Glue" |
| 479 | p.Anchored = true |
| 480 | p.Parent = model |
| 481 | end |
| 482 | do |
| 483 | local p = Instance.new("Part") |
| 484 | p.Name = "CaseTopLeft" |
| 485 | p.Size = Vector3.new(1, 0.2, 18.2) |
| 486 | p.CFrame = CFrame.new(-6.68, 0.48, 0) |
| 487 | p.BrickColor = BrickColor.new("Really black") |
| 488 | p.Material = Enum.Material.Glacier |
| 489 | p.MaterialVariant = "2022 Glue" |
| 490 | p.Anchored = true |
| 491 | p.Parent = model |
| 492 | end |
| 493 | do |
| 494 | local p = Instance.new("Part") |
| 495 | p.Name = "CaseTopRight" |
| 496 | p.Size = Vector3.new(1, 0.2, 18.2) |
| 497 | p.CFrame = CFrame.new(6.68, 0.48, 0) |
| 498 | p.BrickColor = BrickColor.new("Really black") |
| 499 | p.Material = Enum.Material.Glacier |
| 500 | p.MaterialVariant = "2022 Glue" |
| 501 | p.Anchored = true |
| 502 | p.Parent = model |
| 503 | end |
| 504 | do |
| 505 | local p = Instance.new("Part") |
| 506 | p.Name = "CaseTopFront" |
| 507 | p.Size = Vector3.new(12.2, 0.2, 1) |
| 508 | p.CFrame = CFrame.new(0, 0.44, -9.64) |
| 509 | p.BrickColor = BrickColor.new("Really black") |
| 510 | p.Material = Enum.Material.Glacier |
| 511 | p.MaterialVariant = "2022 Glue" |
| 512 | p.Anchored = true |
| 513 | p.Parent = model |
| 514 | end |
| 515 | do |
| 516 | local p = Instance.new("Part") |
| 517 | p.Name = "CaseTopBack" |
| 518 | p.Size = Vector3.new(12.2, 0.2, 1) |
| 519 | p.CFrame = CFrame.new(0, 0.44, 9.64) |
| 520 | p.BrickColor = BrickColor.new("Really black") |
| 521 | p.Material = Enum.Material.Glacier |
| 522 | p.MaterialVariant = "2022 Glue" |
| 523 | p.Anchored = true |
| 524 | p.Parent = model |
| 525 | end |
| 526 | do |
| 527 | local p = Instance.new("Part") |
| 528 | p.Name = "CaseBotCenter" |
| 529 | p.Size = Vector3.new(12.2, 0.2, 18.2) |
| 530 | p.CFrame = CFrame.new(0, -0.44, 0) |
| 531 | p.BrickColor = BrickColor.new("Really black") |
| 532 | p.Material = Enum.Material.Glacier |
| 533 | p.MaterialVariant = "2022 Glue" |
| 534 | p.Anchored = true |
| 535 | p.Parent = model |
| 536 | end |
| 537 | do |
| 538 | local p = Instance.new("Part") |
| 539 | p.Name = "CaseBotLeft" |
| 540 | p.Size = Vector3.new(1, 0.2, 18.2) |
| 541 | p.CFrame = CFrame.new(-6.68, -0.56, 0) |
| 542 | p.BrickColor = BrickColor.new("Really black") |
| 543 | p.Material = Enum.Material.Glacier |
| 544 | p.MaterialVariant = "2022 Glue" |
| 545 | p.Anchored = true |
| 546 | p.Parent = model |
| 547 | end |
| 548 | do |
| 549 | local p = Instance.new("Part") |
| 550 | p.Name = "CaseBotRight" |
| 551 | p.Size = Vector3.new(1, 0.2, 18.2) |
| 552 | p.CFrame = CFrame.new(6.68, -0.56, 0) |
| 553 | p.BrickColor = BrickColor.new("Really black") |
| 554 | p.Material = Enum.Material.Glacier |
| 555 | p.MaterialVariant = "2022 Glue" |
| 556 | p.Anchored = true |
| 557 | p.Parent = model |
| 558 | end |
| 559 | do |
| 560 | local p = Instance.new("Part") |
| 561 | p.Name = "CaseBotFront" |
| 562 | p.Size = Vector3.new(12.2, 0.2, 1) |
| 563 | p.CFrame = CFrame.new(0, -0.44, -9.64) |
| 564 | p.BrickColor = BrickColor.new("Really black") |
| 565 | p.Material = Enum.Material.Glacier |
| 566 | p.MaterialVariant = "2022 Glue" |
| 567 | p.Anchored = true |
| 568 | p.Parent = model |
| 569 | end |
| 570 | do |
| 571 | local p = Instance.new("Part") |
| 572 | p.Name = "CaseBotBack" |
| 573 | p.Size = Vector3.new(12.2, 0.2, 1) |
| 574 | p.CFrame = CFrame.new(0, -0.48, 9.64) |
| 575 | p.BrickColor = BrickColor.new("Really black") |
| 576 | p.Material = Enum.Material.Glacier |
| 577 | p.MaterialVariant = "2022 Glue" |
| 578 | p.Anchored = true |
| 579 | p.Parent = model |
| 580 | end |
| 581 | do |
| 582 | local p = Instance.new("Part") |
| 583 | p.Name = "CaseSpine" |
| 584 | p.Size = Vector3.new(0.2, 1, 18.2) |
| 585 | p.CFrame = CFrame.new(-7.2, 0, 0) |
| 586 | p.BrickColor = BrickColor.new("Really black") |
| 587 | p.Material = Enum.Material.Glacier |
| 588 | p.MaterialVariant = "2022 Glue" |
| 589 | p.Anchored = true |
| 590 | p.Parent = model |
| 591 | end |
| 592 | do |
| 593 | local p = Instance.new("Part") |
| 594 | p.Shape = Enum.PartType.Cylinder |
| 595 | p.Name = "CameraLens" |
| 596 | p.Size = Vector3.new(0.1, 1.2, 1.2) |
| 597 | p.CFrame = CFrame.new(-5, -0.63, 8) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 598 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 599 | p.Material = Enum.Material.Glacier |
| 600 | p.MaterialVariant = "2022 Glue" |
| 601 | p.Anchored = true |
| 602 | p.Parent = model |
| 603 | end |
| 604 | do |
| 605 | local p = Instance.new("Part") |
| 606 | p.Shape = Enum.PartType.Cylinder |
| 607 | p.Name = "CameraGlass" |
| 608 | p.Size = Vector3.new(0.05, 0.6, 0.6) |
| 609 | p.CFrame = CFrame.new(-5, -0.6, 8) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 610 | p.BrickColor = BrickColor.new("Black") |
| 611 | p.Material = Enum.Material.Glacier |
| 612 | p.MaterialVariant = "2022 Glue" |
| 613 | p.Anchored = true |
| 614 | p.Parent = model |
| 615 | end |
| 616 | do |
| 617 | local rightV = Vector3.new(1,0,0).Unit |
| 618 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 619 | local normalV = upV:Cross(rightV) |
| 620 | local pos = Vector3.new(6.08, 0, -9.08) |
| 621 | local cyl = Instance.new("Part") |
| 622 | cyl.Shape = Enum.PartType.Cylinder |
| 623 | cyl.Size = Vector3.new(0.6, 2, 2) |
| 624 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 625 | cyl.BrickColor = BrickColor.new("Sand blue") |
| 626 | cyl.Material = Enum.Material.Glacier |
| 627 | cyl.MaterialVariant = "2022 Glue" |
| 628 | cyl.Anchored = true; cyl.Parent = workspace |
| 629 | local cuts = {} |
| 630 | local angBoxes = {} |
| 631 | do |
| 632 | local edgeDir = 1*rightV + 0*upV |
| 633 | local edgePerp = 0*rightV + 1*upV |
| 634 | local cut = Instance.new("Part") |
| 635 | cut.Size = Vector3.new(4, 0.8, 4) |
| 636 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 2 * edgePerp, edgeDir, normalV) |
| 637 | cut.BrickColor = BrickColor.new("Sand blue") |
| 638 | cut.Material = Enum.Material.Glacier |
| 639 | cut.MaterialVariant = "2022 Glue" |
| 640 | cut.Anchored = true; cut.Parent = workspace |
| 641 | table.insert(angBoxes, cut) |
| 642 | end |
| 643 | do |
| 644 | local edgeDir = 0*rightV + 1*upV |
| 645 | local edgePerp = -1*rightV + 0*upV |
| 646 | local cut = Instance.new("Part") |
| 647 | cut.Size = Vector3.new(4, 0.8, 4) |
| 648 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 2 * edgePerp, edgeDir, normalV) |
| 649 | cut.BrickColor = BrickColor.new("Sand blue") |
| 650 | cut.Material = Enum.Material.Glacier |
| 651 | cut.MaterialVariant = "2022 Glue" |
| 652 | cut.Anchored = true; cut.Parent = workspace |
| 653 | table.insert(angBoxes, cut) |
| 654 | end |
| 655 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 656 | if #cuts > 0 then |
| 657 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 658 | for _, c in ipairs(cuts) do c:Destroy() end |
| 659 | if ok and result then |
| 660 | cyl:Destroy() |
| 661 | result.Name = "BodyCornerFR"; result.Anchored = true; result.Parent = model |
| 662 | else |
| 663 | cyl.Name = "BodyCornerFR"; cyl.Parent = model |
| 664 | end |
| 665 | else |
| 666 | cyl.Name = "BodyCornerFR"; cyl.Parent = model |
| 667 | end |
| 668 | end |
| 669 | do |
| 670 | local rightV = Vector3.new(1,0,0).Unit |
| 671 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 672 | local normalV = upV:Cross(rightV) |
| 673 | local pos = Vector3.new(-6.08, 0, -9.08) |
| 674 | local cyl = Instance.new("Part") |
| 675 | cyl.Shape = Enum.PartType.Cylinder |
| 676 | cyl.Size = Vector3.new(0.6, 2, 2) |
| 677 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 678 | cyl.BrickColor = BrickColor.new("Sand blue") |
| 679 | cyl.Material = Enum.Material.Glacier |
| 680 | cyl.MaterialVariant = "2022 Glue" |
| 681 | cyl.Anchored = true; cyl.Parent = workspace |
| 682 | local cuts = {} |
| 683 | local angBoxes = {} |
| 684 | do |
| 685 | local edgeDir = 0*rightV + 1*upV |
| 686 | local edgePerp = -1*rightV + 0*upV |
| 687 | local cut = Instance.new("Part") |
| 688 | cut.Size = Vector3.new(4, 0.8, 4) |
| 689 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 2 * edgePerp, edgeDir, normalV) |
| 690 | cut.BrickColor = BrickColor.new("Sand blue") |
| 691 | cut.Material = Enum.Material.Glacier |
| 692 | cut.MaterialVariant = "2022 Glue" |
| 693 | cut.Anchored = true; cut.Parent = workspace |
| 694 | table.insert(angBoxes, cut) |
| 695 | end |
| 696 | do |
| 697 | local edgeDir = -1*rightV + 0*upV |
| 698 | local edgePerp = 0*rightV + -1*upV |
| 699 | local cut = Instance.new("Part") |
| 700 | cut.Size = Vector3.new(4, 0.8, 4) |
| 701 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 2 * edgePerp, edgeDir, normalV) |
| 702 | cut.BrickColor = BrickColor.new("Sand blue") |
| 703 | cut.Material = Enum.Material.Glacier |
| 704 | cut.MaterialVariant = "2022 Glue" |
| 705 | cut.Anchored = true; cut.Parent = workspace |
| 706 | table.insert(angBoxes, cut) |
| 707 | end |
| 708 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 709 | if #cuts > 0 then |
| 710 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 711 | for _, c in ipairs(cuts) do c:Destroy() end |
| 712 | if ok and result then |
| 713 | cyl:Destroy() |
| 714 | result.Name = "BodyCornerFL"; result.Anchored = true; result.Parent = model |
| 715 | else |
| 716 | cyl.Name = "BodyCornerFL"; cyl.Parent = model |
| 717 | end |
| 718 | else |
| 719 | cyl.Name = "BodyCornerFL"; cyl.Parent = model |
| 720 | end |
| 721 | end |
| 722 | do |
| 723 | local rightV = Vector3.new(1,0,0).Unit |
| 724 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 725 | local normalV = upV:Cross(rightV) |
| 726 | local pos = Vector3.new(-6.08, 0, 9.08) |
| 727 | local cyl = Instance.new("Part") |
| 728 | cyl.Shape = Enum.PartType.Cylinder |
| 729 | cyl.Size = Vector3.new(0.6, 2, 2) |
| 730 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 731 | cyl.BrickColor = BrickColor.new("Sand blue") |
| 732 | cyl.Material = Enum.Material.Glacier |
| 733 | cyl.MaterialVariant = "2022 Glue" |
| 734 | cyl.Anchored = true; cyl.Parent = workspace |
| 735 | local cuts = {} |
| 736 | local angBoxes = {} |
| 737 | do |
| 738 | local edgeDir = -1*rightV + 0*upV |
| 739 | local edgePerp = 0*rightV + -1*upV |
| 740 | local cut = Instance.new("Part") |
| 741 | cut.Size = Vector3.new(4, 0.8, 4) |
| 742 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 2 * edgePerp, edgeDir, normalV) |
| 743 | cut.BrickColor = BrickColor.new("Sand blue") |
| 744 | cut.Material = Enum.Material.Glacier |
| 745 | cut.MaterialVariant = "2022 Glue" |
| 746 | cut.Anchored = true; cut.Parent = workspace |
| 747 | table.insert(angBoxes, cut) |
| 748 | end |
| 749 | do |
| 750 | local edgeDir = 0*rightV + -1*upV |
| 751 | local edgePerp = 1*rightV + 0*upV |
| 752 | local cut = Instance.new("Part") |
| 753 | cut.Size = Vector3.new(4, 0.8, 4) |
| 754 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 2 * edgePerp, edgeDir, normalV) |
| 755 | cut.BrickColor = BrickColor.new("Sand blue") |
| 756 | cut.Material = Enum.Material.Glacier |
| 757 | cut.MaterialVariant = "2022 Glue" |
| 758 | cut.Anchored = true; cut.Parent = workspace |
| 759 | table.insert(angBoxes, cut) |
| 760 | end |
| 761 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 762 | if #cuts > 0 then |
| 763 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 764 | for _, c in ipairs(cuts) do c:Destroy() end |
| 765 | if ok and result then |
| 766 | cyl:Destroy() |
| 767 | result.Name = "BodyCornerBL"; result.Anchored = true; result.Parent = model |
| 768 | else |
| 769 | cyl.Name = "BodyCornerBL"; cyl.Parent = model |
| 770 | end |
| 771 | else |
| 772 | cyl.Name = "BodyCornerBL"; cyl.Parent = model |
| 773 | end |
| 774 | end |
| 775 | do |
| 776 | local rightV = Vector3.new(1,0,0).Unit |
| 777 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 778 | local normalV = upV:Cross(rightV) |
| 779 | local pos = Vector3.new(6.08, 0, 9.08) |
| 780 | local cyl = Instance.new("Part") |
| 781 | cyl.Shape = Enum.PartType.Cylinder |
| 782 | cyl.Size = Vector3.new(0.6, 2, 2) |
| 783 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 784 | cyl.BrickColor = BrickColor.new("Sand blue") |
| 785 | cyl.Material = Enum.Material.Glacier |
| 786 | cyl.MaterialVariant = "2022 Glue" |
| 787 | cyl.Anchored = true; cyl.Parent = workspace |
| 788 | local cuts = {} |
| 789 | local angBoxes = {} |
| 790 | do |
| 791 | local edgeDir = 0*rightV + -1*upV |
| 792 | local edgePerp = 1*rightV + 0*upV |
| 793 | local cut = Instance.new("Part") |
| 794 | cut.Size = Vector3.new(4, 0.8, 4) |
| 795 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 2 * edgePerp, edgeDir, normalV) |
| 796 | cut.BrickColor = BrickColor.new("Sand blue") |
| 797 | cut.Material = Enum.Material.Glacier |
| 798 | cut.MaterialVariant = "2022 Glue" |
| 799 | cut.Anchored = true; cut.Parent = workspace |
| 800 | table.insert(angBoxes, cut) |
| 801 | end |
| 802 | do |
| 803 | local edgeDir = 1*rightV + 0*upV |
| 804 | local edgePerp = 0*rightV + 1*upV |
| 805 | local cut = Instance.new("Part") |
| 806 | cut.Size = Vector3.new(4, 0.8, 4) |
| 807 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 2 * edgePerp, edgeDir, normalV) |
| 808 | cut.BrickColor = BrickColor.new("Sand blue") |
| 809 | cut.Material = Enum.Material.Glacier |
| 810 | cut.MaterialVariant = "2022 Glue" |
| 811 | cut.Anchored = true; cut.Parent = workspace |
| 812 | table.insert(angBoxes, cut) |
| 813 | end |
| 814 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 815 | if #cuts > 0 then |
| 816 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 817 | for _, c in ipairs(cuts) do c:Destroy() end |
| 818 | if ok and result then |
| 819 | cyl:Destroy() |
| 820 | result.Name = "BodyCornerBR"; result.Anchored = true; result.Parent = model |
| 821 | else |
| 822 | cyl.Name = "BodyCornerBR"; cyl.Parent = model |
| 823 | end |
| 824 | else |
| 825 | cyl.Name = "BodyCornerBR"; cyl.Parent = model |
| 826 | end |
| 827 | end |
| 828 | do |
| 829 | local rightV = Vector3.new(1,0,0).Unit |
| 830 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 831 | local normalV = upV:Cross(rightV) |
| 832 | local pos = Vector3.new(6.18, 0.48, -9.18) |
| 833 | local cyl = Instance.new("Part") |
| 834 | cyl.Shape = Enum.PartType.Cylinder |
| 835 | cyl.Size = Vector3.new(0.2, 2, 2) |
| 836 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 837 | cyl.BrickColor = BrickColor.new("Really black") |
| 838 | cyl.Material = Enum.Material.Glacier |
| 839 | cyl.MaterialVariant = "2022 Glue" |
| 840 | cyl.Anchored = true; cyl.Parent = workspace |
| 841 | local cuts = {} |
| 842 | local angBoxes = {} |
| 843 | do |
| 844 | local edgeDir = 1*rightV + 0*upV |
| 845 | local edgePerp = 0*rightV + 1*upV |
| 846 | local cut = Instance.new("Part") |
| 847 | cut.Size = Vector3.new(4, 0.4, 4) |
| 848 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 2 * edgePerp, edgeDir, normalV) |
| 849 | cut.BrickColor = BrickColor.new("Really black") |
| 850 | cut.Material = Enum.Material.Glacier |
| 851 | cut.MaterialVariant = "2022 Glue" |
| 852 | cut.Anchored = true; cut.Parent = workspace |
| 853 | table.insert(angBoxes, cut) |
| 854 | end |
| 855 | do |
| 856 | local edgeDir = 0*rightV + 1*upV |
| 857 | local edgePerp = -1*rightV + 0*upV |
| 858 | local cut = Instance.new("Part") |
| 859 | cut.Size = Vector3.new(4, 0.4, 4) |
| 860 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 2 * edgePerp, edgeDir, normalV) |
| 861 | cut.BrickColor = BrickColor.new("Really black") |
| 862 | cut.Material = Enum.Material.Glacier |
| 863 | cut.MaterialVariant = "2022 Glue" |
| 864 | cut.Anchored = true; cut.Parent = workspace |
| 865 | table.insert(angBoxes, cut) |
| 866 | end |
| 867 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 868 | if #cuts > 0 then |
| 869 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 870 | for _, c in ipairs(cuts) do c:Destroy() end |
| 871 | if ok and result then |
| 872 | cyl:Destroy() |
| 873 | result.Name = "CaseTopCornerFR"; result.Anchored = true; result.Parent = model |
| 874 | else |
| 875 | cyl.Name = "CaseTopCornerFR"; cyl.Parent = model |
| 876 | end |
| 877 | else |
| 878 | cyl.Name = "CaseTopCornerFR"; cyl.Parent = model |
| 879 | end |
| 880 | end |
| 881 | do |
| 882 | local rightV = Vector3.new(1,0,0).Unit |
| 883 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 884 | local normalV = upV:Cross(rightV) |
| 885 | local pos = Vector3.new(-6.18, 0.48, -9.18) |
| 886 | local cyl = Instance.new("Part") |
| 887 | cyl.Shape = Enum.PartType.Cylinder |
| 888 | cyl.Size = Vector3.new(0.2, 2, 2) |
| 889 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 890 | cyl.BrickColor = BrickColor.new("Really black") |
| 891 | cyl.Material = Enum.Material.Glacier |
| 892 | cyl.MaterialVariant = "2022 Glue" |
| 893 | cyl.Anchored = true; cyl.Parent = workspace |
| 894 | local cuts = {} |
| 895 | local angBoxes = {} |
| 896 | do |
| 897 | local edgeDir = 0*rightV + 1*upV |
| 898 | local edgePerp = -1*rightV + 0*upV |
| 899 | local cut = Instance.new("Part") |
| 900 | cut.Size = Vector3.new(4, 0.4, 4) |
| 901 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 2 * edgePerp, edgeDir, normalV) |
| 902 | cut.BrickColor = BrickColor.new("Really black") |
| 903 | cut.Material = Enum.Material.Glacier |
| 904 | cut.MaterialVariant = "2022 Glue" |
| 905 | cut.Anchored = true; cut.Parent = workspace |
| 906 | table.insert(angBoxes, cut) |
| 907 | end |
| 908 | do |
| 909 | local edgeDir = -1*rightV + 0*upV |
| 910 | local edgePerp = 0*rightV + -1*upV |
| 911 | local cut = Instance.new("Part") |
| 912 | cut.Size = Vector3.new(4, 0.4, 4) |
| 913 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 2 * edgePerp, edgeDir, normalV) |
| 914 | cut.BrickColor = BrickColor.new("Really black") |
| 915 | cut.Material = Enum.Material.Glacier |
| 916 | cut.MaterialVariant = "2022 Glue" |
| 917 | cut.Anchored = true; cut.Parent = workspace |
| 918 | table.insert(angBoxes, cut) |
| 919 | end |
| 920 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 921 | if #cuts > 0 then |
| 922 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 923 | for _, c in ipairs(cuts) do c:Destroy() end |
| 924 | if ok and result then |
| 925 | cyl:Destroy() |
| 926 | result.Name = "CaseTopCornerFL"; result.Anchored = true; result.Parent = model |
| 927 | else |
| 928 | cyl.Name = "CaseTopCornerFL"; cyl.Parent = model |
| 929 | end |
| 930 | else |
| 931 | cyl.Name = "CaseTopCornerFL"; cyl.Parent = model |
| 932 | end |
| 933 | end |
| 934 | do |
| 935 | local rightV = Vector3.new(1,0,0).Unit |
| 936 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 937 | local normalV = upV:Cross(rightV) |
| 938 | local pos = Vector3.new(-6.18, 0.48, 9.18) |
| 939 | local cyl = Instance.new("Part") |
| 940 | cyl.Shape = Enum.PartType.Cylinder |
| 941 | cyl.Size = Vector3.new(0.2, 2, 2) |
| 942 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 943 | cyl.BrickColor = BrickColor.new("Really black") |
| 944 | cyl.Material = Enum.Material.Glacier |
| 945 | cyl.MaterialVariant = "2022 Glue" |
| 946 | cyl.Anchored = true; cyl.Parent = workspace |
| 947 | local cuts = {} |
| 948 | local angBoxes = {} |
| 949 | do |
| 950 | local edgeDir = -1*rightV + 0*upV |
| 951 | local edgePerp = 0*rightV + -1*upV |
| 952 | local cut = Instance.new("Part") |
| 953 | cut.Size = Vector3.new(4, 0.4, 4) |
| 954 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 2 * edgePerp, edgeDir, normalV) |
| 955 | cut.BrickColor = BrickColor.new("Really black") |
| 956 | cut.Material = Enum.Material.Glacier |
| 957 | cut.MaterialVariant = "2022 Glue" |
| 958 | cut.Anchored = true; cut.Parent = workspace |
| 959 | table.insert(angBoxes, cut) |
| 960 | end |
| 961 | do |
| 962 | local edgeDir = 0*rightV + -1*upV |
| 963 | local edgePerp = 1*rightV + 0*upV |
| 964 | local cut = Instance.new("Part") |
| 965 | cut.Size = Vector3.new(4, 0.4, 4) |
| 966 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 2 * edgePerp, edgeDir, normalV) |
| 967 | cut.BrickColor = BrickColor.new("Really black") |
| 968 | cut.Material = Enum.Material.Glacier |
| 969 | cut.MaterialVariant = "2022 Glue" |
| 970 | cut.Anchored = true; cut.Parent = workspace |
| 971 | table.insert(angBoxes, cut) |
| 972 | end |
| 973 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 974 | if #cuts > 0 then |
| 975 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 976 | for _, c in ipairs(cuts) do c:Destroy() end |
| 977 | if ok and result then |
| 978 | cyl:Destroy() |
| 979 | result.Name = "CaseTopCornerBL"; result.Anchored = true; result.Parent = model |
| 980 | else |
| 981 | cyl.Name = "CaseTopCornerBL"; cyl.Parent = model |
| 982 | end |
| 983 | else |
| 984 | cyl.Name = "CaseTopCornerBL"; cyl.Parent = model |
| 985 | end |
| 986 | end |
| 987 | do |
| 988 | local rightV = Vector3.new(1,0,0).Unit |
| 989 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 990 | local normalV = upV:Cross(rightV) |
| 991 | local pos = Vector3.new(6.18, 0.48, 9.18) |
| 992 | local cyl = Instance.new("Part") |
| 993 | cyl.Shape = Enum.PartType.Cylinder |
| 994 | cyl.Size = Vector3.new(0.2, 2, 2) |
| 995 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 996 | cyl.BrickColor = BrickColor.new("Really black") |
| 997 | cyl.Material = Enum.Material.Glacier |
| 998 | cyl.MaterialVariant = "2022 Glue" |
| 999 | cyl.Anchored = true; cyl.Parent = workspace |
| 1000 | local cuts = {} |
| 1001 | local angBoxes = {} |
| 1002 | do |
| 1003 | local edgeDir = 0*rightV + -1*upV |
| 1004 | local edgePerp = 1*rightV + 0*upV |
| 1005 | local cut = Instance.new("Part") |
| 1006 | cut.Size = Vector3.new(4, 0.4, 4) |
| 1007 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 2 * edgePerp, edgeDir, normalV) |
| 1008 | cut.BrickColor = BrickColor.new("Really black") |
| 1009 | cut.Material = Enum.Material.Glacier |
| 1010 | cut.MaterialVariant = "2022 Glue" |
| 1011 | cut.Anchored = true; cut.Parent = workspace |
| 1012 | table.insert(angBoxes, cut) |
| 1013 | end |
| 1014 | do |
| 1015 | local edgeDir = 1*rightV + 0*upV |
| 1016 | local edgePerp = 0*rightV + 1*upV |
| 1017 | local cut = Instance.new("Part") |
| 1018 | cut.Size = Vector3.new(4, 0.4, 4) |
| 1019 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 2 * edgePerp, edgeDir, normalV) |
| 1020 | cut.BrickColor = BrickColor.new("Really black") |
| 1021 | cut.Material = Enum.Material.Glacier |
| 1022 | cut.MaterialVariant = "2022 Glue" |
| 1023 | cut.Anchored = true; cut.Parent = workspace |
| 1024 | table.insert(angBoxes, cut) |
| 1025 | end |
| 1026 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1027 | if #cuts > 0 then |
| 1028 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1029 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1030 | if ok and result then |
| 1031 | cyl:Destroy() |
| 1032 | result.Name = "CaseTopCornerBR"; result.Anchored = true; result.Parent = model |
| 1033 | else |
| 1034 | cyl.Name = "CaseTopCornerBR"; cyl.Parent = model |
| 1035 | end |
| 1036 | else |
| 1037 | cyl.Name = "CaseTopCornerBR"; cyl.Parent = model |
| 1038 | end |
| 1039 | end |
| 1040 | do |
| 1041 | local rightV = Vector3.new(1,0,0).Unit |
| 1042 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 1043 | local normalV = upV:Cross(rightV) |
| 1044 | local pos = Vector3.new(6.18, -0.56, -9.18) |
| 1045 | local cyl = Instance.new("Part") |
| 1046 | cyl.Shape = Enum.PartType.Cylinder |
| 1047 | cyl.Size = Vector3.new(0.2, 2, 2) |
| 1048 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1049 | cyl.BrickColor = BrickColor.new("Really black") |
| 1050 | cyl.Material = Enum.Material.Glacier |
| 1051 | cyl.MaterialVariant = "2022 Glue" |
| 1052 | cyl.Anchored = true; cyl.Parent = workspace |
| 1053 | local cuts = {} |
| 1054 | local angBoxes = {} |
| 1055 | do |
| 1056 | local edgeDir = 1*rightV + 0*upV |
| 1057 | local edgePerp = 0*rightV + 1*upV |
| 1058 | local cut = Instance.new("Part") |
| 1059 | cut.Size = Vector3.new(4, 0.4, 4) |
| 1060 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 2 * edgePerp, edgeDir, normalV) |
| 1061 | cut.BrickColor = BrickColor.new("Really black") |
| 1062 | cut.Material = Enum.Material.Glacier |
| 1063 | cut.MaterialVariant = "2022 Glue" |
| 1064 | cut.Anchored = true; cut.Parent = workspace |
| 1065 | table.insert(angBoxes, cut) |
| 1066 | end |
| 1067 | do |
| 1068 | local edgeDir = 0*rightV + 1*upV |
| 1069 | local edgePerp = -1*rightV + 0*upV |
| 1070 | local cut = Instance.new("Part") |
| 1071 | cut.Size = Vector3.new(4, 0.4, 4) |
| 1072 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 2 * edgePerp, edgeDir, normalV) |
| 1073 | cut.BrickColor = BrickColor.new("Really black") |
| 1074 | cut.Material = Enum.Material.Glacier |
| 1075 | cut.MaterialVariant = "2022 Glue" |
| 1076 | cut.Anchored = true; cut.Parent = workspace |
| 1077 | table.insert(angBoxes, cut) |
| 1078 | end |
| 1079 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1080 | if #cuts > 0 then |
| 1081 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1082 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1083 | if ok and result then |
| 1084 | cyl:Destroy() |
| 1085 | result.Name = "CaseBotCornerFR"; result.Anchored = true; result.Parent = model |
| 1086 | else |
| 1087 | cyl.Name = "CaseBotCornerFR"; cyl.Parent = model |
| 1088 | end |
| 1089 | else |
| 1090 | cyl.Name = "CaseBotCornerFR"; cyl.Parent = model |
| 1091 | end |
| 1092 | end |
| 1093 | do |
| 1094 | local rightV = Vector3.new(1,0,0).Unit |
| 1095 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 1096 | local normalV = upV:Cross(rightV) |
| 1097 | local pos = Vector3.new(-6.18, -0.56, -9.18) |
| 1098 | local cyl = Instance.new("Part") |
| 1099 | cyl.Shape = Enum.PartType.Cylinder |
| 1100 | cyl.Size = Vector3.new(0.2, 2, 2) |
| 1101 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1102 | cyl.BrickColor = BrickColor.new("Really black") |
| 1103 | cyl.Material = Enum.Material.Glacier |
| 1104 | cyl.MaterialVariant = "2022 Glue" |
| 1105 | cyl.Anchored = true; cyl.Parent = workspace |
| 1106 | local cuts = {} |
| 1107 | local angBoxes = {} |
| 1108 | do |
| 1109 | local edgeDir = 0*rightV + 1*upV |
| 1110 | local edgePerp = -1*rightV + 0*upV |
| 1111 | local cut = Instance.new("Part") |
| 1112 | cut.Size = Vector3.new(4, 0.4, 4) |
| 1113 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 2 * edgePerp, edgeDir, normalV) |
| 1114 | cut.BrickColor = BrickColor.new("Really black") |
| 1115 | cut.Material = Enum.Material.Glacier |
| 1116 | cut.MaterialVariant = "2022 Glue" |
| 1117 | cut.Anchored = true; cut.Parent = workspace |
| 1118 | table.insert(angBoxes, cut) |
| 1119 | end |
| 1120 | do |
| 1121 | local edgeDir = -1*rightV + 0*upV |
| 1122 | local edgePerp = 0*rightV + -1*upV |
| 1123 | local cut = Instance.new("Part") |
| 1124 | cut.Size = Vector3.new(4, 0.4, 4) |
| 1125 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 2 * edgePerp, edgeDir, normalV) |
| 1126 | cut.BrickColor = BrickColor.new("Really black") |
| 1127 | cut.Material = Enum.Material.Glacier |
| 1128 | cut.MaterialVariant = "2022 Glue" |
| 1129 | cut.Anchored = true; cut.Parent = workspace |
| 1130 | table.insert(angBoxes, cut) |
| 1131 | end |
| 1132 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1133 | if #cuts > 0 then |
| 1134 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1135 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1136 | if ok and result then |
| 1137 | cyl:Destroy() |
| 1138 | result.Name = "CaseBotCornerFL"; result.Anchored = true; result.Parent = model |
| 1139 | else |
| 1140 | cyl.Name = "CaseBotCornerFL"; cyl.Parent = model |
| 1141 | end |
| 1142 | else |
| 1143 | cyl.Name = "CaseBotCornerFL"; cyl.Parent = model |
| 1144 | end |
| 1145 | end |
| 1146 | do |
| 1147 | local rightV = Vector3.new(1,0,0).Unit |
| 1148 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 1149 | local normalV = upV:Cross(rightV) |
| 1150 | local pos = Vector3.new(-6.18, -0.56, 9.18) |
| 1151 | local cyl = Instance.new("Part") |
| 1152 | cyl.Shape = Enum.PartType.Cylinder |
| 1153 | cyl.Size = Vector3.new(0.2, 2, 2) |
| 1154 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1155 | cyl.BrickColor = BrickColor.new("Really black") |
| 1156 | cyl.Material = Enum.Material.Glacier |
| 1157 | cyl.MaterialVariant = "2022 Glue" |
| 1158 | cyl.Anchored = true; cyl.Parent = workspace |
| 1159 | local cuts = {} |
| 1160 | local angBoxes = {} |
| 1161 | do |
| 1162 | local edgeDir = -1*rightV + 0*upV |
| 1163 | local edgePerp = 0*rightV + -1*upV |
| 1164 | local cut = Instance.new("Part") |
| 1165 | cut.Size = Vector3.new(4, 0.4, 4) |
| 1166 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 2 * edgePerp, edgeDir, normalV) |
| 1167 | cut.BrickColor = BrickColor.new("Really black") |
| 1168 | cut.Material = Enum.Material.Glacier |
| 1169 | cut.MaterialVariant = "2022 Glue" |
| 1170 | cut.Anchored = true; cut.Parent = workspace |
| 1171 | table.insert(angBoxes, cut) |
| 1172 | end |
| 1173 | do |
| 1174 | local edgeDir = 0*rightV + -1*upV |
| 1175 | local edgePerp = 1*rightV + 0*upV |
| 1176 | local cut = Instance.new("Part") |
| 1177 | cut.Size = Vector3.new(4, 0.4, 4) |
| 1178 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 2 * edgePerp, edgeDir, normalV) |
| 1179 | cut.BrickColor = BrickColor.new("Really black") |
| 1180 | cut.Material = Enum.Material.Glacier |
| 1181 | cut.MaterialVariant = "2022 Glue" |
| 1182 | cut.Anchored = true; cut.Parent = workspace |
| 1183 | table.insert(angBoxes, cut) |
| 1184 | end |
| 1185 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1186 | if #cuts > 0 then |
| 1187 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1188 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1189 | if ok and result then |
| 1190 | cyl:Destroy() |
| 1191 | result.Name = "CaseBotCornerBL"; result.Anchored = true; result.Parent = model |
| 1192 | else |
| 1193 | cyl.Name = "CaseBotCornerBL"; cyl.Parent = model |
| 1194 | end |
| 1195 | else |
| 1196 | cyl.Name = "CaseBotCornerBL"; cyl.Parent = model |
| 1197 | end |
| 1198 | end |
| 1199 | do |
| 1200 | local rightV = Vector3.new(1,0,0).Unit |
| 1201 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 1202 | local normalV = upV:Cross(rightV) |
| 1203 | local pos = Vector3.new(6.18, -0.56, 9.18) |
| 1204 | local cyl = Instance.new("Part") |
| 1205 | cyl.Shape = Enum.PartType.Cylinder |
| 1206 | cyl.Size = Vector3.new(0.2, 2, 2) |
| 1207 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1208 | cyl.BrickColor = BrickColor.new("Really black") |
| 1209 | cyl.Material = Enum.Material.Glacier |
| 1210 | cyl.MaterialVariant = "2022 Glue" |
| 1211 | cyl.Anchored = true; cyl.Parent = workspace |
| 1212 | local cuts = {} |
| 1213 | local angBoxes = {} |
| 1214 | do |
| 1215 | local edgeDir = 0*rightV + -1*upV |
| 1216 | local edgePerp = 1*rightV + 0*upV |
| 1217 | local cut = Instance.new("Part") |
| 1218 | cut.Size = Vector3.new(4, 0.4, 4) |
| 1219 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 2 * edgePerp, edgeDir, normalV) |
| 1220 | cut.BrickColor = BrickColor.new("Really black") |
| 1221 | cut.Material = Enum.Material.Glacier |
| 1222 | cut.MaterialVariant = "2022 Glue" |
| 1223 | cut.Anchored = true; cut.Parent = workspace |
| 1224 | table.insert(angBoxes, cut) |
| 1225 | end |
| 1226 | do |
| 1227 | local edgeDir = 1*rightV + 0*upV |
| 1228 | local edgePerp = 0*rightV + 1*upV |
| 1229 | local cut = Instance.new("Part") |
| 1230 | cut.Size = Vector3.new(4, 0.4, 4) |
| 1231 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 2 * edgePerp, edgeDir, normalV) |
| 1232 | cut.BrickColor = BrickColor.new("Really black") |
| 1233 | cut.Material = Enum.Material.Glacier |
| 1234 | cut.MaterialVariant = "2022 Glue" |
| 1235 | cut.Anchored = true; cut.Parent = workspace |
| 1236 | table.insert(angBoxes, cut) |
| 1237 | end |
| 1238 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1239 | if #cuts > 0 then |
| 1240 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1241 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1242 | if ok and result then |
| 1243 | cyl:Destroy() |
| 1244 | result.Name = "CaseBotCornerBR"; result.Anchored = true; result.Parent = model |
| 1245 | else |
| 1246 | cyl.Name = "CaseBotCornerBR"; cyl.Parent = model |
| 1247 | end |
| 1248 | else |
| 1249 | cyl.Name = "CaseBotCornerBR"; cyl.Parent = model |
| 1250 | end |
| 1251 | end |
| 1252 | model.PrimaryPart = model:FindFirstChild("BodyCenter") |
| 1253 | print("iPadAir_Folio built: " .. #model:GetChildren() .. " parts") |
Loading comments...