Door (Orientation?) Issue

Title says it all,

Watch video to understand.

Code:

local ts = game:GetService("TweenService")
local d = false
local sound = script.Parent.Sound
script.Parent.ProximityPrompt.Triggered:Connect(function(Player)
	if d == false then
		script.Parent.ProximityPrompt.Enabled = false
		d = true
		sound:Play()
		ts:Create(script.Parent.Parent.Door1, TweenInfo.new(1.9, Enum.EasingStyle.Quint, Enum.EasingDirection.InOut), {Position = script.Parent.Parent.EndDoor.Position, Orientation = script.Parent.Parent.EndDoor.Orientation}):Play()
		wait(3)
		sound:Play()
		ts:Create(script.Parent.Parent.Door1, TweenInfo.new(1.9, Enum.EasingStyle.Quint, Enum.EasingDirection.InOut), {Position = script.Parent.Parent.ReferDoor.Position, Orientation = script.Parent.Parent.ReferDoor.Orientation}):Play()
		d = false
		wait(1.9)
		script.Parent.ProximityPrompt.Enabled = true
	end
end)

A different CFrame rotation method is needed for a door to rotate around a pivot, you can check the model created here and the CFrame math article for more info.

Orientate the EndDoor directly opposite (180 degrees) - it’s probably facing the wrong way.

EndDoor => 0, 90, 0
Door1 => 0, -180, 0