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

How would I set terrain to snow?

I have the following line that is run in a certain loop. I need to make snow, not grass.

workspace.Terrain:SetCell(newx,newy+100,newz,1,0,0)

http://wiki.roblox.com/index.php?title=API:Enum/CellMaterial

The link above details the cellmaterials available, but snow isn't one of them.

How can I set the cell as snow? Or how can I change all my terrain to snow?

1 answer

That is for legacy (blocky) terrain. Legacy terrain did not have snow material. You may want to use FillBlock instead. For a list of new terrain materials, look at the Material enum.

2 comments

0

Sorry about the very late reply, but I've not really been on Roblox in a while. Anyhow, this doesn't seem to work either. I have the following line, but it creates grass instead of snow: workspace.Terrain:FillBlock(CFrame.new(newx,newy,newz), Vector3.new(1,3,1), Enum.Material.Snow)

0

It works correctly in Studio command line and script. It works correctly in game command line. But when in a game script, this grass problem occurs.

This discussion is preserved as it was. New answers, comments, and votes are closed.