Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Can someone help me with Sound script?

i need help the last part does not work i want it to turn smoothely off

sound = script.Parent

while true do
	wait(14)
sound:Play()
wait(14)
script.Parent.Volume=0,4
wait(1)
script.Parent.Volume=0,3
wait(1)
script.Parent.Volume=0,2
wait(1)
script.Parent.Volume=0,1
wait(1)
sound:Stop()
end

1 comment

0

Really unsure what you're trying to do with this, you are not even playing the sound and you should be using a period not a comma for "0.1" or "0.4" stuff like that. It would also be easier using a for loop and I have no idea what you're doing with those waits and while loop

1 answer

You have to change 0,4 to 0.4

sound = script.Parent

while true do
    wait(14)
sound:Play()
wait(14)
script.Parent.Volume=0.4
wait(1)
script.Parent.Volume=0.3
wait(1)
script.Parent.Volume=0.2
wait(1)
script.Parent.Volume=0.1
wait(1)
sound:Stop()
end

This discussion is preserved as it was. New answers, comments, and votes are closed.