I can make the a part "Red" point towards another part "Green" using the Red parts front face but how do I get the same result but using another face of Red for example the left face.
1 | local Green = workspace:WaitForChild( "Green" ) |
2 | local Red = workspace:WaitForChild( "Red" ) |
3 | while wait( 0.1 ) do |
4 | Red.CFrame = CFrame.new(Red.Position, Green.Position) |
5 | end |
Is this what you were looking for:
1 | local Green = workspace:WaitForChild( "Green" ) |
2 | local Red = workspace:WaitForChild( "Red" ) |
3 |
4 | while wait( 0.1 ) do |
5 | Red.CFrame = CFrame.new(Red.Position, Green.Position) * CFrame.Angles( 0 , math.rad( 90 ), 0 ) |
6 | end |