Increase Swimming Upward Speed

Hey everyone! I noticed that modifying Humanoid.WalkSpeed affects how fast a character swims horizontally / downward, but it doesn’t seem to change the vertical (upward) swim speed when pressing the spacebar.

Does anyone know how to increase the upward swimming speed specifically? I want to make the character ascend faster while swimming.

Any tips or properties I should look into would be appreciated!

1 Like

You would have to get the humanoids state and check if it is swimming and possibly connect it through RunService.Heartbeat, if they are you can create a new instance LinearVelocity to the player.

1 Like

Is there any way to calculate for the velocity or idk, which kinda resembles humanoid walkspeed?

1 Like

you could try to use Humanoid.MoveDirection instead, since it’s just Vector3,new(Forward/Backward, Up/Down (what you'll be needing), Left/Right)

1 Like

well i need to increase the speed tho, to make it similar to Humanoid.WalkSpeed

1 Like

use LinearVelocity as the gentleman above suggested. WalkSpeed and LinearVelocity both share scale in Studs i’m pretty sure.

Which properties should I modify?

Why don’t you just check if the player is moving up and increase the walkspeed maybe a nice smooth lerp from a to b? and if not then b to a! or just current walkspeed:lerp(newwalkspeed, 0.1)

When you swim, and you try to go up with space, it’s not using WalkSpeed.

1 Like

Roblox has a limit on the swim speed so there’s no properties to modify. However, a solution you can try is to add an upward force to the character. AlignPosition | Documentation - Roblox Creator Hub

it’s Left/Right, Up/Down, Forward/Backward

felt the need to correct you :shushing_face: