I am working on a new game that I need a script to make it so any part with any material can float, and I need a way to change the velocity via a script. The material is different each time, meaning the gravity will be different each time.
✓ ANSWER ACCEPTED
How do I make something float with BodyVelocity?
1 answer
✓ Accepted answer
You need to get the mass of the object using the GetMass method and then multiply the mass by gravity, which is 196.2 on Roblox. Also note that you should use BodyForce and not BodyVelocity for this.
Part.BodyForce.force = Vector3.new(0, Part:GetMass() * 196.2, 0)
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
Uh... how do you get 196.2?
Check out this wiki page on gravity: http://wiki.roblox.com/index.php?title=Gravity
Ok, thanks.