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

How do you make sound play with a tween?

Asked by 5 years ago

Is there any way to make an audio/sound play while a tween is happening? I tried this:

1local label = script.Parent
2local sound = script.Parent.Whoosh
3 
4if label.Position == "0.282, 0, 0.853, 0" then
5    sound:Play()
6end

But that only works when the tween ends/is in its final position, not while the tween is happening.

0
You could use a coroutine. AntiWorldliness 868 — 5y
0
post the tween script too, coz this script litteraly makes the sound play if and only if the final position was reached aprilsfooled 29 — 5y
0
if you play the sound before the tween it should work? the script doesn't wait for the sound to end to then do the tween, so it should be fine. Primrose_Studio 53 — 5y
0
Thanks i'll try doing that. bolterazia -5 — 5y

Answer this question