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

[Solved myself] Loading large models part by part?

As the title says, I want to know how to make a large model that has a lot of parts load part by part from ServerStorage or something else. Any suggestions?

5 comments

0

This is a request ScriptingHelpers clearly stated that you are NOT allowed to request

1

Iterate through the descendants of the model and parent them 1 by 1 to the workspace.

0

Good idea, made it.

0

What he said isn't necessarily non-sense, this is not a request site, but your question is borderline. Please check out our help articles and about page: https://scriptinghelpers.org/about and https://scriptinghelpers.org/help

0

Alright!

1 answer

So I found out the way to do it. Make a for _,v in pairs loop and :GetChildren() of the model, then load every part to the new model located in the workspace. Script must look like this:

local newModel = Instance.new("Model",workspace)
		new.Name = "Map"
		
		for i,v in pairs(game.ReplicatedStorage.Maps.Map:GetChildren()) do
		if v:IsA("Part") then
			v:Clone().Parent = newModel
			wait()
		end
		end

This will remove lags for players when loading in a huge map.

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