How to have projectile be thrown from client and server locations

I’m attempting to make a custom item system for my game, but there’s one thing I’m having trouble trying to figure out.

So I have this rock model that’s connected to the camera on the client, and on the server, I have the model connected to the player’s hand. I want to make it so that when I go to throw the rock, they’ll both go to the same place, but fire off from their respective locations, however, I’m not really sure how I’d go about doing that. Any help would be appreciated!

1 Like

What do you mean from their respective locations?

On the player’s client, the model is connected to where the camera is, while on the server, it’s in the player’s actual hand, and is in two separate spots:

image

As you can see, the one connected to the camera is in a separate spot from the one on the server, and I’m trying to have them both be shot off toward the same point.

1 Like

Oh okay you shouldve include that screenshot aswell but is the point your shooting towards going to be a fixed point that wont change?

1 Like

No, I want it to shoot forward in whatever direction the player is facing

So in the server view your able to see the both rocks right?

You can only see the rock in the player’s hand on the server, the image above was just to show how the model was offset on the client.

I’m thinking of maybe just throwing the part in the player’s hand and moving the rock on the client out of view right before because I’m not sure if getting them to go to the same spot is possible

How about just throw the rock on the server side and then right as your start throwing it make the one on the client invisible?

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.