Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How'd you make stuff float?

Im making a game that involves boats and roblox water but they dont float... I've thought about making a looping script that adds' a few numbers on the appropriate axis to keep the boat afloat, but this would make it look unrealistic.

If anyone could think of any other ideas? Would be much appreciated Thanks! =)

1 comment

0

Use a BodyPosition or BodyForce instance.

1 answer

✓ Accepted answer

Look at the SpecificGravity property of your parts. This property determines the "weight" of a part. If it is over 1, it will sink, otherwise, it will float. The closer it is to 0, the more it will float. The SpecificGravity property can only be modified by changing your part's material. The material with the lowest SpecificGravity is wood, so try turning all the parts of your boat into wood, and it will have better chances of floating.

Or if that doesn't work, try adding a BodyForce in any part of your boat, and try modifying its value on the Y axis until it floats properly.

1 comment

0

Worked perfectly! Although did take a while to find a number which it floats at. Thank you very much =)

This discussion is preserved as it was. New answers, comments, and votes are closed.