I need to replace a cylinder region of terrain around a model or part

I’ve been researching this for ages. Could anybody help me?

I am making it to where a fire place would melt the snow around it, replacing it with the ground material.

image
i.e the terrain around this part in a cylinder shape would be turned into ground material using a script

You cannot alter any changes with terrain from a script.

I’ve seen games do this before. And you definitely can alter terrain with a script

My bad, you can alter terrain in Roblox via script using the Terrain service.

1 Like

Yeah, the only function I see that is efficient is “ReplaceMaterial” but it is only a square zone inbetween two positions

1 Like

Here’s an example of using Terrain from workspace:

local Terrain = workspace:WaitForChild("Terrain")
local Region = Region3.new(Vector3.new(0, 0, 0), Vector3.new(50, 20, 50))
local Material = Enum.Material.Grass
terrain:FillRegion(Region, 30, Material)

30 is strength of Grass that has to be applied.
Region is the place where Terrain has to be placed.
Material can be any Enum.Material

1 Like