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