# Ending a script?

**URL:** <https://forum.kirupa.com/t/ending-a-script/224117>\
**Category:** flash\
**Created:** [April 28, 2007, 8:08pm UTC](https://forum.kirupa.com/t/ending-a-script/224117 "2007-04-28T20:08:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robin105](https://avatars.discourse-cdn.com/v4/letter/r/5e9695/32.png) [@Robin105](https://forum.kirupa.com/u/Robin105)\
**Post date:** [April 28, 2007, 8:08pm UTC](https://forum.kirupa.com/t/ending-a-script/224117/1 "2007-04-28T20:08:02Z")

</div>

Ok I put a script on a frame

“\_root.background.gotoAndStop(4);  
\_root.weapon.gotoAndPlay(“shotgun”);”

Well Now when I try to change the weapons it goes BACK to settings on the frame :P. So I was wondering if anyone could tell me a way to EndScript?
