I want to play audio from the ROBLOX Library in a script. How do I do that?
local sound = Instance.new("Sound") sound.SoundId = "rbxassetid://YOURID" sound.Parent = workspace sound:Play()
Step One: Make a folder in Workspace and name it 'Sounds'
Step Two: Insert a Sound into the Sounds Folder and name it 'Song1'. Change the SoundId in Properties to the ID you want it to be.
Step Three: Insert a Script. A good place for this would be game.ServerScriptService
. In the script, type in:
local waitTime = 1 --Change this to the amount of seconds until the song starts game.Workspace.Sounds.Song1:Play()
Hope this helps. Notify me if it doesn't work, and I'll find a new way. Upvote and mark as complete if it helps!
Closed as Not Constructive by youtubemasterWOW and JesseSong
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?