Hello Developers! So I need to make this thing where it looks for an object inside a folder in workspace. However the folders name changes. So I cant just do: workspace.FolderA
I want it to select all objects in workspace that is folder type regardless of its name.
I think this may help:
for i,v in pairs(game.Workspace:GetChildren()) do
if v:IsA("Folder") then
-- here is your code, 'v' represents the folder
end
end
local folder = workspace:FindFirstChildWhichIsA("Folder")
Oh ok thanks. I will do that.
30 charactersssssssssssssssssssss