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

would this sound script work?

local sound = game.Workspace.Sound1
local soundt = game.Workpsace.Sound2
wait(1)
while true do
script.Parent.sound:Play()
sound.Looped = true

wait(121)
script.Parent.sound:Stop()
script.Parent.soundt:Play()
soundt.Looped = true

wait(241)
script.Parent.soundt:Stop()

end

4 comments

0

Don't ask us, test it. If it doesn't work tell the error from output.

0

^ But it looks like it should work

0

^

0

I agree that it should be tested, but it doesn't look like it would work...script.Parent.game.Workspace.Sound1...?

1 answer

This would work as long as there is an object called sound, and an object called soundt inside the script's parent.

The 2 variables set at the start are useless, as you never end up using them in the code.

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