Loading model...
by Finn · 10/5/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: WoodenCharacter |
| 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 = "WoodenCharacter" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Institutional white"] = "2022 Stud", |
| 25 | ["Nougat"] = "2022 Stud", |
| 26 | ["Really black"] = "2022 Universal", |
| 27 | ["Reddish brown"] = "2022 Small Stud", |
| 28 | } |
| 29 | do |
| 30 | local p = Instance.new("Part") |
| 31 | p.Shape = Enum.PartType.Cylinder |
| 32 | p.Name = "BodyMain" |
| 33 | p.Size = Vector3.new(12, 5, 5) |
| 34 | p.CFrame = CFrame.new(0, 10, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 35 | p.BrickColor = BrickColor.new("Nougat") |
| 36 | p.Material = Enum.Material.Glacier |
| 37 | p.MaterialVariant = "2022 Stud" |
| 38 | p.Anchored = true |
| 39 | p.Parent = model |
| 40 | end |
| 41 | do |
| 42 | local p = Instance.new("Part") |
| 43 | p.Shape = Enum.PartType.Cylinder |
| 44 | p.Name = "EyeL_Sclera" |
| 45 | p.Size = Vector3.new(0.2, 1.6, 1.6) |
| 46 | p.CFrame = CFrame.new(-1.1, 13.5, -2.16) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 47 | p.BrickColor = BrickColor.new("Institutional white") |
| 48 | p.Material = Enum.Material.Glacier |
| 49 | p.MaterialVariant = "2022 Stud" |
| 50 | p.Anchored = true |
| 51 | p.Parent = model |
| 52 | end |
| 53 | do |
| 54 | local p = Instance.new("Part") |
| 55 | p.Shape = Enum.PartType.Cylinder |
| 56 | p.Name = "EyeL_Iris" |
| 57 | p.Size = Vector3.new(0.1, 0.8, 0.8) |
| 58 | p.CFrame = CFrame.new(-1.1, 13.5, -2.38) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 59 | p.BrickColor = BrickColor.new("Reddish brown") |
| 60 | p.Material = Enum.Material.Glacier |
| 61 | p.MaterialVariant = "2022 Small Stud" |
| 62 | p.Anchored = true |
| 63 | p.Parent = model |
| 64 | end |
| 65 | do |
| 66 | local p = Instance.new("Part") |
| 67 | p.Shape = Enum.PartType.Cylinder |
| 68 | p.Name = "EyeL_Pupil" |
| 69 | p.Size = Vector3.new(0.1, 0.4, 0.4) |
| 70 | p.CFrame = CFrame.new(-1.1, 13.5, -2.51) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 71 | p.BrickColor = BrickColor.new("Really black") |
| 72 | p.Material = Enum.Material.Glacier |
| 73 | p.MaterialVariant = "2022 Universal" |
| 74 | p.Anchored = true |
| 75 | p.Parent = model |
| 76 | end |
| 77 | do |
| 78 | local p = Instance.new("Part") |
| 79 | p.Shape = Enum.PartType.Cylinder |
| 80 | p.Name = "EyeR_Sclera" |
| 81 | p.Size = Vector3.new(0.2, 1.6, 1.6) |
| 82 | p.CFrame = CFrame.new(1.1, 13.5, -2.16) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 83 | p.BrickColor = BrickColor.new("Institutional white") |
| 84 | p.Material = Enum.Material.Glacier |
| 85 | p.MaterialVariant = "2022 Stud" |
| 86 | p.Anchored = true |
| 87 | p.Parent = model |
| 88 | end |
| 89 | do |
| 90 | local p = Instance.new("Part") |
| 91 | p.Shape = Enum.PartType.Cylinder |
| 92 | p.Name = "EyeR_Iris" |
| 93 | p.Size = Vector3.new(0.1, 0.8, 0.8) |
| 94 | p.CFrame = CFrame.new(1.1, 13.5, -2.34) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 95 | p.BrickColor = BrickColor.new("Reddish brown") |
| 96 | p.Material = Enum.Material.Glacier |
| 97 | p.MaterialVariant = "2022 Small Stud" |
| 98 | p.Anchored = true |
| 99 | p.Parent = model |
| 100 | end |
| 101 | do |
| 102 | local p = Instance.new("Part") |
| 103 | p.Shape = Enum.PartType.Cylinder |
| 104 | p.Name = "EyeR_Pupil" |
| 105 | p.Size = Vector3.new(0.1, 0.4, 0.4) |
| 106 | p.CFrame = CFrame.new(1.1, 13.5, -2.47) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 107 | p.BrickColor = BrickColor.new("Really black") |
| 108 | p.Material = Enum.Material.Glacier |
| 109 | p.MaterialVariant = "2022 Universal" |
| 110 | p.Anchored = true |
| 111 | p.Parent = model |
| 112 | end |
| 113 | do |
| 114 | local p = Instance.new("Part") |
| 115 | p.Name = "NoseBase" |
| 116 | p.Size = Vector3.new(0.8, 1.5, 1.2) |
| 117 | p.CFrame = CFrame.new(0, 12.5, -2.6) * CFrame.Angles(math.rad(-15), math.rad(0), math.rad(0)) |
| 118 | p.BrickColor = BrickColor.new("Nougat") |
| 119 | p.Material = Enum.Material.Glacier |
| 120 | p.MaterialVariant = "2022 Stud" |
| 121 | p.Anchored = true |
| 122 | p.Parent = model |
| 123 | end |
| 124 | do |
| 125 | local p = Instance.new("Part") |
| 126 | p.Shape = Enum.PartType.Cylinder |
| 127 | p.Name = "ArmR_Upper" |
| 128 | p.Size = Vector3.new(3.17175, 0.6, 0.6) |
| 129 | p.CFrame = CFrame.new(-3.05, 8, -0.25) * CFrame.Angles(math.rad(-180), math.rad(29.0546), math.rad(108.942)) |
| 130 | p.BrickColor = BrickColor.new("Nougat") |
| 131 | p.Material = Enum.Material.Glacier |
| 132 | p.MaterialVariant = "2022 Stud" |
| 133 | p.Anchored = true |
| 134 | p.Parent = model |
| 135 | end |
| 136 | do |
| 137 | local p = Instance.new("Part") |
| 138 | p.Shape = Enum.PartType.Cylinder |
| 139 | p.Name = "ArmR_Lower" |
| 140 | p.Size = Vector3.new(2.51794, 0.5, 0.5) |
| 141 | p.CFrame = CFrame.new(-3.35, 5.5, -1.25) * CFrame.Angles(math.rad(0), math.rad(78.6901), math.rad(-52.5893)) |
| 142 | p.BrickColor = BrickColor.new("Nougat") |
| 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.Shape = Enum.PartType.Ball |
| 151 | p.Name = "HandR" |
| 152 | p.Size = Vector3.new(0.8, 0.8, 0.8) |
| 153 | p.CFrame = CFrame.new(-3.2, 4.5, -2) |
| 154 | p.BrickColor = BrickColor.new("Nougat") |
| 155 | p.Material = Enum.Material.Glacier |
| 156 | p.MaterialVariant = "2022 Stud" |
| 157 | p.Anchored = true |
| 158 | p.Parent = model |
| 159 | end |
| 160 | do |
| 161 | local p = Instance.new("Part") |
| 162 | p.Shape = Enum.PartType.Cylinder |
| 163 | p.Name = "ArmL_Upper" |
| 164 | p.Size = Vector3.new(3.13209, 0.6, 0.6) |
| 165 | p.CFrame = CFrame.new(3.05, 8, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-73.3008)) |
| 166 | p.BrickColor = BrickColor.new("Nougat") |
| 167 | p.Material = Enum.Material.Glacier |
| 168 | p.MaterialVariant = "2022 Stud" |
| 169 | p.Anchored = true |
| 170 | p.Parent = model |
| 171 | end |
| 172 | do |
| 173 | local p = Instance.new("Part") |
| 174 | p.Shape = Enum.PartType.Cylinder |
| 175 | p.Name = "ArmL_Lower" |
| 176 | p.Size = Vector3.new(2.5671, 0.5, 0.5) |
| 177 | p.CFrame = CFrame.new(3.35, 5.25, 0.25) * CFrame.Angles(math.rad(-180), math.rad(-59.0362), math.rad(103.129)) |
| 178 | p.BrickColor = BrickColor.new("Nougat") |
| 179 | p.Material = Enum.Material.Glacier |
| 180 | p.MaterialVariant = "2022 Stud" |
| 181 | p.Anchored = true |
| 182 | p.Parent = model |
| 183 | end |
| 184 | do |
| 185 | local p = Instance.new("Part") |
| 186 | p.Shape = Enum.PartType.Ball |
| 187 | p.Name = "HandL" |
| 188 | p.Size = Vector3.new(0.8, 0.8, 0.8) |
| 189 | p.CFrame = CFrame.new(3.2, 4, 0.5) |
| 190 | p.BrickColor = BrickColor.new("Nougat") |
| 191 | p.Material = Enum.Material.Glacier |
| 192 | p.MaterialVariant = "2022 Stud" |
| 193 | p.Anchored = true |
| 194 | p.Parent = model |
| 195 | end |
| 196 | do |
| 197 | local p = Instance.new("Part") |
| 198 | p.Shape = Enum.PartType.Cylinder |
| 199 | p.Name = "LegR_Upper" |
| 200 | p.Size = Vector3.new(2.00997, 0.7, 0.7) |
| 201 | p.CFrame = CFrame.new(-1.2, 3, 0.1) * CFrame.Angles(math.rad(84.2894), math.rad(-90), math.rad(0)) |
| 202 | p.BrickColor = BrickColor.new("Nougat") |
| 203 | p.Material = Enum.Material.Glacier |
| 204 | p.MaterialVariant = "2022 Stud" |
| 205 | p.Anchored = true |
| 206 | p.Parent = model |
| 207 | end |
| 208 | do |
| 209 | local p = Instance.new("Part") |
| 210 | p.Shape = Enum.PartType.Cylinder |
| 211 | p.Name = "LegR_Lower" |
| 212 | p.Size = Vector3.new(1.51327, 0.6, 0.6) |
| 213 | p.CFrame = CFrame.new(-1.2, 1.25, 0.1) * CFrame.Angles(math.rad(-82.4054), math.rad(90), math.rad(0)) |
| 214 | p.BrickColor = BrickColor.new("Nougat") |
| 215 | p.Material = Enum.Material.Glacier |
| 216 | p.MaterialVariant = "2022 Stud" |
| 217 | p.Anchored = true |
| 218 | p.Parent = model |
| 219 | end |
| 220 | do |
| 221 | local p = Instance.new("Part") |
| 222 | p.Name = "FootR" |
| 223 | p.Size = Vector3.new(1.6, 0.5, 2.8) |
| 224 | p.CFrame = CFrame.new(-1.2, 0.25, -1) |
| 225 | p.BrickColor = BrickColor.new("Nougat") |
| 226 | p.Material = Enum.Material.Glacier |
| 227 | p.MaterialVariant = "2022 Stud" |
| 228 | p.Anchored = true |
| 229 | p.Parent = model |
| 230 | end |
| 231 | do |
| 232 | local p = Instance.new("Part") |
| 233 | p.Shape = Enum.PartType.Cylinder |
| 234 | p.Name = "ToesR" |
| 235 | p.Size = Vector3.new(1.6, 0.65, 0.65) |
| 236 | p.CFrame = CFrame.new(-1.28, 0.25, -2.4) |
| 237 | p.BrickColor = BrickColor.new("Nougat") |
| 238 | p.Material = Enum.Material.Glacier |
| 239 | p.MaterialVariant = "2022 Stud" |
| 240 | p.Anchored = true |
| 241 | p.Parent = model |
| 242 | end |
| 243 | do |
| 244 | local p = Instance.new("Part") |
| 245 | p.Shape = Enum.PartType.Cylinder |
| 246 | p.Name = "LegL_Upper" |
| 247 | p.Size = Vector3.new(2.00997, 0.7, 0.7) |
| 248 | p.CFrame = CFrame.new(1.2, 3, 0.1) * CFrame.Angles(math.rad(84.2894), math.rad(-90), math.rad(0)) |
| 249 | p.BrickColor = BrickColor.new("Nougat") |
| 250 | p.Material = Enum.Material.Glacier |
| 251 | p.MaterialVariant = "2022 Stud" |
| 252 | p.Anchored = true |
| 253 | p.Parent = model |
| 254 | end |
| 255 | do |
| 256 | local p = Instance.new("Part") |
| 257 | p.Shape = Enum.PartType.Cylinder |
| 258 | p.Name = "LegL_Lower" |
| 259 | p.Size = Vector3.new(1.51327, 0.6, 0.6) |
| 260 | p.CFrame = CFrame.new(1.2, 1.25, 0.1) * CFrame.Angles(math.rad(-82.4054), math.rad(90), math.rad(0)) |
| 261 | p.BrickColor = BrickColor.new("Nougat") |
| 262 | p.Material = Enum.Material.Glacier |
| 263 | p.MaterialVariant = "2022 Stud" |
| 264 | p.Anchored = true |
| 265 | p.Parent = model |
| 266 | end |
| 267 | do |
| 268 | local p = Instance.new("Part") |
| 269 | p.Name = "FootL" |
| 270 | p.Size = Vector3.new(1.6, 0.5, 2.8) |
| 271 | p.CFrame = CFrame.new(1.2, 0.25, -1) |
| 272 | p.BrickColor = BrickColor.new("Nougat") |
| 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.Cylinder |
| 281 | p.Name = "ToesL" |
| 282 | p.Size = Vector3.new(1.6, 0.65, 0.65) |
| 283 | p.CFrame = CFrame.new(1.28, 0.25, -2.4) |
| 284 | p.BrickColor = BrickColor.new("Nougat") |
| 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.Cylinder |
| 293 | p.Name = "Bat_Handle" |
| 294 | p.Size = Vector3.new(1.46969, 0.4, 0.4) |
| 295 | p.CFrame = CFrame.new(-2.98911, 5.02722, -1.47278) * CFrame.Angles(math.rad(-180), math.rad(68.1986), math.rad(137.124)) |
| 296 | p.BrickColor = BrickColor.new("Reddish brown") |
| 297 | p.Material = Enum.Material.Glacier |
| 298 | p.MaterialVariant = "2022 Small Stud" |
| 299 | p.Anchored = true |
| 300 | p.Parent = model |
| 301 | end |
| 302 | do |
| 303 | local p = Instance.new("Part") |
| 304 | p.Shape = Enum.PartType.Cylinder |
| 305 | p.Name = "Bat_Body" |
| 306 | p.Size = Vector3.new(5.87878, 1.16, 1.16) |
| 307 | p.CFrame = CFrame.new(-4, 2.5, -4) * CFrame.Angles(math.rad(-180), math.rad(68.1986), math.rad(137.124)) |
| 308 | p.BrickColor = BrickColor.new("Reddish brown") |
| 309 | p.Material = Enum.Material.Glacier |
| 310 | p.MaterialVariant = "2022 Small 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 = "Bat_Knob" |
| 318 | p.Size = Vector3.new(0.6, 0.6, 0.6) |
| 319 | p.CFrame = CFrame.new(-2.7, 5.7, -0.8) |
| 320 | p.BrickColor = BrickColor.new("Reddish brown") |
| 321 | p.Material = Enum.Material.Glacier |
| 322 | p.MaterialVariant = "2022 Small Stud" |
| 323 | p.Anchored = true |
| 324 | p.Parent = model |
| 325 | end |
| 326 | do |
| 327 | local p = Instance.new("Part") |
| 328 | p.Shape = Enum.PartType.Ball |
| 329 | p.Name = "Bat_Tip" |
| 330 | p.Size = Vector3.new(1.2, 1.2, 1.2) |
| 331 | p.CFrame = CFrame.new(-4.8, 0.5, -6) |
| 332 | p.BrickColor = BrickColor.new("Reddish brown") |
| 333 | p.Material = Enum.Material.Glacier |
| 334 | p.MaterialVariant = "2022 Small Stud" |
| 335 | p.Anchored = true |
| 336 | p.Parent = model |
| 337 | end |
| 338 | do |
| 339 | local rightV = Vector3.new(1,0,0).Unit |
| 340 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 341 | local normalV = upV:Cross(rightV) |
| 342 | local pos = Vector3.new(-1.1, 13.54, -2.26) |
| 343 | local cyl = Instance.new("Part") |
| 344 | cyl.Shape = Enum.PartType.Cylinder |
| 345 | cyl.Size = Vector3.new(0.3, 3.4, 3.4) |
| 346 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 347 | cyl.BrickColor = BrickColor.new("Nougat") |
| 348 | cyl.Material = Enum.Material.Glacier |
| 349 | cyl.MaterialVariant = "2022 Stud" |
| 350 | cyl.Anchored = true; cyl.Parent = workspace |
| 351 | local cuts = {} |
| 352 | local angBoxes = {} |
| 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(6.8, 0.5, 6.8) |
| 358 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 3.4 * edgePerp, edgeDir, normalV) |
| 359 | cut.BrickColor = BrickColor.new("Nougat") |
| 360 | cut.Material = Enum.Material.Glacier |
| 361 | cut.MaterialVariant = "2022 Stud" |
| 362 | cut.Anchored = true; cut.Parent = workspace |
| 363 | table.insert(angBoxes, cut) |
| 364 | end |
| 365 | do |
| 366 | local edgeDir = -1*rightV + 0*upV |
| 367 | local edgePerp = 0*rightV + -1*upV |
| 368 | local cut = Instance.new("Part") |
| 369 | cut.Size = Vector3.new(6.8, 0.5, 6.8) |
| 370 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 3.4 * edgePerp, edgeDir, normalV) |
| 371 | cut.BrickColor = BrickColor.new("Nougat") |
| 372 | cut.Material = Enum.Material.Glacier |
| 373 | cut.MaterialVariant = "2022 Stud" |
| 374 | cut.Anchored = true; cut.Parent = workspace |
| 375 | table.insert(angBoxes, cut) |
| 376 | end |
| 377 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 378 | if #cuts > 0 then |
| 379 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 380 | for _, c in ipairs(cuts) do c:Destroy() end |
| 381 | if ok and result then |
| 382 | cyl:Destroy() |
| 383 | result.Name = "EyeL_Lid"; result.Anchored = true; result.Parent = model |
| 384 | else |
| 385 | cyl.Name = "EyeL_Lid"; cyl.Parent = model |
| 386 | end |
| 387 | else |
| 388 | cyl.Name = "EyeL_Lid"; cyl.Parent = model |
| 389 | end |
| 390 | end |
| 391 | do |
| 392 | local rightV = Vector3.new(1,0,0).Unit |
| 393 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 394 | local normalV = upV:Cross(rightV) |
| 395 | local pos = Vector3.new(1.1, 13.5, -2.3) |
| 396 | local cyl = Instance.new("Part") |
| 397 | cyl.Shape = Enum.PartType.Cylinder |
| 398 | cyl.Size = Vector3.new(0.3, 3.4, 3.4) |
| 399 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 400 | cyl.BrickColor = BrickColor.new("Nougat") |
| 401 | cyl.Material = Enum.Material.Glacier |
| 402 | cyl.MaterialVariant = "2022 Stud" |
| 403 | cyl.Anchored = true; cyl.Parent = workspace |
| 404 | local cuts = {} |
| 405 | local angBoxes = {} |
| 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(6.8, 0.5, 6.8) |
| 411 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 3.4 * edgePerp, edgeDir, normalV) |
| 412 | cut.BrickColor = BrickColor.new("Nougat") |
| 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 | do |
| 419 | local edgeDir = -1*rightV + 0*upV |
| 420 | local edgePerp = 0*rightV + -1*upV |
| 421 | local cut = Instance.new("Part") |
| 422 | cut.Size = Vector3.new(6.8, 0.5, 6.8) |
| 423 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 3.4 * edgePerp, edgeDir, normalV) |
| 424 | cut.BrickColor = BrickColor.new("Nougat") |
| 425 | cut.Material = Enum.Material.Glacier |
| 426 | cut.MaterialVariant = "2022 Stud" |
| 427 | cut.Anchored = true; cut.Parent = workspace |
| 428 | table.insert(angBoxes, cut) |
| 429 | end |
| 430 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 431 | if #cuts > 0 then |
| 432 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 433 | for _, c in ipairs(cuts) do c:Destroy() end |
| 434 | if ok and result then |
| 435 | cyl:Destroy() |
| 436 | result.Name = "EyeR_Lid"; result.Anchored = true; result.Parent = model |
| 437 | else |
| 438 | cyl.Name = "EyeR_Lid"; cyl.Parent = model |
| 439 | end |
| 440 | else |
| 441 | cyl.Name = "EyeR_Lid"; cyl.Parent = model |
| 442 | end |
| 443 | end |
| 444 | do |
| 445 | local rightV = Vector3.new(1,0,0).Unit |
| 446 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 447 | local normalV = upV:Cross(rightV) |
| 448 | local pos = Vector3.new(0, 11.5, -2.4) |
| 449 | local cyl = Instance.new("Part") |
| 450 | cyl.Shape = Enum.PartType.Cylinder |
| 451 | cyl.Size = Vector3.new(0.2, 4, 4) |
| 452 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 453 | cyl.BrickColor = BrickColor.new("Reddish brown") |
| 454 | cyl.Material = Enum.Material.Glacier |
| 455 | cyl.MaterialVariant = "2022 Small Stud" |
| 456 | cyl.Anchored = true; cyl.Parent = workspace |
| 457 | local cuts = {} |
| 458 | local hole = Instance.new("Part") |
| 459 | hole.Shape = Enum.PartType.Cylinder |
| 460 | hole.Size = Vector3.new(0.4, 3.6, 3.6) |
| 461 | hole.CFrame = cyl.CFrame |
| 462 | hole.BrickColor = BrickColor.new("Reddish brown") |
| 463 | hole.Material = Enum.Material.Glacier |
| 464 | hole.MaterialVariant = "2022 Small Stud" |
| 465 | hole.Anchored = true; hole.Parent = workspace |
| 466 | table.insert(cuts, hole) |
| 467 | local angBoxes = {} |
| 468 | do |
| 469 | local edgeDir = -0.984808*rightV + -0.173648*upV |
| 470 | local edgePerp = 0.173648*rightV + -0.984808*upV |
| 471 | local cut = Instance.new("Part") |
| 472 | cut.Size = Vector3.new(8, 0.4, 8) |
| 473 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 4 * edgePerp, edgeDir, normalV) |
| 474 | cut.BrickColor = BrickColor.new("Reddish brown") |
| 475 | cut.Material = Enum.Material.Glacier |
| 476 | cut.MaterialVariant = "2022 Small Stud" |
| 477 | cut.Anchored = true; cut.Parent = workspace |
| 478 | table.insert(angBoxes, cut) |
| 479 | end |
| 480 | do |
| 481 | local edgeDir = 0.984808*rightV + -0.173648*upV |
| 482 | local edgePerp = 0.173648*rightV + 0.984808*upV |
| 483 | local cut = Instance.new("Part") |
| 484 | cut.Size = Vector3.new(8, 0.4, 8) |
| 485 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 4 * edgePerp, edgeDir, normalV) |
| 486 | cut.BrickColor = BrickColor.new("Reddish brown") |
| 487 | cut.Material = Enum.Material.Glacier |
| 488 | cut.MaterialVariant = "2022 Small Stud" |
| 489 | cut.Anchored = true; cut.Parent = workspace |
| 490 | table.insert(angBoxes, cut) |
| 491 | end |
| 492 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 493 | if #cuts > 0 then |
| 494 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 495 | for _, c in ipairs(cuts) do c:Destroy() end |
| 496 | if ok and result then |
| 497 | cyl:Destroy() |
| 498 | result.Name = "Smile"; result.Anchored = true; result.Parent = model |
| 499 | else |
| 500 | cyl.Name = "Smile"; cyl.Parent = model |
| 501 | end |
| 502 | else |
| 503 | cyl.Name = "Smile"; cyl.Parent = model |
| 504 | end |
| 505 | end |
| 506 | do |
| 507 | local upV = Vector3.new(0,1,0).Unit |
| 508 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 509 | local forwardV = rightV:Cross(upV) |
| 510 | local pos = Vector3.new(0, 16.04, 0) |
| 511 | local ball = Instance.new("Part") |
| 512 | ball.Shape = Enum.PartType.Ball |
| 513 | ball.Size = Vector3.new(5, 5, 5) |
| 514 | ball.CFrame = CFrame.new(pos) |
| 515 | ball.BrickColor = BrickColor.new("Nougat") |
| 516 | ball.Material = Enum.Material.Glacier |
| 517 | ball.MaterialVariant = "2022 Stud" |
| 518 | ball.Anchored = true; ball.Parent = workspace |
| 519 | local cuts = {} |
| 520 | do |
| 521 | local h = 0 |
| 522 | local cut = Instance.new("Part") |
| 523 | cut.Size = Vector3.new(10, 10, 10) |
| 524 | cut.CFrame = CFrame.fromMatrix(pos + upV*(-5), rightV, upV) |
| 525 | cut.BrickColor = BrickColor.new("Nougat") |
| 526 | cut.Material = Enum.Material.Glacier |
| 527 | cut.MaterialVariant = "2022 Stud" |
| 528 | cut.Anchored = true; cut.Parent = workspace |
| 529 | table.insert(cuts, cut) |
| 530 | end |
| 531 | if #cuts > 0 then |
| 532 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 533 | for _, c in ipairs(cuts) do c:Destroy() end |
| 534 | if ok and result then |
| 535 | ball:Destroy() |
| 536 | result.Name = "BodyTop"; result.Anchored = true; result.Parent = model |
| 537 | else |
| 538 | ball.Name = "BodyTop"; ball.Parent = model |
| 539 | end |
| 540 | else |
| 541 | ball.Name = "BodyTop"; ball.Parent = model |
| 542 | end |
| 543 | end |
| 544 | do |
| 545 | local upV = Vector3.new(0,-1,0).Unit |
| 546 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 547 | local forwardV = rightV:Cross(upV) |
| 548 | local pos = Vector3.new(0, 3.96, 0) |
| 549 | local ball = Instance.new("Part") |
| 550 | ball.Shape = Enum.PartType.Ball |
| 551 | ball.Size = Vector3.new(5, 5, 5) |
| 552 | ball.CFrame = CFrame.new(pos) |
| 553 | ball.BrickColor = BrickColor.new("Nougat") |
| 554 | ball.Material = Enum.Material.Glacier |
| 555 | ball.MaterialVariant = "2022 Stud" |
| 556 | ball.Anchored = true; ball.Parent = workspace |
| 557 | local cuts = {} |
| 558 | do |
| 559 | local h = 0 |
| 560 | local cut = Instance.new("Part") |
| 561 | cut.Size = Vector3.new(10, 10, 10) |
| 562 | cut.CFrame = CFrame.fromMatrix(pos + upV*(-5), rightV, upV) |
| 563 | cut.BrickColor = BrickColor.new("Nougat") |
| 564 | cut.Material = Enum.Material.Glacier |
| 565 | cut.MaterialVariant = "2022 Stud" |
| 566 | cut.Anchored = true; cut.Parent = workspace |
| 567 | table.insert(cuts, cut) |
| 568 | end |
| 569 | if #cuts > 0 then |
| 570 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 571 | for _, c in ipairs(cuts) do c:Destroy() end |
| 572 | if ok and result then |
| 573 | ball:Destroy() |
| 574 | result.Name = "BodyBot"; result.Anchored = true; result.Parent = model |
| 575 | else |
| 576 | ball.Name = "BodyBot"; ball.Parent = model |
| 577 | end |
| 578 | else |
| 579 | ball.Name = "BodyBot"; ball.Parent = model |
| 580 | end |
| 581 | end |
| 582 | do |
| 583 | local upV = Vector3.new(0,1,0).Unit |
| 584 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 585 | local forwardV = rightV:Cross(upV) |
| 586 | local pos = Vector3.new(0, 11.8, -3) |
| 587 | local ball = Instance.new("Part") |
| 588 | ball.Shape = Enum.PartType.Ball |
| 589 | ball.Size = Vector3.new(1.2, 1.2, 1.2) |
| 590 | ball.CFrame = CFrame.new(pos) |
| 591 | ball.BrickColor = BrickColor.new("Nougat") |
| 592 | ball.Material = Enum.Material.Glacier |
| 593 | ball.MaterialVariant = "2022 Stud" |
| 594 | ball.Anchored = true; ball.Parent = workspace |
| 595 | local cuts = {} |
| 596 | if #cuts > 0 then |
| 597 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 598 | for _, c in ipairs(cuts) do c:Destroy() end |
| 599 | if ok and result then |
| 600 | ball:Destroy() |
| 601 | result.Name = "NoseTip"; result.Anchored = true; result.Parent = model |
| 602 | else |
| 603 | ball.Name = "NoseTip"; ball.Parent = model |
| 604 | end |
| 605 | else |
| 606 | ball.Name = "NoseTip"; ball.Parent = model |
| 607 | end |
| 608 | end |
| 609 | model.PrimaryPart = model:FindFirstChild("BodyMain") |
| 610 | print("WoodenCharacter built: " .. #model:GetChildren() .. " parts") |
Loading comments...