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

Hover Script help?

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.

1 comment

0

I'm not very good at scripting Velocity scripts :c

1 answer

✓ Accepted answer

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!

2 comments

0

What is BodyMovers?

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."

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