Loading model...
by Red Satom · 5/17/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: DerpyPug |
| 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 = "DerpyPug" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Institutional white"] = "2022 Stud", |
| 25 | ["Nougat"] = "2022 Stud", |
| 26 | ["Pink"] = "2022 Stud", |
| 27 | ["Really black"] = "2022 Universal", |
| 28 | } |
| 29 | do |
| 30 | local p = Instance.new("Part") |
| 31 | p.Name = "TorsoMain" |
| 32 | p.Size = Vector3.new(5.5, 4.5, 6) |
| 33 | p.CFrame = CFrame.new(0, 4, 0.5) |
| 34 | p.BrickColor = BrickColor.new("Nougat") |
| 35 | p.Material = Enum.Material.Glacier |
| 36 | p.MaterialVariant = "2022 Stud" |
| 37 | p.Anchored = true |
| 38 | p.Parent = model |
| 39 | end |
| 40 | do |
| 41 | local p = Instance.new("Part") |
| 42 | p.Name = "TorsoBack" |
| 43 | p.Size = Vector3.new(5, 4, 3) |
| 44 | p.CFrame = CFrame.new(0, 4.2, 3) |
| 45 | p.BrickColor = BrickColor.new("Nougat") |
| 46 | p.Material = Enum.Material.Glacier |
| 47 | p.MaterialVariant = "2022 Stud" |
| 48 | p.Anchored = true |
| 49 | p.Parent = model |
| 50 | end |
| 51 | do |
| 52 | local p = Instance.new("Part") |
| 53 | p.Name = "Belly" |
| 54 | p.Size = Vector3.new(4.8, 1.5, 5.5) |
| 55 | p.CFrame = CFrame.new(0, 2.46, 0.5) |
| 56 | p.BrickColor = BrickColor.new("Nougat") |
| 57 | p.Material = Enum.Material.Glacier |
| 58 | p.MaterialVariant = "2022 Stud" |
| 59 | p.Anchored = true |
| 60 | p.Parent = model |
| 61 | end |
| 62 | do |
| 63 | local p = Instance.new("Part") |
| 64 | p.Name = "NeckFold1" |
| 65 | p.Size = Vector3.new(6.2, 2.5, 2.5) |
| 66 | p.CFrame = CFrame.new(0, 5.8, -1.5) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)) |
| 67 | p.BrickColor = BrickColor.new("Nougat") |
| 68 | p.Material = Enum.Material.Glacier |
| 69 | p.MaterialVariant = "2022 Stud" |
| 70 | p.Anchored = true |
| 71 | p.Parent = model |
| 72 | end |
| 73 | do |
| 74 | local p = Instance.new("Part") |
| 75 | p.Name = "NeckFold2" |
| 76 | p.Size = Vector3.new(6.5, 3, 2.5) |
| 77 | p.CFrame = CFrame.new(0, 5.2, -0.5) * CFrame.Angles(math.rad(5), math.rad(0), math.rad(0)) |
| 78 | p.BrickColor = BrickColor.new("Nougat") |
| 79 | p.Material = Enum.Material.Glacier |
| 80 | p.MaterialVariant = "2022 Stud" |
| 81 | p.Anchored = true |
| 82 | p.Parent = model |
| 83 | end |
| 84 | do |
| 85 | local p = Instance.new("Part") |
| 86 | p.Name = "NeckFold3" |
| 87 | p.Size = Vector3.new(6, 3.5, 2) |
| 88 | p.CFrame = CFrame.new(0, 4.5, -2) * CFrame.Angles(math.rad(25), math.rad(0), math.rad(0)) |
| 89 | p.BrickColor = BrickColor.new("Nougat") |
| 90 | p.Material = Enum.Material.Glacier |
| 91 | p.MaterialVariant = "2022 Stud" |
| 92 | p.Anchored = true |
| 93 | p.Parent = model |
| 94 | end |
| 95 | do |
| 96 | local p = Instance.new("Part") |
| 97 | p.Name = "HeadBase" |
| 98 | p.Size = Vector3.new(5, 4, 3) |
| 99 | p.CFrame = CFrame.new(0, 5.5, -3.5) |
| 100 | p.BrickColor = BrickColor.new("Nougat") |
| 101 | p.Material = Enum.Material.Glacier |
| 102 | p.MaterialVariant = "2022 Stud" |
| 103 | p.Anchored = true |
| 104 | p.Parent = model |
| 105 | end |
| 106 | do |
| 107 | local p = Instance.new("Part") |
| 108 | p.Name = "MuzzleUpper" |
| 109 | p.Size = Vector3.new(4, 2, 1.5) |
| 110 | p.CFrame = CFrame.new(0, 4.8, -4.8) |
| 111 | p.BrickColor = BrickColor.new("Really black") |
| 112 | p.Material = Enum.Material.Glacier |
| 113 | p.MaterialVariant = "2022 Universal" |
| 114 | p.Anchored = true |
| 115 | p.Parent = model |
| 116 | end |
| 117 | do |
| 118 | local p = Instance.new("Part") |
| 119 | p.Name = "MuzzleLower" |
| 120 | p.Size = Vector3.new(3.2, 1.2, 1.2) |
| 121 | p.CFrame = CFrame.new(0, 3.8, -4.6) |
| 122 | p.BrickColor = BrickColor.new("Really black") |
| 123 | p.Material = Enum.Material.Glacier |
| 124 | p.MaterialVariant = "2022 Universal" |
| 125 | p.Anchored = true |
| 126 | p.Parent = model |
| 127 | end |
| 128 | do |
| 129 | local p = Instance.new("Part") |
| 130 | p.Name = "Nose" |
| 131 | p.Size = Vector3.new(1.2, 0.8, 0.6) |
| 132 | p.CFrame = CFrame.new(0, 5.2, -5.6) |
| 133 | p.BrickColor = BrickColor.new("Really black") |
| 134 | p.Material = Enum.Material.Glacier |
| 135 | p.MaterialVariant = "2022 Universal" |
| 136 | p.Anchored = true |
| 137 | p.Parent = model |
| 138 | end |
| 139 | do |
| 140 | local p = Instance.new("Part") |
| 141 | p.Name = "FaceFoldL" |
| 142 | p.Size = Vector3.new(1.5, 1.5, 1) |
| 143 | p.CFrame = CFrame.new(1.2, 5.5, -4.9) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-15)) |
| 144 | p.BrickColor = BrickColor.new("Really black") |
| 145 | p.Material = Enum.Material.Glacier |
| 146 | p.MaterialVariant = "2022 Universal" |
| 147 | p.Anchored = true |
| 148 | p.Parent = model |
| 149 | end |
| 150 | do |
| 151 | local p = Instance.new("Part") |
| 152 | p.Name = "FaceFoldR" |
| 153 | p.Size = Vector3.new(1.5, 1.5, 1) |
| 154 | p.CFrame = CFrame.new(-1.2, 5.5, -4.9) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(15)) |
| 155 | p.BrickColor = BrickColor.new("Really black") |
| 156 | p.Material = Enum.Material.Glacier |
| 157 | p.MaterialVariant = "2022 Universal" |
| 158 | p.Anchored = true |
| 159 | p.Parent = model |
| 160 | end |
| 161 | do |
| 162 | local p = Instance.new("Part") |
| 163 | p.Name = "Tongue" |
| 164 | p.Size = Vector3.new(1.2, 0.3, 1.8) |
| 165 | p.CFrame = CFrame.new(0.8, 3.4, -5.2) * CFrame.Angles(math.rad(-20), math.rad(15), math.rad(0)) |
| 166 | p.BrickColor = BrickColor.new("Pink") |
| 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.Ball |
| 175 | p.Name = "EyeWhiteL" |
| 176 | p.Size = Vector3.new(1.8, 1.8, 1.8) |
| 177 | p.CFrame = CFrame.new(1.8, 6, -4.5) |
| 178 | p.BrickColor = BrickColor.new("Institutional white") |
| 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 = "EyeWhiteR" |
| 188 | p.Size = Vector3.new(1.8, 1.8, 1.8) |
| 189 | p.CFrame = CFrame.new(-1.8, 6, -4.5) |
| 190 | p.BrickColor = BrickColor.new("Institutional white") |
| 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.Ball |
| 199 | p.Name = "PupilL" |
| 200 | p.Size = Vector3.new(0.7, 0.7, 0.7) |
| 201 | p.CFrame = CFrame.new(2.2, 6.4, -5.2) |
| 202 | p.BrickColor = BrickColor.new("Really black") |
| 203 | p.Material = Enum.Material.Glacier |
| 204 | p.MaterialVariant = "2022 Universal" |
| 205 | p.Anchored = true |
| 206 | p.Parent = model |
| 207 | end |
| 208 | do |
| 209 | local p = Instance.new("Part") |
| 210 | p.Shape = Enum.PartType.Ball |
| 211 | p.Name = "PupilR" |
| 212 | p.Size = Vector3.new(0.7, 0.7, 0.7) |
| 213 | p.CFrame = CFrame.new(-1.2, 5.6, -5.2) |
| 214 | p.BrickColor = BrickColor.new("Really black") |
| 215 | p.Material = Enum.Material.Glacier |
| 216 | p.MaterialVariant = "2022 Universal" |
| 217 | p.Anchored = true |
| 218 | p.Parent = model |
| 219 | end |
| 220 | do |
| 221 | local p = Instance.new("Part") |
| 222 | p.Name = "EarL" |
| 223 | p.Size = Vector3.new(0.8, 2.2, 2) |
| 224 | p.CFrame = CFrame.new(2.6, 6.8, -2.5) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(-25)) |
| 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.Name = "EarR" |
| 234 | p.Size = Vector3.new(0.8, 2.2, 2) |
| 235 | p.CFrame = CFrame.new(-2.6, 6.8, -2.5) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(25)) |
| 236 | p.BrickColor = BrickColor.new("Nougat") |
| 237 | p.Material = Enum.Material.Glacier |
| 238 | p.MaterialVariant = "2022 Stud" |
| 239 | p.Anchored = true |
| 240 | p.Parent = model |
| 241 | end |
| 242 | do |
| 243 | local p = Instance.new("Part") |
| 244 | p.Name = "LegFrontL" |
| 245 | p.Size = Vector3.new(1.4, 3, 1.4) |
| 246 | p.CFrame = CFrame.new(1.8, 1.5, -1.5) |
| 247 | p.BrickColor = BrickColor.new("Nougat") |
| 248 | p.Material = Enum.Material.Glacier |
| 249 | p.MaterialVariant = "2022 Stud" |
| 250 | p.Anchored = true |
| 251 | p.Parent = model |
| 252 | end |
| 253 | do |
| 254 | local p = Instance.new("Part") |
| 255 | p.Name = "PawFrontL" |
| 256 | p.Size = Vector3.new(1.6, 0.6, 1.8) |
| 257 | p.CFrame = CFrame.new(1.8, 0.22, -1.8) |
| 258 | p.BrickColor = BrickColor.new("Nougat") |
| 259 | p.Material = Enum.Material.Glacier |
| 260 | p.MaterialVariant = "2022 Stud" |
| 261 | p.Anchored = true |
| 262 | p.Parent = model |
| 263 | end |
| 264 | do |
| 265 | local p = Instance.new("Part") |
| 266 | p.Name = "LegFrontR" |
| 267 | p.Size = Vector3.new(1.4, 3, 1.4) |
| 268 | p.CFrame = CFrame.new(-1.8, 1.5, -1.5) |
| 269 | p.BrickColor = BrickColor.new("Nougat") |
| 270 | p.Material = Enum.Material.Glacier |
| 271 | p.MaterialVariant = "2022 Stud" |
| 272 | p.Anchored = true |
| 273 | p.Parent = model |
| 274 | end |
| 275 | do |
| 276 | local p = Instance.new("Part") |
| 277 | p.Name = "PawFrontR" |
| 278 | p.Size = Vector3.new(1.6, 0.6, 1.8) |
| 279 | p.CFrame = CFrame.new(-1.8, 0.22, -1.8) |
| 280 | p.BrickColor = BrickColor.new("Nougat") |
| 281 | p.Material = Enum.Material.Glacier |
| 282 | p.MaterialVariant = "2022 Stud" |
| 283 | p.Anchored = true |
| 284 | p.Parent = model |
| 285 | end |
| 286 | do |
| 287 | local p = Instance.new("Part") |
| 288 | p.Name = "LegBackL_Upper" |
| 289 | p.Size = Vector3.new(1.6, 2.5, 2) |
| 290 | p.CFrame = CFrame.new(2, 2.5, 3) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)) |
| 291 | p.BrickColor = BrickColor.new("Nougat") |
| 292 | p.Material = Enum.Material.Glacier |
| 293 | p.MaterialVariant = "2022 Stud" |
| 294 | p.Anchored = true |
| 295 | p.Parent = model |
| 296 | end |
| 297 | do |
| 298 | local p = Instance.new("Part") |
| 299 | p.Name = "LegBackL_Lower" |
| 300 | p.Size = Vector3.new(1.4, 2, 1.4) |
| 301 | p.CFrame = CFrame.new(2, 1, 3.5) |
| 302 | p.BrickColor = BrickColor.new("Nougat") |
| 303 | p.Material = Enum.Material.Glacier |
| 304 | p.MaterialVariant = "2022 Stud" |
| 305 | p.Anchored = true |
| 306 | p.Parent = model |
| 307 | end |
| 308 | do |
| 309 | local p = Instance.new("Part") |
| 310 | p.Name = "PawBackL" |
| 311 | p.Size = Vector3.new(1.6, 0.6, 1.8) |
| 312 | p.CFrame = CFrame.new(2, 0.22, 3.2) |
| 313 | p.BrickColor = BrickColor.new("Nougat") |
| 314 | p.Material = Enum.Material.Glacier |
| 315 | p.MaterialVariant = "2022 Stud" |
| 316 | p.Anchored = true |
| 317 | p.Parent = model |
| 318 | end |
| 319 | do |
| 320 | local p = Instance.new("Part") |
| 321 | p.Name = "LegBackR_Upper" |
| 322 | p.Size = Vector3.new(1.6, 2.5, 2) |
| 323 | p.CFrame = CFrame.new(-2, 2.5, 3) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)) |
| 324 | p.BrickColor = BrickColor.new("Nougat") |
| 325 | p.Material = Enum.Material.Glacier |
| 326 | p.MaterialVariant = "2022 Stud" |
| 327 | p.Anchored = true |
| 328 | p.Parent = model |
| 329 | end |
| 330 | do |
| 331 | local p = Instance.new("Part") |
| 332 | p.Name = "LegBackR_Lower" |
| 333 | p.Size = Vector3.new(1.4, 2, 1.4) |
| 334 | p.CFrame = CFrame.new(-2, 1, 3.5) |
| 335 | p.BrickColor = BrickColor.new("Nougat") |
| 336 | p.Material = Enum.Material.Glacier |
| 337 | p.MaterialVariant = "2022 Stud" |
| 338 | p.Anchored = true |
| 339 | p.Parent = model |
| 340 | end |
| 341 | do |
| 342 | local p = Instance.new("Part") |
| 343 | p.Name = "PawBackR" |
| 344 | p.Size = Vector3.new(1.6, 0.6, 1.8) |
| 345 | p.CFrame = CFrame.new(-2, 0.22, 3.2) |
| 346 | p.BrickColor = BrickColor.new("Nougat") |
| 347 | p.Material = Enum.Material.Glacier |
| 348 | p.MaterialVariant = "2022 Stud" |
| 349 | p.Anchored = true |
| 350 | p.Parent = model |
| 351 | end |
| 352 | do |
| 353 | local rightV = Vector3.new(1,0,0).Unit |
| 354 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 355 | local normalV = upV:Cross(rightV) |
| 356 | local pos = Vector3.new(0, 6, 4) |
| 357 | local cyl = Instance.new("Part") |
| 358 | cyl.Shape = Enum.PartType.Cylinder |
| 359 | cyl.Size = Vector3.new(1.2, 2.8, 2.8) |
| 360 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 361 | cyl.BrickColor = BrickColor.new("Nougat") |
| 362 | cyl.Material = Enum.Material.Glacier |
| 363 | cyl.MaterialVariant = "2022 Stud" |
| 364 | cyl.Anchored = true; cyl.Parent = workspace |
| 365 | local cuts = {} |
| 366 | local hole = Instance.new("Part") |
| 367 | hole.Shape = Enum.PartType.Cylinder |
| 368 | hole.Size = Vector3.new(1.4, 0.8, 0.8) |
| 369 | hole.CFrame = cyl.CFrame |
| 370 | hole.BrickColor = BrickColor.new("Nougat") |
| 371 | hole.Material = Enum.Material.Glacier |
| 372 | hole.MaterialVariant = "2022 Stud" |
| 373 | hole.Anchored = true; hole.Parent = workspace |
| 374 | table.insert(cuts, hole) |
| 375 | local angBoxes = {} |
| 376 | do |
| 377 | local edgeDir = 0.707107*rightV + -0.707107*upV |
| 378 | local edgePerp = 0.707107*rightV + 0.707107*upV |
| 379 | local cut = Instance.new("Part") |
| 380 | cut.Size = Vector3.new(5.6, 1.4, 5.6) |
| 381 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 2.8 * edgePerp, edgeDir, normalV) |
| 382 | cut.BrickColor = BrickColor.new("Nougat") |
| 383 | cut.Material = Enum.Material.Glacier |
| 384 | cut.MaterialVariant = "2022 Stud" |
| 385 | cut.Anchored = true; cut.Parent = workspace |
| 386 | table.insert(angBoxes, cut) |
| 387 | end |
| 388 | do |
| 389 | local edgeDir = -0.707107*rightV + -0.707107*upV |
| 390 | local edgePerp = 0.707107*rightV + -0.707107*upV |
| 391 | local cut = Instance.new("Part") |
| 392 | cut.Size = Vector3.new(5.6, 1.4, 5.6) |
| 393 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 2.8 * edgePerp, edgeDir, normalV) |
| 394 | cut.BrickColor = BrickColor.new("Nougat") |
| 395 | cut.Material = Enum.Material.Glacier |
| 396 | cut.MaterialVariant = "2022 Stud" |
| 397 | cut.Anchored = true; cut.Parent = workspace |
| 398 | table.insert(angBoxes, cut) |
| 399 | end |
| 400 | do |
| 401 | local w = angBoxes[1]:IntersectAsync({angBoxes[2]}) |
| 402 | angBoxes[1]:Destroy(); angBoxes[2]:Destroy() |
| 403 | w.Anchored = true; w.Parent = workspace |
| 404 | table.insert(cuts, w) |
| 405 | end |
| 406 | if #cuts > 0 then |
| 407 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 408 | for _, c in ipairs(cuts) do c:Destroy() end |
| 409 | if ok and result then |
| 410 | cyl:Destroy() |
| 411 | result.Name = "TailCurl"; result.Anchored = true; result.Parent = model |
| 412 | else |
| 413 | cyl.Name = "TailCurl"; cyl.Parent = model |
| 414 | end |
| 415 | else |
| 416 | cyl.Name = "TailCurl"; cyl.Parent = model |
| 417 | end |
| 418 | end |
| 419 | model.PrimaryPart = model:FindFirstChild("TorsoMain") |
| 420 | print("DerpyPug built: " .. #model:GetChildren() .. " parts") |
Loading comments...