i tried things but there seems to be nothing to find specifically the cell material.
c = game.Workspace.Terrain
print (c:GetCell(x,y,z).Enum.CellMaterial)
i tried things but there seems to be nothing to find specifically the cell material.
c = game.Workspace.Terrain
print (c:GetCell(x,y,z).Enum.CellMaterial)
You need to be getting the material individually from the other two values that the GetCell function returns. Here's how:
local c = game.Workspace.Terrain
local material, block, orientation = c:GetCell(x, y, z)
print(material) -- You only want the CellMaterial
Note: The "material" variable is an Enum, not a String or an Int.
Hope this helps! If it does, don't forget to click Accept Answer and +1 my Rep!
This discussion is preserved as it was. New answers, comments, and votes are closed.