|
| 10 Dec 2015 07:09 PM |
As sound is playing, the output is printing TimeDetect and nothing else since ReadyBool is False. However, after ReadyBool is True. The script just stops working with no output, it doesn't even print TimeDetect.
Please help.
script.Parent.Sound.Changed:connect(function(TimePosition) wait(0.1) print("TimeDetect") if script.Parent.ReadyBool.Value == true then print("soundcheck") local a = script.Parent.TrackLength.Value if script.Parent.Sound.TimePosition <= a-2 then script.Parent.Sound:Stop() script.Parent.TrackNumber.Value = script.Parent.TrackNumber.Value+1 --Start loop over print("Song near finishing, changing track number by adding +1 to value.") else --Song isn't done end else end end) --script.Parent.Sound.TimePosition.Changed:connect(TimeDetect) |
|
|
| Report Abuse |
|