I have a script which shoots a projectile towards the mouse position alongside a player animation. What i want is for the projectile to stop (anchor) when it hits something. At first i added velocity to the projectile to move it and the movement was pretty smooth. But there seems to be a big delay in movement across the client that created it and the other clients/server. When i anchor the part from either the clients local script or if i put a normal script inside the projectile, it anchors at different locations. In the client that created it its usually on the ground or deep in the ground because late detection. On other clients its usually in the air. So i tried moving the projectile by adding a script into it and using Heartbeat to move it with cframe. The anchoring works and its in sync across clients but the movement is extremely jaggy because of the speed it needs to have. Basically, im stuck and have no idea how to make a projectile that can do this. Any ideas?
You can log what the projectile's cframe is when it "stops" then bring it back to that cframe when you anchor it. Just a thought, idk if thats what you are looking for.