So i created a laser gun, In client it works perfectly fine and follows the player accordingly. But when i replicated it on the server the beam lags behind when the player is moving, How do i fix that? (Im even using an UnreliableRemoteEvent since i heard its faster and it still lags behind the player)
Don’t create a new Instance and signal the server of where it goes.
The client should have network ownership over their tool, therefor you shouldn’t be encountering this problem unless you’re creating something on the client; anything created on the client is not replicated towards the server.
What do you mean? im sorry english isnt my first language. Anyway my gun has 2 scripts one for client and one for server. Client being for getting the mouse position and inputs and server for damage and such. What im trying to achieve is for the other players to also see the beam. How would i do that if not make the beam in the server?
Edit: ok so i tested it in 2 players. Seems like the delay is only seen by the client himself. In the other players POV there’s no delay. Is there anyway to fix that? that the client can only see the beam made in client. and only others can see the one made in server?
Server damage. Client do beam. Make sure server make beam, connect to weapon, by assembly the client should have network ownership over beam, client control beam!
Im sorry i dont quite understand. Do i make the beam in client then send a remote event with the beams property. then use those to make another beam in the server to then FireAllClients to replicate it? but wouldn’t the localplayer still see that beam? or am i completely wrong?
sorry for asking too many questions