Take the player rotation and substract 90, convert that value to radians using math.rad()
The target x position will be player(id,"x")+math.cos(angle)*length.
Where angle you use the value you got before, and length should be de distance you want from the player's position in pixels (10 in your case).
Likewise, the y formula is player(id,"y")+math.sin(angle)*length