My music script will not work what so ever?
I have recently started ROBLOX Scripting, I am making a music script for my game, simple idea: It will play a sound twice then change the sound id I've tried two scripts:
01 | script.Parent [ "SONG" ] .Looped = true |
06 | script.Parent [ "SONG" ] .SoundID = script.Parent [ "SOUND-1" ] .Value |
07 | script.Parent [ "SONG" ] :play() |
08 | wait(script.Parent [ "Song" ] .TimeLength* 2 ) |
09 | script.Parent [ "SONG" ] :Pause() |
10 | script.Parent [ "SONG" ] .SoundID = script.Parent [ "SOUND-2" ] .Value |
11 | script.Parent [ "SONG" ] :Play() |
12 | wait(script.Parent [ "Song" ] .TimeLength* 2 ) |
13 | script.Parent [ "SONG" ] :Pause() |
14 | script.Parent [ "SONG" ] .SoundID = script.Parent [ "SOUND-3" ] .Value |
15 | script.Parent [ "SONG" ] :Play() |
16 | wait(script.Parent [ "Song" ] .TimeLength* 2 ) |
17 | script.Parent [ "SONG" ] :Pause() |
18 | script.Parent [ "SONG" ] .SoundID = script.Parent [ "SOUND-3" ] .Value |
19 | script.Parent [ "SONG" ] :Play() |
20 | wait(script.Parent [ "Song" ] .TimeLength* 2 ) |
21 | script.Parent [ "SONG" ] :Pause() |
22 | script.Parent [ "SONG" ] .SoundID = script.Parent [ "SOUND-4" ] .Value |
23 | script.Parent [ "SONG" ] :Play() |
24 | wait(script.Parent [ "Song" ] .TimeLength* 2 ) |
25 | script.Parent [ "SONG" ] :Pause() |
26 | script.Parent [ "SONG" ] .SoundID = script.Parent [ "SOUND-5" ] .Value |
27 | script.Parent [ "SONG" ] :Play() |
and
08 | local Sound = Instance.new( "Sound" , script.Parent) |
12 | for i, v in pairs (IDs) do |
15 | wait(Sound.TimeLength * 2 ) |
neither scripts have returned any errors, what could I be doing wrong?