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

How do I float a model 2 studs above the ground?

Using the :GetMass of a model(I think) how would I make it so that it would be able to set the amount of force(BodyForce) it would take to 'float' the model 2 studs off the ground based on its "Mass"

1 comment

0

Please refrain from titling questions things like "Formula". It doesn't help those on the Questions page know what your asking.

2 answers

✓ Accepted answer

You can take a look at this wiki page about gravity in roblox. It mostly explains how you'd get the object to float.

For keeping it at 2 studs, you could use a BodyPosition, set it's position's y to 2 (or whatever is 2 studs above your ground) and then set the x and z of the maxForce to 0 so those aren't affected, just the y.

1 comment

0

I wanted to say this :((( :P

This would need lots off math, but basically put: you would make the Y velocity the mass (I think) + the distance of 2 studs.

5 comments

0

Yeah..... I know that....

0

Then why'd you ask?

0

Your answer didn't provide any of the information he wasn't asking for.

0

Yes, it did, except that I said to use a part's velocity rather than a body mass. Either that or his question wasn't specific enough.

0

Your answer doesn't fit his question. Not to my knowledge, at least.

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