Issue with a underwater ship

I’m trying to achieve a underwater oxygen system. Basically, once someone get inside a submarine for example, the player will be able to breathe and see the water from any window. The issue is that when the submarine is not below or above the ocean (block, not terrain), water gets inside of the ship as shown below:


Observation: There are no issues when the ship is above or below the ocean.

After looking for solutions in the forum, i got surprised that none of them actually worked if the ship had windows. The only viable idea i had to fix this was using ViewportFrame’s to render the ocean on the windows, while the water on the workspace is transparent.

If anyone has any better solution, please post it below.

3 Likes

I’m unaware of how this would work but, it’s just how ROBLOX works. Your best bet is to keep the submarine under water at all times to avoid this issue.

Sorry for the late reply, but the submarine must be at the sea level in a few situations, so i can’t just keep it below the ocean all the time.