make it pressable every 8.5 seconds, pressed only once every 8.5 seconds
local time = 3 -- time the player has before door closes script.Parent.Touched:Connect(function(hit) if hit.Parent.parent:FindFirstChild("Keycard") then print("what are you") wait(1)
elseif not hit.Parent.parent:FindFirstChild("Keycard") and hit.Parent.parent:FindFirstChild("Humanoid") then
print("doing step bro") end end)

5 comments
bye
Sorry, your not suppose to ask for code on this site. You can ask for help here, or suggestions. Most people won't help you if your not trying.
i cant try if i dont know
Basically you make a variable named debounce that = false. Then you would put an if statement to see if its false, before your code happens. Then you would make your debounce true. After your code, you can make your debounce false, which will then let your code repeat again.
The debounce would just be there, to make sure yourcode doesn't repeat to fast.