[Help Needed] Lock Player Scripts

This works, but how would I lock accessories?