The Script Now Properly Ignores Locked Frames