Loading model...
by gennaro grandio · 8/31/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: HappySausage |
| 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 = "HappySausage" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Institutional white"] = "2022 Stud", |
| 25 | ["Pink"] = "2022 Stud", |
| 26 | ["Really black"] = "2022 Universal", |
| 27 | ["Terra Cotta"] = "2022 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(10, 3, 3) |
| 34 | p.CFrame = CFrame.new(0, 10, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 35 | p.BrickColor = BrickColor.new("Terra Cotta") |
| 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.Name = "TuftMid" |
| 44 | p.Size = Vector3.new(0.4, 1.2, 0.4) |
| 45 | p.CFrame = CFrame.new(0, 16.8, 0) |
| 46 | p.BrickColor = BrickColor.new("Terra Cotta") |
| 47 | p.Material = Enum.Material.Glacier |
| 48 | p.MaterialVariant = "2022 Stud" |
| 49 | p.Anchored = true |
| 50 | p.Parent = model |
| 51 | end |
| 52 | do |
| 53 | local p = Instance.new("Part") |
| 54 | p.Name = "TuftLeft" |
| 55 | p.Size = Vector3.new(0.4, 1, 0.4) |
| 56 | p.CFrame = CFrame.new(-0.8, 16.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(30)) |
| 57 | p.BrickColor = BrickColor.new("Terra Cotta") |
| 58 | p.Material = Enum.Material.Glacier |
| 59 | p.MaterialVariant = "2022 Stud" |
| 60 | p.Anchored = true |
| 61 | p.Parent = model |
| 62 | end |
| 63 | do |
| 64 | local p = Instance.new("Part") |
| 65 | p.Name = "TuftRight" |
| 66 | p.Size = Vector3.new(0.4, 1, 0.4) |
| 67 | p.CFrame = CFrame.new(0.8, 16.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-30)) |
| 68 | p.BrickColor = BrickColor.new("Terra Cotta") |
| 69 | p.Material = Enum.Material.Glacier |
| 70 | p.MaterialVariant = "2022 Stud" |
| 71 | p.Anchored = true |
| 72 | p.Parent = model |
| 73 | end |
| 74 | do |
| 75 | local p = Instance.new("Part") |
| 76 | p.Name = "EyeL1" |
| 77 | p.Size = Vector3.new(0.6, 0.15, 0.15) |
| 78 | p.CFrame = CFrame.new(-0.8, 13.2, -1.37) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(20)) |
| 79 | p.BrickColor = BrickColor.new("Really black") |
| 80 | p.Material = Enum.Material.Glacier |
| 81 | p.MaterialVariant = "2022 Universal" |
| 82 | p.Anchored = true |
| 83 | p.Parent = model |
| 84 | end |
| 85 | do |
| 86 | local p = Instance.new("Part") |
| 87 | p.Name = "EyeL2" |
| 88 | p.Size = Vector3.new(0.6, 0.15, 0.15) |
| 89 | p.CFrame = CFrame.new(-0.3, 13.2, -1.45) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-20)) |
| 90 | p.BrickColor = BrickColor.new("Really black") |
| 91 | p.Material = Enum.Material.Glacier |
| 92 | p.MaterialVariant = "2022 Universal" |
| 93 | p.Anchored = true |
| 94 | p.Parent = model |
| 95 | end |
| 96 | do |
| 97 | local p = Instance.new("Part") |
| 98 | p.Name = "EyeR1" |
| 99 | p.Size = Vector3.new(0.6, 0.15, 0.15) |
| 100 | p.CFrame = CFrame.new(0.3, 13.2, -1.37) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(20)) |
| 101 | p.BrickColor = BrickColor.new("Really black") |
| 102 | p.Material = Enum.Material.Glacier |
| 103 | p.MaterialVariant = "2022 Universal" |
| 104 | p.Anchored = true |
| 105 | p.Parent = model |
| 106 | end |
| 107 | do |
| 108 | local p = Instance.new("Part") |
| 109 | p.Name = "EyeR2" |
| 110 | p.Size = Vector3.new(0.6, 0.15, 0.15) |
| 111 | p.CFrame = CFrame.new(0.8, 13.2, -1.45) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-20)) |
| 112 | p.BrickColor = BrickColor.new("Really black") |
| 113 | p.Material = Enum.Material.Glacier |
| 114 | p.MaterialVariant = "2022 Universal" |
| 115 | p.Anchored = true |
| 116 | p.Parent = model |
| 117 | end |
| 118 | do |
| 119 | local p = Instance.new("Part") |
| 120 | p.Shape = Enum.PartType.Cylinder |
| 121 | p.Name = "ArmL_Upper" |
| 122 | p.Size = Vector3.new(2.5807, 0.16, 0.16) |
| 123 | p.CFrame = CFrame.new(-2.45, 11.75, 0) * CFrame.Angles(math.rad(-180), math.rad(0), math.rad(-144.462)) |
| 124 | p.BrickColor = BrickColor.new("Really black") |
| 125 | p.Material = Enum.Material.Glacier |
| 126 | p.MaterialVariant = "2022 Universal" |
| 127 | p.Anchored = true |
| 128 | p.Parent = model |
| 129 | end |
| 130 | do |
| 131 | local p = Instance.new("Part") |
| 132 | p.Shape = Enum.PartType.Cylinder |
| 133 | p.Name = "ArmL_Lower" |
| 134 | p.Size = Vector3.new(1.41421, 0.2, 0.2) |
| 135 | p.CFrame = CFrame.new(-4, 12, 0) * CFrame.Angles(math.rad(-180), math.rad(0), math.rad(135)) |
| 136 | p.BrickColor = BrickColor.new("Really black") |
| 137 | p.Material = Enum.Material.Glacier |
| 138 | p.MaterialVariant = "2022 Universal" |
| 139 | p.Anchored = true |
| 140 | p.Parent = model |
| 141 | end |
| 142 | do |
| 143 | local p = Instance.new("Part") |
| 144 | p.Shape = Enum.PartType.Ball |
| 145 | p.Name = "HandL" |
| 146 | p.Size = Vector3.new(0.8, 0.8, 0.8) |
| 147 | p.CFrame = CFrame.new(-4.5, 11.5, 0) |
| 148 | p.BrickColor = BrickColor.new("Terra Cotta") |
| 149 | p.Material = Enum.Material.Glacier |
| 150 | p.MaterialVariant = "2022 Stud" |
| 151 | p.Anchored = true |
| 152 | p.Parent = model |
| 153 | end |
| 154 | do |
| 155 | local p = Instance.new("Part") |
| 156 | p.Shape = Enum.PartType.Cylinder |
| 157 | p.Name = "ArmR_Upper" |
| 158 | p.Size = Vector3.new(2.9, 0.16, 0.16) |
| 159 | p.CFrame = CFrame.new(2.45, 9, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-43.6028)) |
| 160 | p.BrickColor = BrickColor.new("Really black") |
| 161 | p.Material = Enum.Material.Glacier |
| 162 | p.MaterialVariant = "2022 Universal" |
| 163 | p.Anchored = true |
| 164 | p.Parent = model |
| 165 | end |
| 166 | do |
| 167 | local p = Instance.new("Part") |
| 168 | p.Shape = Enum.PartType.Cylinder |
| 169 | p.Name = "ArmR_Lower" |
| 170 | p.Size = Vector3.new(1.41421, 0.2, 0.2) |
| 171 | p.CFrame = CFrame.new(4, 7.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-45)) |
| 172 | p.BrickColor = BrickColor.new("Really black") |
| 173 | p.Material = Enum.Material.Glacier |
| 174 | p.MaterialVariant = "2022 Universal" |
| 175 | p.Anchored = true |
| 176 | p.Parent = model |
| 177 | end |
| 178 | do |
| 179 | local p = Instance.new("Part") |
| 180 | p.Shape = Enum.PartType.Ball |
| 181 | p.Name = "HandR" |
| 182 | p.Size = Vector3.new(0.8, 0.8, 0.8) |
| 183 | p.CFrame = CFrame.new(4.5, 7, 0) |
| 184 | p.BrickColor = BrickColor.new("Terra Cotta") |
| 185 | p.Material = Enum.Material.Glacier |
| 186 | p.MaterialVariant = "2022 Stud" |
| 187 | p.Anchored = true |
| 188 | p.Parent = model |
| 189 | end |
| 190 | do |
| 191 | local p = Instance.new("Part") |
| 192 | p.Shape = Enum.PartType.Cylinder |
| 193 | p.Name = "LegL_Upper" |
| 194 | p.Size = Vector3.new(2.30868, 0.16, 0.16) |
| 195 | p.CFrame = CFrame.new(-1.15, 4.1, 0) * CFrame.Angles(math.rad(-180), math.rad(0), math.rad(107.65)) |
| 196 | p.BrickColor = BrickColor.new("Really black") |
| 197 | p.Material = Enum.Material.Glacier |
| 198 | p.MaterialVariant = "2022 Universal" |
| 199 | p.Anchored = true |
| 200 | p.Parent = model |
| 201 | end |
| 202 | do |
| 203 | local p = Instance.new("Part") |
| 204 | p.Shape = Enum.PartType.Cylinder |
| 205 | p.Name = "LegL_Lower" |
| 206 | p.Size = Vector3.new(2.06155, 0.2, 0.2) |
| 207 | p.CFrame = CFrame.new(-1.75, 2, 0) * CFrame.Angles(math.rad(-180), math.rad(0), math.rad(104.036)) |
| 208 | p.BrickColor = BrickColor.new("Really black") |
| 209 | p.Material = Enum.Material.Glacier |
| 210 | p.MaterialVariant = "2022 Universal" |
| 211 | p.Anchored = true |
| 212 | p.Parent = model |
| 213 | end |
| 214 | do |
| 215 | local p = Instance.new("Part") |
| 216 | p.Shape = Enum.PartType.Cylinder |
| 217 | p.Name = "LegR_Upper" |
| 218 | p.Size = Vector3.new(2.30868, 0.16, 0.16) |
| 219 | p.CFrame = CFrame.new(1.15, 4.1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-72.3499)) |
| 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.Cylinder |
| 229 | p.Name = "LegR_Lower" |
| 230 | p.Size = Vector3.new(2.06155, 0.2, 0.2) |
| 231 | p.CFrame = CFrame.new(1.25, 2, 0) * CFrame.Angles(math.rad(-180), math.rad(0), math.rad(104.036)) |
| 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("WedgePart") |
| 240 | p.Name = "ShoeL" |
| 241 | p.Size = Vector3.new(1.2, 1, 2) |
| 242 | p.CFrame = CFrame.new(-2.2, 0.5, -0.5) |
| 243 | p.BrickColor = BrickColor.new("Really black") |
| 244 | p.Material = Enum.Material.Glacier |
| 245 | p.MaterialVariant = "2022 Universal" |
| 246 | p.Anchored = true |
| 247 | p.Parent = model |
| 248 | end |
| 249 | do |
| 250 | local p = Instance.new("WedgePart") |
| 251 | p.Name = "ShoeR" |
| 252 | p.Size = Vector3.new(1.2, 1, 2) |
| 253 | p.CFrame = CFrame.new(1.2, 0.5, -0.5) |
| 254 | p.BrickColor = BrickColor.new("Really black") |
| 255 | p.Material = Enum.Material.Glacier |
| 256 | p.MaterialVariant = "2022 Universal" |
| 257 | p.Anchored = true |
| 258 | p.Parent = model |
| 259 | end |
| 260 | do |
| 261 | local rightV = Vector3.new(1,0,0).Unit |
| 262 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 263 | local normalV = upV:Cross(rightV) |
| 264 | local pos = Vector3.new(0, 11.8, -1.4) |
| 265 | local cyl = Instance.new("Part") |
| 266 | cyl.Shape = Enum.PartType.Cylinder |
| 267 | cyl.Size = Vector3.new(0.2, 2.4, 2.4) |
| 268 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 269 | cyl.BrickColor = BrickColor.new("Really black") |
| 270 | cyl.Material = Enum.Material.Glacier |
| 271 | cyl.MaterialVariant = "2022 Universal" |
| 272 | cyl.Anchored = true; cyl.Parent = workspace |
| 273 | local cuts = {} |
| 274 | local angBoxes = {} |
| 275 | do |
| 276 | local edgeDir = -1*rightV + 0*upV |
| 277 | local edgePerp = 0*rightV + -1*upV |
| 278 | local cut = Instance.new("Part") |
| 279 | cut.Size = Vector3.new(4.8, 0.4, 4.8) |
| 280 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 2.4 * edgePerp, edgeDir, normalV) |
| 281 | cut.BrickColor = BrickColor.new("Really black") |
| 282 | cut.Material = Enum.Material.Glacier |
| 283 | cut.MaterialVariant = "2022 Universal" |
| 284 | cut.Anchored = true; cut.Parent = workspace |
| 285 | table.insert(angBoxes, cut) |
| 286 | end |
| 287 | do |
| 288 | local edgeDir = 1*rightV + 0*upV |
| 289 | local edgePerp = 0*rightV + 1*upV |
| 290 | local cut = Instance.new("Part") |
| 291 | cut.Size = Vector3.new(4.8, 0.4, 4.8) |
| 292 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 2.4 * edgePerp, edgeDir, normalV) |
| 293 | cut.BrickColor = BrickColor.new("Really black") |
| 294 | cut.Material = Enum.Material.Glacier |
| 295 | cut.MaterialVariant = "2022 Universal" |
| 296 | cut.Anchored = true; cut.Parent = workspace |
| 297 | table.insert(angBoxes, cut) |
| 298 | end |
| 299 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 300 | if #cuts > 0 then |
| 301 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 302 | for _, c in ipairs(cuts) do c:Destroy() end |
| 303 | if ok and result then |
| 304 | cyl:Destroy() |
| 305 | result.Name = "MouthBg"; result.Anchored = true; result.Parent = model |
| 306 | else |
| 307 | cyl.Name = "MouthBg"; cyl.Parent = model |
| 308 | end |
| 309 | else |
| 310 | cyl.Name = "MouthBg"; cyl.Parent = model |
| 311 | end |
| 312 | end |
| 313 | do |
| 314 | local rightV = Vector3.new(1,0,0).Unit |
| 315 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 316 | local normalV = upV:Cross(rightV) |
| 317 | local pos = Vector3.new(0, 11.84, -1.45) |
| 318 | local cyl = Instance.new("Part") |
| 319 | cyl.Shape = Enum.PartType.Cylinder |
| 320 | cyl.Size = Vector3.new(0.25, 2.4, 2.4) |
| 321 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 322 | cyl.BrickColor = BrickColor.new("Institutional white") |
| 323 | cyl.Material = Enum.Material.Glacier |
| 324 | cyl.MaterialVariant = "2022 Stud" |
| 325 | cyl.Anchored = true; cyl.Parent = workspace |
| 326 | local cuts = {} |
| 327 | local hole = Instance.new("Part") |
| 328 | hole.Shape = Enum.PartType.Cylinder |
| 329 | hole.Size = Vector3.new(0.45, 1.6, 1.6) |
| 330 | hole.CFrame = cyl.CFrame |
| 331 | hole.BrickColor = BrickColor.new("Institutional white") |
| 332 | hole.Material = Enum.Material.Glacier |
| 333 | hole.MaterialVariant = "2022 Stud" |
| 334 | hole.Anchored = true; hole.Parent = workspace |
| 335 | table.insert(cuts, hole) |
| 336 | local angBoxes = {} |
| 337 | do |
| 338 | local edgeDir = -1*rightV + 0*upV |
| 339 | local edgePerp = 0*rightV + -1*upV |
| 340 | local cut = Instance.new("Part") |
| 341 | cut.Size = Vector3.new(4.8, 0.45, 4.8) |
| 342 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 2.4 * edgePerp, edgeDir, normalV) |
| 343 | cut.BrickColor = BrickColor.new("Institutional white") |
| 344 | cut.Material = Enum.Material.Glacier |
| 345 | cut.MaterialVariant = "2022 Stud" |
| 346 | cut.Anchored = true; cut.Parent = workspace |
| 347 | table.insert(angBoxes, cut) |
| 348 | end |
| 349 | do |
| 350 | local edgeDir = 1*rightV + 0*upV |
| 351 | local edgePerp = 0*rightV + 1*upV |
| 352 | local cut = Instance.new("Part") |
| 353 | cut.Size = Vector3.new(4.8, 0.45, 4.8) |
| 354 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 2.4 * edgePerp, edgeDir, normalV) |
| 355 | cut.BrickColor = BrickColor.new("Institutional white") |
| 356 | cut.Material = Enum.Material.Glacier |
| 357 | cut.MaterialVariant = "2022 Stud" |
| 358 | cut.Anchored = true; cut.Parent = workspace |
| 359 | table.insert(angBoxes, cut) |
| 360 | end |
| 361 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 362 | if #cuts > 0 then |
| 363 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 364 | for _, c in ipairs(cuts) do c:Destroy() end |
| 365 | if ok and result then |
| 366 | cyl:Destroy() |
| 367 | result.Name = "Teeth"; result.Anchored = true; result.Parent = model |
| 368 | else |
| 369 | cyl.Name = "Teeth"; cyl.Parent = model |
| 370 | end |
| 371 | else |
| 372 | cyl.Name = "Teeth"; cyl.Parent = model |
| 373 | end |
| 374 | end |
| 375 | do |
| 376 | local rightV = Vector3.new(1,0,0).Unit |
| 377 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 378 | local normalV = upV:Cross(rightV) |
| 379 | local pos = Vector3.new(0, 11, -1.41) |
| 380 | local cyl = Instance.new("Part") |
| 381 | cyl.Shape = Enum.PartType.Cylinder |
| 382 | cyl.Size = Vector3.new(0.25, 1.6, 1.6) |
| 383 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 384 | cyl.BrickColor = BrickColor.new("Pink") |
| 385 | cyl.Material = Enum.Material.Glacier |
| 386 | cyl.MaterialVariant = "2022 Stud" |
| 387 | cyl.Anchored = true; cyl.Parent = workspace |
| 388 | local cuts = {} |
| 389 | local angBoxes = {} |
| 390 | do |
| 391 | local edgeDir = -0.766044*rightV + -0.642788*upV |
| 392 | local edgePerp = 0.642788*rightV + -0.766044*upV |
| 393 | local cut = Instance.new("Part") |
| 394 | cut.Size = Vector3.new(3.2, 0.45, 3.2) |
| 395 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 1.6 * edgePerp, edgeDir, normalV) |
| 396 | cut.BrickColor = BrickColor.new("Pink") |
| 397 | cut.Material = Enum.Material.Glacier |
| 398 | cut.MaterialVariant = "2022 Stud" |
| 399 | cut.Anchored = true; cut.Parent = workspace |
| 400 | table.insert(angBoxes, cut) |
| 401 | end |
| 402 | do |
| 403 | local edgeDir = 0.766044*rightV + -0.642788*upV |
| 404 | local edgePerp = 0.642788*rightV + 0.766044*upV |
| 405 | local cut = Instance.new("Part") |
| 406 | cut.Size = Vector3.new(3.2, 0.45, 3.2) |
| 407 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 1.6 * edgePerp, edgeDir, normalV) |
| 408 | cut.BrickColor = BrickColor.new("Pink") |
| 409 | cut.Material = Enum.Material.Glacier |
| 410 | cut.MaterialVariant = "2022 Stud" |
| 411 | cut.Anchored = true; cut.Parent = workspace |
| 412 | table.insert(angBoxes, cut) |
| 413 | end |
| 414 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 415 | if #cuts > 0 then |
| 416 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 417 | for _, c in ipairs(cuts) do c:Destroy() end |
| 418 | if ok and result then |
| 419 | cyl:Destroy() |
| 420 | result.Name = "Tongue"; result.Anchored = true; result.Parent = model |
| 421 | else |
| 422 | cyl.Name = "Tongue"; cyl.Parent = model |
| 423 | end |
| 424 | else |
| 425 | cyl.Name = "Tongue"; cyl.Parent = model |
| 426 | end |
| 427 | end |
| 428 | do |
| 429 | local upV = Vector3.new(0,1,0).Unit |
| 430 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 431 | local forwardV = rightV:Cross(upV) |
| 432 | local pos = Vector3.new(0, 15.04, 0) |
| 433 | local ball = Instance.new("Part") |
| 434 | ball.Shape = Enum.PartType.Ball |
| 435 | ball.Size = Vector3.new(3, 3, 3) |
| 436 | ball.CFrame = CFrame.new(pos) |
| 437 | ball.BrickColor = BrickColor.new("Terra Cotta") |
| 438 | ball.Material = Enum.Material.Glacier |
| 439 | ball.MaterialVariant = "2022 Stud" |
| 440 | ball.Anchored = true; ball.Parent = workspace |
| 441 | local cuts = {} |
| 442 | do |
| 443 | local h = 0 |
| 444 | local cut = Instance.new("Part") |
| 445 | cut.Size = Vector3.new(6, 6, 6) |
| 446 | cut.CFrame = CFrame.fromMatrix(pos + upV*(-3), rightV, upV) |
| 447 | cut.BrickColor = BrickColor.new("Terra Cotta") |
| 448 | cut.Material = Enum.Material.Glacier |
| 449 | cut.MaterialVariant = "2022 Stud" |
| 450 | cut.Anchored = true; cut.Parent = workspace |
| 451 | table.insert(cuts, cut) |
| 452 | end |
| 453 | if #cuts > 0 then |
| 454 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 455 | for _, c in ipairs(cuts) do c:Destroy() end |
| 456 | if ok and result then |
| 457 | ball:Destroy() |
| 458 | result.Name = "BodyTop"; result.Anchored = true; result.Parent = model |
| 459 | else |
| 460 | ball.Name = "BodyTop"; ball.Parent = model |
| 461 | end |
| 462 | else |
| 463 | ball.Name = "BodyTop"; ball.Parent = model |
| 464 | end |
| 465 | end |
| 466 | do |
| 467 | local upV = Vector3.new(0,-1,0).Unit |
| 468 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 469 | local forwardV = rightV:Cross(upV) |
| 470 | local pos = Vector3.new(0, 4.96, 0) |
| 471 | local ball = Instance.new("Part") |
| 472 | ball.Shape = Enum.PartType.Ball |
| 473 | ball.Size = Vector3.new(3, 3, 3) |
| 474 | ball.CFrame = CFrame.new(pos) |
| 475 | ball.BrickColor = BrickColor.new("Terra Cotta") |
| 476 | ball.Material = Enum.Material.Glacier |
| 477 | ball.MaterialVariant = "2022 Stud" |
| 478 | ball.Anchored = true; ball.Parent = workspace |
| 479 | local cuts = {} |
| 480 | do |
| 481 | local h = 0 |
| 482 | local cut = Instance.new("Part") |
| 483 | cut.Size = Vector3.new(6, 6, 6) |
| 484 | cut.CFrame = CFrame.fromMatrix(pos + upV*(-3), rightV, upV) |
| 485 | cut.BrickColor = BrickColor.new("Terra Cotta") |
| 486 | cut.Material = Enum.Material.Glacier |
| 487 | cut.MaterialVariant = "2022 Stud" |
| 488 | cut.Anchored = true; cut.Parent = workspace |
| 489 | table.insert(cuts, cut) |
| 490 | end |
| 491 | if #cuts > 0 then |
| 492 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 493 | for _, c in ipairs(cuts) do c:Destroy() end |
| 494 | if ok and result then |
| 495 | ball:Destroy() |
| 496 | result.Name = "BodyBot"; result.Anchored = true; result.Parent = model |
| 497 | else |
| 498 | ball.Name = "BodyBot"; ball.Parent = model |
| 499 | end |
| 500 | else |
| 501 | ball.Name = "BodyBot"; ball.Parent = model |
| 502 | end |
| 503 | end |
| 504 | model.PrimaryPart = model:FindFirstChild("BodyMain") |
| 505 | print("HappySausage built: " .. #model:GetChildren() .. " parts") |
Loading comments...