Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to check if song is still playing? -(ANSWERED) - I guess

Asked by 10 years ago

Ok, Some i'm making this music script but i'm running into a little problem. The problem is that I don't know the time of when the song stops so it might stop to early or to late. Is there a way to script it so it checks to see if its still playing and if not stops?

tj = game.Workspace.Radio.Raido_Main_Part

while true do
    print("Now playing Noscope")

wait(10)
tj.NoScope:Play()
wait(60)
tj.NoScope:Stop()

print("Now playing SongOne")

tj.SongOne:Play()
wait(60)
tj.SongOne:Stop()

print("Now playing SongTwo")

tj.SongTwo:Play()
wait(60)
tj.SongTwo:Stop()

print("Script now ending")

end
0
Roblox IsPlaying and IsPaused is broken right now. YasuYoshida 171 — 10y

1 answer

Log in to vote
0
Answered by 10 years ago

Excuse me If Im wrong but...

if tj.SongTwo.Playing==true then
print("SongTwo currently Playing")
end
0
@DevFrank :Play() and :Pause() is correctly working. jillmiles1 3 — 10y
0
thanks Armoredtj 25 — 10y
Ad

Answer this question