My Movement script doesnt work and i dont know why

image
i keep getting this error when ever i try and use my movement script on unity 6.1 even if i use someone else’s on unity discussion but it never seems to work and i dont know why could someone please help me

i am relatively new to coding but i have done movement before

thanks

picture of my script because i couldnt put them both in the same thing

You’re trying to use the old input system. The new one’s documentation is here:

Like the error message says Active Input Handling in Player Settings is set to use the Input System Package. You can either set it to Input Manager or Both to make your code work, or you can learn to use the Input System Package.

https://docs.unity3d.com/Manual/class-PlayerSettings.html

Thank you works like a charm now

As i am new to this input system I didn’t that was a possible error but thank you