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:
I mean 10 studs isnt that big right? Also I never use replace material and also Region3 before. Please help!