Ok I made this script and the music wont play fully.. It just moves on to the next one. Whats the problem.. Heres the script
gw=game.Workspace
function message(text,time)
local oldmsg=gw:FindFirstChild("Hint")
if oldmsg then
oldmsg.Parent=nil
end
local spacenumber=time*120
local msg=Instance.new("Hint")
msg.Parent=gw
msg.Text=text
wait(1)
msg.Parent=nil
end
last=""
lastlast=""
while true do
wait(.1)
local tracks=script:GetChildren()
local rn=math.random(1,#tracks)
local track=tracks[rn]
if track~=nil then
if track.className=="Sound" and track.Name~=last and track.Name~=lastlast then
lastlast=last
last=track.Name
message(track.Name,5)
track:play()
wait(120)
track:pause()
end
end
end

2 comments
Thanks Worked :D
Make sure to accept as an answer. :P