Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Music Playing Script?

Asked by 8 years ago

Can someone tell me how to make music play in my server without me having to use my admin Commands to say :music 1148, i just want something that when I join the game a "playlist" of my music will constantly be playing.

1 answer

Log in to vote
0
Answered by 8 years ago

Insert a sound object and set the SoundId to the audio you want to play. Then you use the Play method to play it, pause to pause it, and stop to stop the audio and reset the audio.

local asset = 00000 --ID in the URL of the audio
local sound = Instance.new("Sound", workspace)

sound.SoundId = "rbxasset://"..asset
sound.Volume = 0.5
sound.Pitch = 1
sound:Play()

Hope it helps!

Ad

Answer this question