How do I change the volume of the sound that exists only in a script?

So, currently I am making a system that makes walking, jumping and dying have a sound effect. My question here is how can I change the sound volume of these sounds, I also do not have them in SoundService. Here is the script if you need it:

local walk = script.Parent.HumanoidRootPart:WaitForChild("Running")
walk.SoundId = "rbxassetid://379398649"
local jump = script.Parent.HumanoidRootPart:WaitForChild("Jumping")
jump.SoundId = "rbxassetid://269463144"
local dead = script.Parent.HumanoidRootPart:WaitForChild("Died")
dead.SoundId = "rbxassetid://4588693406"

I have also have tried:
sound.Volume =  1

Thanks!

1 Like

local walk = script.Parent.HumanoidRootPart:WaitForChild (“Running”)
walk.SoundId = " "
local jump = script.Parent.HumanoidRootPart:WaitForChild (“Jumping”)
jump.SoundId = " "
local dead = script.Parent.HumanoidRootPart:WaitForChild (“Died”)
dead.SoundId = " "
walk.Volume = 5

Instead of sound.Volume, replace the bottom line with walk.Volume

Hope this helps!

It does! Thanks. I actually tried but the script was kinda diffirent.
local sound.walk.Volume = 2

Sorry if this makes no sense to some of you. I am pretty new here.

Please format your code inside of a code block using ```lua with indents.

--Like this
local g = false
if not g then return end

This goes for you as well. @Havz1no

1 Like

Alright, I will make sure that I do that in the future.

1 Like