Loading model...
by Ромасик · 9/15/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: RedCharacter |
| 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 = "RedCharacter" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Bright red"] = "2022 Stud", |
| 25 | ["Really black"] = "2022 Universal", |
| 26 | } |
| 27 | do |
| 28 | local p = Instance.new("Part") |
| 29 | p.Name = "Torso" |
| 30 | p.Size = Vector3.new(2, 2, 1) |
| 31 | p.CFrame = CFrame.new(0, 3, 0) |
| 32 | p.BrickColor = BrickColor.new("Bright red") |
| 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.Shape = Enum.PartType.Cylinder |
| 41 | p.Name = "Head" |
| 42 | p.Size = Vector3.new(1.2, 1.2, 1.2) |
| 43 | p.CFrame = CFrame.new(0, 4.64, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 44 | p.BrickColor = BrickColor.new("Bright red") |
| 45 | p.Material = Enum.Material.Glacier |
| 46 | p.MaterialVariant = "2022 Stud" |
| 47 | p.Anchored = true |
| 48 | p.Parent = model |
| 49 | end |
| 50 | do |
| 51 | local p = Instance.new("Part") |
| 52 | p.Name = "RightLeg" |
| 53 | p.Size = Vector3.new(1, 2, 1) |
| 54 | p.CFrame = CFrame.new(-0.54, 0.96, 0) |
| 55 | p.BrickColor = BrickColor.new("Bright red") |
| 56 | p.Material = Enum.Material.Glacier |
| 57 | p.MaterialVariant = "2022 Stud" |
| 58 | p.Anchored = true |
| 59 | p.Parent = model |
| 60 | end |
| 61 | do |
| 62 | local p = Instance.new("Part") |
| 63 | p.Name = "LeftLeg" |
| 64 | p.Size = Vector3.new(1, 2, 1) |
| 65 | p.CFrame = CFrame.new(0.5, 0.96, 0) |
| 66 | p.BrickColor = BrickColor.new("Bright red") |
| 67 | p.Material = Enum.Material.Glacier |
| 68 | p.MaterialVariant = "2022 Stud" |
| 69 | p.Anchored = true |
| 70 | p.Parent = model |
| 71 | end |
| 72 | do |
| 73 | local p = Instance.new("Part") |
| 74 | p.Name = "RightArm" |
| 75 | p.Size = Vector3.new(2.08087, 1, 1) |
| 76 | p.CFrame = CFrame.new(-1.95, 4.4, 0.04) * CFrame.Angles(math.rad(-180), math.rad(0), math.rad(-144.782)) |
| 77 | p.BrickColor = BrickColor.new("Bright red") |
| 78 | p.Material = Enum.Material.Glacier |
| 79 | p.MaterialVariant = "2022 Stud" |
| 80 | p.Anchored = true |
| 81 | p.Parent = model |
| 82 | end |
| 83 | do |
| 84 | local p = Instance.new("Part") |
| 85 | p.Name = "LeftArm" |
| 86 | p.Size = Vector3.new(1.83848, 1, 1) |
| 87 | p.CFrame = CFrame.new(1.95, 4.15, 0.04) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(22.3801)) |
| 88 | p.BrickColor = BrickColor.new("Bright red") |
| 89 | p.Material = Enum.Material.Glacier |
| 90 | p.MaterialVariant = "2022 Stud" |
| 91 | p.Anchored = true |
| 92 | p.Parent = model |
| 93 | end |
| 94 | do |
| 95 | local p = Instance.new("Part") |
| 96 | p.Name = "RightEye" |
| 97 | p.Size = Vector3.new(0.15, 0.25, 0.1) |
| 98 | p.CFrame = CFrame.new(-0.25, 4.7, -0.55) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 99 | p.BrickColor = BrickColor.new("Really black") |
| 100 | p.Material = Enum.Material.Glacier |
| 101 | p.MaterialVariant = "2022 Universal" |
| 102 | p.Anchored = true |
| 103 | p.Parent = model |
| 104 | end |
| 105 | do |
| 106 | local p = Instance.new("Part") |
| 107 | p.Name = "LeftEye" |
| 108 | p.Size = Vector3.new(0.15, 0.25, 0.1) |
| 109 | p.CFrame = CFrame.new(0.25, 4.7, -0.55) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 110 | p.BrickColor = BrickColor.new("Really black") |
| 111 | p.Material = Enum.Material.Glacier |
| 112 | p.MaterialVariant = "2022 Universal" |
| 113 | p.Anchored = true |
| 114 | p.Parent = model |
| 115 | end |
| 116 | do |
| 117 | local rightV = Vector3.new(1,0,0).Unit |
| 118 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 119 | local normalV = upV:Cross(rightV) |
| 120 | local pos = Vector3.new(0, 4.5, -0.55) |
| 121 | local cyl = Instance.new("Part") |
| 122 | cyl.Shape = Enum.PartType.Cylinder |
| 123 | cyl.Size = Vector3.new(0.1, 0.7, 0.7) |
| 124 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 125 | cyl.BrickColor = BrickColor.new("Really black") |
| 126 | cyl.Material = Enum.Material.Glacier |
| 127 | cyl.MaterialVariant = "2022 Universal" |
| 128 | cyl.Anchored = true; cyl.Parent = workspace |
| 129 | local cuts = {} |
| 130 | local hole = Instance.new("Part") |
| 131 | hole.Shape = Enum.PartType.Cylinder |
| 132 | hole.Size = Vector3.new(0.3, 0.5, 0.5) |
| 133 | hole.CFrame = cyl.CFrame |
| 134 | hole.BrickColor = BrickColor.new("Really black") |
| 135 | hole.Material = Enum.Material.Glacier |
| 136 | hole.MaterialVariant = "2022 Universal" |
| 137 | hole.Anchored = true; hole.Parent = workspace |
| 138 | table.insert(cuts, hole) |
| 139 | local angBoxes = {} |
| 140 | do |
| 141 | local edgeDir = -1*rightV + 0*upV |
| 142 | local edgePerp = 0*rightV + -1*upV |
| 143 | local cut = Instance.new("Part") |
| 144 | cut.Size = Vector3.new(1.4, 0.3, 1.4) |
| 145 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 0.7 * edgePerp, edgeDir, normalV) |
| 146 | cut.BrickColor = BrickColor.new("Really black") |
| 147 | cut.Material = Enum.Material.Glacier |
| 148 | cut.MaterialVariant = "2022 Universal" |
| 149 | cut.Anchored = true; cut.Parent = workspace |
| 150 | table.insert(angBoxes, cut) |
| 151 | end |
| 152 | do |
| 153 | local edgeDir = 1*rightV + 0*upV |
| 154 | local edgePerp = 0*rightV + 1*upV |
| 155 | local cut = Instance.new("Part") |
| 156 | cut.Size = Vector3.new(1.4, 0.3, 1.4) |
| 157 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 0.7 * edgePerp, edgeDir, normalV) |
| 158 | cut.BrickColor = BrickColor.new("Really black") |
| 159 | cut.Material = Enum.Material.Glacier |
| 160 | cut.MaterialVariant = "2022 Universal" |
| 161 | cut.Anchored = true; cut.Parent = workspace |
| 162 | table.insert(angBoxes, cut) |
| 163 | end |
| 164 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 165 | if #cuts > 0 then |
| 166 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 167 | for _, c in ipairs(cuts) do c:Destroy() end |
| 168 | if ok and result then |
| 169 | cyl:Destroy() |
| 170 | result.Name = "Smile"; result.Anchored = true; result.Parent = model |
| 171 | else |
| 172 | cyl.Name = "Smile"; cyl.Parent = model |
| 173 | end |
| 174 | else |
| 175 | cyl.Name = "Smile"; cyl.Parent = model |
| 176 | end |
| 177 | end |
| 178 | model.PrimaryPart = model:FindFirstChild("Torso") |
| 179 | print("RedCharacter built: " .. #model:GetChildren() .. " parts") |
Loading comments...