Untitled

mail@pastecode.io avatar
unknown
lua
2 years ago
653 B
3
Indexable
Never
function destructAllWorld()
    for _, v in pairs(worlds:GetChildren()) do
        if v:IsA("Folder") then
            for _, destructs in pairs(v:GetDescendants()) do
                if destructs:IsA("Folder") and destructs.Name == "Destructibles" then
                    for _, begin in pairs(destructs:GetChildren()) do
                        remote:FireServer(
                            {
                                ["TagFullName"] = tostring(begin:GetFullName())
                                
                            }
                            )
                    end
                end
            end
        end
    end
end