Loading model...
by Flammy · 5/27/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: GiftBox |
| 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 = "GiftBox" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Bright orange"] = "2022 Stud", |
| 25 | ["Bright red"] = "2022 Stud", |
| 26 | ["Bright yellow"] = "2022 Big Stud", |
| 27 | ["Crimson"] = "2022 Stud", |
| 28 | ["Institutional white"] = "2022 Stud", |
| 29 | } |
| 30 | do |
| 31 | local p = Instance.new("Part") |
| 32 | p.Name = "BoxMain" |
| 33 | p.Size = Vector3.new(8, 6, 8) |
| 34 | p.CFrame = CFrame.new(0, 3, 0) |
| 35 | p.BrickColor = BrickColor.new("Crimson") |
| 36 | p.Material = Enum.Material.Glacier |
| 37 | p.MaterialVariant = "2022 Stud" |
| 38 | p.Anchored = true |
| 39 | p.Parent = model |
| 40 | end |
| 41 | do |
| 42 | local p = Instance.new("Part") |
| 43 | p.Name = "LidMain" |
| 44 | p.Size = Vector3.new(9, 1.5, 9) |
| 45 | p.CFrame = CFrame.new(0, 6.79, 0) |
| 46 | p.BrickColor = BrickColor.new("Bright red") |
| 47 | p.Material = Enum.Material.Glacier |
| 48 | p.MaterialVariant = "2022 Stud" |
| 49 | p.Anchored = true |
| 50 | p.Parent = model |
| 51 | end |
| 52 | do |
| 53 | local p = Instance.new("Part") |
| 54 | p.Name = "RibbonBoxZ" |
| 55 | p.Size = Vector3.new(2, 6, 8.4) |
| 56 | p.CFrame = CFrame.new(0, 3.04, 0) |
| 57 | p.BrickColor = BrickColor.new("Bright orange") |
| 58 | p.Material = Enum.Material.Glacier |
| 59 | p.MaterialVariant = "2022 Stud" |
| 60 | p.Anchored = true |
| 61 | p.Parent = model |
| 62 | end |
| 63 | do |
| 64 | local p = Instance.new("Part") |
| 65 | p.Name = "RibbonBoxX" |
| 66 | p.Size = Vector3.new(8.4, 6, 2) |
| 67 | p.CFrame = CFrame.new(0, 3.04, 0) |
| 68 | p.BrickColor = BrickColor.new("Bright orange") |
| 69 | p.Material = Enum.Material.Glacier |
| 70 | p.MaterialVariant = "2022 Stud" |
| 71 | p.Anchored = true |
| 72 | p.Parent = model |
| 73 | end |
| 74 | do |
| 75 | local p = Instance.new("Part") |
| 76 | p.Name = "RibbonLidZ" |
| 77 | p.Size = Vector3.new(2, 1.5, 9.4) |
| 78 | p.CFrame = CFrame.new(0, 6.87, 0) |
| 79 | p.BrickColor = BrickColor.new("Bright orange") |
| 80 | p.Material = Enum.Material.Glacier |
| 81 | p.MaterialVariant = "2022 Stud" |
| 82 | p.Anchored = true |
| 83 | p.Parent = model |
| 84 | end |
| 85 | do |
| 86 | local p = Instance.new("Part") |
| 87 | p.Name = "RibbonLidX" |
| 88 | p.Size = Vector3.new(9.4, 1.5, 2) |
| 89 | p.CFrame = CFrame.new(0, 6.83, 0) |
| 90 | p.BrickColor = BrickColor.new("Bright orange") |
| 91 | p.Material = Enum.Material.Glacier |
| 92 | p.MaterialVariant = "2022 Stud" |
| 93 | p.Anchored = true |
| 94 | p.Parent = model |
| 95 | end |
| 96 | do |
| 97 | local p = Instance.new("Part") |
| 98 | p.Name = "RibbonTopZ" |
| 99 | p.Size = Vector3.new(2, 0.2, 9) |
| 100 | p.CFrame = CFrame.new(0, 7.8, 0) |
| 101 | p.BrickColor = BrickColor.new("Bright orange") |
| 102 | p.Material = Enum.Material.Glacier |
| 103 | p.MaterialVariant = "2022 Stud" |
| 104 | p.Anchored = true |
| 105 | p.Parent = model |
| 106 | end |
| 107 | do |
| 108 | local p = Instance.new("Part") |
| 109 | p.Name = "RibbonTopX" |
| 110 | p.Size = Vector3.new(9, 0.2, 2) |
| 111 | p.CFrame = CFrame.new(0, 7.76, 0) |
| 112 | p.BrickColor = BrickColor.new("Bright orange") |
| 113 | p.Material = Enum.Material.Glacier |
| 114 | p.MaterialVariant = "2022 Stud" |
| 115 | p.Anchored = true |
| 116 | p.Parent = model |
| 117 | end |
| 118 | do |
| 119 | local p = Instance.new("Part") |
| 120 | p.Shape = Enum.PartType.Ball |
| 121 | p.Name = "BowKnot" |
| 122 | p.Size = Vector3.new(2.5, 2, 2.5) |
| 123 | p.CFrame = CFrame.new(0, 8.5, 0) |
| 124 | p.BrickColor = BrickColor.new("Bright orange") |
| 125 | p.Material = Enum.Material.Glacier |
| 126 | p.MaterialVariant = "2022 Stud" |
| 127 | p.Anchored = true |
| 128 | p.Parent = model |
| 129 | end |
| 130 | do |
| 131 | local p = Instance.new("Part") |
| 132 | p.Name = "BowTailL" |
| 133 | p.Size = Vector3.new(2, 4, 0.4) |
| 134 | p.CFrame = CFrame.new(-1.5, 7.551764, 1.193185) * CFrame.Angles(math.rad(-15), math.rad(0), math.rad(30)) |
| 135 | p.BrickColor = BrickColor.new("Bright orange") |
| 136 | p.Material = Enum.Material.Glacier |
| 137 | p.MaterialVariant = "2022 Stud" |
| 138 | p.Anchored = true |
| 139 | p.Parent = model |
| 140 | end |
| 141 | do |
| 142 | local p = Instance.new("Part") |
| 143 | p.Name = "BowTailR" |
| 144 | p.Size = Vector3.new(2, 4, 0.4) |
| 145 | p.CFrame = CFrame.new(1.5, 7.551764, 1.193185) * CFrame.Angles(math.rad(-15), math.rad(0), math.rad(-30)) |
| 146 | p.BrickColor = BrickColor.new("Bright orange") |
| 147 | p.Material = Enum.Material.Glacier |
| 148 | p.MaterialVariant = "2022 Stud" |
| 149 | p.Anchored = true |
| 150 | p.Parent = model |
| 151 | end |
| 152 | do |
| 153 | local p = Instance.new("Part") |
| 154 | p.Name = "SnowCornerFL" |
| 155 | p.Size = Vector3.new(1.5, 0.4, 1.5) |
| 156 | p.CFrame = CFrame.new(-3.75, 7.78, -3.75) |
| 157 | p.BrickColor = BrickColor.new("Institutional white") |
| 158 | p.Material = Enum.Material.Glacier |
| 159 | p.MaterialVariant = "2022 Stud" |
| 160 | p.Anchored = true |
| 161 | p.Parent = model |
| 162 | end |
| 163 | do |
| 164 | local p = Instance.new("Part") |
| 165 | p.Name = "SnowCornerFR" |
| 166 | p.Size = Vector3.new(1.5, 0.4, 1.5) |
| 167 | p.CFrame = CFrame.new(3.75, 7.78, -3.75) |
| 168 | p.BrickColor = BrickColor.new("Institutional white") |
| 169 | p.Material = Enum.Material.Glacier |
| 170 | p.MaterialVariant = "2022 Stud" |
| 171 | p.Anchored = true |
| 172 | p.Parent = model |
| 173 | end |
| 174 | do |
| 175 | local p = Instance.new("Part") |
| 176 | p.Name = "SnowBaseF" |
| 177 | p.Size = Vector3.new(7, 0.4, 0.4) |
| 178 | p.CFrame = CFrame.new(0, 0.16, -4.1) |
| 179 | p.BrickColor = BrickColor.new("Institutional white") |
| 180 | p.Material = Enum.Material.Glacier |
| 181 | p.MaterialVariant = "2022 Stud" |
| 182 | p.Anchored = true |
| 183 | p.Parent = model |
| 184 | end |
| 185 | do |
| 186 | local rightV = Vector3.new(1,0,0).Unit |
| 187 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 188 | local normalV = upV:Cross(rightV) |
| 189 | local pos = Vector3.new(-2.5, 9.5, 0) |
| 190 | local cyl = Instance.new("Part") |
| 191 | cyl.Shape = Enum.PartType.Cylinder |
| 192 | cyl.Size = Vector3.new(1.5, 5, 5) |
| 193 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 194 | cyl.BrickColor = BrickColor.new("Bright yellow") |
| 195 | cyl.Material = Enum.Material.Glacier |
| 196 | cyl.MaterialVariant = "2022 Big Stud" |
| 197 | cyl.Anchored = true; cyl.Parent = workspace |
| 198 | local cuts = {} |
| 199 | local hole = Instance.new("Part") |
| 200 | hole.Shape = Enum.PartType.Cylinder |
| 201 | hole.Size = Vector3.new(1.7, 2, 2) |
| 202 | hole.CFrame = cyl.CFrame |
| 203 | hole.BrickColor = BrickColor.new("Bright yellow") |
| 204 | hole.Material = Enum.Material.Glacier |
| 205 | hole.MaterialVariant = "2022 Big Stud" |
| 206 | hole.Anchored = true; hole.Parent = workspace |
| 207 | table.insert(cuts, hole) |
| 208 | if #cuts > 0 then |
| 209 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 210 | for _, c in ipairs(cuts) do c:Destroy() end |
| 211 | if ok and result then |
| 212 | cyl:Destroy() |
| 213 | result.Name = "BowLoopL"; result.Anchored = true; result.Parent = model |
| 214 | else |
| 215 | cyl.Name = "BowLoopL"; cyl.Parent = model |
| 216 | end |
| 217 | else |
| 218 | cyl.Name = "BowLoopL"; cyl.Parent = model |
| 219 | end |
| 220 | end |
| 221 | do |
| 222 | local rightV = Vector3.new(1,0,0).Unit |
| 223 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 224 | local normalV = upV:Cross(rightV) |
| 225 | local pos = Vector3.new(2.5, 9.5, 0) |
| 226 | local cyl = Instance.new("Part") |
| 227 | cyl.Shape = Enum.PartType.Cylinder |
| 228 | cyl.Size = Vector3.new(1.5, 5, 5) |
| 229 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 230 | cyl.BrickColor = BrickColor.new("Bright yellow") |
| 231 | cyl.Material = Enum.Material.Glacier |
| 232 | cyl.MaterialVariant = "2022 Big Stud" |
| 233 | cyl.Anchored = true; cyl.Parent = workspace |
| 234 | local cuts = {} |
| 235 | local hole = Instance.new("Part") |
| 236 | hole.Shape = Enum.PartType.Cylinder |
| 237 | hole.Size = Vector3.new(1.7, 2, 2) |
| 238 | hole.CFrame = cyl.CFrame |
| 239 | hole.BrickColor = BrickColor.new("Bright yellow") |
| 240 | hole.Material = Enum.Material.Glacier |
| 241 | hole.MaterialVariant = "2022 Big Stud" |
| 242 | hole.Anchored = true; hole.Parent = workspace |
| 243 | table.insert(cuts, hole) |
| 244 | if #cuts > 0 then |
| 245 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 246 | for _, c in ipairs(cuts) do c:Destroy() end |
| 247 | if ok and result then |
| 248 | cyl:Destroy() |
| 249 | result.Name = "BowLoopR"; result.Anchored = true; result.Parent = model |
| 250 | else |
| 251 | cyl.Name = "BowLoopR"; cyl.Parent = model |
| 252 | end |
| 253 | else |
| 254 | cyl.Name = "BowLoopR"; cyl.Parent = model |
| 255 | end |
| 256 | end |
| 257 | do |
| 258 | local rightV = Vector3.new(1,0,0).Unit |
| 259 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 260 | local normalV = upV:Cross(rightV) |
| 261 | local pos = Vector3.new(-3, 11, 0.2) |
| 262 | local cyl = Instance.new("Part") |
| 263 | cyl.Shape = Enum.PartType.Cylinder |
| 264 | cyl.Size = Vector3.new(1.7, 5.4, 5.4) |
| 265 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 266 | cyl.BrickColor = BrickColor.new("Institutional white") |
| 267 | cyl.Material = Enum.Material.Glacier |
| 268 | cyl.MaterialVariant = "2022 Stud" |
| 269 | cyl.Anchored = true; cyl.Parent = workspace |
| 270 | local cuts = {} |
| 271 | local hole = Instance.new("Part") |
| 272 | hole.Shape = Enum.PartType.Cylinder |
| 273 | hole.Size = Vector3.new(1.9, 2.4, 2.4) |
| 274 | hole.CFrame = cyl.CFrame |
| 275 | hole.BrickColor = BrickColor.new("Institutional white") |
| 276 | hole.Material = Enum.Material.Glacier |
| 277 | hole.MaterialVariant = "2022 Stud" |
| 278 | hole.Anchored = true; hole.Parent = workspace |
| 279 | table.insert(cuts, hole) |
| 280 | local angBoxes = {} |
| 281 | do |
| 282 | local edgeDir = 0.707107*rightV + 0.707107*upV |
| 283 | local edgePerp = -0.707107*rightV + 0.707107*upV |
| 284 | local cut = Instance.new("Part") |
| 285 | cut.Size = Vector3.new(10.8, 1.9, 10.8) |
| 286 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 5.4 * edgePerp, edgeDir, normalV) |
| 287 | cut.BrickColor = BrickColor.new("Institutional white") |
| 288 | cut.Material = Enum.Material.Glacier |
| 289 | cut.MaterialVariant = "2022 Stud" |
| 290 | cut.Anchored = true; cut.Parent = workspace |
| 291 | table.insert(angBoxes, cut) |
| 292 | end |
| 293 | do |
| 294 | local edgeDir = -0.707107*rightV + 0.707107*upV |
| 295 | local edgePerp = -0.707107*rightV + -0.707107*upV |
| 296 | local cut = Instance.new("Part") |
| 297 | cut.Size = Vector3.new(10.8, 1.9, 10.8) |
| 298 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 5.4 * edgePerp, edgeDir, normalV) |
| 299 | cut.BrickColor = BrickColor.new("Institutional white") |
| 300 | cut.Material = Enum.Material.Glacier |
| 301 | cut.MaterialVariant = "2022 Stud" |
| 302 | cut.Anchored = true; cut.Parent = workspace |
| 303 | table.insert(angBoxes, cut) |
| 304 | end |
| 305 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 306 | if #cuts > 0 then |
| 307 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 308 | for _, c in ipairs(cuts) do c:Destroy() end |
| 309 | if ok and result then |
| 310 | cyl:Destroy() |
| 311 | result.Name = "SnowLoopL"; result.Anchored = true; result.Parent = model |
| 312 | else |
| 313 | cyl.Name = "SnowLoopL"; cyl.Parent = model |
| 314 | end |
| 315 | else |
| 316 | cyl.Name = "SnowLoopL"; cyl.Parent = model |
| 317 | end |
| 318 | end |
| 319 | do |
| 320 | local rightV = Vector3.new(1,0,0).Unit |
| 321 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 322 | local normalV = upV:Cross(rightV) |
| 323 | local pos = Vector3.new(3, 10.5, 0.2) |
| 324 | local cyl = Instance.new("Part") |
| 325 | cyl.Shape = Enum.PartType.Cylinder |
| 326 | cyl.Size = Vector3.new(1.7, 5.4, 5.4) |
| 327 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 328 | cyl.BrickColor = BrickColor.new("Institutional white") |
| 329 | cyl.Material = Enum.Material.Glacier |
| 330 | cyl.MaterialVariant = "2022 Stud" |
| 331 | cyl.Anchored = true; cyl.Parent = workspace |
| 332 | local cuts = {} |
| 333 | local hole = Instance.new("Part") |
| 334 | hole.Shape = Enum.PartType.Cylinder |
| 335 | hole.Size = Vector3.new(1.9, 2.4, 2.4) |
| 336 | hole.CFrame = cyl.CFrame |
| 337 | hole.BrickColor = BrickColor.new("Institutional white") |
| 338 | hole.Material = Enum.Material.Glacier |
| 339 | hole.MaterialVariant = "2022 Stud" |
| 340 | hole.Anchored = true; hole.Parent = workspace |
| 341 | table.insert(cuts, hole) |
| 342 | local angBoxes = {} |
| 343 | do |
| 344 | local edgeDir = 1*rightV + 0*upV |
| 345 | local edgePerp = 0*rightV + 1*upV |
| 346 | local cut = Instance.new("Part") |
| 347 | cut.Size = Vector3.new(10.8, 1.9, 10.8) |
| 348 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 5.4 * edgePerp, edgeDir, normalV) |
| 349 | cut.BrickColor = BrickColor.new("Institutional white") |
| 350 | cut.Material = Enum.Material.Glacier |
| 351 | cut.MaterialVariant = "2022 Stud" |
| 352 | cut.Anchored = true; cut.Parent = workspace |
| 353 | table.insert(angBoxes, cut) |
| 354 | end |
| 355 | do |
| 356 | local edgeDir = 0*rightV + 1*upV |
| 357 | local edgePerp = -1*rightV + 0*upV |
| 358 | local cut = Instance.new("Part") |
| 359 | cut.Size = Vector3.new(10.8, 1.9, 10.8) |
| 360 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 5.4 * edgePerp, edgeDir, normalV) |
| 361 | cut.BrickColor = BrickColor.new("Institutional white") |
| 362 | cut.Material = Enum.Material.Glacier |
| 363 | cut.MaterialVariant = "2022 Stud" |
| 364 | cut.Anchored = true; cut.Parent = workspace |
| 365 | table.insert(angBoxes, cut) |
| 366 | end |
| 367 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 368 | if #cuts > 0 then |
| 369 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 370 | for _, c in ipairs(cuts) do c:Destroy() end |
| 371 | if ok and result then |
| 372 | cyl:Destroy() |
| 373 | result.Name = "SnowLoopR"; result.Anchored = true; result.Parent = model |
| 374 | else |
| 375 | cyl.Name = "SnowLoopR"; cyl.Parent = model |
| 376 | end |
| 377 | else |
| 378 | cyl.Name = "SnowLoopR"; cyl.Parent = model |
| 379 | end |
| 380 | end |
| 381 | model.PrimaryPart = model:FindFirstChild("BoxMain") |
| 382 | print("GiftBox built: " .. #model:GetChildren() .. " parts") |
Loading comments...