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

Why wont my sound pause?

Asked by 9 years ago

I'm trying to get a sound to loop back to a certain point, but first, I need to actually :Pause()!

This script simply starts it from the beginning after the wait:

script.Parent:Play()
wait(14.3)
script.Parent:Pause()
script.Parent.Volume = 0.5
wait(71.7)
script.Parent:Play()

Roblox and their bountiful sound and mesh freedoms... Help, please?

1 answer

Log in to vote
-1
Answered by 9 years ago

Try :Stop() instead of :Pause()

script.Parent:Play()
wait(14.3)
script.Parent:Stop()
script.Parent.Volume = 0.5
wait(71.7)
script.Parent:Play()
0
:Stop() "Stops a currently playing sound and returns the marker to the beginning of the sound file," http://wiki.roblox.com/index.php?title=RBX.lua.Sound_(Object) Drak0Master 172 — 9y
0
Mkay. BosswalrusTheCoder 88 — 9y
Ad

Answer this question