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

How'd you make stuff float?

Asked by
Uroxus 350 Moderation Voter
9 years ago

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! =)

0
Use a BodyPosition or BodyForce instance. Perci1 4988 — 9y

1 answer

Log in to vote
1
Answered by
Asleum 135
9 years ago

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.

0
Worked perfectly! Although did take a while to find a number which it floats at. Thank you very much =) Uroxus 350 — 9y
Ad

Answer this question