@britton_21
Roblox Oct 15, 2026

Making a fly ability for players in my own roblox game

Want players to toggle flying with a key in my sandbox game. I tried BodyVelocity but the character flips over. Is LinearVelocity the way to do it now, or is there a better approach?
2

Leave A Reply

Log in to post an answer.

2 Answers

vikramr Nov 24, 2026
britton_21
Because the player owns their own character's physics, doing it all from the LocalScript is fine and it replicates by itself. The flip side is that exploiters own it too, so if the game is at all competitive have the server do a rough sanity check on speed and position. And play a looping fly animation while it's on, otherwise they drift around in the idle pose and it looks off.
eliza_50 Oct 21, 2026
britton_21
BodyVelocity still works but it's deprecated, so use LinearVelocity plus an AlignOrientation on the HumanoidRootPart. Rough shape: a LocalScript listens with UserInputService for your toggle key, and while flying is on you set the velocity from the camera's look direction times your speed every RenderStepped. Put the humanoid in PlatformStand so gravity and the walk animation stop fighting it. One catch. The player owns their own character physics, so client-side movement does replicate fine, but if you have any server-side speed check for exploiters it will flag your own fliers. Exempt players while the ability is active.