Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

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

Asked by 4 years ago
Edited 4 years ago

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

Log in to vote
0
Answered by 4 years ago

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()
0
Thank you ConorG234 39 — 4y
Ad

Answer this question