if TerrainData:Get() then
for i ,v in pairs(TerrainData:Get({})) do
if v.Type == "Union" then
print(v.Id.Name)
elseif v.Type == "Block" then
local Part = game.ReplicatedStorage.TerrainParts:FindFirstChild(v.Id):Clone()
local offset = CFrame.new(v.GOOD.x ,v.GOOD.y , v.GOOD.z )
Part.CFrame = PLATE.CFrame:ToWorldSpace(offset * CFrame.Angles(v.ROT.X , v.ROT.Y , v.ROT.Z))
Part.Size = Vector3.new(v.Size.X , v.Size.Y , v.Size.Z)
Part.Transparency = 1
Part.Parent = Terrain
if v.Id == "Block" then
workspace.Terrain:FillBlock(Part.CFrame, Part.Size, Enum.Material[v.MAT])
elseif v.Id == "Cylinder" then
workspace.Terrain:FillCylinder(Part.CFrame, Part.Position.Y,(Part.Size.X / 2) * 2 , Enum.Material[v.MAT])
elseif v.Id == "Sphere" then
game.Workspace.Terrain:FillBlock(Part.CFrame , size , Enum.Material.Air)
end
end
end
else
end