# Help with a teleporter

**URL:** https://forum.kirupa.com/t/help-with-a-teleporter/172375
**Category:** Uncategorized
**Created:** [December 13, 2005, 8:12pm UTC](https://forum.kirupa.com/t/help-with-a-teleporter/172375 "2005-12-13T20:12:28Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dazer](https://avatars.discourse-cdn.com/v4/letter/d/b2d939/32.png) [@dazer](https://forum.kirupa.com/u/dazer)
#### Post date: [December 13, 2005, 8:12pm UTC](https://forum.kirupa.com/t/help-with-a-teleporter/172375/1 "2005-12-13T20:12:28Z")

</div>

I have a teleporter for my platform game, it works just fine, I just want to set a counter on it, so that, if I have a certain amount of coins, it and I jump through it, it will either ignore me, or take me to the next scene. here is my code for the tele porter-  
onClipEvent (enterFrame) {  
if (this.hitTest(\_root.char)) {  
if (\_root.score.text\>=5);  
\_root.gotoAndStop(‘level2’);  
}

}

also, how do I get my score, to carry on to the next level?
