Not sure, try to see if this works.
01 | print ( 'Music player started!' ) |
07 | function dispHint(text, len) |
08 | print ( "Display hint." ) |
09 | local ph = ws:GetChildren() |
12 | if ph [ i ] :IsA( "Hint" ) then ph:Destroy() |
15 | local holding = ( 120 * len) |
17 | local nh = Instance.new( "Hint" ,Workspace) |
19 | game:GetService( "Debris" ):AddItem(nh, 2 ) |
24 | print ( "Running loop." ) |
25 | local st = script:GetChildren() |
26 | local rt = math.random( 1 , #st) |
29 | if (ct and ct:IsA( "Sound" ) and ct.Name ~ = last 1 and ct.Name ~ = last 2 ) then |
30 | print ( "Change the track." ) |
33 | dispHint( "Now playing " ..last.. "." , 5 ) |