script frame end