no functions seem to be running anyone know why?
i have a script where in the middle of the script there is a function that starts like this:
it never says "playing..."
and i have put a play() at the bottom
full code:
08 | if loop_phase = = 1 then |
09 | print ( "now playing: " ..id.Value.. ".start" ) |
10 | script.Library [ id.Value ] .start:Play() |
11 | wait(script.Library [ id.Value ] .start.TimeLength) |
13 | elseif loop_phase = = 2 then |
14 | script.Library [ id.Value ] .loop:Play() |
15 | wait(script.Library [ id.Value ] .loop.TimeLength) |
24 | if loop_phase = = 1 then |
25 | script.Library [ id.Value ] .start.Volume = script.Library [ id.Value ] .start.Volume - 0.2 |
26 | elseif loop_phase = = 2 then |
27 | script.Library [ id.Value ] .loop.Volume = script.Library [ id.Value ] .loop.Volume - 0.2 |
31 | if loop_phase = = 1 then |
32 | script.Library [ id.Value ] .start:Stop() |
33 | elseif loop_phase = = 2 then |
34 | script.Library [ id.Value ] .loop:Stop() |
36 | script.Library [ id.Value ] .loop.Volume = 10 |
37 | script.Library [ id.Value ] .start.Volume = 10 |
the local id = script.Id is a string value set to "adventure"
the script will locate: script.Library[id.Value]["start"] at some point which basicly means script.Library.start
and start is a sound in a folder called adventure in the script
no errors, or the "playing..." i seriously need help