Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

how to move parts relative to their angles?

https://imgur.com/a/GYWoOJM

The image is an example: Im trying to move it form the white part to the black part

Im trying to find some sort of math equation that takes the orientation of an object and uses it to move the part in that direction

2 answers

I won't give you a whole script, but I will give you some advice.

A part's CFrame contains multiple Vectors, such as lookVector, rightVector, etc. they can be used like this:

part.CFrame = part.CFrame.lookVector * [number]

3 comments

0

I think, I might be wrong :P

0

yA

0

stuff like this should work, just research lookVector and rightVector I think. :P

This discussion is preserved as it was. New answers, comments, and votes are closed.