Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 7 years ago
Edited 7 years ago

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

Log in to vote
0
Answered by 7 years ago

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
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 greyalt700 0 — 7y
Ad

Answer this question