|
| 30 Dec 2015 10:28 AM |
I made a function to instance a new audio and play it then wait for 10 seconds then stop and remove it.
Before it is removed, PlayOnRemove is false and I stop the song. The song is removed, but continues to play.
It works well in studio but in game it does not.
What is the issue? This is the function:
function Men() local Men = Instance.new("Sound",game.Workspace) Men.SoundId = "http://www.roblox.com/asset/?id=143898075" Men.Volume = 1 Men.Looped = false wait(1) Men:Play() wait(10) Men:Stop() Men:Remove() end |
|
|
| Report Abuse |
|
Realixty
|
  |
| Joined: 31 Aug 2014 |
| Total Posts: 1381 |
|
|
| 30 Dec 2015 11:40 AM |
There should be no problem. ------------- Men:Stop() Men:Remove() ------------- Indicates that the sound has stopped and that it has been removed.
|
|
|
| Report Abuse |
|
| |