Region is too large

Hello!
So I’ve made a sandbox RPG game which has a terrain, noise generation, random structure generation, biomes. And now I came up with a problem. I wanna make a lake and to make it. I need to replace the grass with the water. This is my code:

script.Parent.RemoteEvent.OnServerEvent:Connect(function(player,pos)
local region = Region3.new(pos,Vector3.new(10,10,10))
region:ExpandToGrid(1)
game.Workspace.Terrain:ReplaceMaterial(region,0.5,Enum.Material.LeafyGrass,Enum.Material.Sand)
end)

The result I got on the output was:
image
I mean 10 studs isnt that big right? Also I never use replace material and also Region3 before. Please help!

1 Like

Maybe these articles could help :

1 Like

Thanks, I figured out it was a problem with my resolution. I make it 0.5 so It wont generate. It must be 4+ to make it work (i think)

1 Like