casting in multi player/ charcter

when casting to a character when i put an object into it for example
get player character etc … there is a player index in it since default value is 0 will it keep casting to the same charcter even i ment to cast to other one
and if so how can i fix this?