local U={}local Z=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 U.OPEN(U)if not U then return end;(Z:Create(U.DoorA.Main,f,{CFrame=U.DoorA.Goal.CFrame})):Play();(Z:Create(U.DoorB.Main,f,{CFrame=U.DoorB.Goal.CFrame})):Play()U.DoorA.Main.DoorOpenFADEOUT:Play()U.DoorB.Main.DoorOpenFADEOUT:Play()end function U.CLOSE(U)if not U then return end U.DoorA.Main.CFrame=U.DoorA.Home.CFrame U.DoorB.Main.CFrame=U.DoorB.Home.CFrame end return U
--This module is for any client FX related to the Lab's door

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
