p.CFrame = p.CFrame.new(Vector3.new(pos, focus))
is the line...
Assuming pos
and focus
are both Vector3
values, this will reposition p
to pos
and make it face focus
p.CFrame = CFrame.new(pos, focus)
If they're parts,
p.CFrame = CFrame.new(pos.Position, focus.Position)