Hello everyone! I’m trying to build a part road with smooth terrain, and to make things easier I’m trying to use a simple code that should help me on that. But for some reason this error appears, and I got no idea on how to fix it.
CODE:
for i,v in pairs(workspace:GetChildren()) do if v.Name == “ROAD” then workspace.Terrain:FillBlock(v.CFrame+Vector3.new(0,50,0),v.Size+Vector3.new(0,100,0),Enum.Material.Air) workspace.Terrain:FillBlock(v.CFrame+Vector3.new(0,-1.5,0),v.Size+Vector3.new(15,-2,5),Enum.Material.Asphalt) end end