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.

4 comments

0

You could use a coroutine.

0

post the tween script too, coz this script litteraly makes the sound play if and only if the final position was reached

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.

0

Thanks i'll try doing that.