I am pretty new to scripting Lua, and would like someone to correct my mistakes for me to be able to disable ClickDetector button for at most least 20 seconds for one person only in one area, but they would also be able to do it in another area with the same scripts. Thank you! Please respond as soon as possible with an answer.

Script:

open = true Script.Parent.ClickValue Door.ClickDetector. '='got 'open' '='got true. then disable.ClickDetector

wait(20) enable.ClickDetector end

4 comments

0

please use code blocks by pressing the blue button with the word Lua in it, if you still need help with this code, delete this and repost the question and ill help you there

0

You'll need to turn on Filtering Enabled and have a local script disable the ClickDetector using a RemoteEvent

0

would that be in an alvinblox video?

0

oh ill try that