Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how to move parts relative to their angles?

Asked by 6 years ago

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

Log in to vote
0
Answered by
Jo_Bot 67
6 years ago

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]
0
I think, I might be wrong :P Jo_Bot 67 — 6y
0
yA icecatz 0 — 6y
0
stuff like this should work, just research lookVector and rightVector I think. :P Jo_Bot 67 — 6y
Ad
Log in to vote
0
Answered by 6 years ago

https://scriptinghelpers.org/questions/11301/how-can-i-make-a-block-move-in-a-direction-related-to-the-blocks-rotation

found this

0
oh yeh, that works......... :P Jo_Bot 67 — 6y

Answer this question