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

What wrong at this script?

Asked by 9 years ago
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)
0
l need a fixed script 7785543 2 — 9y

1 answer

Log in to vote
-2
Answered by 9 years ago

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.)

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. kudorey619 138 — 9y
Ad

Answer this question