Main Menu Roblox Script

·

·

Loading Screen Script

local loadingFrame = script.Parent
local player = game.Players.LocalPlayer
local replicatedStorage = game:GetService("ReplicatedStorage")
local playerGui = player:WaitForChild("PlayerGui")

-- Function to simulate loading process
local function simulateLoading()
    wait(3) -- Simulate a 3-second loading time
    loadingFrame.Visible = false -- Hide the loading screen after loading
end

-- Display the loading screen when the player joins
loadingFrame.Visible = true
simulateLoading()