Я написал два варианта скрипта, оба не работают, я наверное что то не так сделал...( Вариант1.
local s1 = workspace.s1 local s2 = workspace.s2 local s3 = workspace.s3 local s4 = workspace.s4 local s5 = workspace.s5 local s6 = workspace.s6 local time1 = music1.TimeLength local time2 = music2.TimeLength local time3 = music3.TimeLength local time4 = music4.TimeLength local time5 = music5.TimeLength local time6 = music6.TimeLength wait(0.1) while wait() do music1:Play wait(time1) music2:Play() wait(time2) music3:Play() wait(time3) music4:Play wait(time4) music5:Play() wait(time5) music6:Play() wait(time6) end
Вариант1.
local s1 = workspace.s1
local s2 = workspace.s2
local s3 = workspace.s3
local s4 = workspace.s4
local s5 = workspace.s5
local s6 = workspace.s6
local time1 = music1.TimeLength
local time2 = music2.TimeLength
local time3 = music3.TimeLength
local time4 = music4.TimeLength
local time5 = music5.TimeLength
local time6 = music6.TimeLength
wait(0.1)
while wait() do
music1:Play
wait(time1)
music2:Play()
wait(time2)
music3:Play()
wait(time3)
music4:Play
wait(time4)
music5:Play()
wait(time5)
music6:Play()
wait(time6)
end
Вариант2.
game.Workspace.s1:Play()wait(126.38)
game.Workspace.s2:Play()wait(162.037)
game.Workspace.s3:Play()wait(193.306)
game.Workspace.s4:Play()wait(97.025)
game.Workspace.s5:Play()wait(246.957)
game.Workspace.s6:Play()wait(283.56)
game.Workspace.s7:Play()wait(126.171)
game.Workspace.s8:Play()wait(134.165)
game.Workspace.s9:Play()wait(165.303)
game.Workspace.s10:Play()wait(211.11)
end
Если что s1...s2... это саундтрек 1, 2 ,3...
Я новичок!