Still have questions? Join our Discord server and get real time help.
Log in to vote

[Solved] What would be a proper equation to move a part from the head origin to another point?

Asked by
Psudar 147
2 months ago
Edited 2 months ago

Alright, so I want to move a part from Point A (Player's Head) to Point B (a new vector 3 val).

I don't know if it's because it's really late, but I can't really get my head around an equation that could achieve this. I know how to find the difference between each value, but that doesn't actually help me (afaik).

```lua startingPosition = dummy.Head.Position --I'm using a dummy rig as a test model

endingPosition =, 7, -55) --My desired position from the head position

distance = endingPosition - startingPosition

--NewPosition = ?


And before you say, "Oh just change the position to the desired end point" , that's not actually what you're doing here, since the heads position changes as the character walks around, you can't just have the same desired position.

One of the cubes on the left can be viewed as the point B (endPosition) and the head can be viewed as point A (startingPosition)

!enter image description here

Sorry if the explanation isn't clear, I'm tired af. Thanks in advance.

What do you mean by "origin"? Do you want to use raycasting? BashCaster 2170 — 2mo
@RobloxWhizYT Nah I just meant "Starting place" as origin. Sorry for the confusion! I think this is really down to just getting a bit better at matrix math equations/cframe math.  Psudar 147 — 2mo

Answer this question