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

How do i make it so if you touch a brick i plays a sound?

please help me i have been wondering awhile to learn how

2 answers

Make a brick and then put this script in it.

local sound = Instance.new("Sound", Workspace)
sound.Pitch = 1 -- Speed of the song (Preffer not to change it)
sound.SoundId = "rbxassetid://144405051" -- Put the last numerbs of the link of the song(ROBLOX) that you want
sound.Volume = .5 -- Volume(How much power) of the song
sound.Looped = false -- If you want the song to repeat after the song is done

script.Parent.Touched:connect(function()
		sound:play()
	end)

3 comments

0

LOL sorry im just new to this site so Idk how it works but im expert in SCRIPTING

0

oh god

0

Fixed:)

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