Hey, I'm trying to make an if statement that technically destroys a door if it is open for over 20 seconds. I have a horrible script of it. Please make corrections to it.
Door=game.ServerStorage.Door if Door.Parent == game.Workspace then game.Workspace.Door:Destroy() game.ServerStorage.Door.Name = "Door1" wait(20) game.ServerStorage.Door1.Name = "Door" end
Changing the name to Door1 is basically making it so another script can't clone "Door" from serverstorage.
Closed as Not Constructive by evaera
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?