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


local DoorFX = {}

local tweenService = game:GetService("TweenService")

local tweenInfo = TweenInfo.new(1, 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
