-- Function to handle the skip action

local function SkipLoadingScreen()
	-- Calculate the end position for the animation
	local startPos = frame.Position
	local endPos = UDim2.new(startPos.X.Scale, startPos.X.Offset, startPos.Y.Scale - 2, startPos.Y.Offset)

	-- Animate the position of the frame
	local tweenService = game:GetService("TweenService")
	local tweenInfo = TweenInfo.new(FadeTime, Enum.EasingStyle.Linear)
	local tween = tweenService:Create(frame, tweenInfo, { Position = endPos })

	-- Play the animation
	tween:Play()

	-- Hide the frame when the animation completes
	tween.Completed:Connect(function()
		frame.Visible = false
	end)
end
