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

How to get a sound in this?

p.Anchored = false p.CanCollide = true p.BottomSurface = 0 p.TopSurface = 0 p.BrickColor = BrickColor.new("Neon orange") p.Reflectance = 0.1 p.formFactor = 0 p.Size = Vector3.new(1,1,2) p.Material = "Neon"

Basically want it to make a sound whenever it spawns.

1 comment

0

UndeniableLimited gave you the basic idea of creating a sound; it is up to you to play it.

1 answer

  1. This is a request and SH is not a request site
  2. This is simple so here's the code:
s = Instance.new("Sound") -- Create the sound!
s.SoundId = "http://www.roblox.com/asset?id=000000000" -- Change 000000000 to your audio ID
s.Volume = 1 -- Volume of the audio.
s.Pitch = 1 -- Pitch of the audio.
s.Looped = true -- Loop the audio?
s:Play() -- Remove this if you don't want to play it immediately]

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