Loading model...
by 🌱brr · 6/8/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: FarmerNPC |
| 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 = "FarmerNPC" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Institutional white"] = "2022 Stud", |
| 25 | ["Nougat"] = "2022 Stud", |
| 26 | ["Really black"] = "2022 Universal", |
| 27 | ["Sand blue"] = "2022 Stud", |
| 28 | ["Sand yellow"] = "2022 Small Stud", |
| 29 | ["Silver"] = "2022 Stud", |
| 30 | } |
| 31 | do |
| 32 | local p = Instance.new("Part") |
| 33 | p.Name = "TorsoLower" |
| 34 | p.Size = Vector3.new(4, 2, 2) |
| 35 | p.CFrame = CFrame.new(0, 0.92, 0.04) |
| 36 | p.BrickColor = BrickColor.new("Sand blue") |
| 37 | p.Material = Enum.Material.Glacier |
| 38 | p.MaterialVariant = "2022 Stud" |
| 39 | p.Anchored = true |
| 40 | p.Parent = model |
| 41 | end |
| 42 | do |
| 43 | local p = Instance.new("Part") |
| 44 | p.Name = "TorsoUpper" |
| 45 | p.Size = Vector3.new(4, 2, 2) |
| 46 | p.CFrame = CFrame.new(0, 2.96, 0.04) |
| 47 | p.BrickColor = BrickColor.new("Nougat") |
| 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.Name = "Bib" |
| 56 | p.Size = Vector3.new(2.5, 2, 0.2) |
| 57 | p.CFrame = CFrame.new(0, 3.04, -1.13) |
| 58 | p.BrickColor = BrickColor.new("Sand blue") |
| 59 | p.Material = Enum.Material.Glacier |
| 60 | p.MaterialVariant = "2022 Stud" |
| 61 | p.Anchored = true |
| 62 | p.Parent = model |
| 63 | end |
| 64 | do |
| 65 | local p = Instance.new("Part") |
| 66 | p.Name = "StrapL" |
| 67 | p.Size = Vector3.new(0.5, 0.2, 2.2) |
| 68 | p.CFrame = CFrame.new(-1.08, 4.21, -0.5) |
| 69 | p.BrickColor = BrickColor.new("Sand blue") |
| 70 | p.Material = Enum.Material.Glacier |
| 71 | p.MaterialVariant = "2022 Stud" |
| 72 | p.Anchored = true |
| 73 | p.Parent = model |
| 74 | end |
| 75 | do |
| 76 | local p = Instance.new("Part") |
| 77 | p.Name = "StrapR" |
| 78 | p.Size = Vector3.new(0.5, 0.2, 2.2) |
| 79 | p.CFrame = CFrame.new(1.08, 4.21, -0.5) |
| 80 | p.BrickColor = BrickColor.new("Sand blue") |
| 81 | p.Material = Enum.Material.Glacier |
| 82 | p.MaterialVariant = "2022 Stud" |
| 83 | p.Anchored = true |
| 84 | p.Parent = model |
| 85 | end |
| 86 | do |
| 87 | local p = Instance.new("Part") |
| 88 | p.Shape = Enum.PartType.Cylinder |
| 89 | p.Name = "ButtonL" |
| 90 | p.Size = Vector3.new(0.1, 0.4, 0.4) |
| 91 | p.CFrame = CFrame.new(-1, 3.5, -1.26) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 92 | p.BrickColor = BrickColor.new("Silver") |
| 93 | p.Material = Enum.Material.Glacier |
| 94 | p.MaterialVariant = "2022 Stud" |
| 95 | p.Anchored = true |
| 96 | p.Parent = model |
| 97 | end |
| 98 | do |
| 99 | local p = Instance.new("Part") |
| 100 | p.Shape = Enum.PartType.Cylinder |
| 101 | p.Name = "ButtonR" |
| 102 | p.Size = Vector3.new(0.1, 0.4, 0.4) |
| 103 | p.CFrame = CFrame.new(1, 3.5, -1.26) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 104 | p.BrickColor = BrickColor.new("Silver") |
| 105 | p.Material = Enum.Material.Glacier |
| 106 | p.MaterialVariant = "2022 Stud" |
| 107 | p.Anchored = true |
| 108 | p.Parent = model |
| 109 | end |
| 110 | do |
| 111 | local p = Instance.new("Part") |
| 112 | p.Name = "LegL" |
| 113 | p.Size = Vector3.new(1.9, 3, 2) |
| 114 | p.CFrame = CFrame.new(-1, -1.66, 0.08) |
| 115 | p.BrickColor = BrickColor.new("Sand blue") |
| 116 | p.Material = Enum.Material.Glacier |
| 117 | p.MaterialVariant = "2022 Stud" |
| 118 | p.Anchored = true |
| 119 | p.Parent = model |
| 120 | end |
| 121 | do |
| 122 | local p = Instance.new("Part") |
| 123 | p.Name = "LegR" |
| 124 | p.Size = Vector3.new(1.9, 3, 2) |
| 125 | p.CFrame = CFrame.new(1, -1.66, 0.08) |
| 126 | p.BrickColor = BrickColor.new("Sand blue") |
| 127 | p.Material = Enum.Material.Glacier |
| 128 | p.MaterialVariant = "2022 Stud" |
| 129 | p.Anchored = true |
| 130 | p.Parent = model |
| 131 | end |
| 132 | do |
| 133 | local p = Instance.new("Part") |
| 134 | p.Name = "ShoeL" |
| 135 | p.Size = Vector3.new(2, 1, 2.4) |
| 136 | p.CFrame = CFrame.new(-1.04, -3.74, 0.2) |
| 137 | p.BrickColor = BrickColor.new("Really black") |
| 138 | p.Material = Enum.Material.Glacier |
| 139 | p.MaterialVariant = "2022 Universal" |
| 140 | p.Anchored = true |
| 141 | p.Parent = model |
| 142 | end |
| 143 | do |
| 144 | local p = Instance.new("Part") |
| 145 | p.Name = "ShoeR" |
| 146 | p.Size = Vector3.new(2, 1, 2.4) |
| 147 | p.CFrame = CFrame.new(1.04, -3.74, 0.2) |
| 148 | p.BrickColor = BrickColor.new("Really black") |
| 149 | p.Material = Enum.Material.Glacier |
| 150 | p.MaterialVariant = "2022 Universal" |
| 151 | p.Anchored = true |
| 152 | p.Parent = model |
| 153 | end |
| 154 | do |
| 155 | local p = Instance.new("Part") |
| 156 | p.Name = "ArmL" |
| 157 | p.Size = Vector3.new(4.12311, 2, 2) |
| 158 | p.CFrame = CFrame.new(-2.7, 1.5, 0) * CFrame.Angles(math.rad(-180), math.rad(0), math.rad(104.036)) |
| 159 | p.BrickColor = BrickColor.new("Nougat") |
| 160 | p.Material = Enum.Material.Glacier |
| 161 | p.MaterialVariant = "2022 Stud" |
| 162 | p.Anchored = true |
| 163 | p.Parent = model |
| 164 | end |
| 165 | do |
| 166 | local p = Instance.new("Part") |
| 167 | p.Name = "ArmR" |
| 168 | p.Size = Vector3.new(4.12311, 2, 2) |
| 169 | p.CFrame = CFrame.new(2.7, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-75.9638)) |
| 170 | p.BrickColor = BrickColor.new("Nougat") |
| 171 | p.Material = Enum.Material.Glacier |
| 172 | p.MaterialVariant = "2022 Stud" |
| 173 | p.Anchored = true |
| 174 | p.Parent = model |
| 175 | end |
| 176 | do |
| 177 | local p = Instance.new("Part") |
| 178 | p.Name = "Head" |
| 179 | p.Size = Vector3.new(4, 4, 4) |
| 180 | p.CFrame = CFrame.new(0, 6, 0) |
| 181 | p.BrickColor = BrickColor.new("Nougat") |
| 182 | p.Material = Enum.Material.Glacier |
| 183 | p.MaterialVariant = "2022 Stud" |
| 184 | p.Anchored = true |
| 185 | p.Parent = model |
| 186 | end |
| 187 | do |
| 188 | local p = Instance.new("Part") |
| 189 | p.Name = "EyeL" |
| 190 | p.Size = Vector3.new(0.4, 0.8, 0.1) |
| 191 | p.CFrame = CFrame.new(-0.8, 6.5, -2.13) |
| 192 | p.BrickColor = BrickColor.new("Really black") |
| 193 | p.Material = Enum.Material.Glacier |
| 194 | p.MaterialVariant = "2022 Universal" |
| 195 | p.Anchored = true |
| 196 | p.Parent = model |
| 197 | end |
| 198 | do |
| 199 | local p = Instance.new("Part") |
| 200 | p.Name = "EyeR" |
| 201 | p.Size = Vector3.new(0.4, 0.8, 0.1) |
| 202 | p.CFrame = CFrame.new(0.8, 6.5, -2.13) |
| 203 | p.BrickColor = BrickColor.new("Really black") |
| 204 | p.Material = Enum.Material.Glacier |
| 205 | p.MaterialVariant = "2022 Universal" |
| 206 | p.Anchored = true |
| 207 | p.Parent = model |
| 208 | end |
| 209 | do |
| 210 | local p = Instance.new("Part") |
| 211 | p.Name = "EyebrowL" |
| 212 | p.Size = Vector3.new(0.6, 0.15, 0.1) |
| 213 | p.CFrame = CFrame.new(-0.8, 7.1, -2.13) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)) |
| 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 = "EyebrowR" |
| 223 | p.Size = Vector3.new(0.6, 0.15, 0.1) |
| 224 | p.CFrame = CFrame.new(0.8, 7.1, -2.13) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)) |
| 225 | p.BrickColor = BrickColor.new("Really black") |
| 226 | p.Material = Enum.Material.Glacier |
| 227 | p.MaterialVariant = "2022 Universal" |
| 228 | p.Anchored = true |
| 229 | p.Parent = model |
| 230 | end |
| 231 | do |
| 232 | local p = Instance.new("Part") |
| 233 | p.Name = "MouthBG" |
| 234 | p.Size = Vector3.new(2, 1, 0.1) |
| 235 | p.CFrame = CFrame.new(0, 5.5, -2.02) |
| 236 | p.BrickColor = BrickColor.new("Really black") |
| 237 | p.Material = Enum.Material.Glacier |
| 238 | p.MaterialVariant = "2022 Universal" |
| 239 | p.Anchored = true |
| 240 | p.Parent = model |
| 241 | end |
| 242 | do |
| 243 | local p = Instance.new("Part") |
| 244 | p.Name = "MouthTeeth" |
| 245 | p.Size = Vector3.new(1.8, 0.8, 0.1) |
| 246 | p.CFrame = CFrame.new(0, 5.5, -2.09) |
| 247 | p.BrickColor = BrickColor.new("Institutional white") |
| 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.Shape = Enum.PartType.Cylinder |
| 256 | p.Name = "HatBrim" |
| 257 | p.Size = Vector3.new(0.2, 7, 7) |
| 258 | p.CFrame = CFrame.new(0, 8.14, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 259 | p.BrickColor = BrickColor.new("Sand yellow") |
| 260 | p.Material = Enum.Material.Glacier |
| 261 | p.MaterialVariant = "2022 Small Stud" |
| 262 | p.Anchored = true |
| 263 | p.Parent = model |
| 264 | end |
| 265 | do |
| 266 | local upV = Vector3.new(0,1,0).Unit |
| 267 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 268 | local forwardV = rightV:Cross(upV) |
| 269 | local pos = Vector3.new(0, 8.1, 0) |
| 270 | local ball = Instance.new("Part") |
| 271 | ball.Shape = Enum.PartType.Ball |
| 272 | ball.Size = Vector3.new(4, 4, 4) |
| 273 | ball.CFrame = CFrame.new(pos) |
| 274 | ball.BrickColor = BrickColor.new("Sand yellow") |
| 275 | ball.Material = Enum.Material.Glacier |
| 276 | ball.MaterialVariant = "2022 Small Stud" |
| 277 | ball.Anchored = true; ball.Parent = workspace |
| 278 | local cuts = {} |
| 279 | do |
| 280 | local h = 0 |
| 281 | local cut = Instance.new("Part") |
| 282 | cut.Size = Vector3.new(8, 8, 8) |
| 283 | cut.CFrame = CFrame.fromMatrix(pos + upV*(-4), rightV, upV) |
| 284 | cut.BrickColor = BrickColor.new("Sand yellow") |
| 285 | cut.Material = Enum.Material.Glacier |
| 286 | cut.MaterialVariant = "2022 Small Stud" |
| 287 | cut.Anchored = true; cut.Parent = workspace |
| 288 | table.insert(cuts, cut) |
| 289 | end |
| 290 | if #cuts > 0 then |
| 291 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 292 | for _, c in ipairs(cuts) do c:Destroy() end |
| 293 | if ok and result then |
| 294 | ball:Destroy() |
| 295 | result.Name = "HatDome"; result.Anchored = true; result.Parent = model |
| 296 | else |
| 297 | ball.Name = "HatDome"; ball.Parent = model |
| 298 | end |
| 299 | else |
| 300 | ball.Name = "HatDome"; ball.Parent = model |
| 301 | end |
| 302 | end |
| 303 | model.PrimaryPart = model:FindFirstChild("TorsoLower") |
| 304 | print("FarmerNPC built: " .. #model:GetChildren() .. " parts") |
Loading comments...