How to make more complicated CollectionService doors?

I would recommend you use the Tag Editor plugin if you’re not already. Then tag all of your doors so you can loop through them and create the open/close function.

local CollectionService = game:GetService("CollectionService")

for index, door in pairs(CollectionService:GetTagged("YOUR_DOOR_TAG")) do
    -- your code here
end
1 Like