March 20, 2018, 6:39pm
For hours i’ve been trying to figure out how to make the RightShoulder Motor6D point at the mouse without any success.
Anyone knows how to do that?
Here’s the line of code I currently have:
When I spawn and I don’t move, it works fine but if I rotate or move, it doesn’t work correctly anymore.
I believe your problem lies here.
CFrames deal in local coordinates, you will need to convert this expression into a direction that is relative to the character rather than to the world.
March 21, 2018, 1:34pm
Thanks, I have difficulties converting though, I don’t really understand how Vector3:toObjectSpace(Vector3) works.
March 21, 2018, 5:10pm
Solution found in this tweet.
October 16, 2019, 7:20am
aaaaaaaaaaaa sorry for necroposting but I’m currently facing the same problem, but on an R6 rig. I’ve been spending hours trying to edit the code above to no avail.
Does anyone happen to have a snippet of code to do this for shoulder joints on an R6 body?
Works relatively the same way. The joints are located in the Torso and it’s called Right Shoulder. What is the current code you have?
October 19, 2019, 7:15pm
Currently I’ve just replaced the joint names / parts appropriately from the r15 script posted above
If for some reason you can not access the tweet, the link is