# Need help with scores

**URL:** <https://forum.kirupa.com/t/need-help-with-scores/83795>\
**Category:** Uncategorized\
**Created:** [March 22, 2005, 7:13am UTC](https://forum.kirupa.com/t/need-help-with-scores/83795 "2005-03-22T07:13:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nathan99](https://avatars.discourse-cdn.com/v4/letter/n/96bed5/32.png) [@nathan99](https://forum.kirupa.com/u/nathan99)\
**Post date:** [March 22, 2005, 7:13am UTC](https://forum.kirupa.com/t/need-help-with-scores/83795/1 "2005-03-22T07:13:38Z")

</div>

I want it so that when the players score is equal to or greater than 20 it destroys my objectwhich is a frame labelled “off” and when the score is lower than 20 it is on which is a frame lebelled “on”. Can anyone help me?

This is the code I have:

```auto
 onClipEvent (load) {
if (_root.score>=20) {
this.gotoAndStop("off");
}
}

```
