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


local DoorFX = {}

local tweenService = game:GetService("TweenService")

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

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

	door.Door.Main.DoorOpenFADEOUT:Play()
end

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

	door.Door.Main.CFrame = door.Door.Home.CFrame
end

return DoorFX
