Loading model...
by tft23 t2ft · 10/1/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: SkeletonHorse |
| 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 = "SkeletonHorse" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Really black"] = "2022 Universal", |
| 25 | ["White"] = "2022 Stud", |
| 26 | } |
| 27 | do |
| 28 | local p = Instance.new("Part") |
| 29 | p.Name = "Spine" |
| 30 | p.Size = Vector3.new(8.5, 1.2, 1.2) |
| 31 | p.CFrame = CFrame.new(0, 9.5, 0.25) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)) |
| 32 | p.BrickColor = BrickColor.new("White") |
| 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 = "Vertebra_0" |
| 41 | p.Size = Vector3.new(0.4, 0.6, 0.8) |
| 42 | p.CFrame = CFrame.new(0, 10.24, -3) |
| 43 | p.BrickColor = BrickColor.new("White") |
| 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 = "Vertebra_1" |
| 52 | p.Size = Vector3.new(0.4, 0.6, 0.8) |
| 53 | p.CFrame = CFrame.new(0, 10.2, -1.96) |
| 54 | p.BrickColor = BrickColor.new("White") |
| 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 = "Vertebra_2" |
| 63 | p.Size = Vector3.new(0.4, 0.6, 0.8) |
| 64 | p.CFrame = CFrame.new(0, 10.2, -1) |
| 65 | p.BrickColor = BrickColor.new("White") |
| 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 = "Vertebra_3" |
| 74 | p.Size = Vector3.new(0.4, 0.6, 0.8) |
| 75 | p.CFrame = CFrame.new(0, 10.2, 0) |
| 76 | p.BrickColor = BrickColor.new("White") |
| 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 = "Vertebra_4" |
| 85 | p.Size = Vector3.new(0.4, 0.6, 0.8) |
| 86 | p.CFrame = CFrame.new(0, 10.2, 1) |
| 87 | p.BrickColor = BrickColor.new("White") |
| 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 = "Vertebra_5" |
| 96 | p.Size = Vector3.new(0.4, 0.6, 0.8) |
| 97 | p.CFrame = CFrame.new(0, 10.2, 2) |
| 98 | p.BrickColor = BrickColor.new("White") |
| 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 = "Vertebra_6" |
| 107 | p.Size = Vector3.new(0.4, 0.6, 0.8) |
| 108 | p.CFrame = CFrame.new(0, 10.2, 3) |
| 109 | p.BrickColor = BrickColor.new("White") |
| 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 = "Vertebra_7" |
| 118 | p.Size = Vector3.new(0.4, 0.6, 0.8) |
| 119 | p.CFrame = CFrame.new(0, 10.2, 4) |
| 120 | p.BrickColor = BrickColor.new("White") |
| 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 = "Pelvis" |
| 129 | p.Size = Vector3.new(2.8, 1.8, 2.5) |
| 130 | p.CFrame = CFrame.new(0, 9.5, 3.5) |
| 131 | p.BrickColor = BrickColor.new("White") |
| 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 = "Shoulders" |
| 140 | p.Size = Vector3.new(2.8, 2, 2.2) |
| 141 | p.CFrame = CFrame.new(0, 9.5, -3.5) |
| 142 | p.BrickColor = BrickColor.new("White") |
| 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 = "Neck" |
| 151 | p.Size = Vector3.new(5, 1.2, 1.2) |
| 152 | p.CFrame = CFrame.new(0.04, 11.5, -5) * CFrame.Angles(math.rad(53.1301), math.rad(90), math.rad(0)) |
| 153 | p.BrickColor = BrickColor.new("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 = "Cranium" |
| 162 | p.Size = Vector3.new(2, 2.4, 2.4) |
| 163 | p.CFrame = CFrame.new(0, 14, -7) |
| 164 | p.BrickColor = BrickColor.new("White") |
| 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 = "Snout" |
| 173 | p.Size = Vector3.new(1.2, 1.5, 2.4) |
| 174 | p.CFrame = CFrame.new(0, 12.8, -8.8) * CFrame.Angles(math.rad(-25), math.rad(0), math.rad(0)) |
| 175 | p.BrickColor = BrickColor.new("White") |
| 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 = "Jaw" |
| 184 | p.Size = Vector3.new(1, 0.8, 2.2) |
| 185 | p.CFrame = CFrame.new(0, 12, -8.5) * CFrame.Angles(math.rad(-55), math.rad(0), math.rad(0)) |
| 186 | p.BrickColor = BrickColor.new("White") |
| 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 = "CheekL" |
| 195 | p.Size = Vector3.new(0.4, 1, 1.5) |
| 196 | p.CFrame = CFrame.new(-1, 13.2, -7.5) * CFrame.Angles(math.rad(0), math.rad(-15), math.rad(0)) |
| 197 | p.BrickColor = BrickColor.new("White") |
| 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 = "CheekR" |
| 206 | p.Size = Vector3.new(0.4, 1, 1.5) |
| 207 | p.CFrame = CFrame.new(1, 13.2, -7.5) * CFrame.Angles(math.rad(0), math.rad(15), math.rad(0)) |
| 208 | p.BrickColor = BrickColor.new("White") |
| 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.Shape = Enum.PartType.Ball |
| 217 | p.Name = "EyeL" |
| 218 | p.Size = Vector3.new(0.8, 0.8, 0.8) |
| 219 | p.CFrame = CFrame.new(-0.9, 14.2, -7.2) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)) |
| 220 | p.BrickColor = BrickColor.new("Really black") |
| 221 | p.Material = Enum.Material.Glacier |
| 222 | p.MaterialVariant = "2022 Universal" |
| 223 | p.Anchored = true |
| 224 | p.Parent = model |
| 225 | end |
| 226 | do |
| 227 | local p = Instance.new("Part") |
| 228 | p.Shape = Enum.PartType.Ball |
| 229 | p.Name = "EyeR" |
| 230 | p.Size = Vector3.new(0.8, 0.8, 0.8) |
| 231 | p.CFrame = CFrame.new(0.9, 14.2, -7.2) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)) |
| 232 | p.BrickColor = BrickColor.new("Really black") |
| 233 | p.Material = Enum.Material.Glacier |
| 234 | p.MaterialVariant = "2022 Universal" |
| 235 | p.Anchored = true |
| 236 | p.Parent = model |
| 237 | end |
| 238 | do |
| 239 | local p = Instance.new("Part") |
| 240 | p.Shape = Enum.PartType.Ball |
| 241 | p.Name = "NoseL" |
| 242 | p.Size = Vector3.new(0.4, 0.4, 0.4) |
| 243 | p.CFrame = CFrame.new(-0.3, 12.4, -9.7) |
| 244 | p.BrickColor = BrickColor.new("Really black") |
| 245 | p.Material = Enum.Material.Glacier |
| 246 | p.MaterialVariant = "2022 Universal" |
| 247 | p.Anchored = true |
| 248 | p.Parent = model |
| 249 | end |
| 250 | do |
| 251 | local p = Instance.new("Part") |
| 252 | p.Shape = Enum.PartType.Ball |
| 253 | p.Name = "NoseR" |
| 254 | p.Size = Vector3.new(0.4, 0.4, 0.4) |
| 255 | p.CFrame = CFrame.new(0.3, 12.4, -9.7) |
| 256 | p.BrickColor = BrickColor.new("Really black") |
| 257 | p.Material = Enum.Material.Glacier |
| 258 | p.MaterialVariant = "2022 Universal" |
| 259 | p.Anchored = true |
| 260 | p.Parent = model |
| 261 | end |
| 262 | do |
| 263 | local p = Instance.new("Part") |
| 264 | p.Name = "EarL" |
| 265 | p.Size = Vector3.new(0.3, 1.2, 0.5) |
| 266 | p.CFrame = CFrame.new(-0.7, 15.5, -6.5) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-25)) |
| 267 | p.BrickColor = BrickColor.new("White") |
| 268 | p.Material = Enum.Material.Glacier |
| 269 | p.MaterialVariant = "2022 Stud" |
| 270 | p.Anchored = true |
| 271 | p.Parent = model |
| 272 | end |
| 273 | do |
| 274 | local p = Instance.new("Part") |
| 275 | p.Name = "EarR" |
| 276 | p.Size = Vector3.new(0.3, 1.2, 0.5) |
| 277 | p.CFrame = CFrame.new(0.7, 15.5, -6.5) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(25)) |
| 278 | p.BrickColor = BrickColor.new("White") |
| 279 | p.Material = Enum.Material.Glacier |
| 280 | p.MaterialVariant = "2022 Stud" |
| 281 | p.Anchored = true |
| 282 | p.Parent = model |
| 283 | end |
| 284 | do |
| 285 | local p = Instance.new("Part") |
| 286 | p.Name = "Mane1" |
| 287 | p.Size = Vector3.new(0.8, 2, 1.5) |
| 288 | p.CFrame = CFrame.new(0.08, 14.5, -6.5) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)) |
| 289 | p.BrickColor = BrickColor.new("Really black") |
| 290 | p.Material = Enum.Material.Glacier |
| 291 | p.MaterialVariant = "2022 Universal" |
| 292 | p.Anchored = true |
| 293 | p.Parent = model |
| 294 | end |
| 295 | do |
| 296 | local p = Instance.new("Part") |
| 297 | p.Name = "Mane2" |
| 298 | p.Size = Vector3.new(0.8, 2.5, 2) |
| 299 | p.CFrame = CFrame.new(0.04, 13.5, -5.5) * CFrame.Angles(math.rad(-35), math.rad(0), math.rad(0)) |
| 300 | p.BrickColor = BrickColor.new("Really black") |
| 301 | p.Material = Enum.Material.Glacier |
| 302 | p.MaterialVariant = "2022 Universal" |
| 303 | p.Anchored = true |
| 304 | p.Parent = model |
| 305 | end |
| 306 | do |
| 307 | local p = Instance.new("Part") |
| 308 | p.Name = "Mane3" |
| 309 | p.Size = Vector3.new(0.8, 3, 2.5) |
| 310 | p.CFrame = CFrame.new(0, 12, -4.5) * CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0)) |
| 311 | p.BrickColor = BrickColor.new("Really black") |
| 312 | p.Material = Enum.Material.Glacier |
| 313 | p.MaterialVariant = "2022 Universal" |
| 314 | p.Anchored = true |
| 315 | p.Parent = model |
| 316 | end |
| 317 | do |
| 318 | local p = Instance.new("Part") |
| 319 | p.Name = "Forelock" |
| 320 | p.Size = Vector3.new(0.9, 1.5, 0.8) |
| 321 | p.CFrame = CFrame.new(-0.04, 14.8, -7.5) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(0)) |
| 322 | p.BrickColor = BrickColor.new("Really black") |
| 323 | p.Material = Enum.Material.Glacier |
| 324 | p.MaterialVariant = "2022 Universal" |
| 325 | p.Anchored = true |
| 326 | p.Parent = model |
| 327 | end |
| 328 | do |
| 329 | local p = Instance.new("Part") |
| 330 | p.Name = "Tail1" |
| 331 | p.Size = Vector3.new(3.45398, 1, 1.2) |
| 332 | p.CFrame = CFrame.new(-0.04, 7.6, 4.85) * CFrame.Angles(math.rad(67.8906), math.rad(-90), math.rad(0)) |
| 333 | p.BrickColor = BrickColor.new("Really black") |
| 334 | p.Material = Enum.Material.Glacier |
| 335 | p.MaterialVariant = "2022 Universal" |
| 336 | p.Anchored = true |
| 337 | p.Parent = model |
| 338 | end |
| 339 | do |
| 340 | local p = Instance.new("Part") |
| 341 | p.Name = "Tail2" |
| 342 | p.Size = Vector3.new(3.04138, 0.8, 1) |
| 343 | p.CFrame = CFrame.new(0, 4.5, 5.75) * CFrame.Angles(math.rad(80.5377), math.rad(-90), math.rad(0)) |
| 344 | p.BrickColor = BrickColor.new("Really black") |
| 345 | p.Material = Enum.Material.Glacier |
| 346 | p.MaterialVariant = "2022 Universal" |
| 347 | p.Anchored = true |
| 348 | p.Parent = model |
| 349 | end |
| 350 | do |
| 351 | local p = Instance.new("Part") |
| 352 | p.Name = "FL_Upper_L" |
| 353 | p.Size = Vector3.new(3.53553, 0.9, 0.9) |
| 354 | p.CFrame = CFrame.new(-1.4, 7.25, -3.25) * CFrame.Angles(math.rad(81.8699), math.rad(-90), math.rad(0)) |
| 355 | p.BrickColor = BrickColor.new("White") |
| 356 | p.Material = Enum.Material.Glacier |
| 357 | p.MaterialVariant = "2022 Stud" |
| 358 | p.Anchored = true |
| 359 | p.Parent = model |
| 360 | end |
| 361 | do |
| 362 | local p = Instance.new("Part") |
| 363 | p.Shape = Enum.PartType.Ball |
| 364 | p.Name = "FL_Knee_L" |
| 365 | p.Size = Vector3.new(1.1, 1.1, 1.1) |
| 366 | p.CFrame = CFrame.new(-1.4, 5.5, -3) |
| 367 | p.BrickColor = BrickColor.new("White") |
| 368 | p.Material = Enum.Material.Glacier |
| 369 | p.MaterialVariant = "2022 Stud" |
| 370 | p.Anchored = true |
| 371 | p.Parent = model |
| 372 | end |
| 373 | do |
| 374 | local p = Instance.new("Part") |
| 375 | p.Name = "FL_Lower_L" |
| 376 | p.Size = Vector3.new(4.03113, 0.7, 0.7) |
| 377 | p.CFrame = CFrame.new(-1.4, 3.5, -3.25) * CFrame.Angles(math.rad(-82.875), math.rad(90), math.rad(0)) |
| 378 | p.BrickColor = BrickColor.new("White") |
| 379 | p.Material = Enum.Material.Glacier |
| 380 | p.MaterialVariant = "2022 Stud" |
| 381 | p.Anchored = true |
| 382 | p.Parent = model |
| 383 | end |
| 384 | do |
| 385 | local p = Instance.new("Part") |
| 386 | p.Shape = Enum.PartType.Ball |
| 387 | p.Name = "FL_Fetlock_L" |
| 388 | p.Size = Vector3.new(0.9, 0.9, 0.9) |
| 389 | p.CFrame = CFrame.new(-1.4, 1.5, -3.5) |
| 390 | p.BrickColor = BrickColor.new("White") |
| 391 | p.Material = Enum.Material.Glacier |
| 392 | p.MaterialVariant = "2022 Stud" |
| 393 | p.Anchored = true |
| 394 | p.Parent = model |
| 395 | end |
| 396 | do |
| 397 | local p = Instance.new("Part") |
| 398 | p.Name = "FL_Pastern_L" |
| 399 | p.Size = Vector3.new(0.761577, 0.6, 0.6) |
| 400 | p.CFrame = CFrame.new(-1.4, 1.15, -3.65) * CFrame.Angles(math.rad(-66.8014), math.rad(90), math.rad(0)) |
| 401 | p.BrickColor = BrickColor.new("White") |
| 402 | p.Material = Enum.Material.Glacier |
| 403 | p.MaterialVariant = "2022 Stud" |
| 404 | p.Anchored = true |
| 405 | p.Parent = model |
| 406 | end |
| 407 | do |
| 408 | local p = Instance.new("Part") |
| 409 | p.Name = "FL_Hoof_L" |
| 410 | p.Size = Vector3.new(1.2, 0.8, 1.4) |
| 411 | p.CFrame = CFrame.new(-1.4, 0.4, -3.9) |
| 412 | p.BrickColor = BrickColor.new("Really black") |
| 413 | p.Material = Enum.Material.Glacier |
| 414 | p.MaterialVariant = "2022 Universal" |
| 415 | p.Anchored = true |
| 416 | p.Parent = model |
| 417 | end |
| 418 | do |
| 419 | local p = Instance.new("Part") |
| 420 | p.Name = "RL_Femur_L" |
| 421 | p.Size = Vector3.new(2.69258, 1.1, 1.1) |
| 422 | p.CFrame = CFrame.new(-1.4, 7.75, 4) * CFrame.Angles(math.rad(68.1986), math.rad(-90), math.rad(0)) |
| 423 | p.BrickColor = BrickColor.new("White") |
| 424 | p.Material = Enum.Material.Glacier |
| 425 | p.MaterialVariant = "2022 Stud" |
| 426 | p.Anchored = true |
| 427 | p.Parent = model |
| 428 | end |
| 429 | do |
| 430 | local p = Instance.new("Part") |
| 431 | p.Shape = Enum.PartType.Ball |
| 432 | p.Name = "RL_Stifle_L" |
| 433 | p.Size = Vector3.new(1.3, 1.3, 1.3) |
| 434 | p.CFrame = CFrame.new(-1.4, 6.5, 4.5) |
| 435 | p.BrickColor = BrickColor.new("White") |
| 436 | p.Material = Enum.Material.Glacier |
| 437 | p.MaterialVariant = "2022 Stud" |
| 438 | p.Anchored = true |
| 439 | p.Parent = model |
| 440 | end |
| 441 | do |
| 442 | local p = Instance.new("Part") |
| 443 | p.Name = "RL_Tibia_L" |
| 444 | p.Size = Vector3.new(3.3541, 0.8, 0.8) |
| 445 | p.CFrame = CFrame.new(-1.4, 5, 3.75) * CFrame.Angles(math.rad(-63.4349), math.rad(90), math.rad(0)) |
| 446 | p.BrickColor = BrickColor.new("White") |
| 447 | p.Material = Enum.Material.Glacier |
| 448 | p.MaterialVariant = "2022 Stud" |
| 449 | p.Anchored = true |
| 450 | p.Parent = model |
| 451 | end |
| 452 | do |
| 453 | local p = Instance.new("Part") |
| 454 | p.Shape = Enum.PartType.Ball |
| 455 | p.Name = "RL_Hock_L" |
| 456 | p.Size = Vector3.new(1, 1, 1) |
| 457 | p.CFrame = CFrame.new(-1.4, 3.5, 3) |
| 458 | p.BrickColor = BrickColor.new("White") |
| 459 | p.Material = Enum.Material.Glacier |
| 460 | p.MaterialVariant = "2022 Stud" |
| 461 | p.Anchored = true |
| 462 | p.Parent = model |
| 463 | end |
| 464 | do |
| 465 | local p = Instance.new("Part") |
| 466 | p.Name = "RL_Cannon_L" |
| 467 | p.Size = Vector3.new(2.06155, 0.7, 0.7) |
| 468 | p.CFrame = CFrame.new(-1.4, 2.5, 3.25) * CFrame.Angles(math.rad(75.9638), math.rad(-90), math.rad(0)) |
| 469 | p.BrickColor = BrickColor.new("White") |
| 470 | p.Material = Enum.Material.Glacier |
| 471 | p.MaterialVariant = "2022 Stud" |
| 472 | p.Anchored = true |
| 473 | p.Parent = model |
| 474 | end |
| 475 | do |
| 476 | local p = Instance.new("Part") |
| 477 | p.Shape = Enum.PartType.Ball |
| 478 | p.Name = "RL_Fetlock_L" |
| 479 | p.Size = Vector3.new(0.9, 0.9, 0.9) |
| 480 | p.CFrame = CFrame.new(-1.4, 1.5, 3.5) |
| 481 | p.BrickColor = BrickColor.new("White") |
| 482 | p.Material = Enum.Material.Glacier |
| 483 | p.MaterialVariant = "2022 Stud" |
| 484 | p.Anchored = true |
| 485 | p.Parent = model |
| 486 | end |
| 487 | do |
| 488 | local p = Instance.new("Part") |
| 489 | p.Name = "RL_Pastern_L" |
| 490 | p.Size = Vector3.new(0.728011, 0.6, 0.6) |
| 491 | p.CFrame = CFrame.new(-1.4, 1.15, 3.6) * CFrame.Angles(math.rad(74.0546), math.rad(-90), math.rad(0)) |
| 492 | p.BrickColor = BrickColor.new("White") |
| 493 | p.Material = Enum.Material.Glacier |
| 494 | p.MaterialVariant = "2022 Stud" |
| 495 | p.Anchored = true |
| 496 | p.Parent = model |
| 497 | end |
| 498 | do |
| 499 | local p = Instance.new("Part") |
| 500 | p.Name = "RL_Hoof_L" |
| 501 | p.Size = Vector3.new(1.2, 0.8, 1.4) |
| 502 | p.CFrame = CFrame.new(-1.4, 0.4, 3.8) |
| 503 | p.BrickColor = BrickColor.new("Really black") |
| 504 | p.Material = Enum.Material.Glacier |
| 505 | p.MaterialVariant = "2022 Universal" |
| 506 | p.Anchored = true |
| 507 | p.Parent = model |
| 508 | end |
| 509 | do |
| 510 | local p = Instance.new("Part") |
| 511 | p.Name = "FL_Upper_R" |
| 512 | p.Size = Vector3.new(3.53553, 0.9, 0.9) |
| 513 | p.CFrame = CFrame.new(1.4, 7.25, -3.25) * CFrame.Angles(math.rad(81.8699), math.rad(-90), math.rad(0)) |
| 514 | p.BrickColor = BrickColor.new("White") |
| 515 | p.Material = Enum.Material.Glacier |
| 516 | p.MaterialVariant = "2022 Stud" |
| 517 | p.Anchored = true |
| 518 | p.Parent = model |
| 519 | end |
| 520 | do |
| 521 | local p = Instance.new("Part") |
| 522 | p.Shape = Enum.PartType.Ball |
| 523 | p.Name = "FL_Knee_R" |
| 524 | p.Size = Vector3.new(1.1, 1.1, 1.1) |
| 525 | p.CFrame = CFrame.new(1.4, 5.5, -3) |
| 526 | p.BrickColor = BrickColor.new("White") |
| 527 | p.Material = Enum.Material.Glacier |
| 528 | p.MaterialVariant = "2022 Stud" |
| 529 | p.Anchored = true |
| 530 | p.Parent = model |
| 531 | end |
| 532 | do |
| 533 | local p = Instance.new("Part") |
| 534 | p.Name = "FL_Lower_R" |
| 535 | p.Size = Vector3.new(4.03113, 0.7, 0.7) |
| 536 | p.CFrame = CFrame.new(1.4, 3.5, -3.25) * CFrame.Angles(math.rad(-82.875), math.rad(90), math.rad(0)) |
| 537 | p.BrickColor = BrickColor.new("White") |
| 538 | p.Material = Enum.Material.Glacier |
| 539 | p.MaterialVariant = "2022 Stud" |
| 540 | p.Anchored = true |
| 541 | p.Parent = model |
| 542 | end |
| 543 | do |
| 544 | local p = Instance.new("Part") |
| 545 | p.Shape = Enum.PartType.Ball |
| 546 | p.Name = "FL_Fetlock_R" |
| 547 | p.Size = Vector3.new(0.9, 0.9, 0.9) |
| 548 | p.CFrame = CFrame.new(1.4, 1.5, -3.5) |
| 549 | p.BrickColor = BrickColor.new("White") |
| 550 | p.Material = Enum.Material.Glacier |
| 551 | p.MaterialVariant = "2022 Stud" |
| 552 | p.Anchored = true |
| 553 | p.Parent = model |
| 554 | end |
| 555 | do |
| 556 | local p = Instance.new("Part") |
| 557 | p.Name = "FL_Pastern_R" |
| 558 | p.Size = Vector3.new(0.761577, 0.6, 0.6) |
| 559 | p.CFrame = CFrame.new(1.4, 1.15, -3.65) * CFrame.Angles(math.rad(-66.8014), math.rad(90), math.rad(0)) |
| 560 | p.BrickColor = BrickColor.new("White") |
| 561 | p.Material = Enum.Material.Glacier |
| 562 | p.MaterialVariant = "2022 Stud" |
| 563 | p.Anchored = true |
| 564 | p.Parent = model |
| 565 | end |
| 566 | do |
| 567 | local p = Instance.new("Part") |
| 568 | p.Name = "FL_Hoof_R" |
| 569 | p.Size = Vector3.new(1.2, 0.8, 1.4) |
| 570 | p.CFrame = CFrame.new(1.4, 0.4, -3.9) |
| 571 | p.BrickColor = BrickColor.new("Really black") |
| 572 | p.Material = Enum.Material.Glacier |
| 573 | p.MaterialVariant = "2022 Universal" |
| 574 | p.Anchored = true |
| 575 | p.Parent = model |
| 576 | end |
| 577 | do |
| 578 | local p = Instance.new("Part") |
| 579 | p.Name = "RL_Femur_R" |
| 580 | p.Size = Vector3.new(2.69258, 1.1, 1.1) |
| 581 | p.CFrame = CFrame.new(1.4, 7.75, 4) * CFrame.Angles(math.rad(68.1986), math.rad(-90), math.rad(0)) |
| 582 | p.BrickColor = BrickColor.new("White") |
| 583 | p.Material = Enum.Material.Glacier |
| 584 | p.MaterialVariant = "2022 Stud" |
| 585 | p.Anchored = true |
| 586 | p.Parent = model |
| 587 | end |
| 588 | do |
| 589 | local p = Instance.new("Part") |
| 590 | p.Shape = Enum.PartType.Ball |
| 591 | p.Name = "RL_Stifle_R" |
| 592 | p.Size = Vector3.new(1.3, 1.3, 1.3) |
| 593 | p.CFrame = CFrame.new(1.4, 6.5, 4.5) |
| 594 | p.BrickColor = BrickColor.new("White") |
| 595 | p.Material = Enum.Material.Glacier |
| 596 | p.MaterialVariant = "2022 Stud" |
| 597 | p.Anchored = true |
| 598 | p.Parent = model |
| 599 | end |
| 600 | do |
| 601 | local p = Instance.new("Part") |
| 602 | p.Name = "RL_Tibia_R" |
| 603 | p.Size = Vector3.new(3.3541, 0.8, 0.8) |
| 604 | p.CFrame = CFrame.new(1.4, 5, 3.75) * CFrame.Angles(math.rad(-63.4349), math.rad(90), math.rad(0)) |
| 605 | p.BrickColor = BrickColor.new("White") |
| 606 | p.Material = Enum.Material.Glacier |
| 607 | p.MaterialVariant = "2022 Stud" |
| 608 | p.Anchored = true |
| 609 | p.Parent = model |
| 610 | end |
| 611 | do |
| 612 | local p = Instance.new("Part") |
| 613 | p.Shape = Enum.PartType.Ball |
| 614 | p.Name = "RL_Hock_R" |
| 615 | p.Size = Vector3.new(1, 1, 1) |
| 616 | p.CFrame = CFrame.new(1.4, 3.5, 3) |
| 617 | p.BrickColor = BrickColor.new("White") |
| 618 | p.Material = Enum.Material.Glacier |
| 619 | p.MaterialVariant = "2022 Stud" |
| 620 | p.Anchored = true |
| 621 | p.Parent = model |
| 622 | end |
| 623 | do |
| 624 | local p = Instance.new("Part") |
| 625 | p.Name = "RL_Cannon_R" |
| 626 | p.Size = Vector3.new(2.06155, 0.7, 0.7) |
| 627 | p.CFrame = CFrame.new(1.4, 2.5, 3.25) * CFrame.Angles(math.rad(75.9638), math.rad(-90), math.rad(0)) |
| 628 | p.BrickColor = BrickColor.new("White") |
| 629 | p.Material = Enum.Material.Glacier |
| 630 | p.MaterialVariant = "2022 Stud" |
| 631 | p.Anchored = true |
| 632 | p.Parent = model |
| 633 | end |
| 634 | do |
| 635 | local p = Instance.new("Part") |
| 636 | p.Shape = Enum.PartType.Ball |
| 637 | p.Name = "RL_Fetlock_R" |
| 638 | p.Size = Vector3.new(0.9, 0.9, 0.9) |
| 639 | p.CFrame = CFrame.new(1.4, 1.5, 3.5) |
| 640 | p.BrickColor = BrickColor.new("White") |
| 641 | p.Material = Enum.Material.Glacier |
| 642 | p.MaterialVariant = "2022 Stud" |
| 643 | p.Anchored = true |
| 644 | p.Parent = model |
| 645 | end |
| 646 | do |
| 647 | local p = Instance.new("Part") |
| 648 | p.Name = "RL_Pastern_R" |
| 649 | p.Size = Vector3.new(0.728011, 0.6, 0.6) |
| 650 | p.CFrame = CFrame.new(1.4, 1.15, 3.6) * CFrame.Angles(math.rad(74.0546), math.rad(-90), math.rad(0)) |
| 651 | p.BrickColor = BrickColor.new("White") |
| 652 | p.Material = Enum.Material.Glacier |
| 653 | p.MaterialVariant = "2022 Stud" |
| 654 | p.Anchored = true |
| 655 | p.Parent = model |
| 656 | end |
| 657 | do |
| 658 | local p = Instance.new("Part") |
| 659 | p.Name = "RL_Hoof_R" |
| 660 | p.Size = Vector3.new(1.2, 0.8, 1.4) |
| 661 | p.CFrame = CFrame.new(1.4, 0.4, 3.8) |
| 662 | p.BrickColor = BrickColor.new("Really black") |
| 663 | p.Material = Enum.Material.Glacier |
| 664 | p.MaterialVariant = "2022 Universal" |
| 665 | p.Anchored = true |
| 666 | p.Parent = model |
| 667 | end |
| 668 | do |
| 669 | local rightV = Vector3.new(1,0,0).Unit |
| 670 | local upV = (Vector3.new(0,-1,0) - Vector3.new(0,-1,0):Dot(rightV)*rightV).Unit |
| 671 | local normalV = upV:Cross(rightV) |
| 672 | local pos = Vector3.new(0, 9.5, -2.5) |
| 673 | local cyl = Instance.new("Part") |
| 674 | cyl.Shape = Enum.PartType.Cylinder |
| 675 | cyl.Size = Vector3.new(0.5, 3.2, 3.2) |
| 676 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 677 | cyl.BrickColor = BrickColor.new("White") |
| 678 | cyl.Material = Enum.Material.Glacier |
| 679 | cyl.MaterialVariant = "2022 Stud" |
| 680 | cyl.Anchored = true; cyl.Parent = workspace |
| 681 | local cuts = {} |
| 682 | local hole = Instance.new("Part") |
| 683 | hole.Shape = Enum.PartType.Cylinder |
| 684 | hole.Size = Vector3.new(0.7, 2.4, 2.4) |
| 685 | hole.CFrame = cyl.CFrame |
| 686 | hole.BrickColor = BrickColor.new("White") |
| 687 | hole.Material = Enum.Material.Glacier |
| 688 | hole.MaterialVariant = "2022 Stud" |
| 689 | hole.Anchored = true; hole.Parent = workspace |
| 690 | table.insert(cuts, hole) |
| 691 | local angBoxes = {} |
| 692 | do |
| 693 | local edgeDir = 1*rightV + 0*upV |
| 694 | local edgePerp = 0*rightV + 1*upV |
| 695 | local cut = Instance.new("Part") |
| 696 | cut.Size = Vector3.new(6.4, 0.7, 6.4) |
| 697 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 3.2 * edgePerp, edgeDir, normalV) |
| 698 | cut.BrickColor = BrickColor.new("White") |
| 699 | cut.Material = Enum.Material.Glacier |
| 700 | cut.MaterialVariant = "2022 Stud" |
| 701 | cut.Anchored = true; cut.Parent = workspace |
| 702 | table.insert(angBoxes, cut) |
| 703 | end |
| 704 | do |
| 705 | local edgeDir = -1*rightV + 0*upV |
| 706 | local edgePerp = 0*rightV + -1*upV |
| 707 | local cut = Instance.new("Part") |
| 708 | cut.Size = Vector3.new(6.4, 0.7, 6.4) |
| 709 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 3.2 * edgePerp, edgeDir, normalV) |
| 710 | cut.BrickColor = BrickColor.new("White") |
| 711 | cut.Material = Enum.Material.Glacier |
| 712 | cut.MaterialVariant = "2022 Stud" |
| 713 | cut.Anchored = true; cut.Parent = workspace |
| 714 | table.insert(angBoxes, cut) |
| 715 | end |
| 716 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 717 | if #cuts > 0 then |
| 718 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 719 | for _, c in ipairs(cuts) do c:Destroy() end |
| 720 | if ok and result then |
| 721 | cyl:Destroy() |
| 722 | result.Name = "Rib_0"; result.Anchored = true; result.Parent = model |
| 723 | else |
| 724 | cyl.Name = "Rib_0"; cyl.Parent = model |
| 725 | end |
| 726 | else |
| 727 | cyl.Name = "Rib_0"; cyl.Parent = model |
| 728 | end |
| 729 | end |
| 730 | do |
| 731 | local rightV = Vector3.new(1,0,0).Unit |
| 732 | local upV = (Vector3.new(0,-1,0) - Vector3.new(0,-1,0):Dot(rightV)*rightV).Unit |
| 733 | local normalV = upV:Cross(rightV) |
| 734 | local pos = Vector3.new(0, 9.5, -1.5) |
| 735 | local cyl = Instance.new("Part") |
| 736 | cyl.Shape = Enum.PartType.Cylinder |
| 737 | cyl.Size = Vector3.new(0.5, 3.8, 3.8) |
| 738 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 739 | cyl.BrickColor = BrickColor.new("White") |
| 740 | cyl.Material = Enum.Material.Glacier |
| 741 | cyl.MaterialVariant = "2022 Stud" |
| 742 | cyl.Anchored = true; cyl.Parent = workspace |
| 743 | local cuts = {} |
| 744 | local hole = Instance.new("Part") |
| 745 | hole.Shape = Enum.PartType.Cylinder |
| 746 | hole.Size = Vector3.new(0.7, 3, 3) |
| 747 | hole.CFrame = cyl.CFrame |
| 748 | hole.BrickColor = BrickColor.new("White") |
| 749 | hole.Material = Enum.Material.Glacier |
| 750 | hole.MaterialVariant = "2022 Stud" |
| 751 | hole.Anchored = true; hole.Parent = workspace |
| 752 | table.insert(cuts, hole) |
| 753 | local angBoxes = {} |
| 754 | do |
| 755 | local edgeDir = 1*rightV + 0*upV |
| 756 | local edgePerp = 0*rightV + 1*upV |
| 757 | local cut = Instance.new("Part") |
| 758 | cut.Size = Vector3.new(7.6, 0.7, 7.6) |
| 759 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 3.8 * edgePerp, edgeDir, normalV) |
| 760 | cut.BrickColor = BrickColor.new("White") |
| 761 | cut.Material = Enum.Material.Glacier |
| 762 | cut.MaterialVariant = "2022 Stud" |
| 763 | cut.Anchored = true; cut.Parent = workspace |
| 764 | table.insert(angBoxes, cut) |
| 765 | end |
| 766 | do |
| 767 | local edgeDir = -1*rightV + 0*upV |
| 768 | local edgePerp = 0*rightV + -1*upV |
| 769 | local cut = Instance.new("Part") |
| 770 | cut.Size = Vector3.new(7.6, 0.7, 7.6) |
| 771 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 3.8 * edgePerp, edgeDir, normalV) |
| 772 | cut.BrickColor = BrickColor.new("White") |
| 773 | cut.Material = Enum.Material.Glacier |
| 774 | cut.MaterialVariant = "2022 Stud" |
| 775 | cut.Anchored = true; cut.Parent = workspace |
| 776 | table.insert(angBoxes, cut) |
| 777 | end |
| 778 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 779 | if #cuts > 0 then |
| 780 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 781 | for _, c in ipairs(cuts) do c:Destroy() end |
| 782 | if ok and result then |
| 783 | cyl:Destroy() |
| 784 | result.Name = "Rib_1"; result.Anchored = true; result.Parent = model |
| 785 | else |
| 786 | cyl.Name = "Rib_1"; cyl.Parent = model |
| 787 | end |
| 788 | else |
| 789 | cyl.Name = "Rib_1"; cyl.Parent = model |
| 790 | end |
| 791 | end |
| 792 | do |
| 793 | local rightV = Vector3.new(1,0,0).Unit |
| 794 | local upV = (Vector3.new(0,-1,0) - Vector3.new(0,-1,0):Dot(rightV)*rightV).Unit |
| 795 | local normalV = upV:Cross(rightV) |
| 796 | local pos = Vector3.new(0, 9.5, -0.5) |
| 797 | local cyl = Instance.new("Part") |
| 798 | cyl.Shape = Enum.PartType.Cylinder |
| 799 | cyl.Size = Vector3.new(0.5, 4.2, 4.2) |
| 800 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 801 | cyl.BrickColor = BrickColor.new("White") |
| 802 | cyl.Material = Enum.Material.Glacier |
| 803 | cyl.MaterialVariant = "2022 Stud" |
| 804 | cyl.Anchored = true; cyl.Parent = workspace |
| 805 | local cuts = {} |
| 806 | local hole = Instance.new("Part") |
| 807 | hole.Shape = Enum.PartType.Cylinder |
| 808 | hole.Size = Vector3.new(0.7, 3.4, 3.4) |
| 809 | hole.CFrame = cyl.CFrame |
| 810 | hole.BrickColor = BrickColor.new("White") |
| 811 | hole.Material = Enum.Material.Glacier |
| 812 | hole.MaterialVariant = "2022 Stud" |
| 813 | hole.Anchored = true; hole.Parent = workspace |
| 814 | table.insert(cuts, hole) |
| 815 | local angBoxes = {} |
| 816 | do |
| 817 | local edgeDir = 1*rightV + 0*upV |
| 818 | local edgePerp = 0*rightV + 1*upV |
| 819 | local cut = Instance.new("Part") |
| 820 | cut.Size = Vector3.new(8.4, 0.7, 8.4) |
| 821 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 4.2 * edgePerp, edgeDir, normalV) |
| 822 | cut.BrickColor = BrickColor.new("White") |
| 823 | cut.Material = Enum.Material.Glacier |
| 824 | cut.MaterialVariant = "2022 Stud" |
| 825 | cut.Anchored = true; cut.Parent = workspace |
| 826 | table.insert(angBoxes, cut) |
| 827 | end |
| 828 | do |
| 829 | local edgeDir = -1*rightV + 0*upV |
| 830 | local edgePerp = 0*rightV + -1*upV |
| 831 | local cut = Instance.new("Part") |
| 832 | cut.Size = Vector3.new(8.4, 0.7, 8.4) |
| 833 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 4.2 * edgePerp, edgeDir, normalV) |
| 834 | cut.BrickColor = BrickColor.new("White") |
| 835 | cut.Material = Enum.Material.Glacier |
| 836 | cut.MaterialVariant = "2022 Stud" |
| 837 | cut.Anchored = true; cut.Parent = workspace |
| 838 | table.insert(angBoxes, cut) |
| 839 | end |
| 840 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 841 | if #cuts > 0 then |
| 842 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 843 | for _, c in ipairs(cuts) do c:Destroy() end |
| 844 | if ok and result then |
| 845 | cyl:Destroy() |
| 846 | result.Name = "Rib_2"; result.Anchored = true; result.Parent = model |
| 847 | else |
| 848 | cyl.Name = "Rib_2"; cyl.Parent = model |
| 849 | end |
| 850 | else |
| 851 | cyl.Name = "Rib_2"; cyl.Parent = model |
| 852 | end |
| 853 | end |
| 854 | do |
| 855 | local rightV = Vector3.new(1,0,0).Unit |
| 856 | local upV = (Vector3.new(0,-1,0) - Vector3.new(0,-1,0):Dot(rightV)*rightV).Unit |
| 857 | local normalV = upV:Cross(rightV) |
| 858 | local pos = Vector3.new(0, 9.5, 0.5) |
| 859 | local cyl = Instance.new("Part") |
| 860 | cyl.Shape = Enum.PartType.Cylinder |
| 861 | cyl.Size = Vector3.new(0.5, 4.2, 4.2) |
| 862 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 863 | cyl.BrickColor = BrickColor.new("White") |
| 864 | cyl.Material = Enum.Material.Glacier |
| 865 | cyl.MaterialVariant = "2022 Stud" |
| 866 | cyl.Anchored = true; cyl.Parent = workspace |
| 867 | local cuts = {} |
| 868 | local hole = Instance.new("Part") |
| 869 | hole.Shape = Enum.PartType.Cylinder |
| 870 | hole.Size = Vector3.new(0.7, 3.4, 3.4) |
| 871 | hole.CFrame = cyl.CFrame |
| 872 | hole.BrickColor = BrickColor.new("White") |
| 873 | hole.Material = Enum.Material.Glacier |
| 874 | hole.MaterialVariant = "2022 Stud" |
| 875 | hole.Anchored = true; hole.Parent = workspace |
| 876 | table.insert(cuts, hole) |
| 877 | local angBoxes = {} |
| 878 | do |
| 879 | local edgeDir = 1*rightV + 0*upV |
| 880 | local edgePerp = 0*rightV + 1*upV |
| 881 | local cut = Instance.new("Part") |
| 882 | cut.Size = Vector3.new(8.4, 0.7, 8.4) |
| 883 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 4.2 * edgePerp, edgeDir, normalV) |
| 884 | cut.BrickColor = BrickColor.new("White") |
| 885 | cut.Material = Enum.Material.Glacier |
| 886 | cut.MaterialVariant = "2022 Stud" |
| 887 | cut.Anchored = true; cut.Parent = workspace |
| 888 | table.insert(angBoxes, cut) |
| 889 | end |
| 890 | do |
| 891 | local edgeDir = -1*rightV + 0*upV |
| 892 | local edgePerp = 0*rightV + -1*upV |
| 893 | local cut = Instance.new("Part") |
| 894 | cut.Size = Vector3.new(8.4, 0.7, 8.4) |
| 895 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 4.2 * edgePerp, edgeDir, normalV) |
| 896 | cut.BrickColor = BrickColor.new("White") |
| 897 | cut.Material = Enum.Material.Glacier |
| 898 | cut.MaterialVariant = "2022 Stud" |
| 899 | cut.Anchored = true; cut.Parent = workspace |
| 900 | table.insert(angBoxes, cut) |
| 901 | end |
| 902 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 903 | if #cuts > 0 then |
| 904 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 905 | for _, c in ipairs(cuts) do c:Destroy() end |
| 906 | if ok and result then |
| 907 | cyl:Destroy() |
| 908 | result.Name = "Rib_3"; result.Anchored = true; result.Parent = model |
| 909 | else |
| 910 | cyl.Name = "Rib_3"; cyl.Parent = model |
| 911 | end |
| 912 | else |
| 913 | cyl.Name = "Rib_3"; cyl.Parent = model |
| 914 | end |
| 915 | end |
| 916 | do |
| 917 | local rightV = Vector3.new(1,0,0).Unit |
| 918 | local upV = (Vector3.new(0,-1,0) - Vector3.new(0,-1,0):Dot(rightV)*rightV).Unit |
| 919 | local normalV = upV:Cross(rightV) |
| 920 | local pos = Vector3.new(0, 9.5, 1.5) |
| 921 | local cyl = Instance.new("Part") |
| 922 | cyl.Shape = Enum.PartType.Cylinder |
| 923 | cyl.Size = Vector3.new(0.5, 3.8, 3.8) |
| 924 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 925 | cyl.BrickColor = BrickColor.new("White") |
| 926 | cyl.Material = Enum.Material.Glacier |
| 927 | cyl.MaterialVariant = "2022 Stud" |
| 928 | cyl.Anchored = true; cyl.Parent = workspace |
| 929 | local cuts = {} |
| 930 | local hole = Instance.new("Part") |
| 931 | hole.Shape = Enum.PartType.Cylinder |
| 932 | hole.Size = Vector3.new(0.7, 3, 3) |
| 933 | hole.CFrame = cyl.CFrame |
| 934 | hole.BrickColor = BrickColor.new("White") |
| 935 | hole.Material = Enum.Material.Glacier |
| 936 | hole.MaterialVariant = "2022 Stud" |
| 937 | hole.Anchored = true; hole.Parent = workspace |
| 938 | table.insert(cuts, hole) |
| 939 | local angBoxes = {} |
| 940 | do |
| 941 | local edgeDir = 1*rightV + 0*upV |
| 942 | local edgePerp = 0*rightV + 1*upV |
| 943 | local cut = Instance.new("Part") |
| 944 | cut.Size = Vector3.new(7.6, 0.7, 7.6) |
| 945 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 3.8 * edgePerp, edgeDir, normalV) |
| 946 | cut.BrickColor = BrickColor.new("White") |
| 947 | cut.Material = Enum.Material.Glacier |
| 948 | cut.MaterialVariant = "2022 Stud" |
| 949 | cut.Anchored = true; cut.Parent = workspace |
| 950 | table.insert(angBoxes, cut) |
| 951 | end |
| 952 | do |
| 953 | local edgeDir = -1*rightV + 0*upV |
| 954 | local edgePerp = 0*rightV + -1*upV |
| 955 | local cut = Instance.new("Part") |
| 956 | cut.Size = Vector3.new(7.6, 0.7, 7.6) |
| 957 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 3.8 * edgePerp, edgeDir, normalV) |
| 958 | cut.BrickColor = BrickColor.new("White") |
| 959 | cut.Material = Enum.Material.Glacier |
| 960 | cut.MaterialVariant = "2022 Stud" |
| 961 | cut.Anchored = true; cut.Parent = workspace |
| 962 | table.insert(angBoxes, cut) |
| 963 | end |
| 964 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 965 | if #cuts > 0 then |
| 966 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 967 | for _, c in ipairs(cuts) do c:Destroy() end |
| 968 | if ok and result then |
| 969 | cyl:Destroy() |
| 970 | result.Name = "Rib_4"; result.Anchored = true; result.Parent = model |
| 971 | else |
| 972 | cyl.Name = "Rib_4"; cyl.Parent = model |
| 973 | end |
| 974 | else |
| 975 | cyl.Name = "Rib_4"; cyl.Parent = model |
| 976 | end |
| 977 | end |
| 978 | do |
| 979 | local rightV = Vector3.new(1,0,0).Unit |
| 980 | local upV = (Vector3.new(0,-1,0) - Vector3.new(0,-1,0):Dot(rightV)*rightV).Unit |
| 981 | local normalV = upV:Cross(rightV) |
| 982 | local pos = Vector3.new(0, 9.5, 2.46) |
| 983 | local cyl = Instance.new("Part") |
| 984 | cyl.Shape = Enum.PartType.Cylinder |
| 985 | cyl.Size = Vector3.new(0.5, 3.2, 3.2) |
| 986 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 987 | cyl.BrickColor = BrickColor.new("White") |
| 988 | cyl.Material = Enum.Material.Glacier |
| 989 | cyl.MaterialVariant = "2022 Stud" |
| 990 | cyl.Anchored = true; cyl.Parent = workspace |
| 991 | local cuts = {} |
| 992 | local hole = Instance.new("Part") |
| 993 | hole.Shape = Enum.PartType.Cylinder |
| 994 | hole.Size = Vector3.new(0.7, 2.4, 2.4) |
| 995 | hole.CFrame = cyl.CFrame |
| 996 | hole.BrickColor = BrickColor.new("White") |
| 997 | hole.Material = Enum.Material.Glacier |
| 998 | hole.MaterialVariant = "2022 Stud" |
| 999 | hole.Anchored = true; hole.Parent = workspace |
| 1000 | table.insert(cuts, hole) |
| 1001 | local angBoxes = {} |
| 1002 | do |
| 1003 | local edgeDir = 1*rightV + 0*upV |
| 1004 | local edgePerp = 0*rightV + 1*upV |
| 1005 | local cut = Instance.new("Part") |
| 1006 | cut.Size = Vector3.new(6.4, 0.7, 6.4) |
| 1007 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 3.2 * edgePerp, edgeDir, normalV) |
| 1008 | cut.BrickColor = BrickColor.new("White") |
| 1009 | cut.Material = Enum.Material.Glacier |
| 1010 | cut.MaterialVariant = "2022 Stud" |
| 1011 | cut.Anchored = true; cut.Parent = workspace |
| 1012 | table.insert(angBoxes, cut) |
| 1013 | end |
| 1014 | do |
| 1015 | local edgeDir = -1*rightV + 0*upV |
| 1016 | local edgePerp = 0*rightV + -1*upV |
| 1017 | local cut = Instance.new("Part") |
| 1018 | cut.Size = Vector3.new(6.4, 0.7, 6.4) |
| 1019 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 3.2 * edgePerp, edgeDir, normalV) |
| 1020 | cut.BrickColor = BrickColor.new("White") |
| 1021 | cut.Material = Enum.Material.Glacier |
| 1022 | cut.MaterialVariant = "2022 Stud" |
| 1023 | cut.Anchored = true; cut.Parent = workspace |
| 1024 | table.insert(angBoxes, cut) |
| 1025 | end |
| 1026 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1027 | if #cuts > 0 then |
| 1028 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1029 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1030 | if ok and result then |
| 1031 | cyl:Destroy() |
| 1032 | result.Name = "Rib_5"; result.Anchored = true; result.Parent = model |
| 1033 | else |
| 1034 | cyl.Name = "Rib_5"; cyl.Parent = model |
| 1035 | end |
| 1036 | else |
| 1037 | cyl.Name = "Rib_5"; cyl.Parent = model |
| 1038 | end |
| 1039 | end |
| 1040 | model.PrimaryPart = model:FindFirstChild("Spine") |
| 1041 | print("SkeletonHorse built: " .. #model:GetChildren() .. " parts") |
Loading comments...