addEventHandler("onClientGUIClick",root,
function ()
if ( source == GUIEditor.button[5] ) then
x1 = guiGetText(GUIEditor.edit[1])
y1 = guiGetText(GUIEditor.edit[2])
x2 = guiGetText(GUIEditor.edit[4])
y2 = guiGetText(GUIEditor.edit[5])
x3 = guiGetText(GUIEditor.edit[7])
y3 = guiGetText(GUIEditor.edit[8])
x4 = guiGetText(GUIEditor.edit[12])
y4 = guiGetText(GUIEditor.edit[11])
HIGH = guiGetText(GUIEditor.edit[13])
water = createWater ( x1, y1, HIGH, x2, y2, HIGH, x3,y3, HIGH, x3, y4, z4 )
setWaterLevel ( HIGH )
end --- end function
end ---- end if
)