of     2   
chevron_rightchevron_rightchevron_right

iiAviatorNine
#182841237Monday, February 01, 2016 7:53 PM GMT

For some reason I just can't go "sCurrent.TimeLength"... Anyone know the reason for this? :'( sCurrent = Instance.new("Sound") sCurrent.Name = "PlayingSong" sCurrent.Parent = game.Workspace.Baseplate sCurrent.SoundId = "http://www.roblox.com/asset/?id=357049989" sCurrent:Play() wait(sCurrent.TimeLength) And does anyone know a way that works? Without me making record of the length of every track e.e Ty for anyone that can help. ~CrayBray
marfit
#182841470Monday, February 01, 2016 7:59 PM GMT

Just keep the sound paused, stopped, and just type the length yourself. It is rbxassetid://357049989
iiAviatorNine
#182841510Monday, February 01, 2016 8:01 PM GMT

Eh e.e Ty. ~CrayBray
C_Sharper
#182841589Monday, February 01, 2016 8:03 PM GMT

Usually when you put an ID in a sound, the TimeLength property changes to the length of the sound ID you put in.
iiAviatorNine
#182841650Monday, February 01, 2016 8:05 PM GMT

That's what I thought e.e I view the Sound object in test mode and the data is in there... Doesn't seem to work though... Just skips right on to the next track e.e ~CrayBray
BinaryResolved
#182841898Monday, February 01, 2016 8:10 PM GMT

Or you could use a while do code block. Each sound has a Property called "IsPlaying", if it is playing then do whatever, if not the break. Here is a example. sCurrent = Instance.new("Sound") sCurrent.Name = "PlayingSong" sCurrent.Parent = game.Workspace.Baseplate sCurrent.SoundId = "http://www.roblox.com/asset/?id=357049989" sCurrent:Play() while wait(0.0001) do if sCurrent.IsPlaying == true then print("Sound still playing") else break end end If this helps, support by buying this shirt. It would be appreciated. http://www.roblox.com/my/Item.aspx?id=212878035
iiAviatorNine
#182841941Monday, February 01, 2016 8:11 PM GMT

Ty man :D That's ingenius. ~CrayBray
BinaryResolved
#182843617Monday, February 01, 2016 8:48 PM GMT

Your very welcome. I always like when I can help others.
powerhotmail123
#182843697Monday, February 01, 2016 8:50 PM GMT

@Binary Please don't do wait(0.0001), the minimum wait time, wait() on its own, is 1/30 a second. Enjoying your stay at the Scripters Forum? Join this! http://www.roblox.com/My/Groups.aspx?gid=2582784
BinaryResolved
#182843743Monday, February 01, 2016 8:51 PM GMT

@Power Oh, I did not know this. Thanks for the info. while true do the do
fishguy100
#182843752Monday, February 01, 2016 8:51 PM GMT

@powerhotmail123 That is of minimum importance. It is definitely not so important to make a post about. There is literally no difference.
SkelectroTM
#182843791Monday, February 01, 2016 8:52 PM GMT

it unnecessarily takes up memory in your game. y-y-you too
NovusTheory
#182843850Monday, February 01, 2016 8:53 PM GMT

@fishguy100 1/30 = 0.03~ (Repeating) and it's waiting 0.0001 No difference?
iiAviatorNine
#182843857Monday, February 01, 2016 8:53 PM GMT

However doe anyone know why TimeLength isn't readable? :s ~CrayBray
BinaryResolved
#182843910Monday, February 01, 2016 8:54 PM GMT

Yes it's readonly, not sure why it won't work though. while true do the do
fishguy100
#182843921Monday, February 01, 2016 8:55 PM GMT

"@fishguy100 1/30 = 0.03~ (Repeating) and it's waiting 0.0001 No difference? " It still defaults to 1/30th of a second when inputted anything under.
NovusTheory
#182843971Monday, February 01, 2016 8:55 PM GMT

@fishguy100 You actually know something :O (Yes I know it defaults to 1/30)
powerhotmail123
#182844031Monday, February 01, 2016 8:57 PM GMT

I've seen others experiencing the same problem with TimeLength. Try wait() before you wait the length of .TimeLength? Enjoying your stay at the Scripters Forum? Join this! http://www.roblox.com/My/Groups.aspx?gid=2582784
fishguy100
#182844044Monday, February 01, 2016 8:57 PM GMT

@NovusTheory I've learned a lot after my "noob days" So please, don't make fun of me
iiAviatorNine
#182844078Monday, February 01, 2016 8:58 PM GMT

What does "wait()" do. Does that wait 1/30th of a second too? Ty I shall try this. ~CrayBray
fishguy100
#182844141Monday, February 01, 2016 8:59 PM GMT

When you input nothing for wait, it also defaults to 1/30th of a second
iiAviatorNine
#182844166Monday, February 01, 2016 8:59 PM GMT

lel. Ty. ~CrayBray
powerhotmail123
#182844195Monday, February 01, 2016 9:00 PM GMT

wait() yields the script for the time passed onto its only parameter, defaulting to 1/30 if the time passed is smaller than 1/30 or nothing is provided. Enjoying your stay at the Scripters Forum? Join this! http://www.roblox.com/My/Groups.aspx?gid=2582784
BinaryResolved
#182844236Monday, February 01, 2016 9:00 PM GMT

Do we all have ROBLOX+? while true do the do
SkelectroTM
#182844275Monday, February 01, 2016 9:01 PM GMT

That or these people are no-lifing it refreshing MyForums over and over y-y-you too

    of     2   
chevron_rightchevron_rightchevron_right