Is there a way I can set an object's CFrame's Angles?
Something like this, but .Angles
is the part I am unsure about(CFrame.Angles isn't correct)
part1.CFrame.Angles = part2.CFrame.Angles
Sorry if this is a stupid question.
heh... :P
.--'''''''''--. .' .---. '. / .-----------. \ / .-----. \ | .-. .-. | | / \ / \ | \ | .-. | .-. | / '-._| | | | | | |_.-' | '-' | '-' | \___/ \___/ _.-' / \ `-._ .' _.--| |--._ '. ' _...-| |-..._ ' | | '.___.' | | _| |_ /\( )/\ / ` ' \ | | | | '-' '-' | | | | | | | | | |-----| | .`/ | | |/`. | | | | '._.'| .-. |'._.' \ | / | | | | | | | | | /| | |\ .'_| | |_`. `. | | | .' . / | \ . /o`.-' / \ `-.`o\ /o o\ .' `. /o o\ `.___.' `.___.'
CFrame.Angles isn't part of a part's CFrame, but it's a part of the CFrame value itself. That sounds kinda complicated, so instead just keep the position and change the orientation, like so:
part1.CFrame = CFrame.New(part1.CFrame.p, part2.CFrame.lookVector)