If music is playing script?

Not sure how to word this but I’ll try my best.

Is there a certain way to write a script that uses an if statement for if a certain sound is playing? Thank you.

if sound.IsPlaying == true then
-- blah blah
end
1 Like
local sound = script.Parent

if sound.IsPlaying == true then
 print("The sound is playing.")
else
 print("It is not playing.")
end
1 Like