Help with a water script

hello fellow Developers i need some help today,

my friend Ryan is making a mini-games game
and he is trying to make a script so that when a mini game starts the water rises and when everybody is dead the water STOPS rising. do any of you know what to do?

let me know ASAP

Your Friend -teyougin

some pointers

when game starts put all current players in a array (just their names)
do a while wait(3) loop and make water rise
if someone touches part they die and remove their name from array
if the array is empty break the loop

hopefully you can use the pseudo code to get you in the right direction,

tips: use remote events and for loops to cycle through each player and get their name

I’d use tween size, but then it would stretch the size both ways.

Yeah what this guy said, just have the water rise slowly (tweening) and stop it once the array is empty as he said.