Player Velocity controller

Hello frndz…

I want to let user choose the velocity of the Player to be played.
How can I add that kind of functionality

Please Help!!!

Thank you in advance…

well velocity can be set through gameobject.rigidbody.velocity, but it will depend how ans what you are doinf to change it.
so you could use:
gameobject.rigidbody.velocity = Vector3(1,1,1) * speedToSet;

where gameobject is the object of which you want to set the velocity