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

Radio script wont play audio, How can I fix this?

Asked by 2 years ago

I made a script that will play radio chatter every 60 seconds, doesn't seem to be working.

Any ideas?

local Audio = script.Parent["Vietnam War Radio Chatter - Briefing"]
if  Audio.IsPlaying == false and Audio.IsPaused == true then
    Audio.IsPlaying = true
    Audio.IsPaused = false
    print("playing audio")
    wait(60)
    Audio.IsPlaying = false
    Audio.IsPaused = true
end

1 answer

Log in to vote
0
Answered by 2 years ago

You need to use an audio id for this instead of the name of the audio

0
Thanks! I also forgot to make everything loop, but you set me in the right direction! larssnakes 24 — 2y
0
No problem :) theking66hayday 841 — 2y
Ad

Answer this question