I wanted to make a script that would do something right after an audio has finished playing but I couldn't get anything to work.
I know you could do something like
game.Workspace.AudioName:Play() wait(--[[number here]]--) -- Other code that would happen after audio finishes playing
But I don't want to use wait()
because it would get annoying.
You can use the IsPlaying
Property.
repeat wait(0) until not Sound.IsPlaying print("Done Playing!!!!")
If you open up a Sound and click the Properties, you will find a Time length
copy the length and place it in your wait()
Something like this:
game.Workspace.AUDIO:play() wait(90) -- Put your Length here print("Wheres my Pink Slip?")
(Sorry for adding a wait, Its kind of impossible to not add a wait()
)