Add transparency lua code to TearOff

Add transparency lua code to TearOff