Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make water that gives buoyancy to objects and players? [closed]

Asked by 8 years ago

I am really stumped for this part of my game. How do I make it so how my players and objects built in the game to be floating or sinking in this water body I have created using scripting? I assume there are multiple ways to create this but I do not know how. Could someone help me out with this?

0
Dude, not a request site. But if you were to make some type of effort we could possibly help you. TheHospitalDev 1134 — 8y

Closed as off-topic by M39a9am3R

This question has been closed by our community as being off-topic from ROBLOX Lua Scripting.

Why was this question closed?

1 answer

Log in to vote
0
Answered by
M39a9am3R 3210 Moderation Voter Community Moderator
8 years ago

Hello CoolAgentSammy. Buoyancy and density are actually part of a few ROBLOX Updates recently released. You can control what objects can float on terrain water, and what objects can not float on terrain water.

What you will want to do is in Roblox studio select any part you want to float. Open the properties window and, categorized under part, find the property named "CustomPhysicalProperties". Click the tick mark and you should be able to expand the property. You should then see five different properties one of which deals with density. All you would have to do from there is set the density to anything over 1 to make the part sink, or anything under 1 to make the part float. You might find yourself messing around with this quite a bit until you get your desired result.

Since this is not a Roblox Scripting question entirely, or at least you did not provide script, this question will be locked as off topic. Hopefully I was able to help.

Ad