How to get position in a sound

image

How would I get the position of the red mark on the sound line in the picture above?

1 Like

Sound.TimePosition

1 Like

It prints ‘0’

image

Even though the marker is way above 0
image

1 Like

It only works if you play it with :Play(). The preview button in the studio does nothing.

Try this:

game:GetService("Selection"):Get()[1]:Play()

Select the sound in the explorer and type it into the command bar.

1 Like

So is there no way to specifically get a timeposition of a sound in studio?

Yes you can but not when you use the preview.

As I said before, it only works when playing it with :Play. The preview won’t affect it at all.

1 Like

There could potentially be a sound object inside the toolbox plugin gui which is playing this sound as you ask it to. It might also be the same sound which handles audio playback inside the toolbox ui. If you can find that, you could use it. Otherwise, you can’t get the time position through that preview section.