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 » Game Creation and Development » Scripting Helpers
Home Search
 

Re: A button that stops a script called "Music"

Previous Thread :: Next Thread 
Unalaq is not online. Unalaq
Joined: 30 Jun 2013
Total Posts: 196
07 Jun 2014 10:24 PM
I just need to put a script into a button that stops the current music script from playing music. If someone out there could help me, I would owe everything to you.
Report Abuse
WillOfFire99 is not online. WillOfFire99
Joined: 13 Jul 2011
Total Posts: 523
07 Jun 2014 10:26 PM
For Kohl's? There's already a command, if so. :stopmusic Try using Khol's admin commands, instead. Just look up how to add music into the script.
Report Abuse
Unalaq is not online. Unalaq
Joined: 30 Jun 2013
Total Posts: 196
07 Jun 2014 10:30 PM
no not like that, I have background music already running, and I want to remove that in a certain part of the game when you touch this sound brick at the very end.
Report Abuse
DeSpizer27 is not online. DeSpizer27
Joined: 13 Jul 2012
Total Posts: 2679
07 Jun 2014 10:36 PM
Well, unless you wanted to stop music for everyone, I would suggest making the music local. E.G: Putting the sounds inside StarterPack, or StarterGui.
A example of making a brick to stop the music, if it was local, through a clickdetector, if the sounds were inside the startergui would be:
Place a ClickDetector inside the brick.
Put this script into the brick:

script.Parent.ClickDetector.MouseClick:connect(function(plr)
pcall(function()
plr.PlayerGui.Music:Stop() --change music to the sound name
end)
end
Report Abuse
Unalaq is not online. Unalaq
Joined: 30 Jun 2013
Total Posts: 196
07 Jun 2014 11:30 PM
it is a single player game, 1 plyr servers
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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