Hey I was wondering how I'd add a debounce tot his short script, any help would be appreicated. :)
function onTouched(part)
script.Parent.Parent.DoorScript.open.Value = true
wait(3)
script.Parent.Parent.DoorScript.open.Value = false
end
script.Parent.Touched:connect(onTouched)

4 comments
It just makes the time the door is closed for longer?
as I changed the wait time
wait just changes the time you need to wait before you can open again
this script works, I don't know why it was unmarked as the answer