Loading model...
by pro superpro · 9/10/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: HalloweenFallChest |
| 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 = "HalloweenFallChest" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Bright orange"] = "2022 Stud", |
| 25 | ["Bright yellow"] = "2022 Big Stud", |
| 26 | ["Brown"] = "2022 Stud", |
| 27 | ["Dark stone grey"] = "2022 Stud", |
| 28 | ["Deep orange"] = "2022 Stud", |
| 29 | ["Medium stone grey"] = "2022 Inlet", |
| 30 | ["Really black"] = "2022 Universal", |
| 31 | ["Reddish brown"] = "2022 Small Stud", |
| 32 | ["Silver"] = "2022 Stud", |
| 33 | } |
| 34 | do |
| 35 | local p = Instance.new("Part") |
| 36 | p.Name = "BasePlank1" |
| 37 | p.Size = Vector3.new(11.8, 1.5, 7.8) |
| 38 | p.CFrame = CFrame.new(0, 0.63, 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 = "BasePlank2" |
| 48 | p.Size = Vector3.new(11.8, 1.5, 7.8) |
| 49 | p.CFrame = CFrame.new(0, 2.17, 0) |
| 50 | p.BrickColor = BrickColor.new("Brown") |
| 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 = "BasePlank3" |
| 59 | p.Size = Vector3.new(11.8, 1.5, 7.8) |
| 60 | p.CFrame = CFrame.new(0, 3.71, 0) |
| 61 | p.BrickColor = BrickColor.new("Reddish brown") |
| 62 | p.Material = Enum.Material.Glacier |
| 63 | p.MaterialVariant = "2022 Small Stud" |
| 64 | p.Anchored = true |
| 65 | p.Parent = model |
| 66 | end |
| 67 | do |
| 68 | local p = Instance.new("Part") |
| 69 | p.Name = "BasePlank4" |
| 70 | p.Size = Vector3.new(11.8, 1.5, 7.8) |
| 71 | p.CFrame = CFrame.new(0, 5.25, 0) |
| 72 | p.BrickColor = BrickColor.new("Brown") |
| 73 | p.Material = Enum.Material.Glacier |
| 74 | p.MaterialVariant = "2022 Stud" |
| 75 | p.Anchored = true |
| 76 | p.Parent = model |
| 77 | end |
| 78 | do |
| 79 | local p = Instance.new("Part") |
| 80 | p.Name = "SeamBand" |
| 81 | p.Size = Vector3.new(12.2, 0.6, 8.2) |
| 82 | p.CFrame = CFrame.new(0, 6.1, 0) |
| 83 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 84 | p.Material = Enum.Material.Glacier |
| 85 | p.MaterialVariant = "2022 Stud" |
| 86 | p.Anchored = true |
| 87 | p.Parent = model |
| 88 | end |
| 89 | do |
| 90 | local p = Instance.new("Part") |
| 91 | p.Name = "VBandL_Front" |
| 92 | p.Size = Vector3.new(1.2, 6, 0.4) |
| 93 | p.CFrame = CFrame.new(-3.46, 3.04, -4.04) |
| 94 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 95 | p.Material = Enum.Material.Glacier |
| 96 | p.MaterialVariant = "2022 Stud" |
| 97 | p.Anchored = true |
| 98 | p.Parent = model |
| 99 | end |
| 100 | do |
| 101 | local p = Instance.new("Part") |
| 102 | p.Name = "VBandL_Back" |
| 103 | p.Size = Vector3.new(1.2, 6, 0.4) |
| 104 | p.CFrame = CFrame.new(-3.46, 3.04, 4.04) |
| 105 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 106 | p.Material = Enum.Material.Glacier |
| 107 | p.MaterialVariant = "2022 Stud" |
| 108 | p.Anchored = true |
| 109 | p.Parent = model |
| 110 | end |
| 111 | do |
| 112 | local p = Instance.new("Part") |
| 113 | p.Name = "VBandL_Bottom" |
| 114 | p.Size = Vector3.new(1.2, 0.4, 8.4) |
| 115 | p.CFrame = CFrame.new(-3.5, 0.04, 0) |
| 116 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 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 = "VBandR_Front" |
| 125 | p.Size = Vector3.new(1.2, 6, 0.4) |
| 126 | p.CFrame = CFrame.new(3.54, 3.04, -4.04) |
| 127 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 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.Name = "VBandR_Back" |
| 136 | p.Size = Vector3.new(1.2, 6, 0.4) |
| 137 | p.CFrame = CFrame.new(3.54, 3.04, 4.04) |
| 138 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 139 | p.Material = Enum.Material.Glacier |
| 140 | p.MaterialVariant = "2022 Stud" |
| 141 | p.Anchored = true |
| 142 | p.Parent = model |
| 143 | end |
| 144 | do |
| 145 | local p = Instance.new("Part") |
| 146 | p.Name = "VBandR_Bottom" |
| 147 | p.Size = Vector3.new(1.2, 0.4, 8.4) |
| 148 | p.CFrame = CFrame.new(3.5, 0.04, 0) |
| 149 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 150 | p.Material = Enum.Material.Glacier |
| 151 | p.MaterialVariant = "2022 Stud" |
| 152 | p.Anchored = true |
| 153 | p.Parent = model |
| 154 | end |
| 155 | do |
| 156 | local p = Instance.new("Part") |
| 157 | p.Name = "LidTop" |
| 158 | p.Size = Vector3.new(11.8, 0.6, 2.5) |
| 159 | p.CFrame = CFrame.new(0.04, 10.1, 0) |
| 160 | p.BrickColor = BrickColor.new("Reddish brown") |
| 161 | p.Material = Enum.Material.Glacier |
| 162 | p.MaterialVariant = "2022 Small Stud" |
| 163 | p.Anchored = true |
| 164 | p.Parent = model |
| 165 | end |
| 166 | do |
| 167 | local p = Instance.new("Part") |
| 168 | p.Name = "LidFrontMid" |
| 169 | p.Size = Vector3.new(11.8, 0.6, 2.8) |
| 170 | p.CFrame = CFrame.new(0, 9.3, -2.4) * CFrame.Angles(math.rad(-35), math.rad(0), math.rad(0)) |
| 171 | p.BrickColor = BrickColor.new("Brown") |
| 172 | p.Material = Enum.Material.Glacier |
| 173 | p.MaterialVariant = "2022 Stud" |
| 174 | p.Anchored = true |
| 175 | p.Parent = model |
| 176 | end |
| 177 | do |
| 178 | local p = Instance.new("Part") |
| 179 | p.Name = "LidFrontLow" |
| 180 | p.Size = Vector3.new(11.8, 0.6, 2.8) |
| 181 | p.CFrame = CFrame.new(0.04, 7.6, -3.6) * CFrame.Angles(math.rad(-70), math.rad(0), math.rad(0)) |
| 182 | p.BrickColor = BrickColor.new("Reddish brown") |
| 183 | p.Material = Enum.Material.Glacier |
| 184 | p.MaterialVariant = "2022 Small Stud" |
| 185 | p.Anchored = true |
| 186 | p.Parent = model |
| 187 | end |
| 188 | do |
| 189 | local p = Instance.new("Part") |
| 190 | p.Name = "LidBackMid" |
| 191 | p.Size = Vector3.new(11.8, 0.6, 2.8) |
| 192 | p.CFrame = CFrame.new(0, 9.3, 2.4) * CFrame.Angles(math.rad(35), math.rad(0), math.rad(0)) |
| 193 | p.BrickColor = BrickColor.new("Brown") |
| 194 | p.Material = Enum.Material.Glacier |
| 195 | p.MaterialVariant = "2022 Stud" |
| 196 | p.Anchored = true |
| 197 | p.Parent = model |
| 198 | end |
| 199 | do |
| 200 | local p = Instance.new("Part") |
| 201 | p.Name = "LidBackLow" |
| 202 | p.Size = Vector3.new(11.8, 0.6, 2.8) |
| 203 | p.CFrame = CFrame.new(0.04, 7.6, 3.6) * CFrame.Angles(math.rad(70), math.rad(0), math.rad(0)) |
| 204 | p.BrickColor = BrickColor.new("Reddish brown") |
| 205 | p.Material = Enum.Material.Glacier |
| 206 | p.MaterialVariant = "2022 Small Stud" |
| 207 | p.Anchored = true |
| 208 | p.Parent = model |
| 209 | end |
| 210 | do |
| 211 | local p = Instance.new("Part") |
| 212 | p.Shape = Enum.PartType.Ball |
| 213 | p.Name = "Rivet_F_-3.5_1.5" |
| 214 | p.Size = Vector3.new(0.4, 0.4, 0.4) |
| 215 | p.CFrame = CFrame.new(-3.5, 1.5, -4.1) |
| 216 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 217 | p.Material = Enum.Material.Glacier |
| 218 | p.MaterialVariant = "2022 Inlet" |
| 219 | p.Anchored = true |
| 220 | p.Parent = model |
| 221 | end |
| 222 | do |
| 223 | local p = Instance.new("Part") |
| 224 | p.Shape = Enum.PartType.Ball |
| 225 | p.Name = "Rivet_B_-3.5_1.5" |
| 226 | p.Size = Vector3.new(0.4, 0.4, 0.4) |
| 227 | p.CFrame = CFrame.new(-3.5, 1.5, 4.1) |
| 228 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 229 | p.Material = Enum.Material.Glacier |
| 230 | p.MaterialVariant = "2022 Inlet" |
| 231 | p.Anchored = true |
| 232 | p.Parent = model |
| 233 | end |
| 234 | do |
| 235 | local p = Instance.new("Part") |
| 236 | p.Shape = Enum.PartType.Ball |
| 237 | p.Name = "Rivet_F_-3.5_4.5" |
| 238 | p.Size = Vector3.new(0.4, 0.4, 0.4) |
| 239 | p.CFrame = CFrame.new(-3.5, 4.5, -4.1) |
| 240 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 241 | p.Material = Enum.Material.Glacier |
| 242 | p.MaterialVariant = "2022 Inlet" |
| 243 | p.Anchored = true |
| 244 | p.Parent = model |
| 245 | end |
| 246 | do |
| 247 | local p = Instance.new("Part") |
| 248 | p.Shape = Enum.PartType.Ball |
| 249 | p.Name = "Rivet_B_-3.5_4.5" |
| 250 | p.Size = Vector3.new(0.4, 0.4, 0.4) |
| 251 | p.CFrame = CFrame.new(-3.5, 4.5, 4.1) |
| 252 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 253 | p.Material = Enum.Material.Glacier |
| 254 | p.MaterialVariant = "2022 Inlet" |
| 255 | p.Anchored = true |
| 256 | p.Parent = model |
| 257 | end |
| 258 | do |
| 259 | local p = Instance.new("Part") |
| 260 | p.Shape = Enum.PartType.Ball |
| 261 | p.Name = "Rivet_F_3.5_1.5" |
| 262 | p.Size = Vector3.new(0.4, 0.4, 0.4) |
| 263 | p.CFrame = CFrame.new(3.5, 1.5, -4.1) |
| 264 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 265 | p.Material = Enum.Material.Glacier |
| 266 | p.MaterialVariant = "2022 Inlet" |
| 267 | p.Anchored = true |
| 268 | p.Parent = model |
| 269 | end |
| 270 | do |
| 271 | local p = Instance.new("Part") |
| 272 | p.Shape = Enum.PartType.Ball |
| 273 | p.Name = "Rivet_B_3.5_1.5" |
| 274 | p.Size = Vector3.new(0.4, 0.4, 0.4) |
| 275 | p.CFrame = CFrame.new(3.5, 1.5, 4.1) |
| 276 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 277 | p.Material = Enum.Material.Glacier |
| 278 | p.MaterialVariant = "2022 Inlet" |
| 279 | p.Anchored = true |
| 280 | p.Parent = model |
| 281 | end |
| 282 | do |
| 283 | local p = Instance.new("Part") |
| 284 | p.Shape = Enum.PartType.Ball |
| 285 | p.Name = "Rivet_F_3.5_4.5" |
| 286 | p.Size = Vector3.new(0.4, 0.4, 0.4) |
| 287 | p.CFrame = CFrame.new(3.5, 4.5, -4.1) |
| 288 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 289 | p.Material = Enum.Material.Glacier |
| 290 | p.MaterialVariant = "2022 Inlet" |
| 291 | p.Anchored = true |
| 292 | p.Parent = model |
| 293 | end |
| 294 | do |
| 295 | local p = Instance.new("Part") |
| 296 | p.Shape = Enum.PartType.Ball |
| 297 | p.Name = "Rivet_B_3.5_4.5" |
| 298 | p.Size = Vector3.new(0.4, 0.4, 0.4) |
| 299 | p.CFrame = CFrame.new(3.5, 4.5, 4.1) |
| 300 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 301 | p.Material = Enum.Material.Glacier |
| 302 | p.MaterialVariant = "2022 Inlet" |
| 303 | p.Anchored = true |
| 304 | p.Parent = model |
| 305 | end |
| 306 | do |
| 307 | local p = Instance.new("Part") |
| 308 | p.Shape = Enum.PartType.Ball |
| 309 | p.Name = "Rivet_Arch_-3.5_30" |
| 310 | p.Size = Vector3.new(0.4, 0.4, 0.4) |
| 311 | p.CFrame = CFrame.new(-3.5, 8.5, -3.63731) |
| 312 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 313 | p.Material = Enum.Material.Glacier |
| 314 | p.MaterialVariant = "2022 Inlet" |
| 315 | p.Anchored = true |
| 316 | p.Parent = model |
| 317 | end |
| 318 | do |
| 319 | local p = Instance.new("Part") |
| 320 | p.Shape = Enum.PartType.Ball |
| 321 | p.Name = "Rivet_Arch_-3.5_90" |
| 322 | p.Size = Vector3.new(0.4, 0.4, 0.4) |
| 323 | p.CFrame = CFrame.new(-3.5, 10.6, 0) |
| 324 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 325 | p.Material = Enum.Material.Glacier |
| 326 | p.MaterialVariant = "2022 Inlet" |
| 327 | p.Anchored = true |
| 328 | p.Parent = model |
| 329 | end |
| 330 | do |
| 331 | local p = Instance.new("Part") |
| 332 | p.Shape = Enum.PartType.Ball |
| 333 | p.Name = "Rivet_Arch_-3.5_150" |
| 334 | p.Size = Vector3.new(0.4, 0.4, 0.4) |
| 335 | p.CFrame = CFrame.new(-3.5, 8.5, 3.63731) |
| 336 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 337 | p.Material = Enum.Material.Glacier |
| 338 | p.MaterialVariant = "2022 Inlet" |
| 339 | p.Anchored = true |
| 340 | p.Parent = model |
| 341 | end |
| 342 | do |
| 343 | local p = Instance.new("Part") |
| 344 | p.Shape = Enum.PartType.Ball |
| 345 | p.Name = "Rivet_Arch_3.5_30" |
| 346 | p.Size = Vector3.new(0.4, 0.4, 0.4) |
| 347 | p.CFrame = CFrame.new(3.5, 8.5, -3.63731) |
| 348 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 349 | p.Material = Enum.Material.Glacier |
| 350 | p.MaterialVariant = "2022 Inlet" |
| 351 | p.Anchored = true |
| 352 | p.Parent = model |
| 353 | end |
| 354 | do |
| 355 | local p = Instance.new("Part") |
| 356 | p.Shape = Enum.PartType.Ball |
| 357 | p.Name = "Rivet_Arch_3.5_90" |
| 358 | p.Size = Vector3.new(0.4, 0.4, 0.4) |
| 359 | p.CFrame = CFrame.new(3.5, 10.6, 0) |
| 360 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 361 | p.Material = Enum.Material.Glacier |
| 362 | p.MaterialVariant = "2022 Inlet" |
| 363 | p.Anchored = true |
| 364 | p.Parent = model |
| 365 | end |
| 366 | do |
| 367 | local p = Instance.new("Part") |
| 368 | p.Shape = Enum.PartType.Ball |
| 369 | p.Name = "Rivet_Arch_3.5_150" |
| 370 | p.Size = Vector3.new(0.4, 0.4, 0.4) |
| 371 | p.CFrame = CFrame.new(3.5, 8.5, 3.63731) |
| 372 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 373 | p.Material = Enum.Material.Glacier |
| 374 | p.MaterialVariant = "2022 Inlet" |
| 375 | p.Anchored = true |
| 376 | p.Parent = model |
| 377 | end |
| 378 | do |
| 379 | local p = Instance.new("Part") |
| 380 | p.Name = "LockTop" |
| 381 | p.Size = Vector3.new(2.2, 1.8, 0.8) |
| 382 | p.CFrame = CFrame.new(0, 7.2, -4.1) |
| 383 | p.BrickColor = BrickColor.new("Silver") |
| 384 | p.Material = Enum.Material.Glacier |
| 385 | p.MaterialVariant = "2022 Stud" |
| 386 | p.Anchored = true |
| 387 | p.Parent = model |
| 388 | end |
| 389 | do |
| 390 | local p = Instance.new("Part") |
| 391 | p.Name = "LockBot" |
| 392 | p.Size = Vector3.new(2.2, 1.6, 0.8) |
| 393 | p.CFrame = CFrame.new(0, 5.4, -4.1) |
| 394 | p.BrickColor = BrickColor.new("Silver") |
| 395 | p.Material = Enum.Material.Glacier |
| 396 | p.MaterialVariant = "2022 Stud" |
| 397 | p.Anchored = true |
| 398 | p.Parent = model |
| 399 | end |
| 400 | do |
| 401 | local p = Instance.new("Part") |
| 402 | p.Name = "LockLatch" |
| 403 | p.Size = Vector3.new(1.2, 1.8, 0.6) |
| 404 | p.CFrame = CFrame.new(0, 6.3, -4.3) |
| 405 | p.BrickColor = BrickColor.new("Silver") |
| 406 | p.Material = Enum.Material.Glacier |
| 407 | p.MaterialVariant = "2022 Stud" |
| 408 | p.Anchored = true |
| 409 | p.Parent = model |
| 410 | end |
| 411 | do |
| 412 | local p = Instance.new("Part") |
| 413 | p.Name = "Keyhole" |
| 414 | p.Size = Vector3.new(0.4, 0.8, 0.1) |
| 415 | p.CFrame = CFrame.new(0, 5.4, -4.46) |
| 416 | p.BrickColor = BrickColor.new("Really black") |
| 417 | p.Material = Enum.Material.Glacier |
| 418 | p.MaterialVariant = "2022 Universal" |
| 419 | p.Anchored = true |
| 420 | p.Parent = model |
| 421 | end |
| 422 | do |
| 423 | local p = Instance.new("Part") |
| 424 | p.Shape = Enum.PartType.Cylinder |
| 425 | p.Name = "KeyholeRound" |
| 426 | p.Size = Vector3.new(0.1, 0.6, 0.6) |
| 427 | p.CFrame = CFrame.new(0, 5.7, -4.5) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 428 | p.BrickColor = BrickColor.new("Really black") |
| 429 | p.Material = Enum.Material.Glacier |
| 430 | p.MaterialVariant = "2022 Universal" |
| 431 | p.Anchored = true |
| 432 | p.Parent = model |
| 433 | end |
| 434 | do |
| 435 | local p = Instance.new("Part") |
| 436 | p.Name = "LeafCenter" |
| 437 | p.Size = Vector3.new(1, 1, 0.15) |
| 438 | p.CFrame = CFrame.new(0, 4.2, -4.3) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(45)) |
| 439 | p.BrickColor = BrickColor.new("Deep orange") |
| 440 | p.Material = Enum.Material.Glacier |
| 441 | p.MaterialVariant = "2022 Stud" |
| 442 | p.Anchored = true |
| 443 | p.Parent = model |
| 444 | end |
| 445 | do |
| 446 | local p = Instance.new("Part") |
| 447 | p.Name = "LeafLeft" |
| 448 | p.Size = Vector3.new(0.8, 0.8, 0.15) |
| 449 | p.CFrame = CFrame.new(-0.5, 4.4, -4.22) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(15)) |
| 450 | p.BrickColor = BrickColor.new("Bright yellow") |
| 451 | p.Material = Enum.Material.Glacier |
| 452 | p.MaterialVariant = "2022 Big Stud" |
| 453 | p.Anchored = true |
| 454 | p.Parent = model |
| 455 | end |
| 456 | do |
| 457 | local p = Instance.new("Part") |
| 458 | p.Name = "LeafRight" |
| 459 | p.Size = Vector3.new(0.8, 0.8, 0.15) |
| 460 | p.CFrame = CFrame.new(0.5, 4.4, -4.22) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(75)) |
| 461 | p.BrickColor = BrickColor.new("Bright yellow") |
| 462 | p.Material = Enum.Material.Glacier |
| 463 | p.MaterialVariant = "2022 Big Stud" |
| 464 | p.Anchored = true |
| 465 | p.Parent = model |
| 466 | end |
| 467 | do |
| 468 | local p = Instance.new("Part") |
| 469 | p.Name = "LeafTop" |
| 470 | p.Size = Vector3.new(0.6, 0.6, 0.15) |
| 471 | p.CFrame = CFrame.new(0, 4.8, -4.26) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(45)) |
| 472 | p.BrickColor = BrickColor.new("Bright orange") |
| 473 | p.Material = Enum.Material.Glacier |
| 474 | p.MaterialVariant = "2022 Stud" |
| 475 | p.Anchored = true |
| 476 | p.Parent = model |
| 477 | end |
| 478 | do |
| 479 | local p = Instance.new("Part") |
| 480 | p.Name = "LeafStem" |
| 481 | p.Size = Vector3.new(0.15, 0.6, 0.15) |
| 482 | p.CFrame = CFrame.new(0, 5, -4.18) |
| 483 | p.BrickColor = BrickColor.new("Deep orange") |
| 484 | p.Material = Enum.Material.Glacier |
| 485 | p.MaterialVariant = "2022 Stud" |
| 486 | p.Anchored = true |
| 487 | p.Parent = model |
| 488 | end |
| 489 | do |
| 490 | local p = Instance.new("Part") |
| 491 | p.Name = "GhostBody" |
| 492 | p.Size = Vector3.new(3.2, 3.6, 3.2) |
| 493 | p.CFrame = CFrame.new(0, 13.5, 0) |
| 494 | p.BrickColor = BrickColor.new("Toothpaste") |
| 495 | p.Material = Enum.Material.Neon |
| 496 | p.Anchored = true |
| 497 | p.Parent = model |
| 498 | end |
| 499 | do |
| 500 | local p = Instance.new("Part") |
| 501 | p.Name = "GhostEyeL" |
| 502 | p.Size = Vector3.new(0.5, 0.6, 0.2) |
| 503 | p.CFrame = CFrame.new(-0.7, 14, -1.65) |
| 504 | p.BrickColor = BrickColor.new("Really black") |
| 505 | p.Material = Enum.Material.Glacier |
| 506 | p.MaterialVariant = "2022 Universal" |
| 507 | p.Anchored = true |
| 508 | p.Parent = model |
| 509 | end |
| 510 | do |
| 511 | local p = Instance.new("Part") |
| 512 | p.Name = "GhostEyeR" |
| 513 | p.Size = Vector3.new(0.5, 0.6, 0.2) |
| 514 | p.CFrame = CFrame.new(0.7, 14, -1.65) |
| 515 | p.BrickColor = BrickColor.new("Really black") |
| 516 | p.Material = Enum.Material.Glacier |
| 517 | p.MaterialVariant = "2022 Universal" |
| 518 | p.Anchored = true |
| 519 | p.Parent = model |
| 520 | end |
| 521 | do |
| 522 | local p = Instance.new("WedgePart") |
| 523 | p.Name = "GhostSkirt1" |
| 524 | p.Size = Vector3.new(1, 0.8, 3.2) |
| 525 | p.CFrame = CFrame.new(-1.14, 11.5, 0.04) * CFrame.Angles(math.rad(180), math.rad(0), math.rad(0)) |
| 526 | p.BrickColor = BrickColor.new("Toothpaste") |
| 527 | p.Material = Enum.Material.Neon |
| 528 | p.Anchored = true |
| 529 | p.Parent = model |
| 530 | end |
| 531 | do |
| 532 | local p = Instance.new("WedgePart") |
| 533 | p.Name = "GhostSkirt2" |
| 534 | p.Size = Vector3.new(1.2, 1, 3.2) |
| 535 | p.CFrame = CFrame.new(0, 11.5, 0.04) * CFrame.Angles(math.rad(180), math.rad(0), math.rad(0)) |
| 536 | p.BrickColor = BrickColor.new("Toothpaste") |
| 537 | p.Material = Enum.Material.Neon |
| 538 | p.Anchored = true |
| 539 | p.Parent = model |
| 540 | end |
| 541 | do |
| 542 | local p = Instance.new("WedgePart") |
| 543 | p.Name = "GhostSkirt3" |
| 544 | p.Size = Vector3.new(1, 0.8, 3.2) |
| 545 | p.CFrame = CFrame.new(1.14, 11.5, 0.04) * CFrame.Angles(math.rad(180), math.rad(0), math.rad(0)) |
| 546 | p.BrickColor = BrickColor.new("Toothpaste") |
| 547 | p.Material = Enum.Material.Neon |
| 548 | p.Anchored = true |
| 549 | p.Parent = model |
| 550 | end |
| 551 | do |
| 552 | local rightV = Vector3.new(0,0,-1).Unit |
| 553 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 554 | local normalV = upV:Cross(rightV) |
| 555 | local pos = Vector3.new(-5.8, 6.48, 0) |
| 556 | local cyl = Instance.new("Part") |
| 557 | cyl.Shape = Enum.PartType.Cylinder |
| 558 | cyl.Size = Vector3.new(0.4, 7.6, 7.6) |
| 559 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 560 | cyl.BrickColor = BrickColor.new("Reddish brown") |
| 561 | cyl.Material = Enum.Material.Glacier |
| 562 | cyl.MaterialVariant = "2022 Small Stud" |
| 563 | cyl.Anchored = true; cyl.Parent = workspace |
| 564 | local cuts = {} |
| 565 | local angBoxes = {} |
| 566 | do |
| 567 | local edgeDir = 1*rightV + 0*upV |
| 568 | local edgePerp = 0*rightV + 1*upV |
| 569 | local cut = Instance.new("Part") |
| 570 | cut.Size = Vector3.new(15.2, 0.6, 15.2) |
| 571 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 7.6 * edgePerp, edgeDir, normalV) |
| 572 | cut.BrickColor = BrickColor.new("Reddish brown") |
| 573 | cut.Material = Enum.Material.Glacier |
| 574 | cut.MaterialVariant = "2022 Small Stud" |
| 575 | cut.Anchored = true; cut.Parent = workspace |
| 576 | table.insert(angBoxes, cut) |
| 577 | end |
| 578 | do |
| 579 | local edgeDir = -1*rightV + 0*upV |
| 580 | local edgePerp = 0*rightV + -1*upV |
| 581 | local cut = Instance.new("Part") |
| 582 | cut.Size = Vector3.new(15.2, 0.6, 15.2) |
| 583 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 7.6 * edgePerp, edgeDir, normalV) |
| 584 | cut.BrickColor = BrickColor.new("Reddish brown") |
| 585 | cut.Material = Enum.Material.Glacier |
| 586 | cut.MaterialVariant = "2022 Small Stud" |
| 587 | cut.Anchored = true; cut.Parent = workspace |
| 588 | table.insert(angBoxes, cut) |
| 589 | end |
| 590 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 591 | if #cuts > 0 then |
| 592 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 593 | for _, c in ipairs(cuts) do c:Destroy() end |
| 594 | if ok and result then |
| 595 | cyl:Destroy() |
| 596 | result.Name = "LidSideL"; result.Anchored = true; result.Parent = model |
| 597 | else |
| 598 | cyl.Name = "LidSideL"; cyl.Parent = model |
| 599 | end |
| 600 | else |
| 601 | cyl.Name = "LidSideL"; cyl.Parent = model |
| 602 | end |
| 603 | end |
| 604 | do |
| 605 | local rightV = Vector3.new(0,0,1).Unit |
| 606 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 607 | local normalV = upV:Cross(rightV) |
| 608 | local pos = Vector3.new(5.8, 6.48, 0) |
| 609 | local cyl = Instance.new("Part") |
| 610 | cyl.Shape = Enum.PartType.Cylinder |
| 611 | cyl.Size = Vector3.new(0.4, 7.6, 7.6) |
| 612 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 613 | cyl.BrickColor = BrickColor.new("Reddish brown") |
| 614 | cyl.Material = Enum.Material.Glacier |
| 615 | cyl.MaterialVariant = "2022 Small Stud" |
| 616 | cyl.Anchored = true; cyl.Parent = workspace |
| 617 | local cuts = {} |
| 618 | local angBoxes = {} |
| 619 | do |
| 620 | local edgeDir = 1*rightV + 0*upV |
| 621 | local edgePerp = 0*rightV + 1*upV |
| 622 | local cut = Instance.new("Part") |
| 623 | cut.Size = Vector3.new(15.2, 0.6, 15.2) |
| 624 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 7.6 * edgePerp, edgeDir, normalV) |
| 625 | cut.BrickColor = BrickColor.new("Reddish brown") |
| 626 | cut.Material = Enum.Material.Glacier |
| 627 | cut.MaterialVariant = "2022 Small Stud" |
| 628 | cut.Anchored = true; cut.Parent = workspace |
| 629 | table.insert(angBoxes, cut) |
| 630 | end |
| 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(15.2, 0.6, 15.2) |
| 636 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 7.6 * edgePerp, edgeDir, normalV) |
| 637 | cut.BrickColor = BrickColor.new("Reddish brown") |
| 638 | cut.Material = Enum.Material.Glacier |
| 639 | cut.MaterialVariant = "2022 Small Stud" |
| 640 | cut.Anchored = true; cut.Parent = workspace |
| 641 | table.insert(angBoxes, cut) |
| 642 | end |
| 643 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 644 | if #cuts > 0 then |
| 645 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 646 | for _, c in ipairs(cuts) do c:Destroy() end |
| 647 | if ok and result then |
| 648 | cyl:Destroy() |
| 649 | result.Name = "LidSideR"; result.Anchored = true; result.Parent = model |
| 650 | else |
| 651 | cyl.Name = "LidSideR"; cyl.Parent = model |
| 652 | end |
| 653 | else |
| 654 | cyl.Name = "LidSideR"; cyl.Parent = model |
| 655 | end |
| 656 | end |
| 657 | do |
| 658 | local rightV = Vector3.new(0,0,-1).Unit |
| 659 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 660 | local normalV = upV:Cross(rightV) |
| 661 | local pos = Vector3.new(-3.5, 6.44, 0) |
| 662 | local cyl = Instance.new("Part") |
| 663 | cyl.Shape = Enum.PartType.Cylinder |
| 664 | cyl.Size = Vector3.new(1.2, 8.4, 8.4) |
| 665 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 666 | cyl.BrickColor = BrickColor.new("Dark stone grey") |
| 667 | cyl.Material = Enum.Material.Glacier |
| 668 | cyl.MaterialVariant = "2022 Stud" |
| 669 | cyl.Anchored = true; cyl.Parent = workspace |
| 670 | local cuts = {} |
| 671 | local hole = Instance.new("Part") |
| 672 | hole.Shape = Enum.PartType.Cylinder |
| 673 | hole.Size = Vector3.new(1.4, 7.6, 7.6) |
| 674 | hole.CFrame = cyl.CFrame |
| 675 | hole.BrickColor = BrickColor.new("Dark stone grey") |
| 676 | hole.Material = Enum.Material.Glacier |
| 677 | hole.MaterialVariant = "2022 Stud" |
| 678 | hole.Anchored = true; hole.Parent = workspace |
| 679 | table.insert(cuts, hole) |
| 680 | local angBoxes = {} |
| 681 | do |
| 682 | local edgeDir = 1*rightV + 0*upV |
| 683 | local edgePerp = 0*rightV + 1*upV |
| 684 | local cut = Instance.new("Part") |
| 685 | cut.Size = Vector3.new(16.8, 1.4, 16.8) |
| 686 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 8.4 * edgePerp, edgeDir, normalV) |
| 687 | cut.BrickColor = BrickColor.new("Dark stone grey") |
| 688 | cut.Material = Enum.Material.Glacier |
| 689 | cut.MaterialVariant = "2022 Stud" |
| 690 | cut.Anchored = true; cut.Parent = workspace |
| 691 | table.insert(angBoxes, cut) |
| 692 | end |
| 693 | do |
| 694 | local edgeDir = -1*rightV + 0*upV |
| 695 | local edgePerp = 0*rightV + -1*upV |
| 696 | local cut = Instance.new("Part") |
| 697 | cut.Size = Vector3.new(16.8, 1.4, 16.8) |
| 698 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 8.4 * edgePerp, edgeDir, normalV) |
| 699 | cut.BrickColor = BrickColor.new("Dark stone grey") |
| 700 | cut.Material = Enum.Material.Glacier |
| 701 | cut.MaterialVariant = "2022 Stud" |
| 702 | cut.Anchored = true; cut.Parent = workspace |
| 703 | table.insert(angBoxes, cut) |
| 704 | end |
| 705 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 706 | if #cuts > 0 then |
| 707 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 708 | for _, c in ipairs(cuts) do c:Destroy() end |
| 709 | if ok and result then |
| 710 | cyl:Destroy() |
| 711 | result.Name = "VBandL_Arch"; result.Anchored = true; result.Parent = model |
| 712 | else |
| 713 | cyl.Name = "VBandL_Arch"; cyl.Parent = model |
| 714 | end |
| 715 | else |
| 716 | cyl.Name = "VBandL_Arch"; cyl.Parent = model |
| 717 | end |
| 718 | end |
| 719 | do |
| 720 | local rightV = Vector3.new(0,0,-1).Unit |
| 721 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 722 | local normalV = upV:Cross(rightV) |
| 723 | local pos = Vector3.new(3.5, 6.44, 0) |
| 724 | local cyl = Instance.new("Part") |
| 725 | cyl.Shape = Enum.PartType.Cylinder |
| 726 | cyl.Size = Vector3.new(1.2, 8.4, 8.4) |
| 727 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 728 | cyl.BrickColor = BrickColor.new("Dark stone grey") |
| 729 | cyl.Material = Enum.Material.Glacier |
| 730 | cyl.MaterialVariant = "2022 Stud" |
| 731 | cyl.Anchored = true; cyl.Parent = workspace |
| 732 | local cuts = {} |
| 733 | local hole = Instance.new("Part") |
| 734 | hole.Shape = Enum.PartType.Cylinder |
| 735 | hole.Size = Vector3.new(1.4, 7.6, 7.6) |
| 736 | hole.CFrame = cyl.CFrame |
| 737 | hole.BrickColor = BrickColor.new("Dark stone grey") |
| 738 | hole.Material = Enum.Material.Glacier |
| 739 | hole.MaterialVariant = "2022 Stud" |
| 740 | hole.Anchored = true; hole.Parent = workspace |
| 741 | table.insert(cuts, hole) |
| 742 | local angBoxes = {} |
| 743 | do |
| 744 | local edgeDir = 1*rightV + 0*upV |
| 745 | local edgePerp = 0*rightV + 1*upV |
| 746 | local cut = Instance.new("Part") |
| 747 | cut.Size = Vector3.new(16.8, 1.4, 16.8) |
| 748 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 8.4 * edgePerp, edgeDir, normalV) |
| 749 | cut.BrickColor = BrickColor.new("Dark stone grey") |
| 750 | cut.Material = Enum.Material.Glacier |
| 751 | cut.MaterialVariant = "2022 Stud" |
| 752 | cut.Anchored = true; cut.Parent = workspace |
| 753 | table.insert(angBoxes, cut) |
| 754 | end |
| 755 | do |
| 756 | local edgeDir = -1*rightV + 0*upV |
| 757 | local edgePerp = 0*rightV + -1*upV |
| 758 | local cut = Instance.new("Part") |
| 759 | cut.Size = Vector3.new(16.8, 1.4, 16.8) |
| 760 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 8.4 * edgePerp, edgeDir, normalV) |
| 761 | cut.BrickColor = BrickColor.new("Dark stone grey") |
| 762 | cut.Material = Enum.Material.Glacier |
| 763 | cut.MaterialVariant = "2022 Stud" |
| 764 | cut.Anchored = true; cut.Parent = workspace |
| 765 | table.insert(angBoxes, cut) |
| 766 | end |
| 767 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 768 | if #cuts > 0 then |
| 769 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 770 | for _, c in ipairs(cuts) do c:Destroy() end |
| 771 | if ok and result then |
| 772 | cyl:Destroy() |
| 773 | result.Name = "VBandR_Arch"; result.Anchored = true; result.Parent = model |
| 774 | else |
| 775 | cyl.Name = "VBandR_Arch"; cyl.Parent = model |
| 776 | end |
| 777 | else |
| 778 | cyl.Name = "VBandR_Arch"; cyl.Parent = model |
| 779 | end |
| 780 | end |
| 781 | model.PrimaryPart = model:FindFirstChild("BasePlank1") |
| 782 | print("HalloweenFallChest built: " .. #model:GetChildren() .. " parts") |
Loading comments...