Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
2

How would I set terrain to snow?

Asked by
GShocked 150
8 years ago

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

Log in to vote
2
Answered by
XAXA 1569 Moderation Voter
8 years ago

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.

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)` GShocked 150 — 8y
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. GShocked 150 — 8y
Ad

Answer this question