generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Roblox » Help (Technical Support and Account Issues)
Home Search
 

Re: Audio won't stop playing in script.

Previous Thread :: Next Thread 
SparkIeFarts is not online. SparkIeFarts
Joined: 27 Sep 2008
Total Posts: 16166
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 is not online. 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
SparkIeFarts is not online. SparkIeFarts
Joined: 27 Sep 2008
Total Posts: 16166
30 Dec 2015 01:48 PM
Yet the problem persists.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Roblox » Help (Technical Support and Account Issues)
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image