Documentation incorrectly states that CorrodedMetal Applies to BasePart and Terrain

The documentation on Material reads:

CorrodedMetal 1040 Applies to BasePart and Terrain.

This is false, however.

If you try to create CorrodedMetal terrain:

workspace.Terrain:FillRegion(Region3.new(Vector3.new(-8,-8,-8), Vector3.new(8, 8, 8)), 4, Enum.Material.CorrodedMetal)

The result is Grass which is used as a placeholder for any invalid terrain material, not Corroded Metal.

Page URL: https://create.roblox.com/docs/reference/engine/enums/Material

1 Like

Hi @asadefa ,
Thanks for pointing this out! I’ve updated the docs to read that CorrodedMetal only applies to BasePart.

https://create.roblox.com/docs/en-us/reference/engine/enums/Material

IgnisRBX

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.