Loading model...
by kyle amida · 3/27/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: Jollibee |
| 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 = "Jollibee" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Bright red"] = "2022 Stud", |
| 25 | ["Institutional white"] = "2022 Stud", |
| 26 | ["Really black"] = "2022 Universal", |
| 27 | } |
| 28 | do |
| 29 | local p = Instance.new("Part") |
| 30 | p.Shape = Enum.PartType.Ball |
| 31 | p.Name = "HeadRed" |
| 32 | p.Size = Vector3.new(9, 9, 9) |
| 33 | p.CFrame = CFrame.new(0, 10, 0) |
| 34 | p.BrickColor = BrickColor.new("Bright red") |
| 35 | p.Material = Enum.Material.Glacier |
| 36 | p.MaterialVariant = "2022 Stud" |
| 37 | p.Anchored = true |
| 38 | p.Parent = model |
| 39 | end |
| 40 | do |
| 41 | local p = Instance.new("Part") |
| 42 | p.Shape = Enum.PartType.Ball |
| 43 | p.Name = "CheekR" |
| 44 | p.Size = Vector3.new(5.5, 5.5, 5.5) |
| 45 | p.CFrame = CFrame.new(2.8, 8, -1.5) |
| 46 | p.BrickColor = BrickColor.new("Institutional white") |
| 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.Shape = Enum.PartType.Ball |
| 55 | p.Name = "CheekL" |
| 56 | p.Size = Vector3.new(5.5, 5.5, 5.5) |
| 57 | p.CFrame = CFrame.new(-2.8, 8, -1.5) |
| 58 | p.BrickColor = BrickColor.new("Institutional white") |
| 59 | p.Material = Enum.Material.Glacier |
| 60 | p.MaterialVariant = "2022 Stud" |
| 61 | p.Anchored = true |
| 62 | p.Parent = model |
| 63 | end |
| 64 | do |
| 65 | local p = Instance.new("Part") |
| 66 | p.Shape = Enum.PartType.Ball |
| 67 | p.Name = "Chin" |
| 68 | p.Size = Vector3.new(6, 5, 5) |
| 69 | p.CFrame = CFrame.new(0, 6.5, -1) |
| 70 | p.BrickColor = BrickColor.new("Institutional white") |
| 71 | p.Material = Enum.Material.Glacier |
| 72 | p.MaterialVariant = "2022 Stud" |
| 73 | p.Anchored = true |
| 74 | p.Parent = model |
| 75 | end |
| 76 | do |
| 77 | local p = Instance.new("Part") |
| 78 | p.Shape = Enum.PartType.Ball |
| 79 | p.Name = "FaceMaskR" |
| 80 | p.Size = Vector3.new(4.3, 4.8, 4.3) |
| 81 | p.CFrame = CFrame.new(1.5, 10, -2.5) |
| 82 | p.BrickColor = BrickColor.new("Institutional white") |
| 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.Shape = Enum.PartType.Ball |
| 91 | p.Name = "FaceMaskL" |
| 92 | p.Size = Vector3.new(4.3, 4.8, 4.3) |
| 93 | p.CFrame = CFrame.new(-1.5, 10, -2.5) |
| 94 | p.BrickColor = BrickColor.new("Institutional white") |
| 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.Shape = Enum.PartType.Ball |
| 103 | p.Name = "FaceMaskC" |
| 104 | p.Size = Vector3.new(4, 4, 4) |
| 105 | p.CFrame = CFrame.new(0, 9.5, -3) |
| 106 | p.BrickColor = BrickColor.new("Institutional white") |
| 107 | p.Material = Enum.Material.Glacier |
| 108 | p.MaterialVariant = "2022 Stud" |
| 109 | p.Anchored = true |
| 110 | p.Parent = model |
| 111 | end |
| 112 | do |
| 113 | local p = Instance.new("Part") |
| 114 | p.Name = "EyeR_mid" |
| 115 | p.Size = Vector3.new(1.5, 1.5, 0.4) |
| 116 | p.CFrame = CFrame.new(1.8, 10.5, -4.36) |
| 117 | p.BrickColor = BrickColor.new("Really black") |
| 118 | p.Material = Enum.Material.Glacier |
| 119 | p.MaterialVariant = "2022 Universal" |
| 120 | p.Anchored = true |
| 121 | p.Parent = model |
| 122 | end |
| 123 | do |
| 124 | local p = Instance.new("Part") |
| 125 | p.Shape = Enum.PartType.Cylinder |
| 126 | p.Name = "EyeR_top" |
| 127 | p.Size = Vector3.new(0.4, 1.5, 1.5) |
| 128 | p.CFrame = CFrame.new(1.8, 11.25, -4.4) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 129 | p.BrickColor = BrickColor.new("Really black") |
| 130 | p.Material = Enum.Material.Glacier |
| 131 | p.MaterialVariant = "2022 Universal" |
| 132 | p.Anchored = true |
| 133 | p.Parent = model |
| 134 | end |
| 135 | do |
| 136 | local p = Instance.new("Part") |
| 137 | p.Shape = Enum.PartType.Cylinder |
| 138 | p.Name = "EyeR_bot" |
| 139 | p.Size = Vector3.new(0.4, 1.5, 1.5) |
| 140 | p.CFrame = CFrame.new(1.8, 9.75, -4.4) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 141 | p.BrickColor = BrickColor.new("Really black") |
| 142 | p.Material = Enum.Material.Glacier |
| 143 | p.MaterialVariant = "2022 Universal" |
| 144 | p.Anchored = true |
| 145 | p.Parent = model |
| 146 | end |
| 147 | do |
| 148 | local p = Instance.new("Part") |
| 149 | p.Shape = Enum.PartType.Cylinder |
| 150 | p.Name = "HighR" |
| 151 | p.Size = Vector3.new(0.5, 0.6, 0.6) |
| 152 | p.CFrame = CFrame.new(2.2, 11.2, -4.5) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 153 | p.BrickColor = BrickColor.new("Institutional white") |
| 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 = "EyeL_mid" |
| 162 | p.Size = Vector3.new(1.5, 1.5, 0.4) |
| 163 | p.CFrame = CFrame.new(-1.8, 10.5, -4.36) |
| 164 | p.BrickColor = BrickColor.new("Really black") |
| 165 | p.Material = Enum.Material.Glacier |
| 166 | p.MaterialVariant = "2022 Universal" |
| 167 | p.Anchored = true |
| 168 | p.Parent = model |
| 169 | end |
| 170 | do |
| 171 | local p = Instance.new("Part") |
| 172 | p.Shape = Enum.PartType.Cylinder |
| 173 | p.Name = "EyeL_top" |
| 174 | p.Size = Vector3.new(0.4, 1.5, 1.5) |
| 175 | p.CFrame = CFrame.new(-1.8, 11.25, -4.4) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 176 | p.BrickColor = BrickColor.new("Really black") |
| 177 | p.Material = Enum.Material.Glacier |
| 178 | p.MaterialVariant = "2022 Universal" |
| 179 | p.Anchored = true |
| 180 | p.Parent = model |
| 181 | end |
| 182 | do |
| 183 | local p = Instance.new("Part") |
| 184 | p.Shape = Enum.PartType.Cylinder |
| 185 | p.Name = "EyeL_bot" |
| 186 | p.Size = Vector3.new(0.4, 1.5, 1.5) |
| 187 | p.CFrame = CFrame.new(-1.8, 9.75, -4.4) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 188 | p.BrickColor = BrickColor.new("Really black") |
| 189 | p.Material = Enum.Material.Glacier |
| 190 | p.MaterialVariant = "2022 Universal" |
| 191 | p.Anchored = true |
| 192 | p.Parent = model |
| 193 | end |
| 194 | do |
| 195 | local p = Instance.new("Part") |
| 196 | p.Shape = Enum.PartType.Cylinder |
| 197 | p.Name = "HighL" |
| 198 | p.Size = Vector3.new(0.5, 0.6, 0.6) |
| 199 | p.CFrame = CFrame.new(-1.4, 11.2, -4.5) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 200 | p.BrickColor = BrickColor.new("Institutional white") |
| 201 | p.Material = Enum.Material.Glacier |
| 202 | p.MaterialVariant = "2022 Stud" |
| 203 | p.Anchored = true |
| 204 | p.Parent = model |
| 205 | end |
| 206 | do |
| 207 | local p = Instance.new("Part") |
| 208 | p.Shape = Enum.PartType.Cylinder |
| 209 | p.Name = "AntennaR" |
| 210 | p.Size = Vector3.new(2.86182, 0.3, 0.3) |
| 211 | p.CFrame = CFrame.new(1.85, 14.75, -0.75) * CFrame.Angles(math.rad(0), math.rad(21.0375), math.rad(60.8763)) |
| 212 | p.BrickColor = BrickColor.new("Bright red") |
| 213 | p.Material = Enum.Material.Glacier |
| 214 | p.MaterialVariant = "2022 Stud" |
| 215 | p.Anchored = true |
| 216 | p.Parent = model |
| 217 | end |
| 218 | do |
| 219 | local p = Instance.new("Part") |
| 220 | p.Shape = Enum.PartType.Ball |
| 221 | p.Name = "AntTipR" |
| 222 | p.Size = Vector3.new(1.2, 1.2, 1.2) |
| 223 | p.CFrame = CFrame.new(2.5, 16, -1) |
| 224 | p.BrickColor = BrickColor.new("Bright red") |
| 225 | p.Material = Enum.Material.Glacier |
| 226 | p.MaterialVariant = "2022 Stud" |
| 227 | p.Anchored = true |
| 228 | p.Parent = model |
| 229 | end |
| 230 | do |
| 231 | local p = Instance.new("Part") |
| 232 | p.Shape = Enum.PartType.Cylinder |
| 233 | p.Name = "AntennaL" |
| 234 | p.Size = Vector3.new(2.86182, 0.3, 0.3) |
| 235 | p.CFrame = CFrame.new(-1.85, 14.75, -0.75) * CFrame.Angles(math.rad(-180), math.rad(21.0375), math.rad(-119.124)) |
| 236 | p.BrickColor = BrickColor.new("Bright red") |
| 237 | p.Material = Enum.Material.Glacier |
| 238 | p.MaterialVariant = "2022 Stud" |
| 239 | p.Anchored = true |
| 240 | p.Parent = model |
| 241 | end |
| 242 | do |
| 243 | local p = Instance.new("Part") |
| 244 | p.Shape = Enum.PartType.Ball |
| 245 | p.Name = "AntTipL" |
| 246 | p.Size = Vector3.new(1.2, 1.2, 1.2) |
| 247 | p.CFrame = CFrame.new(-2.5, 16, -1) |
| 248 | p.BrickColor = BrickColor.new("Bright red") |
| 249 | p.Material = Enum.Material.Glacier |
| 250 | p.MaterialVariant = "2022 Stud" |
| 251 | p.Anchored = true |
| 252 | p.Parent = model |
| 253 | end |
| 254 | do |
| 255 | local p = Instance.new("Part") |
| 256 | p.Shape = Enum.PartType.Cylinder |
| 257 | p.Name = "HatBand" |
| 258 | p.Size = Vector3.new(1.5, 4.5, 4.5) |
| 259 | p.CFrame = CFrame.new(-2.5, 12.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(75)) |
| 260 | p.BrickColor = BrickColor.new("Institutional white") |
| 261 | p.Material = Enum.Material.Glacier |
| 262 | p.MaterialVariant = "2022 Stud" |
| 263 | p.Anchored = true |
| 264 | p.Parent = model |
| 265 | end |
| 266 | do |
| 267 | local p = Instance.new("Part") |
| 268 | p.Shape = Enum.PartType.Ball |
| 269 | p.Name = "HatPuff1" |
| 270 | p.Size = Vector3.new(5.5, 5.5, 5.5) |
| 271 | p.CFrame = CFrame.new(-4, 14.5, 0) |
| 272 | p.BrickColor = BrickColor.new("Institutional white") |
| 273 | p.Material = Enum.Material.Glacier |
| 274 | p.MaterialVariant = "2022 Stud" |
| 275 | p.Anchored = true |
| 276 | p.Parent = model |
| 277 | end |
| 278 | do |
| 279 | local p = Instance.new("Part") |
| 280 | p.Shape = Enum.PartType.Ball |
| 281 | p.Name = "HatPuff2" |
| 282 | p.Size = Vector3.new(4.46, 4.46, 4.46) |
| 283 | p.CFrame = CFrame.new(-2, 15.5, 0) |
| 284 | p.BrickColor = BrickColor.new("Institutional white") |
| 285 | p.Material = Enum.Material.Glacier |
| 286 | p.MaterialVariant = "2022 Stud" |
| 287 | p.Anchored = true |
| 288 | p.Parent = model |
| 289 | end |
| 290 | do |
| 291 | local p = Instance.new("Part") |
| 292 | p.Shape = Enum.PartType.Ball |
| 293 | p.Name = "HatPuff3" |
| 294 | p.Size = Vector3.new(3.96, 3.96, 3.96) |
| 295 | p.CFrame = CFrame.new(-1.5, 14, -1.5) |
| 296 | p.BrickColor = BrickColor.new("Institutional white") |
| 297 | p.Material = Enum.Material.Glacier |
| 298 | p.MaterialVariant = "2022 Stud" |
| 299 | p.Anchored = true |
| 300 | p.Parent = model |
| 301 | end |
| 302 | do |
| 303 | local p = Instance.new("Part") |
| 304 | p.Shape = Enum.PartType.Ball |
| 305 | p.Name = "HatPuff4" |
| 306 | p.Size = Vector3.new(4, 4, 4) |
| 307 | p.CFrame = CFrame.new(-4.5, 13, 1.5) |
| 308 | p.BrickColor = BrickColor.new("Institutional white") |
| 309 | p.Material = Enum.Material.Glacier |
| 310 | p.MaterialVariant = "2022 Stud" |
| 311 | p.Anchored = true |
| 312 | p.Parent = model |
| 313 | end |
| 314 | do |
| 315 | local p = Instance.new("Part") |
| 316 | p.Shape = Enum.PartType.Ball |
| 317 | p.Name = "HatPuff5" |
| 318 | p.Size = Vector3.new(3.5, 3.5, 3.5) |
| 319 | p.CFrame = CFrame.new(-2.5, 13.5, 1.5) |
| 320 | p.BrickColor = BrickColor.new("Institutional white") |
| 321 | p.Material = Enum.Material.Glacier |
| 322 | p.MaterialVariant = "2022 Stud" |
| 323 | p.Anchored = true |
| 324 | p.Parent = model |
| 325 | end |
| 326 | do |
| 327 | local rightV = Vector3.new(1,0,0).Unit |
| 328 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 329 | local normalV = upV:Cross(rightV) |
| 330 | local pos = Vector3.new(0, 8.2, -4) |
| 331 | local cyl = Instance.new("Part") |
| 332 | cyl.Shape = Enum.PartType.Cylinder |
| 333 | cyl.Size = Vector3.new(0.6, 4.4, 4.4) |
| 334 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 335 | cyl.BrickColor = BrickColor.new("Really black") |
| 336 | cyl.Material = Enum.Material.Glacier |
| 337 | cyl.MaterialVariant = "2022 Universal" |
| 338 | cyl.Anchored = true; cyl.Parent = workspace |
| 339 | local cuts = {} |
| 340 | local angBoxes = {} |
| 341 | do |
| 342 | local edgeDir = -1*rightV + 0*upV |
| 343 | local edgePerp = 0*rightV + -1*upV |
| 344 | local cut = Instance.new("Part") |
| 345 | cut.Size = Vector3.new(8.8, 0.8, 8.8) |
| 346 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 4.4 * edgePerp, edgeDir, normalV) |
| 347 | cut.BrickColor = BrickColor.new("Really black") |
| 348 | cut.Material = Enum.Material.Glacier |
| 349 | cut.MaterialVariant = "2022 Universal" |
| 350 | cut.Anchored = true; cut.Parent = workspace |
| 351 | table.insert(angBoxes, cut) |
| 352 | end |
| 353 | do |
| 354 | local edgeDir = 1*rightV + 0*upV |
| 355 | local edgePerp = 0*rightV + 1*upV |
| 356 | local cut = Instance.new("Part") |
| 357 | cut.Size = Vector3.new(8.8, 0.8, 8.8) |
| 358 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 4.4 * edgePerp, edgeDir, normalV) |
| 359 | cut.BrickColor = BrickColor.new("Really black") |
| 360 | cut.Material = Enum.Material.Glacier |
| 361 | cut.MaterialVariant = "2022 Universal" |
| 362 | cut.Anchored = true; cut.Parent = workspace |
| 363 | table.insert(angBoxes, cut) |
| 364 | end |
| 365 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 366 | if #cuts > 0 then |
| 367 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 368 | for _, c in ipairs(cuts) do c:Destroy() end |
| 369 | if ok and result then |
| 370 | cyl:Destroy() |
| 371 | result.Name = "MouthBlk"; result.Anchored = true; result.Parent = model |
| 372 | else |
| 373 | cyl.Name = "MouthBlk"; cyl.Parent = model |
| 374 | end |
| 375 | else |
| 376 | cyl.Name = "MouthBlk"; cyl.Parent = model |
| 377 | end |
| 378 | end |
| 379 | do |
| 380 | local rightV = Vector3.new(1,0,0).Unit |
| 381 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 382 | local normalV = upV:Cross(rightV) |
| 383 | local pos = Vector3.new(0, 7.5, -4.1) |
| 384 | local cyl = Instance.new("Part") |
| 385 | cyl.Shape = Enum.PartType.Cylinder |
| 386 | cyl.Size = Vector3.new(0.6, 2.4, 2.4) |
| 387 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 388 | cyl.BrickColor = BrickColor.new("Bright red") |
| 389 | cyl.Material = Enum.Material.Glacier |
| 390 | cyl.MaterialVariant = "2022 Stud" |
| 391 | cyl.Anchored = true; cyl.Parent = workspace |
| 392 | local cuts = {} |
| 393 | local angBoxes = {} |
| 394 | do |
| 395 | local edgeDir = -1*rightV + 0*upV |
| 396 | local edgePerp = 0*rightV + -1*upV |
| 397 | local cut = Instance.new("Part") |
| 398 | cut.Size = Vector3.new(4.8, 0.8, 4.8) |
| 399 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 2.4 * edgePerp, edgeDir, normalV) |
| 400 | cut.BrickColor = BrickColor.new("Bright red") |
| 401 | cut.Material = Enum.Material.Glacier |
| 402 | cut.MaterialVariant = "2022 Stud" |
| 403 | cut.Anchored = true; cut.Parent = workspace |
| 404 | table.insert(angBoxes, cut) |
| 405 | end |
| 406 | do |
| 407 | local edgeDir = 1*rightV + 0*upV |
| 408 | local edgePerp = 0*rightV + 1*upV |
| 409 | local cut = Instance.new("Part") |
| 410 | cut.Size = Vector3.new(4.8, 0.8, 4.8) |
| 411 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 2.4 * edgePerp, edgeDir, normalV) |
| 412 | cut.BrickColor = BrickColor.new("Bright red") |
| 413 | cut.Material = Enum.Material.Glacier |
| 414 | cut.MaterialVariant = "2022 Stud" |
| 415 | cut.Anchored = true; cut.Parent = workspace |
| 416 | table.insert(angBoxes, cut) |
| 417 | end |
| 418 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 419 | if #cuts > 0 then |
| 420 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 421 | for _, c in ipairs(cuts) do c:Destroy() end |
| 422 | if ok and result then |
| 423 | cyl:Destroy() |
| 424 | result.Name = "Tongue"; result.Anchored = true; result.Parent = model |
| 425 | else |
| 426 | cyl.Name = "Tongue"; cyl.Parent = model |
| 427 | end |
| 428 | else |
| 429 | cyl.Name = "Tongue"; cyl.Parent = model |
| 430 | end |
| 431 | end |
| 432 | do |
| 433 | local rightV = Vector3.new(1,0,0).Unit |
| 434 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 435 | local normalV = upV:Cross(rightV) |
| 436 | local pos = Vector3.new(0, 9.2, -4.4) |
| 437 | local cyl = Instance.new("Part") |
| 438 | cyl.Shape = Enum.PartType.Cylinder |
| 439 | cyl.Size = Vector3.new(0.2, 1.2, 1.2) |
| 440 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 441 | cyl.BrickColor = BrickColor.new("Really black") |
| 442 | cyl.Material = Enum.Material.Glacier |
| 443 | cyl.MaterialVariant = "2022 Universal" |
| 444 | cyl.Anchored = true; cyl.Parent = workspace |
| 445 | local cuts = {} |
| 446 | local hole = Instance.new("Part") |
| 447 | hole.Shape = Enum.PartType.Cylinder |
| 448 | hole.Size = Vector3.new(0.4, 0.8, 0.8) |
| 449 | hole.CFrame = cyl.CFrame |
| 450 | hole.BrickColor = BrickColor.new("Really black") |
| 451 | hole.Material = Enum.Material.Glacier |
| 452 | hole.MaterialVariant = "2022 Universal" |
| 453 | hole.Anchored = true; hole.Parent = workspace |
| 454 | table.insert(cuts, hole) |
| 455 | local angBoxes = {} |
| 456 | do |
| 457 | local edgeDir = -1*rightV + 0*upV |
| 458 | local edgePerp = 0*rightV + -1*upV |
| 459 | local cut = Instance.new("Part") |
| 460 | cut.Size = Vector3.new(2.4, 0.4, 2.4) |
| 461 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 1.2 * edgePerp, edgeDir, normalV) |
| 462 | cut.BrickColor = BrickColor.new("Really black") |
| 463 | cut.Material = Enum.Material.Glacier |
| 464 | cut.MaterialVariant = "2022 Universal" |
| 465 | cut.Anchored = true; cut.Parent = workspace |
| 466 | table.insert(angBoxes, cut) |
| 467 | end |
| 468 | do |
| 469 | local edgeDir = 1*rightV + 0*upV |
| 470 | local edgePerp = 0*rightV + 1*upV |
| 471 | local cut = Instance.new("Part") |
| 472 | cut.Size = Vector3.new(2.4, 0.4, 2.4) |
| 473 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 1.2 * edgePerp, edgeDir, normalV) |
| 474 | cut.BrickColor = BrickColor.new("Really black") |
| 475 | cut.Material = Enum.Material.Glacier |
| 476 | cut.MaterialVariant = "2022 Universal" |
| 477 | cut.Anchored = true; cut.Parent = workspace |
| 478 | table.insert(angBoxes, cut) |
| 479 | end |
| 480 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 481 | if #cuts > 0 then |
| 482 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 483 | for _, c in ipairs(cuts) do c:Destroy() end |
| 484 | if ok and result then |
| 485 | cyl:Destroy() |
| 486 | result.Name = "Nose"; result.Anchored = true; result.Parent = model |
| 487 | else |
| 488 | cyl.Name = "Nose"; cyl.Parent = model |
| 489 | end |
| 490 | else |
| 491 | cyl.Name = "Nose"; cyl.Parent = model |
| 492 | end |
| 493 | end |
| 494 | model.PrimaryPart = model:FindFirstChild("HeadRed") |
| 495 | print("Jollibee built: " .. #model:GetChildren() .. " parts") |
Loading comments...