-- Assume that ReplicatedFirst is a service
local ReplicatedFirst = game:GetService("ReplicatedFirst")
-- Assume that LoadingScreenScript is a script
local LoadingScreenScript = ReplicatedFirst.LoadingScreenScript
-- Assume that LoadingScreen is a ScreenGui
local LoadingScreen = LoadingScreenScript.LoadingScreen
-- Assume that BackGround is a frame within the ScreenGui
local BackGround = LoadingScreen.BackGround
-- Assume that SkipButton is a TextButton within the BackGround frame
local SkipButton = BackGround.Skip
-- Function to be executed when the TextButton is clicked
local function OnSkipButtonClick()
-- Set the visibility of the background frame to false
BackGround.Visible = false
end
-- Connect the function to the TextButton's Click event
SkipButton.MouseButton1Click:Connect(OnSkipButtonClick)