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

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

Asked by 9 years ago

please help me i have been wondering awhile to learn how

2 answers

Log in to vote
0
Answered by
OniiCh_n 410 Moderation Voter
9 years ago

Please resort to the wiki pages and make an attempt first.

Here are 2 useful wiki pages:

Sounds

Events (like touching a brick)

Ad
Log in to vote
-1
Answered by 9 years ago

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)
0
LOL sorry im just new to this site so Idk how it works but im expert in SCRIPTING crazymuffin267 0 — 9y
0
oh god OniiCh_n 410 — 9y
0
Fixed:) crazymuffin267 0 — 9y

Answer this question