New way of making player fly script since "Body Velocity" is now "deprecated"

  1. What do you want to achieve?
    Since “Body Velocity” is now deprecated, I wanted to make the player flight script in my game to be a little future proof. I have tried using “Linear Velocity” instead but to no avail…
  2. What is the issue?
    The result ranges from the player not moving at all, to being flung around uncontrollably.

I am still a beginner at scripting. What is the proper way to use “Linear Velocity”? I have tried attaching it to the player’s attachment.

1 Like

Do you want to make the player fly? Probable you can use ‘vector force’ instead ‘linear velocity’. But of you really want use ‘linear velocity’, you can use an attachment in ‘HumanoidRootPart’ part of character, then set the ‘relative to’ property in ‘attachment0’, and now you need connect the character attachment in the ‘attachmnet0’ property of the LinearVelocity, and adjust the ‘VectorVelocity’ property in the correspondent axis.

You can also read the API of the ‘linearVelocity’ for understand better that constraint.

2 Likes

After some tinkering with vector force, I managed to upgrade/recreate my old fly script! Thanks!!

1 Like