How can I do that when I click this yellow button, the program will appear and the program's sound will start to play, and when I click the button again, the program will turn off and the program sound will stop playing and so on. The name of the TV is Old TV, the name of the sound is sound and the decal name of the program is TV Program.
photos : https://imgur.com/a/qNLG9r7

2 comments
also make sure to switch the var when you fire the functions
and if you want another script to listen if the tv is on, then you need to make a boolean value