work on closing doors

This commit is contained in:
2024-02-10 16:10:35 -05:00
parent 699fe50fea
commit c454a5cc4e
6 changed files with 21 additions and 15 deletions

View File

View File

@@ -6,7 +6,8 @@ local AllTags = CS:GetAllTags()
for i = 1, #AllTags do
local TagName = AllTags[i]
if TagName ~= "RopeMasterObject" then
exports[TagName] = CS:GetTagged(TagName)[1]
local Tagged = CS:GetTagged(TagName)
exports[TagName] = #Tagged>1 and Tagged or Tagged[1]
end
end