Networking problem

i have 2 players spawned in a scene, one as server and one as client and i have a shoot script on them for shooting cubes. when i run the scene and shoot a cube, for example from server, client sees the cube but when i shoot the second cube from server in the client view the first cube disappear!!! where is the problem???

You're probably telling the client that you instantiate a cube under a certain name, say

var = theCube : GameObject = instantiate(something);

you're then for the second cube doing the same thing, which would mean that the variable of the type GameObject theCube will get replaced with your newly spawn cube.