My sound is playing endlessly, what should I do?

Are you running it on Tick? Tick mean every frame. Perhaps this could work:

It would play once when we go above 6, and can be played again only if we drop below that value. Ideally, though, this should not be directly tied to Tick, but instead be triggered by the temp calculation itself.

1 Like

You probably want it to play once when the color temperature exceeds 6000?
Just add a bool variable and change it to true when it happens, and to false when it falls back under 6000.

if true ? do once > play sound 2d
if false, do not play sound, delay if you wish and then reset the do once