# Looping a script while tag is on

**URL:** <https://forum.inductiveautomation.com/t/looping-a-script-while-tag-is-on/93402>\
**Category:** Ignition\
**Created:** [July 18, 2024, 3:06pm UTC](https://forum.inductiveautomation.com/t/looping-a-script-while-tag-is-on/93402 "2024-07-18T15:06:37Z")\
**Posts on this page:** 1\
**Showing post:** 20

<div class="post-metadata">

**Author:** ![amarks](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarks/32/45610_2.png) [@amarks](https://forum.inductiveautomation.com/u/amarks)\
**Post date:** [September 16, 2024, 1:29pm UTC](https://forum.inductiveautomation.com/t/looping-a-script-while-tag-is-on/93402/20 "2024-09-16T13:29:30Z")

</div>

> [@playSoundClip Repeatedly](https://forum.inductiveautomation.com/t/playsoundclip-repeatedly/95345):
>
> A continuation of the original question on [this thread](https://forum.inductiveautomation.com/t/share-audio-clips-between-gateway-and-clients/95286). I can now share audio files between the gateway and the clients rather automatically via a client tag change script. I am also now able to play the file on the client via system.util.playSoundClip(). The question is now, since these are all clips of varying length, how do I get the sound clip to play repeatedly? I can imagine doing something rather archaic and toggling a client tag right after the playSoundClip call, which then triggers…

---

_[View the full topic](https://forum.inductiveautomation.com/t/looping-a-script-while-tag-is-on/93402)._
