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

How can I make this accurate as possible?

Asked by 10 years ago

Ok,so I want to make a Playlist with songs in it and inside that playlist there is going to be a progress bar that starts to fill up all the way until the end(almost like the youtube progress bar).I tried it but it wasn't so accurate.

bar = script.Parent
sound = Instance.new("Sound",bar)
sound.SoundId="rbxassetid://154587535"
sound:Play()
for i = 0,10,1 do
    wait(8.7)
    bar:TweenSize(UDim2.new(i/10,0,0,80),"In","Linear",1,true)--Makes the size to 0.1 to 1
end

1 answer

Log in to vote
0
Answered by
Marolex 45
10 years ago

Unfortunately there is no way to read the current time in a active audio that i know of, sorry. :(

Ad

Answer this question