Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

If then time statement? [closed]

Asked by 8 years ago

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.

0
It's kind of confusing what you're trying to do here. Could you elaborate a little more? nilVector 812 — 8y
0
ServerStorage isn't a service that exists in servers, use ReplicatedStorage instead. GullibleChapV2 155 — 8y

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?