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

Hover Script help?

Asked by 10 years ago
game.Workspace.MUSHR0OM.Character.Torso:BodyLock()

I need something like this, to see how my Developers are doing as they test maps. I need a script that hovers me about 5 studs, and even when I go off a platform, I still hover? Does it involve Velocity or something like that? Sorry if this is requesting, it's just really important.

0
I'm not very good at scripting Velocity scripts :c MUSHR0OM 0 — 10y

1 answer

Log in to vote
2
Answered by
duckwit 1404 Moderation Voter
10 years ago

This is pretty much a request, and I'm not going to fulfil it, but I sure will point you in the right direction!

You'll be interested in BodyMovers, and in particular (probably) BodyPosition.

To maintain a constant height you'd set maxForce to Vector3.new(0,30000,0) (anything big), you can experiment with the P and D properties at your own discretion, then just set the position property to Vector3.new(0, yourDesiredHeight,0) and insert the BodyPosition into your Player's torso!

0
What is BodyMovers? MUSHR0OM 0 — 10y
0
BodyMover is the base class that each specific type derives from. The page I linked to describes them as "Objects that are used to move Parts against gravity and other forces." duckwit 1404 — 10y
Ad

Answer this question