Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I make a good music player 2? [UNANSWERED]

Okay, want I mean is, I want the music to play in one room, no where else on my map, I have no idea on how to do this and I am probably the worst scripter to ever set foot on this planet, I want it to play like 1950's songs in my apartment insted of having it play in every area on the map! Can anyone solve this (and no, I aint gonna look it up in free model's)

3 comments

0

not a request site. question has been asked at least 1000 times in the last week

0

Look up how to work with music in the Roblox Wiki. If you are requesting us to make something, we won't make it for you.

0

Scripting Helpers is not a request site; we do not make scripts for you. You must first attempt to create the script yourself to prove that you have tried, and if the code doesn't work, you can ask us then. :)

1 answer

Well, first what you'll need is a part that will play the sound.

** Step 1**: Insert a part into Workspace, any part you want that will serve as your radio.

**Step 2: **Open up Explorer and Properties.

**Step 3: **Right click your radio part, then hover over Insert Object, then click Sound.

**Step 4: ** Click the sound and in the properties check off the Looped box, so it's checked, then put the SoundId to whichever song from the Library you want.

Step 5: Insert a script into the radio part, and inside the script put:

local radiomusic=script.Parent:WaitForChild("Sound")
radiomusic:Play()

Lastly, Edit the volume and pitch and other properties how you wish, then you'll have your song playing from your radio part.

2 comments

0

radio

0

it plays across the map, I only want it to play in the bedroom, so when you walk in, it plays, when you walk out it stops

This discussion is preserved as it was. New answers, comments, and votes are closed.