Camera movment

I need move the camera to right and left while the character is moving,like its head is moving to left and right … can help me?

EXAMPLE: - YouTube

Thz!

Oh i get what you want to do now
alright you still make the camera a child of the actor
and you still employ some sort of mouselook script

however what you can do is in the script you have governing movement
you set it up something like this

when moving broadcast message shake,
on your camera you put a script that starts with a function named shake,
and what it does is rotate the cameras local position a few degrees in either direction in the x (i think you might have to study up on quarternons in order to make smooth rotations)

how it should work is when the character is moving its broadcasting a msg that triggers this shake script
throw in some Random.Range functions to make it more dynamic