Loading model...
by Oscar · 8/1/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: GrassBlock |
| 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 = "GrassBlock" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["#14f014"] = "2022 Stud", |
| 25 | ["#16c016"] = "2022 Stud", |
| 26 | ["#1abc1a"] = "2022 Stud", |
| 27 | ["#1aea1a"] = "2022 Stud", |
| 28 | ["#25cb25"] = "2022 Stud", |
| 29 | ["#6d482c"] = "2022 Small Stud", |
| 30 | } |
| 31 | do |
| 32 | local p = Instance.new("Part") |
| 33 | p.Name = "DirtBase" |
| 34 | p.Size = Vector3.new(10, 8, 10) |
| 35 | p.CFrame = CFrame.new(0, 4, 0) |
| 36 | p.Color = Color3.fromRGB(109, 72, 44) |
| 37 | p.Material = Enum.Material.Glacier |
| 38 | p.Anchored = true |
| 39 | p.Parent = model |
| 40 | end |
| 41 | do |
| 42 | local p = Instance.new("Part") |
| 43 | p.Name = "GrassTop" |
| 44 | p.Size = Vector3.new(10, 2, 10) |
| 45 | p.CFrame = CFrame.new(0, 9.04, 0) |
| 46 | p.Color = Color3.fromRGB(20, 240, 20) |
| 47 | p.Material = Enum.Material.Glacier |
| 48 | p.Anchored = true |
| 49 | p.Parent = model |
| 50 | end |
| 51 | do |
| 52 | local p = Instance.new("Part") |
| 53 | p.Name = "GrassTrim_N" |
| 54 | p.Size = Vector3.new(10.4, 1, 0.2) |
| 55 | p.CFrame = CFrame.new(0, 8.5, -5.14) |
| 56 | p.Color = Color3.fromRGB(26, 234, 26) |
| 57 | p.Material = Enum.Material.Glacier |
| 58 | p.Anchored = true |
| 59 | p.Parent = model |
| 60 | end |
| 61 | do |
| 62 | local p = Instance.new("Part") |
| 63 | p.Name = "GrassTrim_S" |
| 64 | p.Size = Vector3.new(10.4, 1, 0.2) |
| 65 | p.CFrame = CFrame.new(0, 8.5, 5.14) |
| 66 | p.Color = Color3.fromRGB(37, 203, 37) |
| 67 | p.Material = Enum.Material.Glacier |
| 68 | p.Anchored = true |
| 69 | p.Parent = model |
| 70 | end |
| 71 | do |
| 72 | local p = Instance.new("Part") |
| 73 | p.Name = "GrassTrim_E" |
| 74 | p.Size = Vector3.new(0.2, 1, 10) |
| 75 | p.CFrame = CFrame.new(5.14, 8.5, 0) |
| 76 | p.Color = Color3.fromRGB(26, 188, 26) |
| 77 | p.Material = Enum.Material.Glacier |
| 78 | p.Anchored = true |
| 79 | p.Parent = model |
| 80 | end |
| 81 | do |
| 82 | local p = Instance.new("Part") |
| 83 | p.Name = "GrassTrim_W" |
| 84 | p.Size = Vector3.new(0.2, 1, 10) |
| 85 | p.CFrame = CFrame.new(-5.14, 8.5, 0) |
| 86 | p.Color = Color3.fromRGB(22, 192, 22) |
| 87 | p.Material = Enum.Material.Glacier |
| 88 | p.Anchored = true |
| 89 | p.Parent = model |
| 90 | end |
| 91 | model.PrimaryPart = model:FindFirstChild("DirtBase") |
| 92 | print("GrassBlock built: " .. #model:GetChildren() .. " parts") |
Loading comments...