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)
The H1 is a part ,l place at: Workspace>Model>Model>H1(Part)

1 comment
l need a fix script