Discord
Login
Community
DARK THEME

my sounds arent working properly

how do you play a sound I tried to look at the documentation but it says something like "myMusic does not have a function play()"

It's getting difficult without a code example so we can actually help you.

Edit: If you use audio.playMusic( "mymusic" ), you will get a .play function, but that will only apply for music.

Sounds will directly play as soon as you make the assignment.

you should use audio.playSound(sound_name)

sound name should be in ""

Edit: You can use a separate function to control when the sound plays

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community