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

Can someone help me with Sound script?

Asked by 9 years ago

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
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 Ryzox 220 — 9y

1 answer

Log in to vote
0
Answered by
yoshi8080 445 Moderation Voter
9 years ago

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
Ad

Answer this question