local A={}local n=game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")local M=TweenInfo.new(2,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut)function A.OPEN(A)if not A then return end;(n:Create(A.DoorA.Main,M,{CFrame=A.DoorA.Goal.CFrame})):Play();(n:Create(A.DoorB.Main,M,{CFrame=A.DoorB.Goal.CFrame})):Play()A.DoorA.Main.DoorOpenFADEOUT:Play()A.DoorB.Main.DoorOpenFADEOUT:Play()end function A.CLOSE(A)if not A then return end A.DoorA.Main.CFrame=A.DoorA.Home.CFrame A.DoorB.Main.CFrame=A.DoorB.Home.CFrame end return A


local DoorFX = {}

local tweenService = game:GetService("TweenService")

local tweenInfo = TweenInfo.new(2, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut)

function DoorFX.OPEN(door)
	if not door then return end
	
	tweenService:Create(door.DoorA.Main, tweenInfo, {CFrame = door.DoorA.Goal.CFrame}):Play()
	tweenService:Create(door.DoorB.Main, tweenInfo, {CFrame = door.DoorB.Goal.CFrame}):Play()

	door.DoorA.Main.DoorOpenFADEOUT:Play()
	door.DoorB.Main.DoorOpenFADEOUT:Play()
end

function DoorFX.CLOSE(door)
	if not door then return end

	door.DoorA.Main.CFrame = door.DoorA.Home.CFrame
	door.DoorB.Main.CFrame = door.DoorB.Home.CFrame
end

return DoorFX
