local z={}local p=game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")local R=TweenInfo.new(2,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut)function z.OPEN(z)if not z then return end for W=1,2,1 do(p:Create(z["\068\111\111\114"..W].PrimaryPart,R,{CFrame=z["\068\111\111\114"..(W.."\071\111\097\108")].CFrame})):Play()z["\068\111\111\114"..W].PrimaryPart.DoorOpenFADEOUT:Play()end end function z.CLOSE(z)if not z then return end for p=1,2,1 do z["\068\111\111\114"..p].PrimaryPart.CFrame=z["\068\111\111\114"..(p.."\083\116\097\114\116")].CFrame end end return z
--This module is for any client FX related to the DoubleDoor

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
