绑定事件[SetScriptEvent]
<table>
<thead>
<tr>
<th>function</th>
<th>str</th>
<th>fun</th>
</tr>
</thead>
<tbody>
<tr>
<td>SetScriptEvent</td>
<td>绑定事件</td>
<td>回调函数</td>
</tr>
</tbody>
</table>
<pre><code class="language-lua">closeButton:SetScriptEvent(&#039;OnClick&#039;, OnCloseBtnClick)
</code></pre>