How can I make the sound play after 1000 points?

Please help me, I don’t know how to make the sound play after 1,000 points on Godot 3 :frowning:

var sound_played = false
var sound = $YourAudioStreamPlayerNode

func play_sound(points):
    if points >= 1000 and not sound_played:
        sound.play()
        sound_played = true
1 Like

Sorry, but I asked for a script for the Label object