How can I manipulate Roblox Water?

I want to make a explosion in the water, and I want the Explosion to move the water to. I’ve seen a video of someone being able to manipulate the terrain water, but Im not sure how to do this.

So what do I do?

1 Like

If you can show us the video you’re referring to, it’ll help us with achieving your goal! :slight_smile:

The Terrain instance offers a number of methods that manipulate terrain. Some of those functions include:

** If you’re looking to remove terrain, such as water, then you will want to pass your material type as Air when calling any of the fill or replace methods.

water physics in roblox - YouTube

The water physics demoed in that video are avilable in an open-source model on the marketplace if you would like to check it out more in-depth:
https://create.roblox.com/marketplace/asset/4962656019/water

A step-by-step breakdown of how this model works:

  1. Loops through all balls every frame
  2. Gets the ball’s previous cframe and size from a table
  3. Uses FillBlock to fill the ball’s previous cframe with a block of air the size of the ball
  4. Uses FillBlock to fill the ball’s current cframe with a block of water the current size of the ball
  5. Updates the table of the ball’s previous cframe and size with its current cframe and size