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

01sound = script.Parent
02 
03while true do
04    wait(14)
05sound:Play()
06wait(14)
07script.Parent.Volume=0,4
08wait(1)
09script.Parent.Volume=0,3
10wait(1)
11script.Parent.Volume=0,2
12wait(1)
13script.Parent.Volume=0,1
14wait(1)
15sound:Stop()
16end
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

01sound = script.Parent
02 
03while true do
04    wait(14)
05sound:Play()
06wait(14)
07script.Parent.Volume=0.4
08wait(1)
09script.Parent.Volume=0.3
10wait(1)
11script.Parent.Volume=0.2
12wait(1)
13script.Parent.Volume=0.1
14wait(1)
15sound:Stop()
16end
Ad

Answer this question