Loading model...
by ✨Babayaga · 3/29/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: Clownfish |
| 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 = "Clownfish" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Bright orange"] = "2022 Glue", |
| 25 | ["Really black"] = "2022 Glue", |
| 26 | ["White"] = "2022 Glue", |
| 27 | } |
| 28 | do |
| 29 | local p = Instance.new("Part") |
| 30 | p.Name = "Mouth" |
| 31 | p.Size = Vector3.new(1.2, 0.8, 0.4) |
| 32 | p.CFrame = CFrame.new(0, 0, -5.8) |
| 33 | p.BrickColor = BrickColor.new("Bright orange") |
| 34 | p.Material = Enum.Material.Glacier |
| 35 | p.MaterialVariant = "2022 Glue" |
| 36 | p.Anchored = true |
| 37 | p.Parent = model |
| 38 | end |
| 39 | do |
| 40 | local p = Instance.new("Part") |
| 41 | p.Name = "Nose" |
| 42 | p.Size = Vector3.new(1.8, 1.6, 0.6) |
| 43 | p.CFrame = CFrame.new(0, 0, -5.44) |
| 44 | p.BrickColor = BrickColor.new("Bright orange") |
| 45 | p.Material = Enum.Material.Glacier |
| 46 | p.MaterialVariant = "2022 Glue" |
| 47 | p.Anchored = true |
| 48 | p.Parent = model |
| 49 | end |
| 50 | do |
| 51 | local p = Instance.new("Part") |
| 52 | p.Name = "Head_1" |
| 53 | p.Size = Vector3.new(2.4, 2.8, 1) |
| 54 | p.CFrame = CFrame.new(0, 0, -4.6) |
| 55 | p.BrickColor = BrickColor.new("Bright orange") |
| 56 | p.Material = Enum.Material.Glacier |
| 57 | p.MaterialVariant = "2022 Glue" |
| 58 | p.Anchored = true |
| 59 | p.Parent = model |
| 60 | end |
| 61 | do |
| 62 | local p = Instance.new("Part") |
| 63 | p.Name = "Head_2" |
| 64 | p.Size = Vector3.new(2.8, 3.4, 1) |
| 65 | p.CFrame = CFrame.new(0, 0, -3.6) |
| 66 | p.BrickColor = BrickColor.new("Bright orange") |
| 67 | p.Material = Enum.Material.Glacier |
| 68 | p.MaterialVariant = "2022 Glue" |
| 69 | p.Anchored = true |
| 70 | p.Parent = model |
| 71 | end |
| 72 | do |
| 73 | local p = Instance.new("Part") |
| 74 | p.Name = "Border1_Front" |
| 75 | p.Size = Vector3.new(2.9, 3.5, 0.1) |
| 76 | p.CFrame = CFrame.new(0, 0, -3.01) |
| 77 | p.BrickColor = BrickColor.new("Really black") |
| 78 | p.Material = Enum.Material.Glacier |
| 79 | p.MaterialVariant = "2022 Glue" |
| 80 | p.Anchored = true |
| 81 | p.Parent = model |
| 82 | end |
| 83 | do |
| 84 | local p = Instance.new("Part") |
| 85 | p.Name = "Stripe1_White" |
| 86 | p.Size = Vector3.new(3, 3.6, 1) |
| 87 | p.CFrame = CFrame.new(0, 0, -2.5) |
| 88 | p.BrickColor = BrickColor.new("White") |
| 89 | p.Material = Enum.Material.Glacier |
| 90 | p.MaterialVariant = "2022 Glue" |
| 91 | p.Anchored = true |
| 92 | p.Parent = model |
| 93 | end |
| 94 | do |
| 95 | local p = Instance.new("Part") |
| 96 | p.Name = "Border1_Back" |
| 97 | p.Size = Vector3.new(2.9, 3.5, 0.1) |
| 98 | p.CFrame = CFrame.new(0, 0, -1.91) |
| 99 | p.BrickColor = BrickColor.new("Really black") |
| 100 | p.Material = Enum.Material.Glacier |
| 101 | p.MaterialVariant = "2022 Glue" |
| 102 | p.Anchored = true |
| 103 | p.Parent = model |
| 104 | end |
| 105 | do |
| 106 | local p = Instance.new("Part") |
| 107 | p.Name = "Mid_1" |
| 108 | p.Size = Vector3.new(3.2, 4, 1.8) |
| 109 | p.CFrame = CFrame.new(0, 0, -1) |
| 110 | p.BrickColor = BrickColor.new("Bright orange") |
| 111 | p.Material = Enum.Material.Glacier |
| 112 | p.MaterialVariant = "2022 Glue" |
| 113 | p.Anchored = true |
| 114 | p.Parent = model |
| 115 | end |
| 116 | do |
| 117 | local p = Instance.new("Part") |
| 118 | p.Name = "Mid_2" |
| 119 | p.Size = Vector3.new(3.2, 4, 1.8) |
| 120 | p.CFrame = CFrame.new(0, 0, 0.8) |
| 121 | p.BrickColor = BrickColor.new("Bright orange") |
| 122 | p.Material = Enum.Material.Glacier |
| 123 | p.MaterialVariant = "2022 Glue" |
| 124 | p.Anchored = true |
| 125 | p.Parent = model |
| 126 | end |
| 127 | do |
| 128 | local p = Instance.new("Part") |
| 129 | p.Name = "Border2_Front" |
| 130 | p.Size = Vector3.new(3.1, 3.8, 0.1) |
| 131 | p.CFrame = CFrame.new(0, 0, 1.79) |
| 132 | p.BrickColor = BrickColor.new("Really black") |
| 133 | p.Material = Enum.Material.Glacier |
| 134 | p.MaterialVariant = "2022 Glue" |
| 135 | p.Anchored = true |
| 136 | p.Parent = model |
| 137 | end |
| 138 | do |
| 139 | local p = Instance.new("Part") |
| 140 | p.Name = "Stripe2_White" |
| 141 | p.Size = Vector3.new(3, 3.6, 1) |
| 142 | p.CFrame = CFrame.new(0, 0, 2.3) |
| 143 | p.BrickColor = BrickColor.new("White") |
| 144 | p.Material = Enum.Material.Glacier |
| 145 | p.MaterialVariant = "2022 Glue" |
| 146 | p.Anchored = true |
| 147 | p.Parent = model |
| 148 | end |
| 149 | do |
| 150 | local p = Instance.new("Part") |
| 151 | p.Name = "Border2_Back" |
| 152 | p.Size = Vector3.new(2.8, 3.4, 0.1) |
| 153 | p.CFrame = CFrame.new(0, 0, 2.89) |
| 154 | p.BrickColor = BrickColor.new("Really black") |
| 155 | p.Material = Enum.Material.Glacier |
| 156 | p.MaterialVariant = "2022 Glue" |
| 157 | p.Anchored = true |
| 158 | p.Parent = model |
| 159 | end |
| 160 | do |
| 161 | local p = Instance.new("Part") |
| 162 | p.Name = "Rear_1" |
| 163 | p.Size = Vector3.new(2.4, 2.8, 1.4) |
| 164 | p.CFrame = CFrame.new(0, 0, 3.6) |
| 165 | p.BrickColor = BrickColor.new("Bright orange") |
| 166 | p.Material = Enum.Material.Glacier |
| 167 | p.MaterialVariant = "2022 Glue" |
| 168 | p.Anchored = true |
| 169 | p.Parent = model |
| 170 | end |
| 171 | do |
| 172 | local p = Instance.new("Part") |
| 173 | p.Name = "Border3_Front" |
| 174 | p.Size = Vector3.new(2, 2.2, 0.1) |
| 175 | p.CFrame = CFrame.new(0, 0, 4.39) |
| 176 | p.BrickColor = BrickColor.new("Really black") |
| 177 | p.Material = Enum.Material.Glacier |
| 178 | p.MaterialVariant = "2022 Glue" |
| 179 | p.Anchored = true |
| 180 | p.Parent = model |
| 181 | end |
| 182 | do |
| 183 | local p = Instance.new("Part") |
| 184 | p.Name = "Stripe3_White" |
| 185 | p.Size = Vector3.new(1.8, 2, 0.6) |
| 186 | p.CFrame = CFrame.new(0, 0, 4.7) |
| 187 | p.BrickColor = BrickColor.new("White") |
| 188 | p.Material = Enum.Material.Glacier |
| 189 | p.MaterialVariant = "2022 Glue" |
| 190 | p.Anchored = true |
| 191 | p.Parent = model |
| 192 | end |
| 193 | do |
| 194 | local p = Instance.new("Part") |
| 195 | p.Name = "Border3_Back" |
| 196 | p.Size = Vector3.new(1.6, 1.8, 0.1) |
| 197 | p.CFrame = CFrame.new(0, 0, 5.09) |
| 198 | p.BrickColor = BrickColor.new("Really black") |
| 199 | p.Material = Enum.Material.Glacier |
| 200 | p.MaterialVariant = "2022 Glue" |
| 201 | p.Anchored = true |
| 202 | p.Parent = model |
| 203 | end |
| 204 | do |
| 205 | local p = Instance.new("Part") |
| 206 | p.Name = "TailBase" |
| 207 | p.Size = Vector3.new(1.2, 1.4, 0.6) |
| 208 | p.CFrame = CFrame.new(0, 0, 5.4) |
| 209 | p.BrickColor = BrickColor.new("Bright orange") |
| 210 | p.Material = Enum.Material.Glacier |
| 211 | p.MaterialVariant = "2022 Glue" |
| 212 | p.Anchored = true |
| 213 | p.Parent = model |
| 214 | end |
| 215 | do |
| 216 | local p = Instance.new("Part") |
| 217 | p.Shape = Enum.PartType.Cylinder |
| 218 | p.Name = "EyeWhite_R" |
| 219 | p.Size = Vector3.new(0.3, 0.8, 0.8) |
| 220 | p.CFrame = CFrame.new(1.2, 0.4, -4.2) |
| 221 | p.BrickColor = BrickColor.new("White") |
| 222 | p.Material = Enum.Material.Glacier |
| 223 | p.MaterialVariant = "2022 Glue" |
| 224 | p.Anchored = true |
| 225 | p.Parent = model |
| 226 | end |
| 227 | do |
| 228 | local p = Instance.new("Part") |
| 229 | p.Shape = Enum.PartType.Cylinder |
| 230 | p.Name = "EyePupil_R" |
| 231 | p.Size = Vector3.new(0.1, 0.4, 0.4) |
| 232 | p.CFrame = CFrame.new(1.48, 0.4, -4.2) |
| 233 | p.BrickColor = BrickColor.new("Really black") |
| 234 | p.Material = Enum.Material.Glacier |
| 235 | p.MaterialVariant = "2022 Glue" |
| 236 | p.Anchored = true |
| 237 | p.Parent = model |
| 238 | end |
| 239 | do |
| 240 | local p = Instance.new("Part") |
| 241 | p.Shape = Enum.PartType.Cylinder |
| 242 | p.Name = "EyeWhite_L" |
| 243 | p.Size = Vector3.new(0.3, 0.8, 0.8) |
| 244 | p.CFrame = CFrame.new(-1.2, 0.4, -4.2) |
| 245 | p.BrickColor = BrickColor.new("White") |
| 246 | p.Material = Enum.Material.Glacier |
| 247 | p.MaterialVariant = "2022 Glue" |
| 248 | p.Anchored = true |
| 249 | p.Parent = model |
| 250 | end |
| 251 | do |
| 252 | local p = Instance.new("Part") |
| 253 | p.Shape = Enum.PartType.Cylinder |
| 254 | p.Name = "EyePupil_L" |
| 255 | p.Size = Vector3.new(0.1, 0.4, 0.4) |
| 256 | p.CFrame = CFrame.new(-1.48, 0.4, -4.2) |
| 257 | p.BrickColor = BrickColor.new("Really black") |
| 258 | p.Material = Enum.Material.Glacier |
| 259 | p.MaterialVariant = "2022 Glue" |
| 260 | p.Anchored = true |
| 261 | p.Parent = model |
| 262 | end |
| 263 | do |
| 264 | local p = Instance.new("Part") |
| 265 | p.Name = "Pelvic_R_Edge" |
| 266 | p.Size = Vector3.new(0.2, 0.1, 1) |
| 267 | p.CFrame = CFrame.new(0.64, -3.1, -1.5) |
| 268 | p.BrickColor = BrickColor.new("Really black") |
| 269 | p.Material = Enum.Material.Glacier |
| 270 | p.MaterialVariant = "2022 Glue" |
| 271 | p.Anchored = true |
| 272 | p.Parent = model |
| 273 | end |
| 274 | do |
| 275 | local p = Instance.new("Part") |
| 276 | p.Name = "Pelvic_L_Edge" |
| 277 | p.Size = Vector3.new(0.2, 0.1, 1) |
| 278 | p.CFrame = CFrame.new(-0.56, -3.1, -1.5) |
| 279 | p.BrickColor = BrickColor.new("Really black") |
| 280 | p.Material = Enum.Material.Glacier |
| 281 | p.MaterialVariant = "2022 Glue" |
| 282 | p.Anchored = true |
| 283 | p.Parent = model |
| 284 | end |
| 285 | do |
| 286 | local p = Instance.new("Part") |
| 287 | p.Name = "Cheek_R" |
| 288 | p.Size = Vector3.new(0.4, 2, 1) |
| 289 | p.CFrame = CFrame.new(1.3, 0, -3.5) * CFrame.Angles(math.rad(0), math.rad(10), math.rad(0)) |
| 290 | p.BrickColor = BrickColor.new("Bright orange") |
| 291 | p.Material = Enum.Material.Glacier |
| 292 | p.MaterialVariant = "2022 Glue" |
| 293 | p.Anchored = true |
| 294 | p.Parent = model |
| 295 | end |
| 296 | do |
| 297 | local p = Instance.new("Part") |
| 298 | p.Name = "Cheek_L" |
| 299 | p.Size = Vector3.new(0.4, 2, 1) |
| 300 | p.CFrame = CFrame.new(-1.3, 0, -3.5) * CFrame.Angles(math.rad(0), math.rad(-10), math.rad(0)) |
| 301 | p.BrickColor = BrickColor.new("Bright orange") |
| 302 | p.Material = Enum.Material.Glacier |
| 303 | p.MaterialVariant = "2022 Glue" |
| 304 | p.Anchored = true |
| 305 | p.Parent = model |
| 306 | end |
| 307 | do |
| 308 | local rightV = Vector3.new(0,0,1).Unit |
| 309 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 310 | local normalV = upV:Cross(rightV) |
| 311 | local pos = Vector3.new(0, 1.84, -1) |
| 312 | local cyl = Instance.new("Part") |
| 313 | cyl.Shape = Enum.PartType.Cylinder |
| 314 | cyl.Size = Vector3.new(0.3, 6, 6) |
| 315 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 316 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 317 | cyl.Material = Enum.Material.Glacier |
| 318 | cyl.MaterialVariant = "2022 Glue" |
| 319 | cyl.Anchored = true; cyl.Parent = workspace |
| 320 | local cuts = {} |
| 321 | local angBoxes = {} |
| 322 | do |
| 323 | local edgeDir = 1*rightV + 0*upV |
| 324 | local edgePerp = 0*rightV + 1*upV |
| 325 | local cut = Instance.new("Part") |
| 326 | cut.Size = Vector3.new(12, 0.5, 12) |
| 327 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 6 * edgePerp, edgeDir, normalV) |
| 328 | cut.BrickColor = BrickColor.new("Bright orange") |
| 329 | cut.Material = Enum.Material.Glacier |
| 330 | cut.MaterialVariant = "2022 Glue" |
| 331 | cut.Anchored = true; cut.Parent = workspace |
| 332 | table.insert(angBoxes, cut) |
| 333 | end |
| 334 | do |
| 335 | local edgeDir = -1*rightV + 0*upV |
| 336 | local edgePerp = 0*rightV + -1*upV |
| 337 | local cut = Instance.new("Part") |
| 338 | cut.Size = Vector3.new(12, 0.5, 12) |
| 339 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 6 * edgePerp, edgeDir, normalV) |
| 340 | cut.BrickColor = BrickColor.new("Bright orange") |
| 341 | cut.Material = Enum.Material.Glacier |
| 342 | cut.MaterialVariant = "2022 Glue" |
| 343 | cut.Anchored = true; cut.Parent = workspace |
| 344 | table.insert(angBoxes, cut) |
| 345 | end |
| 346 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 347 | if #cuts > 0 then |
| 348 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 349 | for _, c in ipairs(cuts) do c:Destroy() end |
| 350 | if ok and result then |
| 351 | cyl:Destroy() |
| 352 | result.Name = "Dorsal_Main"; result.Anchored = true; result.Parent = model |
| 353 | else |
| 354 | cyl.Name = "Dorsal_Main"; cyl.Parent = model |
| 355 | end |
| 356 | else |
| 357 | cyl.Name = "Dorsal_Main"; cyl.Parent = model |
| 358 | end |
| 359 | end |
| 360 | do |
| 361 | local rightV = Vector3.new(0,0,1).Unit |
| 362 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 363 | local normalV = upV:Cross(rightV) |
| 364 | local pos = Vector3.new(0, 1.88, -1) |
| 365 | local cyl = Instance.new("Part") |
| 366 | cyl.Shape = Enum.PartType.Cylinder |
| 367 | cyl.Size = Vector3.new(0.35, 6, 6) |
| 368 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 369 | cyl.BrickColor = BrickColor.new("Really black") |
| 370 | cyl.Material = Enum.Material.Glacier |
| 371 | cyl.MaterialVariant = "2022 Glue" |
| 372 | cyl.Anchored = true; cyl.Parent = workspace |
| 373 | local cuts = {} |
| 374 | local hole = Instance.new("Part") |
| 375 | hole.Shape = Enum.PartType.Cylinder |
| 376 | hole.Size = Vector3.new(0.55, 5.6, 5.6) |
| 377 | hole.CFrame = cyl.CFrame |
| 378 | hole.BrickColor = BrickColor.new("Really black") |
| 379 | hole.Material = Enum.Material.Glacier |
| 380 | hole.MaterialVariant = "2022 Glue" |
| 381 | hole.Anchored = true; hole.Parent = workspace |
| 382 | table.insert(cuts, hole) |
| 383 | local angBoxes = {} |
| 384 | do |
| 385 | local edgeDir = 1*rightV + 0*upV |
| 386 | local edgePerp = 0*rightV + 1*upV |
| 387 | local cut = Instance.new("Part") |
| 388 | cut.Size = Vector3.new(12, 0.55, 12) |
| 389 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 6 * edgePerp, edgeDir, normalV) |
| 390 | cut.BrickColor = BrickColor.new("Really black") |
| 391 | cut.Material = Enum.Material.Glacier |
| 392 | cut.MaterialVariant = "2022 Glue" |
| 393 | cut.Anchored = true; cut.Parent = workspace |
| 394 | table.insert(angBoxes, cut) |
| 395 | end |
| 396 | do |
| 397 | local edgeDir = -1*rightV + 0*upV |
| 398 | local edgePerp = 0*rightV + -1*upV |
| 399 | local cut = Instance.new("Part") |
| 400 | cut.Size = Vector3.new(12, 0.55, 12) |
| 401 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 6 * edgePerp, edgeDir, normalV) |
| 402 | cut.BrickColor = BrickColor.new("Really black") |
| 403 | cut.Material = Enum.Material.Glacier |
| 404 | cut.MaterialVariant = "2022 Glue" |
| 405 | cut.Anchored = true; cut.Parent = workspace |
| 406 | table.insert(angBoxes, cut) |
| 407 | end |
| 408 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 409 | if #cuts > 0 then |
| 410 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 411 | for _, c in ipairs(cuts) do c:Destroy() end |
| 412 | if ok and result then |
| 413 | cyl:Destroy() |
| 414 | result.Name = "Dorsal_Edge"; result.Anchored = true; result.Parent = model |
| 415 | else |
| 416 | cyl.Name = "Dorsal_Edge"; cyl.Parent = model |
| 417 | end |
| 418 | else |
| 419 | cyl.Name = "Dorsal_Edge"; cyl.Parent = model |
| 420 | end |
| 421 | end |
| 422 | do |
| 423 | local rightV = Vector3.new(0,0,1).Unit |
| 424 | local upV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(rightV)*rightV).Unit |
| 425 | local normalV = upV:Cross(rightV) |
| 426 | local pos = Vector3.new(1.5, -0.5, -1.5) |
| 427 | local cyl = Instance.new("Part") |
| 428 | cyl.Shape = Enum.PartType.Cylinder |
| 429 | cyl.Size = Vector3.new(0.2, 4, 4) |
| 430 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 431 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 432 | cyl.Material = Enum.Material.Glacier |
| 433 | cyl.MaterialVariant = "2022 Glue" |
| 434 | cyl.Anchored = true; cyl.Parent = workspace |
| 435 | local cuts = {} |
| 436 | local angBoxes = {} |
| 437 | do |
| 438 | local edgeDir = 1*rightV + 0*upV |
| 439 | local edgePerp = 0*rightV + 1*upV |
| 440 | local cut = Instance.new("Part") |
| 441 | cut.Size = Vector3.new(8, 0.4, 8) |
| 442 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 4 * edgePerp, edgeDir, normalV) |
| 443 | cut.BrickColor = BrickColor.new("Bright orange") |
| 444 | cut.Material = Enum.Material.Glacier |
| 445 | cut.MaterialVariant = "2022 Glue" |
| 446 | cut.Anchored = true; cut.Parent = workspace |
| 447 | table.insert(angBoxes, cut) |
| 448 | end |
| 449 | do |
| 450 | local edgeDir = -0.939693*rightV + 0.34202*upV |
| 451 | local edgePerp = -0.34202*rightV + -0.939693*upV |
| 452 | local cut = Instance.new("Part") |
| 453 | cut.Size = Vector3.new(8, 0.4, 8) |
| 454 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 4 * edgePerp, edgeDir, normalV) |
| 455 | cut.BrickColor = BrickColor.new("Bright orange") |
| 456 | cut.Material = Enum.Material.Glacier |
| 457 | cut.MaterialVariant = "2022 Glue" |
| 458 | cut.Anchored = true; cut.Parent = workspace |
| 459 | table.insert(angBoxes, cut) |
| 460 | end |
| 461 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 462 | if #cuts > 0 then |
| 463 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 464 | for _, c in ipairs(cuts) do c:Destroy() end |
| 465 | if ok and result then |
| 466 | cyl:Destroy() |
| 467 | result.Name = "Pect_R_Main"; result.Anchored = true; result.Parent = model |
| 468 | else |
| 469 | cyl.Name = "Pect_R_Main"; cyl.Parent = model |
| 470 | end |
| 471 | else |
| 472 | cyl.Name = "Pect_R_Main"; cyl.Parent = model |
| 473 | end |
| 474 | end |
| 475 | do |
| 476 | local rightV = Vector3.new(0,0,1).Unit |
| 477 | local upV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(rightV)*rightV).Unit |
| 478 | local normalV = upV:Cross(rightV) |
| 479 | local pos = Vector3.new(1.54, -0.5, -1.5) |
| 480 | local cyl = Instance.new("Part") |
| 481 | cyl.Shape = Enum.PartType.Cylinder |
| 482 | cyl.Size = Vector3.new(0.25, 4, 4) |
| 483 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 484 | cyl.BrickColor = BrickColor.new("Really black") |
| 485 | cyl.Material = Enum.Material.Glacier |
| 486 | cyl.MaterialVariant = "2022 Glue" |
| 487 | cyl.Anchored = true; cyl.Parent = workspace |
| 488 | local cuts = {} |
| 489 | local hole = Instance.new("Part") |
| 490 | hole.Shape = Enum.PartType.Cylinder |
| 491 | hole.Size = Vector3.new(0.45, 3.6, 3.6) |
| 492 | hole.CFrame = cyl.CFrame |
| 493 | hole.BrickColor = BrickColor.new("Really black") |
| 494 | hole.Material = Enum.Material.Glacier |
| 495 | hole.MaterialVariant = "2022 Glue" |
| 496 | hole.Anchored = true; hole.Parent = workspace |
| 497 | table.insert(cuts, hole) |
| 498 | local angBoxes = {} |
| 499 | do |
| 500 | local edgeDir = 1*rightV + 0*upV |
| 501 | local edgePerp = 0*rightV + 1*upV |
| 502 | local cut = Instance.new("Part") |
| 503 | cut.Size = Vector3.new(8, 0.45, 8) |
| 504 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 4 * edgePerp, edgeDir, normalV) |
| 505 | cut.BrickColor = BrickColor.new("Really black") |
| 506 | cut.Material = Enum.Material.Glacier |
| 507 | cut.MaterialVariant = "2022 Glue" |
| 508 | cut.Anchored = true; cut.Parent = workspace |
| 509 | table.insert(angBoxes, cut) |
| 510 | end |
| 511 | do |
| 512 | local edgeDir = -0.939693*rightV + 0.34202*upV |
| 513 | local edgePerp = -0.34202*rightV + -0.939693*upV |
| 514 | local cut = Instance.new("Part") |
| 515 | cut.Size = Vector3.new(8, 0.45, 8) |
| 516 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 4 * edgePerp, edgeDir, normalV) |
| 517 | cut.BrickColor = BrickColor.new("Really black") |
| 518 | cut.Material = Enum.Material.Glacier |
| 519 | cut.MaterialVariant = "2022 Glue" |
| 520 | cut.Anchored = true; cut.Parent = workspace |
| 521 | table.insert(angBoxes, cut) |
| 522 | end |
| 523 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 524 | if #cuts > 0 then |
| 525 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 526 | for _, c in ipairs(cuts) do c:Destroy() end |
| 527 | if ok and result then |
| 528 | cyl:Destroy() |
| 529 | result.Name = "Pect_R_Edge"; result.Anchored = true; result.Parent = model |
| 530 | else |
| 531 | cyl.Name = "Pect_R_Edge"; cyl.Parent = model |
| 532 | end |
| 533 | else |
| 534 | cyl.Name = "Pect_R_Edge"; cyl.Parent = model |
| 535 | end |
| 536 | end |
| 537 | do |
| 538 | local rightV = Vector3.new(0,0,1).Unit |
| 539 | local upV = (Vector3.new(-1,0,0) - Vector3.new(-1,0,0):Dot(rightV)*rightV).Unit |
| 540 | local normalV = upV:Cross(rightV) |
| 541 | local pos = Vector3.new(-1.5, -0.5, -1.5) |
| 542 | local cyl = Instance.new("Part") |
| 543 | cyl.Shape = Enum.PartType.Cylinder |
| 544 | cyl.Size = Vector3.new(0.2, 4, 4) |
| 545 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 546 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 547 | cyl.Material = Enum.Material.Glacier |
| 548 | cyl.MaterialVariant = "2022 Glue" |
| 549 | cyl.Anchored = true; cyl.Parent = workspace |
| 550 | local cuts = {} |
| 551 | local angBoxes = {} |
| 552 | do |
| 553 | local edgeDir = 1*rightV + 0*upV |
| 554 | local edgePerp = 0*rightV + 1*upV |
| 555 | local cut = Instance.new("Part") |
| 556 | cut.Size = Vector3.new(8, 0.4, 8) |
| 557 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 4 * edgePerp, edgeDir, normalV) |
| 558 | cut.BrickColor = BrickColor.new("Bright orange") |
| 559 | cut.Material = Enum.Material.Glacier |
| 560 | cut.MaterialVariant = "2022 Glue" |
| 561 | cut.Anchored = true; cut.Parent = workspace |
| 562 | table.insert(angBoxes, cut) |
| 563 | end |
| 564 | do |
| 565 | local edgeDir = -0.939693*rightV + 0.34202*upV |
| 566 | local edgePerp = -0.34202*rightV + -0.939693*upV |
| 567 | local cut = Instance.new("Part") |
| 568 | cut.Size = Vector3.new(8, 0.4, 8) |
| 569 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 4 * edgePerp, edgeDir, normalV) |
| 570 | cut.BrickColor = BrickColor.new("Bright orange") |
| 571 | cut.Material = Enum.Material.Glacier |
| 572 | cut.MaterialVariant = "2022 Glue" |
| 573 | cut.Anchored = true; cut.Parent = workspace |
| 574 | table.insert(angBoxes, cut) |
| 575 | end |
| 576 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 577 | if #cuts > 0 then |
| 578 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 579 | for _, c in ipairs(cuts) do c:Destroy() end |
| 580 | if ok and result then |
| 581 | cyl:Destroy() |
| 582 | result.Name = "Pect_L_Main"; result.Anchored = true; result.Parent = model |
| 583 | else |
| 584 | cyl.Name = "Pect_L_Main"; cyl.Parent = model |
| 585 | end |
| 586 | else |
| 587 | cyl.Name = "Pect_L_Main"; cyl.Parent = model |
| 588 | end |
| 589 | end |
| 590 | do |
| 591 | local rightV = Vector3.new(0,0,1).Unit |
| 592 | local upV = (Vector3.new(-1,0,0) - Vector3.new(-1,0,0):Dot(rightV)*rightV).Unit |
| 593 | local normalV = upV:Cross(rightV) |
| 594 | local pos = Vector3.new(-1.46, -0.5, -1.5) |
| 595 | local cyl = Instance.new("Part") |
| 596 | cyl.Shape = Enum.PartType.Cylinder |
| 597 | cyl.Size = Vector3.new(0.25, 4, 4) |
| 598 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 599 | cyl.BrickColor = BrickColor.new("Really black") |
| 600 | cyl.Material = Enum.Material.Glacier |
| 601 | cyl.MaterialVariant = "2022 Glue" |
| 602 | cyl.Anchored = true; cyl.Parent = workspace |
| 603 | local cuts = {} |
| 604 | local hole = Instance.new("Part") |
| 605 | hole.Shape = Enum.PartType.Cylinder |
| 606 | hole.Size = Vector3.new(0.45, 3.6, 3.6) |
| 607 | hole.CFrame = cyl.CFrame |
| 608 | hole.BrickColor = BrickColor.new("Really black") |
| 609 | hole.Material = Enum.Material.Glacier |
| 610 | hole.MaterialVariant = "2022 Glue" |
| 611 | hole.Anchored = true; hole.Parent = workspace |
| 612 | table.insert(cuts, hole) |
| 613 | local angBoxes = {} |
| 614 | do |
| 615 | local edgeDir = 1*rightV + 0*upV |
| 616 | local edgePerp = 0*rightV + 1*upV |
| 617 | local cut = Instance.new("Part") |
| 618 | cut.Size = Vector3.new(8, 0.45, 8) |
| 619 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 4 * edgePerp, edgeDir, normalV) |
| 620 | cut.BrickColor = BrickColor.new("Really black") |
| 621 | cut.Material = Enum.Material.Glacier |
| 622 | cut.MaterialVariant = "2022 Glue" |
| 623 | cut.Anchored = true; cut.Parent = workspace |
| 624 | table.insert(angBoxes, cut) |
| 625 | end |
| 626 | do |
| 627 | local edgeDir = -0.939693*rightV + 0.34202*upV |
| 628 | local edgePerp = -0.34202*rightV + -0.939693*upV |
| 629 | local cut = Instance.new("Part") |
| 630 | cut.Size = Vector3.new(8, 0.45, 8) |
| 631 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 4 * edgePerp, edgeDir, normalV) |
| 632 | cut.BrickColor = BrickColor.new("Really black") |
| 633 | cut.Material = Enum.Material.Glacier |
| 634 | cut.MaterialVariant = "2022 Glue" |
| 635 | cut.Anchored = true; cut.Parent = workspace |
| 636 | table.insert(angBoxes, cut) |
| 637 | end |
| 638 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 639 | if #cuts > 0 then |
| 640 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 641 | for _, c in ipairs(cuts) do c:Destroy() end |
| 642 | if ok and result then |
| 643 | cyl:Destroy() |
| 644 | result.Name = "Pect_L_Edge"; result.Anchored = true; result.Parent = model |
| 645 | else |
| 646 | cyl.Name = "Pect_L_Edge"; cyl.Parent = model |
| 647 | end |
| 648 | else |
| 649 | cyl.Name = "Pect_L_Edge"; cyl.Parent = model |
| 650 | end |
| 651 | end |
| 652 | do |
| 653 | local rightV = Vector3.new(0,0,1).Unit |
| 654 | local upV = (Vector3.new(0,-1,0) - Vector3.new(0,-1,0):Dot(rightV)*rightV).Unit |
| 655 | local normalV = upV:Cross(rightV) |
| 656 | local pos = Vector3.new(0.6, -1.8, -2) |
| 657 | local cyl = Instance.new("Part") |
| 658 | cyl.Shape = Enum.PartType.Cylinder |
| 659 | cyl.Size = Vector3.new(0.2, 3, 3) |
| 660 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 661 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 662 | cyl.Material = Enum.Material.Glacier |
| 663 | cyl.MaterialVariant = "2022 Glue" |
| 664 | cyl.Anchored = true; cyl.Parent = workspace |
| 665 | local cuts = {} |
| 666 | local angBoxes = {} |
| 667 | do |
| 668 | local edgeDir = 1*rightV + 0*upV |
| 669 | local edgePerp = 0*rightV + 1*upV |
| 670 | local cut = Instance.new("Part") |
| 671 | cut.Size = Vector3.new(6, 0.4, 6) |
| 672 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 3 * edgePerp, edgeDir, normalV) |
| 673 | cut.BrickColor = BrickColor.new("Bright orange") |
| 674 | cut.Material = Enum.Material.Glacier |
| 675 | cut.MaterialVariant = "2022 Glue" |
| 676 | cut.Anchored = true; cut.Parent = workspace |
| 677 | table.insert(angBoxes, cut) |
| 678 | end |
| 679 | do |
| 680 | local edgeDir = -0.5*rightV + 0.866025*upV |
| 681 | local edgePerp = -0.866025*rightV + -0.5*upV |
| 682 | local cut = Instance.new("Part") |
| 683 | cut.Size = Vector3.new(6, 0.4, 6) |
| 684 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 3 * edgePerp, edgeDir, normalV) |
| 685 | cut.BrickColor = BrickColor.new("Bright orange") |
| 686 | cut.Material = Enum.Material.Glacier |
| 687 | cut.MaterialVariant = "2022 Glue" |
| 688 | cut.Anchored = true; cut.Parent = workspace |
| 689 | table.insert(angBoxes, cut) |
| 690 | end |
| 691 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 692 | if #cuts > 0 then |
| 693 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 694 | for _, c in ipairs(cuts) do c:Destroy() end |
| 695 | if ok and result then |
| 696 | cyl:Destroy() |
| 697 | result.Name = "Pelvic_R"; result.Anchored = true; result.Parent = model |
| 698 | else |
| 699 | cyl.Name = "Pelvic_R"; cyl.Parent = model |
| 700 | end |
| 701 | else |
| 702 | cyl.Name = "Pelvic_R"; cyl.Parent = model |
| 703 | end |
| 704 | end |
| 705 | do |
| 706 | local rightV = Vector3.new(0,0,1).Unit |
| 707 | local upV = (Vector3.new(0,-1,0) - Vector3.new(0,-1,0):Dot(rightV)*rightV).Unit |
| 708 | local normalV = upV:Cross(rightV) |
| 709 | local pos = Vector3.new(-0.6, -1.8, -2) |
| 710 | local cyl = Instance.new("Part") |
| 711 | cyl.Shape = Enum.PartType.Cylinder |
| 712 | cyl.Size = Vector3.new(0.2, 3, 3) |
| 713 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 714 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 715 | cyl.Material = Enum.Material.Glacier |
| 716 | cyl.MaterialVariant = "2022 Glue" |
| 717 | cyl.Anchored = true; cyl.Parent = workspace |
| 718 | local cuts = {} |
| 719 | local angBoxes = {} |
| 720 | do |
| 721 | local edgeDir = 1*rightV + 0*upV |
| 722 | local edgePerp = 0*rightV + 1*upV |
| 723 | local cut = Instance.new("Part") |
| 724 | cut.Size = Vector3.new(6, 0.4, 6) |
| 725 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 3 * edgePerp, edgeDir, normalV) |
| 726 | cut.BrickColor = BrickColor.new("Bright orange") |
| 727 | cut.Material = Enum.Material.Glacier |
| 728 | cut.MaterialVariant = "2022 Glue" |
| 729 | cut.Anchored = true; cut.Parent = workspace |
| 730 | table.insert(angBoxes, cut) |
| 731 | end |
| 732 | do |
| 733 | local edgeDir = -0.5*rightV + 0.866025*upV |
| 734 | local edgePerp = -0.866025*rightV + -0.5*upV |
| 735 | local cut = Instance.new("Part") |
| 736 | cut.Size = Vector3.new(6, 0.4, 6) |
| 737 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 3 * edgePerp, edgeDir, normalV) |
| 738 | cut.BrickColor = BrickColor.new("Bright orange") |
| 739 | cut.Material = Enum.Material.Glacier |
| 740 | cut.MaterialVariant = "2022 Glue" |
| 741 | cut.Anchored = true; cut.Parent = workspace |
| 742 | table.insert(angBoxes, cut) |
| 743 | end |
| 744 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 745 | if #cuts > 0 then |
| 746 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 747 | for _, c in ipairs(cuts) do c:Destroy() end |
| 748 | if ok and result then |
| 749 | cyl:Destroy() |
| 750 | result.Name = "Pelvic_L"; result.Anchored = true; result.Parent = model |
| 751 | else |
| 752 | cyl.Name = "Pelvic_L"; cyl.Parent = model |
| 753 | end |
| 754 | else |
| 755 | cyl.Name = "Pelvic_L"; cyl.Parent = model |
| 756 | end |
| 757 | end |
| 758 | do |
| 759 | local rightV = Vector3.new(0,0,1).Unit |
| 760 | local upV = (Vector3.new(0,-1,0) - Vector3.new(0,-1,0):Dot(rightV)*rightV).Unit |
| 761 | local normalV = upV:Cross(rightV) |
| 762 | local pos = Vector3.new(0, -1.84, 2.5) |
| 763 | local cyl = Instance.new("Part") |
| 764 | cyl.Shape = Enum.PartType.Cylinder |
| 765 | cyl.Size = Vector3.new(0.3, 3.6, 3.6) |
| 766 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 767 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 768 | cyl.Material = Enum.Material.Glacier |
| 769 | cyl.MaterialVariant = "2022 Glue" |
| 770 | cyl.Anchored = true; cyl.Parent = workspace |
| 771 | local cuts = {} |
| 772 | local angBoxes = {} |
| 773 | do |
| 774 | local edgeDir = 1*rightV + 0*upV |
| 775 | local edgePerp = 0*rightV + 1*upV |
| 776 | local cut = Instance.new("Part") |
| 777 | cut.Size = Vector3.new(7.2, 0.5, 7.2) |
| 778 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 3.6 * edgePerp, edgeDir, normalV) |
| 779 | cut.BrickColor = BrickColor.new("Bright orange") |
| 780 | cut.Material = Enum.Material.Glacier |
| 781 | cut.MaterialVariant = "2022 Glue" |
| 782 | cut.Anchored = true; cut.Parent = workspace |
| 783 | table.insert(angBoxes, cut) |
| 784 | end |
| 785 | do |
| 786 | local edgeDir = -0.766044*rightV + 0.642788*upV |
| 787 | local edgePerp = -0.642788*rightV + -0.766044*upV |
| 788 | local cut = Instance.new("Part") |
| 789 | cut.Size = Vector3.new(7.2, 0.5, 7.2) |
| 790 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 3.6 * edgePerp, edgeDir, normalV) |
| 791 | cut.BrickColor = BrickColor.new("Bright orange") |
| 792 | cut.Material = Enum.Material.Glacier |
| 793 | cut.MaterialVariant = "2022 Glue" |
| 794 | cut.Anchored = true; cut.Parent = workspace |
| 795 | table.insert(angBoxes, cut) |
| 796 | end |
| 797 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 798 | if #cuts > 0 then |
| 799 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 800 | for _, c in ipairs(cuts) do c:Destroy() end |
| 801 | if ok and result then |
| 802 | cyl:Destroy() |
| 803 | result.Name = "Anal_Main"; result.Anchored = true; result.Parent = model |
| 804 | else |
| 805 | cyl.Name = "Anal_Main"; cyl.Parent = model |
| 806 | end |
| 807 | else |
| 808 | cyl.Name = "Anal_Main"; cyl.Parent = model |
| 809 | end |
| 810 | end |
| 811 | do |
| 812 | local rightV = Vector3.new(0,0,1).Unit |
| 813 | local upV = (Vector3.new(0,-1,0) - Vector3.new(0,-1,0):Dot(rightV)*rightV).Unit |
| 814 | local normalV = upV:Cross(rightV) |
| 815 | local pos = Vector3.new(0, -1.76, 2.5) |
| 816 | local cyl = Instance.new("Part") |
| 817 | cyl.Shape = Enum.PartType.Cylinder |
| 818 | cyl.Size = Vector3.new(0.35, 3.6, 3.6) |
| 819 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 820 | cyl.BrickColor = BrickColor.new("Really black") |
| 821 | cyl.Material = Enum.Material.Glacier |
| 822 | cyl.MaterialVariant = "2022 Glue" |
| 823 | cyl.Anchored = true; cyl.Parent = workspace |
| 824 | local cuts = {} |
| 825 | local hole = Instance.new("Part") |
| 826 | hole.Shape = Enum.PartType.Cylinder |
| 827 | hole.Size = Vector3.new(0.55, 3.2, 3.2) |
| 828 | hole.CFrame = cyl.CFrame |
| 829 | hole.BrickColor = BrickColor.new("Really black") |
| 830 | hole.Material = Enum.Material.Glacier |
| 831 | hole.MaterialVariant = "2022 Glue" |
| 832 | hole.Anchored = true; hole.Parent = workspace |
| 833 | table.insert(cuts, hole) |
| 834 | local angBoxes = {} |
| 835 | do |
| 836 | local edgeDir = 1*rightV + 0*upV |
| 837 | local edgePerp = 0*rightV + 1*upV |
| 838 | local cut = Instance.new("Part") |
| 839 | cut.Size = Vector3.new(7.2, 0.55, 7.2) |
| 840 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 3.6 * edgePerp, edgeDir, normalV) |
| 841 | cut.BrickColor = BrickColor.new("Really black") |
| 842 | cut.Material = Enum.Material.Glacier |
| 843 | cut.MaterialVariant = "2022 Glue" |
| 844 | cut.Anchored = true; cut.Parent = workspace |
| 845 | table.insert(angBoxes, cut) |
| 846 | end |
| 847 | do |
| 848 | local edgeDir = -0.766044*rightV + 0.642788*upV |
| 849 | local edgePerp = -0.642788*rightV + -0.766044*upV |
| 850 | local cut = Instance.new("Part") |
| 851 | cut.Size = Vector3.new(7.2, 0.55, 7.2) |
| 852 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 3.6 * edgePerp, edgeDir, normalV) |
| 853 | cut.BrickColor = BrickColor.new("Really black") |
| 854 | cut.Material = Enum.Material.Glacier |
| 855 | cut.MaterialVariant = "2022 Glue" |
| 856 | cut.Anchored = true; cut.Parent = workspace |
| 857 | table.insert(angBoxes, cut) |
| 858 | end |
| 859 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 860 | if #cuts > 0 then |
| 861 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 862 | for _, c in ipairs(cuts) do c:Destroy() end |
| 863 | if ok and result then |
| 864 | cyl:Destroy() |
| 865 | result.Name = "Anal_Edge"; result.Anchored = true; result.Parent = model |
| 866 | else |
| 867 | cyl.Name = "Anal_Edge"; cyl.Parent = model |
| 868 | end |
| 869 | else |
| 870 | cyl.Name = "Anal_Edge"; cyl.Parent = model |
| 871 | end |
| 872 | end |
| 873 | do |
| 874 | local rightV = Vector3.new(0,1,0).Unit |
| 875 | local upV = (Vector3.new(0,0,1) - Vector3.new(0,0,1):Dot(rightV)*rightV).Unit |
| 876 | local normalV = upV:Cross(rightV) |
| 877 | local pos = Vector3.new(0, 0, 5.8) |
| 878 | local cyl = Instance.new("Part") |
| 879 | cyl.Shape = Enum.PartType.Cylinder |
| 880 | cyl.Size = Vector3.new(0.3, 7, 7) |
| 881 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 882 | cyl.BrickColor = BrickColor.new("Bright orange") |
| 883 | cyl.Material = Enum.Material.Glacier |
| 884 | cyl.MaterialVariant = "2022 Glue" |
| 885 | cyl.Anchored = true; cyl.Parent = workspace |
| 886 | local cuts = {} |
| 887 | local angBoxes = {} |
| 888 | do |
| 889 | local edgeDir = 0.34202*rightV + -0.939693*upV |
| 890 | local edgePerp = 0.939693*rightV + 0.34202*upV |
| 891 | local cut = Instance.new("Part") |
| 892 | cut.Size = Vector3.new(14, 0.5, 14) |
| 893 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 7 * edgePerp, edgeDir, normalV) |
| 894 | cut.BrickColor = BrickColor.new("Bright orange") |
| 895 | cut.Material = Enum.Material.Glacier |
| 896 | cut.MaterialVariant = "2022 Glue" |
| 897 | cut.Anchored = true; cut.Parent = workspace |
| 898 | table.insert(angBoxes, cut) |
| 899 | end |
| 900 | do |
| 901 | local edgeDir = 0.34202*rightV + 0.939693*upV |
| 902 | local edgePerp = -0.939693*rightV + 0.34202*upV |
| 903 | local cut = Instance.new("Part") |
| 904 | cut.Size = Vector3.new(14, 0.5, 14) |
| 905 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 7 * edgePerp, edgeDir, normalV) |
| 906 | cut.BrickColor = BrickColor.new("Bright orange") |
| 907 | cut.Material = Enum.Material.Glacier |
| 908 | cut.MaterialVariant = "2022 Glue" |
| 909 | cut.Anchored = true; cut.Parent = workspace |
| 910 | table.insert(angBoxes, cut) |
| 911 | end |
| 912 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 913 | if #cuts > 0 then |
| 914 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 915 | for _, c in ipairs(cuts) do c:Destroy() end |
| 916 | if ok and result then |
| 917 | cyl:Destroy() |
| 918 | result.Name = "Tail_Main"; result.Anchored = true; result.Parent = model |
| 919 | else |
| 920 | cyl.Name = "Tail_Main"; cyl.Parent = model |
| 921 | end |
| 922 | else |
| 923 | cyl.Name = "Tail_Main"; cyl.Parent = model |
| 924 | end |
| 925 | end |
| 926 | do |
| 927 | local rightV = Vector3.new(0,1,0).Unit |
| 928 | local upV = (Vector3.new(0,0,1) - Vector3.new(0,0,1):Dot(rightV)*rightV).Unit |
| 929 | local normalV = upV:Cross(rightV) |
| 930 | local pos = Vector3.new(0, 0.037588, 5.813681) |
| 931 | local cyl = Instance.new("Part") |
| 932 | cyl.Shape = Enum.PartType.Cylinder |
| 933 | cyl.Size = Vector3.new(0.35, 7, 7) |
| 934 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 935 | cyl.BrickColor = BrickColor.new("Really black") |
| 936 | cyl.Material = Enum.Material.Glacier |
| 937 | cyl.MaterialVariant = "2022 Glue" |
| 938 | cyl.Anchored = true; cyl.Parent = workspace |
| 939 | local cuts = {} |
| 940 | local hole = Instance.new("Part") |
| 941 | hole.Shape = Enum.PartType.Cylinder |
| 942 | hole.Size = Vector3.new(0.55, 6.4, 6.4) |
| 943 | hole.CFrame = cyl.CFrame |
| 944 | hole.BrickColor = BrickColor.new("Really black") |
| 945 | hole.Material = Enum.Material.Glacier |
| 946 | hole.MaterialVariant = "2022 Glue" |
| 947 | hole.Anchored = true; hole.Parent = workspace |
| 948 | table.insert(cuts, hole) |
| 949 | local angBoxes = {} |
| 950 | do |
| 951 | local edgeDir = 0.34202*rightV + -0.939693*upV |
| 952 | local edgePerp = 0.939693*rightV + 0.34202*upV |
| 953 | local cut = Instance.new("Part") |
| 954 | cut.Size = Vector3.new(14, 0.55, 14) |
| 955 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 7 * edgePerp, edgeDir, normalV) |
| 956 | cut.BrickColor = BrickColor.new("Really black") |
| 957 | cut.Material = Enum.Material.Glacier |
| 958 | cut.MaterialVariant = "2022 Glue" |
| 959 | cut.Anchored = true; cut.Parent = workspace |
| 960 | table.insert(angBoxes, cut) |
| 961 | end |
| 962 | do |
| 963 | local edgeDir = 0.34202*rightV + 0.939693*upV |
| 964 | local edgePerp = -0.939693*rightV + 0.34202*upV |
| 965 | local cut = Instance.new("Part") |
| 966 | cut.Size = Vector3.new(14, 0.55, 14) |
| 967 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 7 * edgePerp, edgeDir, normalV) |
| 968 | cut.BrickColor = BrickColor.new("Really black") |
| 969 | cut.Material = Enum.Material.Glacier |
| 970 | cut.MaterialVariant = "2022 Glue" |
| 971 | cut.Anchored = true; cut.Parent = workspace |
| 972 | table.insert(angBoxes, cut) |
| 973 | end |
| 974 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 975 | if #cuts > 0 then |
| 976 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 977 | for _, c in ipairs(cuts) do c:Destroy() end |
| 978 | if ok and result then |
| 979 | cyl:Destroy() |
| 980 | result.Name = "Tail_Edge"; result.Anchored = true; result.Parent = model |
| 981 | else |
| 982 | cyl.Name = "Tail_Edge"; cyl.Parent = model |
| 983 | end |
| 984 | else |
| 985 | cyl.Name = "Tail_Edge"; cyl.Parent = model |
| 986 | end |
| 987 | end |
| 988 | model.PrimaryPart = model:FindFirstChild("Mid_1") |
| 989 | print("Clownfish built: " .. #model:GetChildren() .. " parts") |
Loading comments...