I need help... Is there anything i can do to make this script work? http://imgur.com/dgsUPU7 This is what the Gui Looks like, But i can not get it to work! It works in studio perfectly, and it displays the Now Playing bar on the top, But that also works on Player, its just the music that is not working! Any help? I need this on very short notice, if somone can actually help me Il pay you some Robux! :D

local Player    = game.Players.LocalPlayer

Songs           = script["Music"]:GetChildren()
Selected        = nil

MTL             = .25

------------------------------------------------------------------------------------------------------------------------------------

function Song()
Random = Songs[math.random(1,#Songs)]
Selected = Random
script.Parent.Playing.Playing.Text = Selected.Name
wait()
for i = 1,#Selected:GetChildren(),1 do
Selected:GetChildren()[i]:Play()
wait(Selected:GetChildren()[i].Duration.Value-MTL)
end
end

while true do Song() end

Player.Character.Humanoid.Died:connect(function()
for Index,A in pairs(Selected:GetChildren()) do
if A:IsA("Sound") then
A:stop()
end
end
end)

1 comment