Scripting Basic Question

If i have a script that controls my players movement such as Walking, Running, Rolling, and Jumping, should i create a seperate script to handle actions such as attacking, interaction button, lock-on or is it okay to put them all into one script if i should seperate them how should i do this? And also how should i handle the animations if i do need independent scripts? im also using the “new” input system as well

It is ok to put them in a single script. But you can make it more efficient using a state machine design. You can check out this article on Unity state machine for getting started.

You can put all of the actions in one script, but the code might get messy. I suggest putting attacks in one script and all movement in another script