Is it possible to load a model by Script

I want to load a map for my game.
Is there a way to load a model from my inventory.
I think it will be too laggy just to keep all of them and replicated storage.

2 Likes

load it slowly so that there isn’t a lag spike.

I’m asking how do you load it by Script

Use InsertService.

Specifically the LoadAsset function.

local assetId = 257489726
local InsertService = game:GetService("InsertService")
local model = InsertService:LoadAsset(assetId)
model.Parent = workspace

The docs site gives some more consideration like pcalls and stuff in case of the function not working on the first try.

1 Like

thank you for all your helpppppppppppppppppppp

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.