So when I load in a map through a simple script which replicated it into workspace folder and then teleport players a player which may be playing on a phone or bad wifi can get teleported but when the map is not fully loaded.
So what I need help with is just how can I load a map and then teleport the person when the map on his client has loaded so then they don’t fall to their death.
Are your maps in ServerStorage? Consider placing your maps in ReplicatedStorage so that the maps are replicated to the client as part of the DataModel snapshot when the client game session starts. The only exchange that happens then is sending those instances to the workspace.
I have never really done something like this before so im not sure if it would work but you could do
‘’’
repeat wait until game.Part ~= nil
‘’’
or
you could get the decants of the model and wait till there are like 100 parts in the model(loaded in) before teleporting them
I recommend first loading the map and then teleporting the player into the desired position, instantly locking their humanoidrootpart till the map is completely loaded. You could just fire a ray to check if there is any parts below the player but I do not know how you are going about this so this may be a too complicated and inefficient method to go for.