A while back I wrote a plugin that builds terrain with a few options, you can check it here if you want to test out the approach:
More useful for you, I also published the code here:
The rbxmx can be dropped into (you may have to do something like load plugin) your experience’s plugins folder to allow you to look at the code. As run time is not a big factor for plugins you may find it too slow or cpu heavy as is, but it might give you some ideas.
As others have said, it can be quite a steep learning curve. Good luck!