Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I make a sound play after a few seconds in a game in a script?

I am trying to make a sound play after six seconds but it isn't playing when I try it Here is the script:

 wait(6)
 local sound = Instance.new("Sound", game.Workspace)
sound.SoundId = "rbxassetid://2991071517"

I am trying to make this sound play for everyone at the same time not for an individual person

1 answer

✓ Accepted answer

Hello. All you forgot to do is to play the sound by using sound:Play().

wait(6)

local sound = Instance.new("Sound")
sound.SoundId = "rbxassetid://2991071517"
sound.Parent = workspace

sound:Play()

1 comment

0

Thank you

This discussion is preserved as it was. New answers, comments, and votes are closed.