Sound with Wait() doesnt work

It doesn’t print anything or play the track

wait(20)

game.SoundService.Sound1.Playing = true
game.SoundService.Sound1.Playing = true

Slight spelling error.

Also task.wait(x) is better to use than wait(x)

If you’re trying to play the sound you need to do this instead.

game.SoundService.Sound1:Play()
task.wait(20)

game.SoundService.Sound1.Playing = true

Check out the Task Library for more. Also, there was a spelling mistake in Playing.

1 Like

It’s don’t work :frowning: The sound is still not playing.

You don’t set playing to true, pretty sure you use :Play()

game.SoundService.Sound1:Play()

@Forummer mentioned this above.

I should have done put it at the LocalScript :face_with_hand_over_mouth:

It’s still the incorrect way to play a track.

1 Like

I = Sound.NomNomNom:Clone()
I.Parent = Hex.Town.CIncome --Globe --container
I.PlayOnRemove = true
I:Destroy()

This works for me.