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

How to add to my server music?

Asked by 8 years ago

Please help me i need to add background music to my server!

4 answers

Log in to vote
2
Answered by
Azmidium 388 Moderation Voter
8 years ago

Problem: You need background music for your game

Solution:

Step 1) Insert "Sound" from "Advanced Objects" into your "Workspace"

Step 2) Insert "http://www.roblox.com/asset?id=IDHERE" into the "Sound" property "SoundId"

Replace IDHERE with Song Id

Step 3) Insert a "Script" from "Advanced Objects" into your "Sound"

Step 4) Put in the script (Below for options):

To play the song:

script.Parent:Play()

To stop the song:

script.Parent:Stop()

To pause the song:

script.Parent:Pause()
0
Pause is broken af, use pitch = 0 then pitch = 1 NotSoNorm 777 — 8y
0
This works only one time only at roblox studio :/ suberon 0 — 8y
0
What do you mean? Azmidium 388 — 8y
Ad
Log in to vote
0
Answered by
ImfaoXD 158
8 years ago
local s = Instance.new("Sound")

s.Name = "Sound"
s.SoundId = "http://www.roblox.com/asset/?version=1&id=45819151"
s.Volume = 1
s.Looped = true
s.archivable = false

s.Parent = game.Workspace

wait(3)

s:play()

Just insert this into a normal script and place it in Workspace. Have fun! :)

Log in to vote
0
Answered by 8 years ago

Insert a script into Workspace with this code inside it:

local music = script.Music
music.Looped = true
music:Play()

Insert a sound into the script, name it "Music", and give it the soundId of the music you want. Done!

Log in to vote
0
Answered by 8 years ago

Answer this question