So i have a radio that i created that will play any music id from the roblox library by clicking then entereing the id. However, i don't want the music to be played in a certain area within the game. So if enter the id 00000000 i want the music to be played within the area of a non colideable block. Im pretty new to scripting and would really appreciate any advice that can be given to me. The goal is NOT to have song preset and playing in the part when someone goes through it. The idea is to have specific id being inputted in game that allows the player to hear the music within that are only.
How do i make a radio play music within a specific part?
1 answer
Well one of the things you could do is make a stats script, then insert a bool value (lets call in StopMusic) into the player. the you could make a part and make it so when a player touches it, it checks if the value StopMusic = false. if it does = false then it would continue with the script, i'm not sure what your script is but i'm pretty sure it uses a sound part. once the script checks if the value for StopMusic = false then it will make it so the sound volume = 0 that way no-one can here it. you could then make another part that checks of the StopMusic value = true, if it does it would make it false and change the Music volume back to its original volume. If you need more help please tell me, hope this can help you :)
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
I didn't really understand what do you want. You want players to hear your music in a specific area but not in all the area?
so if i had a part, lets say the name was Zone, i would only want it to play within Zone not outside off it. So only players within the area of zone could here it. It wouldn't disturb player outside off Zone.