Currently, I am working on the core game mechanics in my place, and I'm stuck with a decision. Do I load in maps using InsertService()
or do I load them in by having the maps in my game already, and then cloning them into the workspace? Will the second method break any map scripts? Will the fact that the map is just sitting there in my game's ServerStorage slow down performance?
Method #1
local map = game:GetService("InsertService"):LoadAsset(13456733) map.Parent = workspace if workspace:FindFirstChild("Model") then for _,ungrouped in ipairs(workspace.Model:GetChildren()) do if not ungrouped:IsA("Terrain") and not ungrouped:IsA("Camera") and not ungrouped:IsA("Folder") then local u = ungrouped:Clone() if u then u.Parent = workspace end end end end workspace.Model:Destroy()
Method #2
local map = game.ServerStorage.Map1:Clone() map.Parent = workspace
I prefer ServerStorage because:
InsertService may be good if:
Each has its own pros and cons, but here are some to start.
Don't worry about making the right choice, because there isn't much of a difference... but whether to auto-update or not is one thing you should consider.
Hope you figure it out!
Closed as Primarily Opinion-Based by DeceptiveCaster, laughablehaha, DinozCreates, zblox164, RetroGalacticGamer, and User#24403
This question has been closed because it is a discussion about a topic focused on diverse opinions, which isn't a good fit for our Q&A format.
Why was this question closed?