Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I know when a map is fully loaded?

I have a problem with map loading times. The problem is I make every player's camera spin around the map to display it when it's loaded, but since there's a delay when it loads it seems to "jump" in time. So instead of waiting 5 seconds to display the map, it takes 1.

I want to pause the script until the map finishes loading to stop this problem, but I'm not sure how to do that. I see loading bars on other games so there must be a feature, unless it's some sort of placebo.

I tried to put a part on the bottom of the map model (by naming it "ZZZZZ") and using WaitForChild:

local map = game.ServerStorage.MapExample:Clone()
map.Name = "Map"
map.Parent = game.Workspace

game.Workspace.Map:WaitForChild("ZZZZZ")

But nothing seemed to change. Thanks in advance!

2 comments

0

scripts cant help a load time. quality of coumputer and storage will depend how much of a game you can make before the game system makes less storage for 60fps quality

0

His problem is not QUALITY :/

1 answer

I believe this may help!


local map = game.ServerStorage.MapExample:Clone()
map.Name = "Map"
wait(5.2)
map.Parent = game.Workspace


I don't know much...

But if it didn't help... i'm sorry :(

This discussion is preserved as it was. New answers, comments, and votes are closed.