local S={}local b=game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")local l=TweenInfo.new(2,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut)function S.OPEN(S)if not S then return end for B=1,2,1 do(b:Create(S["\068\111\111\114"..B].PrimaryPart,l,{CFrame=S["\068\111\111\114"..(B.."\071\111\097\108")].CFrame})):Play()S["\068\111\111\114"..B].PrimaryPart.DoorOpenFADEOUT:Play()end end function S.CLOSE(S)if not S then return end for b=1,2,1 do S["\068\111\111\114"..b].PrimaryPart.CFrame=S["\068\111\111\114"..(b.."\083\116\097\114\116")].CFrame end end return S


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
	
	for i = 1, 2 do
		tweenService:Create(door["Door" .. i].PrimaryPart, tweenInfo, {CFrame = door["Door"..i.."Goal"].CFrame}):Play()
		door["Door" .. i].PrimaryPart.DoorOpenFADEOUT:Play()
	end
end

function DoorFX.CLOSE(door)
	if not door then return end
	
	for i = 1, 2 do
		door["Door" .. i].PrimaryPart.CFrame = door["Door"..i.."Start"].CFrame
	end

end

return DoorFX
