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

How can I add a sound when I open my door in roblox?

Asked by 3 years ago

I want to add a sound to my door when you open it but I dont know how, i searched yt and I cant find anything. Please help!

0
bruh at least try to make a script epicgnomer 15 — 3y

2 answers

Log in to vote
0
Answered by
Qu_xtty -8
3 years ago
Edited 3 years ago

All you would do is insert a sound into SoundService, reference that sound, then out Sound:Play() after the door opens. Example:

local sound = game.SoundService.DoorOpening --Make sure it is named DoorOpening if you are using this.

--DOOR OPENING SCRIPT--
sound:Play()

It would've helped a lot more if you gave the script.

Ad
Log in to vote
0
Answered by
3F1VE 257 Moderation Voter
3 years ago

You could make a sound in the part and make a script that plays it when opened. You would put this script in the handle if its a click detector :

local sound = script.Parent.Parent.Sound
script.Parent.MouseClick:Connect(function()

sound:Play()

end)

Put the script as a normal script.

Answer this question