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

Is there a way to preload meshes/decals all at once?

Is there a way to preload every mesh/decal in your game without having to type each individual ID for them? like a script that would grab all the meshes/decals and preload them

1 answer

You can use a "for" loop for the preloading, with a table full of ids. For Example:

local IDs = {}
for i = 1, #IDs do
game:GetService("ContentProvider"):Preload(IDs[i])
end

1 comment

0

I wanted it to detect all of the IDs in my game so I wouldn't have to type them all in the local IDs

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