Hello, my goal in this is to make a script that can be used to replicate CFrame Angles from one part to another while having both parts appear to be at the same Orientation.
Setup in workspace
![]()
Code
local red = workspace.a1
local blue = workspace.r1
local pi = math.pi
local inf = math.huge
for q = 1, inf do
wait()
local blue_cf = blue.CFrame
local blue_look = blue_cf.LookVector
local look = CFrame.Angles(blue_look.Y * pi / 2,blue_look.X * pi / 2,blue_look.Z * pi / 2)
red.CFrame = CFrame.new(red.Position) * look
end
How could I correct this to make it work?