Terrain Water Wave Physics

It didn’t work for me. The developer console said your render script was attempting to index a nil value on line 76. Also it broke the reset button when I tried to see if that would fix it.