Dont have the code rn since i deleted but i remember it.
local function convert(chunk)
local instances = chunk.instances
for i,v in pairs(instances) do
if v.Name == "Wedge" then
workspace.Terrain:FillBlock(v.CFrame,v.Size,Enum.Material.Grass)
v:Destroy()
table.remove(instances,i)
end
end
end
snippet from some code of mine, where w1 and w2 are wedges, hopefully you can adapt it
if TERRAIN then
local success, err = pcall(function()
if value.water then
Terrain:FillWedge(w1.CFrame,w1.Size+Vector3.new(5,4,4),Enum.Material.Water)
Terrain:FillWedge(w2.CFrame,w2.Size+Vector3.new(5,4,4),Enum.Material.Water)
elseif value.coast then
Terrain:FillWedge(w1.CFrame,w1.Size+Vector3.new(5,4,4),Enum.Material.Sand)
Terrain:FillWedge(w2.CFrame,w2.Size+Vector3.new(5,4,4),Enum.Material.Sand)
else
Terrain:FillWedge(w1.CFrame,w1.Size+Vector3.new(5,4,4),Enum.Material.Grass)
Terrain:FillWedge(w2.CFrame,w2.Size+Vector3.new(5,4,4),Enum.Material.Grass)
end
end)
end
Hi do you know if there’s a script I can put in the command bar to turn parts that are named a certain thing to terrain? Like “Grass Block” and turn it into roblox terrain grass?