Problem with CollectionService

  1. What do you want to achieve? Hello, i use the CollectionService for doors in my game but i have an issue with a wait()

  2. What is the issue? I need to include a wait in my door code but when i close my doors it close the door one by one because there is a wait, this is my code :

for _, door in pairs(CollectionService:GetTagged("Door")) do
			-- here the alarms alert the player that the door will close
			wait(5)
			-- here i would tween my door
		end
  1. What solutions have you tried so far? I tried to fix it myself and looked on forums.

I found the solution of my issue

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.