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 4 years ago

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

local label = script.Parent
local sound = script.Parent.Whoosh

if label.Position == "0.282, 0, 0.853, 0" then
    sound:Play()
end

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 — 4y
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 — 4y
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 — 4y
0
Thanks i'll try doing that. bolterazia -5 — 4y

Answer this question