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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| Joined: 30 Jun 2013 |
| Total Posts: 196 |
|
|
| 07 Jun 2014 11:30 PM |
| it is a single player game, 1 plyr servers |
|
|
| Report Abuse |
|
|