So, I’m trying to implement a gun system right now, but there seems to be a noticeable latency in each gun fire event to the actual replication of bullets on the server. When I shoot in full auto, the bullet holes fall far behind where my crosshair is on the screen while I’m moving. What I’m trying to replicate is something similar to phantom forces’ shooting system where there is seemingly no latency from click to visible bullet spray hitting walls.
The system I currently have implemented is the click recognition is happening on the client, then it fires an event to the server with all needed parameters (mousePos, CFrames, etc) and then the server handles the raycasting and checks what was hit. Any recommendations on how I could speed up the process?