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

Scripting a brick that plays sound when touched?

Asked by 3 years ago
Edited 3 years ago

How do I make a brick that plays sound when touched but it doesn't play the sound for other players as well? So, a sound plays when a brick is touched but only plays for that player.

1 answer

Log in to vote
0
Answered by 3 years ago

put the script inside the brick

-- main
script.parent.Touched:Connect(function() -- When part/brick is touched it will function the sound.
game.Workspace.Sound:Play() -- Plays sound, if you use the exact code call the sound "Sound"
end)
Ad

Answer this question