Any Ways for a: Accurate Loading/Intermission Screen for a Map in a Round-Based Game

Hello, yes as the title says. i’m trying to find a way to accurately get a way to load a map for a round-based game

im currently stuck on a problem on how to make the Client’s Loading Screen GUI Not go visible before the map itself loads

my Current script is:

function LoadingScreen()
	local Contentprov = game:GetService("ContentProvider")
	LoadingFrame.Visible = true
	
	local Mapdescendants = workspace:WaitForChild("Map"):GetDescendants()
	
	for i = 1,#Mapdescendants do
		Contentprov:PreloadAsync({Mapdescendants[i]})
	end
	
	task.wait(1)
	
	LoadingFrame.Visible = false
end

Also i am not looking for like an entirely different Script. a way/Tip is all i need

– Place this script in StarterPlayer → StarterPlayerScripts

local Player = game.Players.LocalPlayer
local PlayerGui = Player:WaitForChild(“PlayerGui”)

local loadingScreen = Instance.new(“ScreenGui”)
loadingScreen.Name = “LoadingScreen”
loadingScreen.Parent = PlayerGui

local frame = Instance.new(“Frame”)
frame.Size = UDim2.new(1, 0, 1, 0)
frame.BackgroundColor3 = Color3.new(0, 0, 0)
frame.Parent = loadingScreen

local loadingText = Instance.new(“TextLabel”)
loadingText.Size = UDim2.new(0.5, 0, 0.2, 0)
loadingText.Position = UDim2.new(0.25, 0, 0.4, 0)
loadingText.BackgroundColor3 = Color3.new(1, 1, 1)
loadingText.TextColor3 = Color3.new(0, 0, 0)
loadingText.TextStrokeTransparency = 0.5
loadingText.TextStrokeColor3 = Color3.new(0, 0, 0)
loadingText.Font = Enum.Font.SourceSansBold
loadingText.TextSize = 24
loadingText.Text = “Loading…”
loadingText.Parent = frame

– Simulate loading time (replace this with your actual loading logic)
wait(5)

– Remove loading screen when done loading
loadingScreen:Destroy()

nevermind, i just made it wait 10 seconds and it somewhat is what i want

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.