Player flight script

What I want to achieve is to fix these 2 issues:

1: I wanna make it so that when the player turns the camera around while moving forward (say the camera turns backwards) the momentum they had going forward is slowed down before turning around and going to the other direction the camera is pointing at I want to add inertia.

2: When I am holding W and press F, BoolValue.FWD becomes false so when I press F while holding W I just stay in the air till I press W again which is a small bug but considering that this is a combat game everything has to be smooth

edit: eventuallly got it

1 Like