How do I know where a part is going to move to?

Hey there!
I have been searching for a long time now and I haven’t found the answer so I’ve made this Topic.
My question is:
How do I know where a part is going to be?

I need to know this so I can cast a ray from where a part is and where it is going to be.
I can’t do this off a face of it as the part is spinning. So I’m clueless.
Yes, the part is moving in a straight line though.

The part moving has a property called velocity. Velocity in a vector3 describing the speed and direction at wich a part is moving. It is not affected by it spinning, as it’s relative to works space. Since you want to cast a ray to where it’s going, you could create a ray that starts from the position of the part, and direct it towards the direction the part is going

The look vector of ray could look something like this:
CFrame.new(part.Position,Part.Position+part.Velocity).

1 Like

Thank you for the quick reply!!
I totally forgot about Velocity :sweat:

No problem. I forgot to mention, velocity tells the speed aswell, so you might want to add .unit after +part.velocity
You could then let’s say make the ray length multiplied by, for instance, part.velocity.magnitude to have the ray end where the part will be 1 second later.