How can I get the mouse look to work for one player, and not affect all players?

I have a mouse look script on multiplayer which i want to use for each player. Due to the fact that I want to make the server authoritive, I have either made authoritive scripts or used them from tutorials. I would like someone to tell me how to make this mouse look have a different impact on each player. The problem is, that when I start a server, and the server player turns, when I go forwards, it goes in the rotation of the server/first players position. Here are the scripts:

Mouse look.js

#pragma strict

var sensitivityX : float = 15F;
var sensitivityY : float = 15F;
var minimumX : float = -360F;
var maximumX : float = 360F;
var minimumY : float = -60F;
var maximumY : float = 60F;
var rotationY : float = 0F;

function Awake()
	transform.Rotate(0, 0, 0);

function Update () {
	if (GetComponent(PlayerMovementScript))
		if (Network.player == GetComponent(PlayerMovementScript).owner)
			transform.Rotate(0, Input.GetAxis("Mouse X") * sensitivityX, 0);
	else if (transform.parent.GetComponent(PlayerMovementScript))
		if (Network.player == transform.parent.GetComponent(PlayerMovementScript).owner)
			rotationY += Input.GetAxis("Mouse Y") * sensitivityY;
			rotationY = Mathf.Clamp (rotationY, minimumY, maximumY);
			transform.localEulerAngles = new Vector3(-rotationY, transform.localEulerAngles.y, 0);


*  This file is part of the Unity networking tutorial by M2H (
*  The original author of this code Mike Hergaarden, even though some small parts 
*  are copied from the Unity tutorials/manuals.
*  Feel free to use this code for your own projects, drop me a line if you made something exciting! 
#pragma strict
#pragma implicit
#pragma downcast

public var owner : NetworkPlayer;

//Last input value, we're saving this to save network messages/bandwidth.
private var lastClientHInput : float=0;
private var lastClientVInput : float=0;

//The input values the server will execute on this object
private var serverCurrentHInput : float = 0;
private var serverCurrentVInput : float = 0;

function Awake(){
	// We are probably not the owner of this object: disable this script.
	// RPC's and OnSerializeNetworkView will STILL get through!
	// The server ALWAYS run this script though
		enabled=false;	 // disable this script (this enables Update());	

function SetPlayer(player : NetworkPlayer){
	owner = player;
		//Hey thats us! We can control this player: enable this script (this enables Update());

function Update(){
	//Client code
	if(owner!=null && Network.player==owner){
		//Only the client that owns this object executes this code
		var HInput : float = Input.GetAxis("Horizontal");
		var VInput : float = Input.GetAxis("Vertical");
		//Is our input different? Do we need to update the server?
		if(lastClientHInput!=HInput || lastClientVInput!=VInput ){
			lastClientHInput = HInput;
			lastClientVInput = VInput;			
				//Too bad a server can't send an rpc to itself using "RPCMode.Server"!...bugged :[
				SendMovementInput(HInput, VInput);
			}else if(Network.isClient){
				//SendMovementInput(HInput, VInput); //Use this (and line 64) for simple "prediction"
				networkView.RPC("SendMovementInput", RPCMode.Server, HInput, VInput);
	//Server movement code
	if(Network.isServer){//Also enable this on the client itself: "|| Network.player==owner){|"
		//Actually move the player using his/her input
		var moveDirection : Vector3 = new Vector3(serverCurrentHInput, 0, serverCurrentVInput);
		var speed : float = 5;
		transform.Translate(speed * moveDirection * Time.deltaTime);

function SendMovementInput(HInput : float, VInput : float){	
	//Called on the server
	serverCurrentHInput = HInput;
	serverCurrentVInput = VInput;

function OnSerializeNetworkView(stream : BitStream, info : NetworkMessageInfo)
	if (stream.isWriting){
		//This is executed on the owner of the networkview
		//The owner sends it's position over the network
		var pos : Vector3 = transform.position;
		stream.Serialize(pos);//"Encode" it, and send it
		//Executed on all non-owners
		//This client receive a position and set the object to it
		var posReceive : Vector3 =;
		stream.Serialize(posReceive); //"Decode" it and receive it
		//We've just recieved the current servers position of this object in 'posReceive'.
		//transform.position = posReceive;		
		//To reduce laggy movement a bit you could comment the line above and use position lerping below instead:	
		transform.position = Vector3.Lerp(transform.position, posReceive, 0.9); //"lerp" to the posReceive by 90%


*  This file is part of the Unity networking tutorial by M2H (
*  The original author of this code is Mike Hergaarden, even though some small parts 
*  are copied from the Unity tutorials/manuals.
*  Feel free to use this code for your own projects, drop us a line if you made something exciting! 

#pragma strict
#pragma implicit
#pragma downcast

public var playerPrefab : Transform;
public var playerScripts : ArrayList = new ArrayList();

function OnServerInitialized(){
	//Spawn a player for the server itself

function OnPlayerConnected(newPlayer: NetworkPlayer) {
	//A player connected to me(the server)!

function Spawnplayer(newPlayer : NetworkPlayer){
	//Called on the server only
	var playerNumber : int = parseInt(newPlayer+"");
	//Instantiate a new object for this player, remember; the server is therefore the owner.
	var myNewTrans : Transform = Network.Instantiate(playerPrefab, transform.position, transform.rotation, playerNumber);
	//Get the networkview of this new transform
	var newObjectsNetworkview : NetworkView = myNewTrans.networkView;
	//Keep track of this new player so we can properly destroy it when required.
	//Call an RPC on this new networkview, set the player who controls this player
	newObjectsNetworkview.RPC("SetPlayer", RPCMode.AllBuffered, newPlayer);//Set it on the owner

function OnPlayerDisconnected(player: NetworkPlayer) {
	Debug.Log("Clean up after player " + player);

	for(var script : PlayerMovementScript in playerScripts){
		if(player==script.owner){//We found the players object
			Network.RemoveRPCs(script.gameObject.networkView.viewID);//remove the bufferd SetPlayer call
			Network.Destroy(script.gameObject);//Destroying the GO will destroy everything
			playerScripts.Remove(script);//Remove this player from the list
	//Remove the buffered RPC call for instantiate for this player.
	var playerNumber : int = parseInt(player+"");
	Network.RemoveRPCs(Network.player, playerNumber);
	// The next destroys will not destroy anything since the players never
	// instantiated anything nor buffered RPCs

function OnDisconnectedFromServer(info : NetworkDisconnection) {
	Debug.Log("Resetting the scene the easy way.");

Cheers, Stormy102

Throw this in the start of the player.

//remove component for looking.controlling character


//Allow input