like is there a plugin to show every different assets I have in the game?
function alreadyExists(texture)
local exists = false
for _,v in pairs(workspace.Texture:GetChildren()) do
if v.TextureId == texture.TextureId then
exists = true
end
end
return exists
end
for _,v in pairs(workspace:GetDescendants()) do
if v:IsA("Texture") then
if alreadyExists(v) == false then
v:Clone().Parent = workspace.Texture -- clone to texture folder
end
end
end
2 Likes
you can just use a lookup table like in my example as its more performant and also works on multiple types as long as you just add them
1 Like
Yes this is what I need, Thank you