Ok so I recently I tried adding a Auto Player to my game, and it worked (for the most part) but now when I tried to add it so the songs fade out at the end and in on the beginning, Nothing works anymore and there are no error outputs. ????
local x = game.Workspace.DJBoardPRO
local o = script.Parent.Parent.Parent
script.Parent.MouseButton1Click:connect(function()
local Songs = {--200 song ID's--}
if script.Parent.Text == "Auto Players current status: Off" then
script.Parent.Text = "Auto Players current status: On"
while script.Parent.Text == "Auto Players current status: On" do
o.Header.Text = "AutoPlayer is on"
x.Sound:Stop()
x.Sound.Volume = 0
x.Sound.SoundId = ""
wait()
x.Sound.SoundId = "http://www.roblox.com/asset/?id=" .. Songs[math.random(1, #Songs)]
x.Sound:Play()
function In() --Where I need help--
for i = 0, 1, 0.01 do
wait(1)
x.Sound.Volume = i
wait(100)
function Out() --Where I need help (x2)--
for i = 1, 0, -0.01 do
wait(1)
x.Sound.Volume = i
x.Sound:Stop()
x.Sound.SoundId = ""
end
end
end
end
end
else
if script.Parent.Text == "Auto Players current status: On" then
script.Parent.Text = "Auto Players current status: Off"
o.Header.Text = "DJ-Board (Revised) V.15.2"
x.Sound:Stop()
x.Sound.SoundId = ""
script.Disabled = true
wait()
script.Disabled = false
end
end
end)

1 comment
From my past experience, I don't think you can have 3 arguments in a for loop. Ill post an answer.