How to locally position attachment to raycast position

hey devs, im trying to make client send a raycast position converted to local position to server, cuz i was using only raycast position and since signal are getting late, it positions attachment to wrong position. ive tried to put “instance.pos - ray.position” and toobjectspace, but it still getting attachment to wrong position.

english is not my native, i hope you understood what i wrote

Sounds like this problem.

The answer is it will always be in the wrong position so do a gam dev trick and trick the user.

i just want to make it send the raycast position to server and place the attachment to exact location on part