Talk:Sounds
From Legacy Roblox Wiki
Testing
OK, this has been tested because this is pretty much the code I just worked with on the music page.
debounce = false function onTouched(hit) if debounce == false then debounce = true local s = Instance.new("Sound") s.Name = "Sound" s.SoundId = "yourSoundIdGoesHere" -- SoundId! Type here yours. s.Volume = 1 s.Looped = false s.archivable = false s.Parent = game.Workspace wait(0) s:play() end end script.Parent.Touched:connect(onTouched)