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

how do I make part face the same way as another part with CFrame?

https://gyazo.com/f1cd67380b8d7c10bc031eb83bc747fa basically i just want the grey part to face one of the black lines, I already have code to get a random one, but I cant figure out how rotate it to face the same way as the black lines.

1 comment

0

Also I need a tween-able or lerp-able property

1 answer

✓ Accepted answer

I think this is what your trying to do

game.Workspace.MainPart.CFrame = CFrame.new(game.Workspace.MainPart.Position,game.Workspace.RandomBlackPart.Position)

1 comment

0

I already figured it out. for the second CFrame.new() param I add MainPart Position and BlackPart LookVector

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