Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to find a cell material?

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)

1 answer

✓ Accepted answer

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.