function onTouched(hit)
if hit.Name == "H1" then
if script.Parent.Parent.DoorL.Value == false then
script.Parent.Parent.DoorL.Value = true
wait(60)
script.Parent.Parent.DoorL.Value = false
end
end
script.Parent.Parent.Touched:connect(onTouched)
COMMUNITY QUESTION
What wrong at this script?
1 answer
What is wrong with it? Like, what is going wrong? Also, check your Hierarchy, make sure that is correct. (Only answering because commenting doesn't work for me.)
1 comment
0
This is NOT an answer, you're the one who supposed to see what is wrong with the script and fix it. Read this: https://scriptinghelpers.org/blog/posting-good-questions-and-answers-on-scripting-helpers. Note: To be able to comment on others' questions/answers, you must get 10 reputation.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
l need a fixed script