This has been deprecated in favor of the new version, go check that one out
A complete rewrite is planned for this system (including better swimming physics and skinned mesh water)
Hello devforum, I have seen many people ask how to make a swimmable part, so here you have it. Spanish version.
If you want to support this proyect you can donate here, in the gamepasses section. Anything helps!
Try it out here:
Why use this instead of roblox’s terrain water
-It is a lot more performant than terrain water.
-It is a lot more customizable. There are some parameters you can modify to fit better your experience, and if you are a scripter, you can customize it even more.
How to use it:
-There will be a local script called water part. Place that in
starterCharcterScripts. In this file I use a water part made by @EtiTheSpirit which has an animated texture.
-It is really simple to configure. With this plugin, you make a tag called the same as this value of this property of the script: and then mark all the parts you want to be able to swim in with the plugin.
-There are 3 other configurations. I don’t recommend to modify anything inside the script.
—First you got this. . It is the speed the character will go up when being idle inside the water.
—Second you have this other property. . It is the speed the character will go up when pressing spacebar/touching the right lower part of the screen on mobile/buttonA in xbox.
—Lastly the swim speed, pretty self-explainatory.
-Remember the parts you use have to be can collide false.
-IMPORTANT NOTE: There is currently a bug with tools. I’m not sure if I will be able to fix that tho, since the bug report team ignored me.
-Works with both rig types.
-It works for all platforms.
-If you want the detection to work well, only use it with square shapes that are not rotated.
-Here’s a couple videos about it:
–Made it so the water parts are the ones you tag in collection service. Works with r6 and r15 7/7/2021.
–Added attributes and ability to go up using jump input.
–Added swim speed attribute. 9/7/2021
–Changed some things in the script to make it a lot shorter and fixed this bug
–Fixed this bug:
–Changed the detection system. 25/8/21. Now lets you accurately detect water shapes while using squares(i.e. holes inside the water, for example a cave)