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

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

Asked by
Lineout 10
10 years ago

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"

0
Please refrain from titling questions things like "Formula". It doesn't help those on the Questions page know what your asking. User#2 0 — 10y

2 answers

Log in to vote
2
Answered by
User#2 0
10 years ago

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.

0
I wanted to say this :((( :P TheMyrco 375 — 10y
Ad
Log in to vote
-3
Answered by
drahsid5 250 Moderation Voter
10 years ago

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

0
Yeah..... I know that.... Lineout 10 — 10y
0
Then why'd you ask? drahsid5 250 — 10y
0
Your answer didn't provide any of the information he wasn't asking for. User#2 0 — 10y
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. drahsid5 250 — 10y
0
Your answer doesn't fit his question. Not to my knowledge, at least. User#2 0 — 10y

Answer this question