How would i make player's mouse moveable but still lock first person?

how would i do it in a script? (its a dev product in a first person game)