5:58 Touch Event local sound = script.Parent.Sound local debounce = true script.Parent.Touched:Connect(function(otherPart) local humanoid = otherPart.Parent:FindFirstChildWhichIsA("Humanoid") if humanoid and debounce then debounce = false sound:Play() sound.Ended:Wait() debounce = true end end)
If you wanna make volume higher or lower in the proximity prompt part add "sound.Volume = 10 --change the volume number to whatever you like" right under "sound.Parent = script.Parent"
thanks so much! im trying to make a horror game and wanted to add a sound every time you approach a little cave i made, so i watched this video and it worked! thanks so much!
If you want to do Close door sound and open sound use this: local openSound = script.Parent.OpenSound local closeSound = script.Parent.CloseSound prompt.Triggered:Connect(function() if prompt.ActionText == "Close" then closeSound:Play() tweenClose:Play() prompt.ActionText = "Open" else openSound:Play() tweenOpen:Play() prompt.ActionText = "Close" end end)
Do you replace the OpenSound and the CloseSound with the ID of the roblox sound asset?. Nvm (I figured it out, and the answer is yes I indeed do replace it)
If you want a close and open sound in the last part u can just put this local sound = script.Parent.DoorSound local sounds = script.Parent.Sound prompt.Triggered:Connect(function()
if prompt.ActionText == "Close" then tweenClose:Play() prompt.ActionText = "Open" sound:Play() else tweenOpen:Play() prompt.ActionText = "Close" sounds:Play() end end)
How do you make a sound lower in volume the farther you are? So like when you’re on top of the sound part you will hear it clearly, but if you’re 50 studs away it’ll be harder to hear
Even if this was answered 10 months ago, I'll go into more detail. Select your sound. In the Properties section, scroll down until you find "RollOffMaxDistance." Change the number to 50 studs. (That is as far as you'll be able to hear it.) You'll probably never see this, but your welcome!
I’m making a horror game and u have to pick up vsh tapes and I’m trying to add a static sound effect that plays when your close to it but it doesn’t work when I try it
This is really basic but for water, how do I add the sound effect to the water so it sounds louder there? You do it in the video with object, not a terrain so idk.
i have a problem with my local script my idea is to play an animation synced with the sound the animation is in the local script, while the Sound is in a normal script so everyone can hear it i tried getting the Sound.TimePosition in my local script but when i play and print the timeposition my server script plays it but the localscript just get the sound position so the server prints the correct timestamp while the local script just keeps printing 0 any idea on how to fix that?
Bro I see that if you know well about scripts, you can make a video where you explain how to put an effect you are terrified, so go walking and go through that block with the script and listen, if you understand me hahaha?, Please bro believe me that always e wanted to make a horror game, but there is no one to explain how to do that :(
Hey, my roblox studio has been having a glitch for a while now where when you play test the game, its plays in locked first person. Does anyone know how to fix this?
It all depends on when you want the sound to play. You can use the exact methods show in this video. You can make the NPC make a sound when you run into it, when you click it, when you activate a proximity prompt etc.
for some reason when i use a typewrite module i have, the module references the sound but when i use the module in a server script it won't play. Can someone help me? code: module script: function module.typewrite(object, text, length, sound) for i = 1, #text, 1 do object.Text = string.sub(text, 1, i) sound:Play() task.wait(length)
end end snippet of server script: module.typewrite(DialogueBillboard.TextLabel, Text.Value, 0.08, sound)
What is a funny scripting idea?
Something that mixes up everybody's body parts clothes and accessories leaving everyone muddled up :D
Whenever you say GG somebody walks to you and starts spamming "ez"
Please make a tutorial on cars.
When someone says "Ez"
a noob comes in and kills him and says " 2 ez "
Basically you have a button and if you press it, it will go crazy and the world will blow up
5:58 Touch Event
local sound = script.Parent.Sound
local debounce = true
script.Parent.Touched:Connect(function(otherPart)
local humanoid = otherPart.Parent:FindFirstChildWhichIsA("Humanoid")
if humanoid and debounce then
debounce = false
sound:Play()
sound.Ended:Wait()
debounce = true
end
end)
Local script>
I thought adding sounds to parts are a lot harder. Thanks for the tutorial as always. I don’t comment that much on videos
Thanks for commenting! It isn't too bad really! The hardest part for most people is just figuring out where in the script to play the sound
this might be an old video, but it still works. thank you, as without these videos i would have no door.
One of the best Roblox Studio tutorials I've seen. Thank you. This was well explained!
i swear you r sooo underrated, LOVE YOUR CONTENTS! keep it up mate as a fellow dev👍
Thanks, will do! I appreciate you watching the videos!
omg tysm. i was searching everywhere on yt and this is the only that worked for me.
If you wanna make volume higher or lower in the proximity prompt part add
"sound.Volume = 10 --change the volume number to whatever you like"
right under
"sound.Parent = script.Parent"
thanks so much man, I knew how to get sound effects and play them but the fact that it was playing globally confused me so much. great vid!
Brilliant! the .isloaded bit had been causing me problems and I hadn't even realised why. this is gonna make things much better for me 😁
Did you do Audio.IsLoaded:Wait() ?
I'm glad you got some use out of the video!
@@Papaintion no I didn't wait at all! Most of the time I guess I was getting away with it but other players were running into issues.
Dude u are underrated you should be 100k+ you will hit that some day
Maybe soon!
Making another banger video
Love the vid 🤩
Appreciate it! More to come!
Thank you so much I was stuck on making a sound when a player opens a door.
Oh, now i get it, this is very cool
I'm glad it helped!
thanks so much! im trying to make a horror game and wanted to add a sound every time you approach a little cave i made, so i watched this video and it worked! thanks so much!
Thank you so much for the help mate!
Happy to help
If you want to do Close door sound and open sound use this:
local openSound = script.Parent.OpenSound
local closeSound = script.Parent.CloseSound
prompt.Triggered:Connect(function()
if prompt.ActionText == "Close" then
closeSound:Play()
tweenClose:Play()
prompt.ActionText = "Open"
else
openSound:Play()
tweenOpen:Play()
prompt.ActionText = "Close"
end
end)
Do you replace the OpenSound and the CloseSound with the ID of the roblox sound asset?. Nvm (I figured it out, and the answer is yes I indeed do replace it)
BROOO TY U SO MUCH!!
Day 2 of asking for a tutorial on cars.
Your requests have been seen!
Thank you so much it really helped to my game development
You've helped me so much thanks
Glad to hear it!
How do you make it so the door plays a different sound when closing?
please, how do I make a timed audio with no triggers? like just an audio playing every X seconds
Love this channel
Thanks for watching!
Nvm, i fixed my problem, great video :D
this really helped Thank you so much!!!
Damn imma add this into a few games lol
Awesome!
TYSM i watched ur door video originally but wanted sound too!
edit: can u make a locked door tutorial
thanks now i can make alexnewtron sound effects
I need that tho thank you ☺️
Glad I could help!
This was realy good for my games it helpen alor!
How do you add sound effects to your animation?
CyberCreator, i loved your video and it helped me alot, but could you also make an animation on how to do a jump animation play on the second jump?
Definitely! A lot of people have been asking for a video on that!
if you mess with a script a bit (you'd need to know a bit of coding for this) you can make voicelines for story games!
on the touch event i have done all the code right but i still cannot hear my sound effect
same idk why
earned a sub your a genius
Thanks for watching and subbing!
@@CyberCreator is there a way to make it so everyone can hear it?
Good video and you do one where you just left mouse click and it makes a sound please ty
Video idea: shop gui character
Got it! Thanks
@@CyberCreator thanks too you. I really need it
very well expalined though how to do the same but with imported sound?
cool sounds!
4:20 book mark lol
Thanks for watching!
Thank you so much
Nice video also its not called game its called "experience" lol.
That is going to take some getting used to haha
Its like the same thing
"Its actually called experience" 🤓🤓🤓🤓🤓
Nerd
i did the script part and did everything correctly but it still didn't work
why and how?
same here
Sorry to hear that. Let me know what errors you're getting or send the script in the discord so we can help you troubleshoot discord.gg/X3zdqHy
I added sound to my object, but still no sound. I’m trying to make a coin pick up sound
thank you
How do i add a sound effect into a tool when being used?
If you want a close and open sound in the last part u can just put this
local sound = script.Parent.DoorSound
local sounds = script.Parent.Sound
prompt.Triggered:Connect(function()
if prompt.ActionText == "Close" then
tweenClose:Play()
prompt.ActionText = "Open"
sound:Play()
else
tweenOpen:Play()
prompt.ActionText = "Close"
sounds:Play()
end
end)
i follwed everything on the door, but the sound just does not activate.
I cant hear anything when I play the audios, even the ones in the toolbox.
e
How do you make a sound lower in volume the farther you are? So like when you’re on top of the sound part you will hear it clearly, but if you’re 50 studs away it’ll be harder to hear
Even if this was answered 10 months ago, I'll go into more detail. Select your sound. In the Properties section, scroll down until you find "RollOffMaxDistance." Change the number to 50 studs. (That is as far as you'll be able to hear it.) You'll probably never see this, but your welcome!
I dont care if this is from 11 months ago but can you make one where the sound plays at random
Hey I'm trying to script Sounds for my boat, I have no luck. Can you Make a video about scripting sounds for vehicles?
Thanks bro :DDDDDD
No problem!
I’m making a horror game and u have to pick up vsh tapes and I’m trying to add a static sound effect that plays when your close to it but it doesn’t work when I try it
Nice new subscriber!
Thanks for subbing!
@@CyberCreator np!
Hello! Is it possible for you to make a tutorial on how to make it so when you talk to a npc a door unlocks, thank you!
I'll make some videos on NPCs soon. For that specific scenario you should join the discord and we can help you out discord.gg/X3zdqHy
This is really basic but for water, how do I add the sound effect to the water so it sounds louder there? You do it in the video with object, not a terrain so idk.
put the sound in a part then make it invisible and turn on cancollide then scale it to whenever you want people to hear it
Is there a way I can stop the audio from playing midway?
for the door sound effect what do we do if the door doesnt have a proximity prompt
Can you give me the link of your game when its ready?
Definitely!
i just dont know why none of these are not working!
For me this is quite confusing I don’t know what script for the door one is
How do I make it so when im dashing (custom dash) it will make a sound effect.
is there any way to make the sound stop playing after a second click?
could u add a keycode to the script one so if u click on E then it makes the sound ?!
As always i do the .Triggered thingy and it says "Triggered is not a valid member of Dummy.Head.Dialogue"
can you tell me how to fix this?
Does anyone know if the scripts (specifically for the door) was for people around only to hear it? Or will everyone in the game hear it?
is there any way to make sound effect when you walk to a brick?
i have a problem with my local script
my idea is to play an animation synced with the sound
the animation is in the local script, while the Sound is in a normal script so everyone can hear it
i tried getting the Sound.TimePosition in my local script but when i play and print the timeposition
my server script plays it but the localscript just get the sound position
so the server prints the correct timestamp while the local script just keeps printing 0
any idea on how to fix that?
what if the object has a humanoid root part, will that trigger the sound?
1st how to make sound it didnt work for me
How to add a close sound?
what about like a walking animation?
The scrip not working pls give the model pls
Bro I see that if you know well about scripts, you can make a video where you explain how to put an effect you are terrified, so go walking and go through that block with the script and listen, if you understand me hahaha?, Please bro believe me that always e wanted to make a horror game, but there is no one to explain how to do that :(
How to make a gun make a sound when it is shot
what's the sound id for the creepy doorsound?
I cannot find the URI
Is there a way to make a sound happen at a certain time? I want to make a noise happen before a monster appears and chases my players.
I don't think so sadly
Id? How do you just put in a .WAV file?
How do you make a game pass where you touch a block and a game pass buy screen pops up
I will make a video on game passes soon!
how do i use the sound location thing
Hey, my roblox studio has been having a glitch for a while now where when you play test the game, its plays in locked first person. Does anyone know how to fix this?
do u have a first person script on the workspace
how about animation?
Hey, i wanna add voice acting into my game. How do i make it that a character, when spoken to, plays a roblox sound?
Exactlyyy I need this tooo!!
could you reply with the door script with sound
no.... i need sound effect for killer..
1:15 *C r I m i n A li T y??!!*
It didnt work for me.🤔
Backrooms my boi
local prompt = script.Parent.ProxomityPrompt
local soundid = " "
sound.Parent = script.parent
prompt.Triggered:Connect(function()
end)
Thx dude can u help me with my game??
Thanks for watching! Unfortunately I don't have time to work on anyone else's games!
Also thanks for commenting on all the vids! lol
@@CyberCreator okk
well nothing works i do ever works so... 😶
do you know how to add it to an animation/emote?
Honistly, I dont know
Might wanna go to the discord and find out
How to open audio
hi
hello
how do i make a npc make a sound though?
It all depends on when you want the sound to play. You can use the exact methods show in this video. You can make the NPC make a sound when you run into it, when you click it, when you activate a proximity prompt etc.
i add movie sonic simulator
Touch script is broken
It works. Join the discord to get more in depth help discord.gg/X3zdqHy
for some reason when i use a typewrite module i have, the module references the sound but when i use the module in a server script it won't play. Can someone help me?
code:
module script:
function module.typewrite(object, text, length, sound)
for i = 1, #text, 1 do
object.Text = string.sub(text, 1, i)
sound:Play()
task.wait(length)
end
end
snippet of server script:
module.typewrite(DialogueBillboard.TextLabel, Text.Value, 0.08, sound)