-- / Functions / --

FadeModule.Fade = function(FadeObject: Instance, TweenValue: NumberValue, TweenTime: number?, DelayTime: number?)
	if FadeObject:IsA("Frame") then
		local FadeTween = TweenService:Create(
			FadeObject,

			TweenInfo.new(TweenTime),

			{
				BackgroundTransparency = TweenValue
			}
		)

		FadeTween:Play()

	elseif FadeObject:IsA("BlurEffect") then

		local FadeTween = TweenService:Create(
			FadeObject,

			TweenInfo.new(TweenTime),

			{
				Size = TweenValue
			}
		)

		FadeTween:Play()

	end

	if DelayTime then
		task.wait(DelayTime)

	end	
end
