Help with custom water ocean

I created a custom water part that you can swim in, the problem is I want to build an ocean, but that would look ugly like this:


Part max size is 2048 x 2048 x 2048, the ocean is much bigger so how do I fix this?

This would probably be better fit in build support.

If you need to make your ocean that big and need the collision aspect that parts offer, you could try breaking up a cube into several pieces with some faces removed then piece them together in studio.

Upload a corner piece, an edge piece, and a centre piece.

Corner piece would have 2 adjacent faces of the cube removed.

Centre piece would have only top and bottom faces.

Edge face would have 3 horizontal faces in a row removed.

Then when you piece them all together, even though they appear to form a single rectangular prism, they can be broken into any number of parts thus allowing you to bypass the 2048^3 part size. And there isn’t any overlap at the seams

image
image
Here’s a file if you want:
prism.rbxm (3.6 KB)

2 Likes


image
image
image

Change the .Scale property’s X/Z components to how large you want the ocean to be

2 Likes

That wouldn’t work in my case because I coded a custom swim which ultilize basepart properties

1 Like

Accidentally pressed solution lol, I’ll try out this method

2 Likes

You could have your swim script trigger when the Character’s RootPart is below a certain Y threshhold

1 Like

How would that work in a cave system?

1 Like

If it’s isolated then you could use some sort of region detection to manually set the Y-threshold for when the swimming state can be activated

1 Like

That makes sense, I’ll also try out your method

1 Like

Alright I rewrote my script, although both @7z99’s method and @overflowed’s method work, overflowed’s seems more efficient based on how I coded it, very much thanks to both of you.

3 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.