Loading model...
by Flammy · 5/24/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 red"] = "2022 Stud", |
| 25 | ["Bright yellow"] = "2022 Stud", |
| 26 | } |
| 27 | do |
| 28 | local p = Instance.new("Part") |
| 29 | p.Name = "BoxL1" |
| 30 | p.Size = Vector3.new(5.4, 1, 5.4) |
| 31 | p.CFrame = CFrame.new(0, 0.34, 0) |
| 32 | p.BrickColor = BrickColor.new("Bright red") |
| 33 | p.Material = Enum.Material.Glacier |
| 34 | p.MaterialVariant = "2022 Stud" |
| 35 | p.Anchored = true |
| 36 | p.Parent = model |
| 37 | end |
| 38 | do |
| 39 | local p = Instance.new("Part") |
| 40 | p.Name = "RibL1_Z" |
| 41 | p.Size = Vector3.new(1.2, 1, 5.6) |
| 42 | p.CFrame = CFrame.new(0, 0.46, 0.04) |
| 43 | p.BrickColor = BrickColor.new("Bright yellow") |
| 44 | p.Material = Enum.Material.Glacier |
| 45 | p.MaterialVariant = "2022 Stud" |
| 46 | p.Anchored = true |
| 47 | p.Parent = model |
| 48 | end |
| 49 | do |
| 50 | local p = Instance.new("Part") |
| 51 | p.Name = "RibL1_X" |
| 52 | p.Size = Vector3.new(5.6, 1, 1.2) |
| 53 | p.CFrame = CFrame.new(0.04, 0.38, 0) |
| 54 | p.BrickColor = BrickColor.new("Bright yellow") |
| 55 | p.Material = Enum.Material.Glacier |
| 56 | p.MaterialVariant = "2022 Stud" |
| 57 | p.Anchored = true |
| 58 | p.Parent = model |
| 59 | end |
| 60 | do |
| 61 | local p = Instance.new("Part") |
| 62 | p.Name = "BoxL2" |
| 63 | p.Size = Vector3.new(5.6, 1, 5.6) |
| 64 | p.CFrame = CFrame.new(0, 1.38, 0) |
| 65 | p.BrickColor = BrickColor.new("Bright red") |
| 66 | p.Material = Enum.Material.Glacier |
| 67 | p.MaterialVariant = "2022 Stud" |
| 68 | p.Anchored = true |
| 69 | p.Parent = model |
| 70 | end |
| 71 | do |
| 72 | local p = Instance.new("Part") |
| 73 | p.Name = "RibL2_Z" |
| 74 | p.Size = Vector3.new(1.2, 1, 5.8) |
| 75 | p.CFrame = CFrame.new(0, 1.46, 0.04) |
| 76 | p.BrickColor = BrickColor.new("Bright yellow") |
| 77 | p.Material = Enum.Material.Glacier |
| 78 | p.MaterialVariant = "2022 Stud" |
| 79 | p.Anchored = true |
| 80 | p.Parent = model |
| 81 | end |
| 82 | do |
| 83 | local p = Instance.new("Part") |
| 84 | p.Name = "RibL2_X" |
| 85 | p.Size = Vector3.new(5.8, 1, 1.2) |
| 86 | p.CFrame = CFrame.new(0.04, 1.38, 0) |
| 87 | p.BrickColor = BrickColor.new("Bright yellow") |
| 88 | p.Material = Enum.Material.Glacier |
| 89 | p.MaterialVariant = "2022 Stud" |
| 90 | p.Anchored = true |
| 91 | p.Parent = model |
| 92 | end |
| 93 | do |
| 94 | local p = Instance.new("Part") |
| 95 | p.Name = "BoxL3" |
| 96 | p.Size = Vector3.new(5.8, 1, 5.8) |
| 97 | p.CFrame = CFrame.new(0, 2.42, 0) |
| 98 | p.BrickColor = BrickColor.new("Bright red") |
| 99 | p.Material = Enum.Material.Glacier |
| 100 | p.MaterialVariant = "2022 Stud" |
| 101 | p.Anchored = true |
| 102 | p.Parent = model |
| 103 | end |
| 104 | do |
| 105 | local p = Instance.new("Part") |
| 106 | p.Name = "RibL3_Z" |
| 107 | p.Size = Vector3.new(1.2, 1, 6) |
| 108 | p.CFrame = CFrame.new(0, 2.46, 0.04) |
| 109 | p.BrickColor = BrickColor.new("Bright yellow") |
| 110 | p.Material = Enum.Material.Glacier |
| 111 | p.MaterialVariant = "2022 Stud" |
| 112 | p.Anchored = true |
| 113 | p.Parent = model |
| 114 | end |
| 115 | do |
| 116 | local p = Instance.new("Part") |
| 117 | p.Name = "RibL3_X" |
| 118 | p.Size = Vector3.new(6, 1, 1.2) |
| 119 | p.CFrame = CFrame.new(0.04, 2.46, 0) |
| 120 | p.BrickColor = BrickColor.new("Bright yellow") |
| 121 | p.Material = Enum.Material.Glacier |
| 122 | p.MaterialVariant = "2022 Stud" |
| 123 | p.Anchored = true |
| 124 | p.Parent = model |
| 125 | end |
| 126 | do |
| 127 | local p = Instance.new("Part") |
| 128 | p.Name = "BoxL4" |
| 129 | p.Size = Vector3.new(6, 1, 6) |
| 130 | p.CFrame = CFrame.new(0, 3.46, 0) |
| 131 | p.BrickColor = BrickColor.new("Bright red") |
| 132 | p.Material = Enum.Material.Glacier |
| 133 | p.MaterialVariant = "2022 Stud" |
| 134 | p.Anchored = true |
| 135 | p.Parent = model |
| 136 | end |
| 137 | do |
| 138 | local p = Instance.new("Part") |
| 139 | p.Name = "RibL4_Z" |
| 140 | p.Size = Vector3.new(1.2, 1, 6.2) |
| 141 | p.CFrame = CFrame.new(0, 3.54, 0) |
| 142 | p.BrickColor = BrickColor.new("Bright yellow") |
| 143 | p.Material = Enum.Material.Glacier |
| 144 | p.MaterialVariant = "2022 Stud" |
| 145 | p.Anchored = true |
| 146 | p.Parent = model |
| 147 | end |
| 148 | do |
| 149 | local p = Instance.new("Part") |
| 150 | p.Name = "RibL4_X" |
| 151 | p.Size = Vector3.new(6.2, 1, 1.2) |
| 152 | p.CFrame = CFrame.new(0, 3.46, 0) |
| 153 | p.BrickColor = BrickColor.new("Bright yellow") |
| 154 | p.Material = Enum.Material.Glacier |
| 155 | p.MaterialVariant = "2022 Stud" |
| 156 | p.Anchored = true |
| 157 | p.Parent = model |
| 158 | end |
| 159 | do |
| 160 | local p = Instance.new("Part") |
| 161 | p.Name = "RibBot_Z" |
| 162 | p.Size = Vector3.new(1.2, 0.1, 5.4) |
| 163 | p.CFrame = CFrame.new(0, -0.25, 0) |
| 164 | p.BrickColor = BrickColor.new("Bright yellow") |
| 165 | p.Material = Enum.Material.Glacier |
| 166 | p.MaterialVariant = "2022 Stud" |
| 167 | p.Anchored = true |
| 168 | p.Parent = model |
| 169 | end |
| 170 | do |
| 171 | local p = Instance.new("Part") |
| 172 | p.Name = "RibBot_X" |
| 173 | p.Size = Vector3.new(5.4, 0.1, 1.2) |
| 174 | p.CFrame = CFrame.new(0, -0.25, 0) |
| 175 | p.BrickColor = BrickColor.new("Bright yellow") |
| 176 | p.Material = Enum.Material.Glacier |
| 177 | p.MaterialVariant = "2022 Stud" |
| 178 | p.Anchored = true |
| 179 | p.Parent = model |
| 180 | end |
| 181 | do |
| 182 | local p = Instance.new("Part") |
| 183 | p.Name = "LidBase" |
| 184 | p.Size = Vector3.new(6.6, 1.2, 6.6) |
| 185 | p.CFrame = CFrame.new(0, 4.6, 0) |
| 186 | p.BrickColor = BrickColor.new("Bright red") |
| 187 | p.Material = Enum.Material.Glacier |
| 188 | p.MaterialVariant = "2022 Stud" |
| 189 | p.Anchored = true |
| 190 | p.Parent = model |
| 191 | end |
| 192 | do |
| 193 | local p = Instance.new("Part") |
| 194 | p.Name = "LidRib_Z" |
| 195 | p.Size = Vector3.new(1.2, 1.2, 6.8) |
| 196 | p.CFrame = CFrame.new(0, 4.68, 0) |
| 197 | p.BrickColor = BrickColor.new("Bright yellow") |
| 198 | p.Material = Enum.Material.Glacier |
| 199 | p.MaterialVariant = "2022 Stud" |
| 200 | p.Anchored = true |
| 201 | p.Parent = model |
| 202 | end |
| 203 | do |
| 204 | local p = Instance.new("Part") |
| 205 | p.Name = "LidRib_X" |
| 206 | p.Size = Vector3.new(6.8, 1.2, 1.2) |
| 207 | p.CFrame = CFrame.new(0, 4.64, 0) |
| 208 | p.BrickColor = BrickColor.new("Bright yellow") |
| 209 | p.Material = Enum.Material.Glacier |
| 210 | p.MaterialVariant = "2022 Stud" |
| 211 | p.Anchored = true |
| 212 | p.Parent = model |
| 213 | end |
| 214 | do |
| 215 | local p = Instance.new("Part") |
| 216 | p.Name = "RibTop_Z" |
| 217 | p.Size = Vector3.new(1.2, 0.1, 6.6) |
| 218 | p.CFrame = CFrame.new(0, 5.41, 0) |
| 219 | p.BrickColor = BrickColor.new("Bright yellow") |
| 220 | p.Material = Enum.Material.Glacier |
| 221 | p.MaterialVariant = "2022 Stud" |
| 222 | p.Anchored = true |
| 223 | p.Parent = model |
| 224 | end |
| 225 | do |
| 226 | local p = Instance.new("Part") |
| 227 | p.Name = "RibTop_X" |
| 228 | p.Size = Vector3.new(6.6, 0.1, 1.2) |
| 229 | p.CFrame = CFrame.new(0, 5.37, 0) |
| 230 | p.BrickColor = BrickColor.new("Bright yellow") |
| 231 | p.Material = Enum.Material.Glacier |
| 232 | p.MaterialVariant = "2022 Stud" |
| 233 | p.Anchored = true |
| 234 | p.Parent = model |
| 235 | end |
| 236 | do |
| 237 | local p = Instance.new("Part") |
| 238 | p.Name = "BowKnot" |
| 239 | p.Size = Vector3.new(1.4, 0.8, 1.4) |
| 240 | p.CFrame = CFrame.new(0, 5.64, 0) |
| 241 | p.BrickColor = BrickColor.new("Bright yellow") |
| 242 | p.Material = Enum.Material.Glacier |
| 243 | p.MaterialVariant = "2022 Stud" |
| 244 | p.Anchored = true |
| 245 | p.Parent = model |
| 246 | end |
| 247 | do |
| 248 | local p = Instance.new("Part") |
| 249 | p.Name = "BowTailL" |
| 250 | p.Size = Vector3.new(2.5, 0.2, 1) |
| 251 | p.CFrame = CFrame.new(-1.8, 4.8, 0.8) * CFrame.Angles(math.rad(0), math.rad(25), math.rad(35)) |
| 252 | p.BrickColor = BrickColor.new("Bright yellow") |
| 253 | p.Material = Enum.Material.Glacier |
| 254 | p.MaterialVariant = "2022 Stud" |
| 255 | p.Anchored = true |
| 256 | p.Parent = model |
| 257 | end |
| 258 | do |
| 259 | local p = Instance.new("Part") |
| 260 | p.Name = "BowTailR" |
| 261 | p.Size = Vector3.new(2.5, 0.2, 1) |
| 262 | p.CFrame = CFrame.new(1.8, 4.8, 0.8) * CFrame.Angles(math.rad(0), math.rad(-25), math.rad(-35)) |
| 263 | p.BrickColor = BrickColor.new("Bright yellow") |
| 264 | p.Material = Enum.Material.Glacier |
| 265 | p.MaterialVariant = "2022 Stud" |
| 266 | p.Anchored = true |
| 267 | p.Parent = model |
| 268 | end |
| 269 | do |
| 270 | local rightV = Vector3.new(0.866,0.5,0).Unit |
| 271 | local upV = (Vector3.new(-0.5,0.866,0) - Vector3.new(-0.5,0.866,0):Dot(rightV)*rightV).Unit |
| 272 | local normalV = upV:Cross(rightV) |
| 273 | local pos = Vector3.new(-1.2, 6.2, 0) |
| 274 | local cyl = Instance.new("Part") |
| 275 | cyl.Shape = Enum.PartType.Cylinder |
| 276 | cyl.Size = Vector3.new(1, 2, 2) |
| 277 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 278 | cyl.BrickColor = BrickColor.new("Bright yellow") |
| 279 | cyl.Material = Enum.Material.Glacier |
| 280 | cyl.MaterialVariant = "2022 Stud" |
| 281 | cyl.Anchored = true; cyl.Parent = workspace |
| 282 | local cuts = {} |
| 283 | local hole = Instance.new("Part") |
| 284 | hole.Shape = Enum.PartType.Cylinder |
| 285 | hole.Size = Vector3.new(1.2, 0.8, 0.8) |
| 286 | hole.CFrame = cyl.CFrame |
| 287 | hole.BrickColor = BrickColor.new("Bright yellow") |
| 288 | hole.Material = Enum.Material.Glacier |
| 289 | hole.MaterialVariant = "2022 Stud" |
| 290 | hole.Anchored = true; hole.Parent = workspace |
| 291 | table.insert(cuts, hole) |
| 292 | if #cuts > 0 then |
| 293 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 294 | for _, c in ipairs(cuts) do c:Destroy() end |
| 295 | if ok and result then |
| 296 | cyl:Destroy() |
| 297 | result.Name = "BowLoopL"; result.Anchored = true; result.Parent = model |
| 298 | else |
| 299 | cyl.Name = "BowLoopL"; cyl.Parent = model |
| 300 | end |
| 301 | else |
| 302 | cyl.Name = "BowLoopL"; cyl.Parent = model |
| 303 | end |
| 304 | end |
| 305 | do |
| 306 | local rightV = Vector3.new(0.866,-0.5,0).Unit |
| 307 | local upV = (Vector3.new(0.5,0.866,0) - Vector3.new(0.5,0.866,0):Dot(rightV)*rightV).Unit |
| 308 | local normalV = upV:Cross(rightV) |
| 309 | local pos = Vector3.new(1.2, 6.2, 0) |
| 310 | local cyl = Instance.new("Part") |
| 311 | cyl.Shape = Enum.PartType.Cylinder |
| 312 | cyl.Size = Vector3.new(1, 2, 2) |
| 313 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 314 | cyl.BrickColor = BrickColor.new("Bright yellow") |
| 315 | cyl.Material = Enum.Material.Glacier |
| 316 | cyl.MaterialVariant = "2022 Stud" |
| 317 | cyl.Anchored = true; cyl.Parent = workspace |
| 318 | local cuts = {} |
| 319 | local hole = Instance.new("Part") |
| 320 | hole.Shape = Enum.PartType.Cylinder |
| 321 | hole.Size = Vector3.new(1.2, 0.8, 0.8) |
| 322 | hole.CFrame = cyl.CFrame |
| 323 | hole.BrickColor = BrickColor.new("Bright yellow") |
| 324 | hole.Material = Enum.Material.Glacier |
| 325 | hole.MaterialVariant = "2022 Stud" |
| 326 | hole.Anchored = true; hole.Parent = workspace |
| 327 | table.insert(cuts, hole) |
| 328 | if #cuts > 0 then |
| 329 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 330 | for _, c in ipairs(cuts) do c:Destroy() end |
| 331 | if ok and result then |
| 332 | cyl:Destroy() |
| 333 | result.Name = "BowLoopR"; result.Anchored = true; result.Parent = model |
| 334 | else |
| 335 | cyl.Name = "BowLoopR"; cyl.Parent = model |
| 336 | end |
| 337 | else |
| 338 | cyl.Name = "BowLoopR"; cyl.Parent = model |
| 339 | end |
| 340 | end |
| 341 | model.PrimaryPart = model:FindFirstChild("BoxL1") |
| 342 | print("GiftBox built: " .. #model:GetChildren() .. " parts") |
Loading comments...