This constructor overload is now deprecated. Use CFrame.lookAt.
local attachment1: Attachment
local attachment2: Attachment
attachment1.WorldCFrame = CFrame.lookAt(attachment1.WorldPosition, attachment2.WorldPosition)
local ACenter = coin.ACenter
for i, v in pairs(equippedPets) do
local ac = Instance.new("Attachment", coin)
local ab = Instance.new("Attachment", coin)
ac.Position = pos
ac.Name = "APet"..v.Name
ab.Position = beamPos
ab.Name = "ABeam"..v.Name
local PetCenter = v.Body.center
v.Body.Beam.Attachment0 = ab
v.Body.Beam.Attachment1 = PetCenter
v.AlignPosition.Attachment1 = ac
v.AlignOrientation.Attachment0 = PetCenter
v.AlignOrientation.Attachment1 = ab
ab.WorldCFrame = CFrame.lookAt(ab.WorldPosition, ACenter.WorldPosition)
end