Hi ! I’d like to know if there’s a way to wait until a whole model has loaded:
my example :
When I clone the map (model) it doesn’t instanly clone it, but instead has a small delay and sometimes when it’s not loaded fully, the player can just fall out of the map.
script :
local pos = {Vector3.new(0,0,0),Vector3.new(0,0,200),Vector3.new(0,0,400),Vector3.new(0,0,600),Vector3.new(0,0,800),Vector3.new(0,0,1000),Vector3.new(0,0,1200),Vector3.new(0,0,1400),Vector3.new(0,0,1600),Vector3.new(0,0,1800),Vector3.new(0,0,2000),Vector3.new(0,0,2200),Vector3.new(0,0,2400),Vector3.new(0,0,2600),Vector3.new(0,0,2800),Vector3.new(0,0,3000),Vector3.new(0,0,3200),Vector3.new(0,0,3400),Vector3.new(0,0,3600),Vector3.new(0,0,3800)}
for i, player in pairs(Players:GetPlayers())do
local clone = mapChosen:Clone()
clone.Parent = game.Workspace.CurrentlyLoaded
clone:MoveTo(pos[i])
print("Initiated map"..mapChosen.Name..i)
local char = player.Character
-- ??? Wait for the map to load
char.HumanoidRootPart.CFrame = clone.Spawn.CFrame
end
I’ve found a similar post, but some replies say that WaitForChild(“Model”) doesn’t actually wait for the entire model
so i’d like some help on this