How to increase/decrease a NumberValue smoothly

when the player presses W the value will change to 5 and after he stops pressing the W button then the value will be 0. Now how I can increase/decrease this value smoothly?

1 Like

You would want to tween your value in this case. Also, if you are trying to check if the player is moving forward, then I do not recommend checking for when the player presses the ‘W’ key. What if the player is on a phone? You would want to use MoveDirection (I couldn’t find an article for it).

1 Like