reddanger
|
  |
| Joined: 27 May 2009 |
| Total Posts: 38075 |
|
|
| 09 Jun 2015 07:44 PM |
I have a mute/unmute Gui and I changed the ID just to see what would happen and nothing changed.
Literally nothing until I reset.
Is there a reason for why this is happening?
Because I'm about to make a part that changes the music once you touch it and if it isn't working just by me changing the ID then I need to know what will change it. ;-;
;) |
|
|
| Report Abuse |
|
|
|
| 09 Jun 2015 07:46 PM |
| dont change stuff in startergui, change it inside playergui. if you change stuff in startergui, it needs to be cloned back into your playergui when you die. |
|
|
| Report Abuse |
|
|
reddanger
|
  |
| Joined: 27 May 2009 |
| Total Posts: 38075 |
|
|
| 09 Jun 2015 07:48 PM |
"dont change stuff in startergui, change it inside playergui. if you change stuff in startergui, it needs to be cloned back into your playergui when you die."
I actually changed the ID within my own playergui and nothing changed.
;) |
|
|
| Report Abuse |
|
|
|
| 09 Jun 2015 07:49 PM |
| stop it and play it again? i assume u have a volume mute. |
|
|
| Report Abuse |
|
|
reddanger
|
  |
| Joined: 27 May 2009 |
| Total Posts: 38075 |
|
|
| 09 Jun 2015 07:51 PM |
"stop it and play it again? i assume u have a volume mute."
I'll try that.
;) |
|
|
| Report Abuse |
|
|
hyyt8
|
  |
| Joined: 02 May 2007 |
| Total Posts: 1760 |
|
|
| 09 Jun 2015 07:51 PM |
| Try using a localscript. That usually solves all my sound problems. |
|
|
| Report Abuse |
|
|
reddanger
|
  |
| Joined: 27 May 2009 |
| Total Posts: 38075 |
|
| |
|
|
| 09 Jun 2015 08:05 PM |
I just finished up my place with audio, try putting it in workspace instead of a starterGUI or PlayerGUI because then it depends on the actions of your player.
I also finished custom particles just now if you would like to see! http://www.roblox.com/games/257379655/Custom-Particle-testing |
|
|
| Report Abuse |
|
|
|
| 09 Jun 2015 08:07 PM |
| Put it in workspace and startergui |
|
|
| Report Abuse |
|
|
reddanger
|
  |
| Joined: 27 May 2009 |
| Total Posts: 38075 |
|
|
| 09 Jun 2015 08:08 PM |
"Put it in workspace and startergui"
You mean put the music in workspace and the gui in startergui?
;) |
|
|
| Report Abuse |
|
|
|
| 09 Jun 2015 08:10 PM |
| Try all combinations of each recomendation |
|
|
| Report Abuse |
|
|
reddanger
|
  |
| Joined: 27 May 2009 |
| Total Posts: 38075 |
|
|
| 09 Jun 2015 08:12 PM |
I did and nothing seems to be working.
;) |
|
|
| Report Abuse |
|
|
reddanger
|
  |
| Joined: 27 May 2009 |
| Total Posts: 38075 |
|
| |
|
hyyt8
|
  |
| Joined: 02 May 2007 |
| Total Posts: 1760 |
|
|
| 09 Jun 2015 08:29 PM |
I just made a mute button that works fine. It's a localscript inside of an imagebutton. Changing the soundid should work as well.
function onButtonClicked() if script.Parent.ImageTransparency == 0 then script.Parent.ImageTransparency = .7 for i,v in pairs(game.Players.LocalPlayer.PlayerGui:GetChildren()) do if v:IsA("Sound") then v.Volume = 0 end end else script.Parent.ImageTransparency = 0 for i,v in pairs(game.Players.LocalPlayer.PlayerGui:GetChildren()) do if v:IsA("Sound") then v.Volume = 0.5 end end end end script.Parent.MouseButton1Click:connect(onButtonClicked) |
|
|
| Report Abuse |
|
|
reddanger
|
  |
| Joined: 27 May 2009 |
| Total Posts: 38075 |
|
|
| 09 Jun 2015 08:46 PM |
Your script doesn't seem to be working for me.
;) |
|
|
| Report Abuse |
|
|
hyyt8
|
  |
| Joined: 02 May 2007 |
| Total Posts: 1760 |
|
|
| 09 Jun 2015 08:51 PM |
Go through this checklist for me
Are sounds in the PlayerGui (outside of any models or folders or frames or guis, etc)? Is this script inside of a localscript? Is this localscript inside of an imagebutton? Is the imagebutton in the playergui? Is the sound looped?
|
|
|
| Report Abuse |
|
|
reddanger
|
  |
| Joined: 27 May 2009 |
| Total Posts: 38075 |
|
|
| 09 Jun 2015 08:52 PM |
Really the only thing I need is some help on making a script where only once a player touches it their own music changes.
But I don't know how to get that to work.
;) |
|
|
| Report Abuse |
|
|
reddanger
|
  |
| Joined: 27 May 2009 |
| Total Posts: 38075 |
|
|
| 09 Jun 2015 08:53 PM |
"Go through this checklist for me
Are sounds in the PlayerGui (outside of any models or folders or frames or guis, etc)? Is this script inside of a localscript? Is this localscript inside of an imagebutton? Is the imagebutton in the playergui? Is the sound looped?"
The audio is in the PlayerGui and nowhere else.
The script is a localscript alone and is not isnide anything.
The localscript is not inside an imagebutton.
There isn't an imagebutton.
Yes the sound is looped.
;) |
|
|
| Report Abuse |
|
|
reddanger
|
  |
| Joined: 27 May 2009 |
| Total Posts: 38075 |
|
|
| 09 Jun 2015 09:02 PM |
Wait I think it might be the imagebutton that didn't work cause there isn't one.
;) |
|
|
| Report Abuse |
|
|
reddanger
|
  |
| Joined: 27 May 2009 |
| Total Posts: 38075 |
|
|
| 09 Jun 2015 10:16 PM |
OKAY IT WORKED.
But the script where if a player steps on it the music changes, let's see if THAT works.
;) |
|
|
| Report Abuse |
|
|
hyyt8
|
  |
| Joined: 02 May 2007 |
| Total Posts: 1760 |
|
|
| 09 Jun 2015 10:20 PM |
It won't. You need a localscript. You can't use localscripts inside of bricks. You could activate the localscript in your gui from the brick, though. For example, have an intvalue inside of the localscript and disable the script. When you step on the brick, make it change the localscript's intvalue and then enable the localscript. The localscript should look something like.
music = script.IntValue.Value game.Players.LocalPlayer.PlayerGui.Sound:Stop() game.Players.LocalPlayer.PlayerGui.Sound.SoundId = "rbxassetid://"..music game.Players.LocalPlayer.PlayerGui.Sound:Play() script.Disabled = true |
|
|
| Report Abuse |
|
|
reddanger
|
  |
| Joined: 27 May 2009 |
| Total Posts: 38075 |
|
|
| 09 Jun 2015 10:55 PM |
Wait so you're saying it's impossible to make a brick that can change the music on a single touch?
;) |
|
|
| Report Abuse |
|
|
reddanger
|
  |
| Joined: 27 May 2009 |
| Total Posts: 38075 |
|
|
| 09 Jun 2015 11:14 PM |
I found an intro Gui that plays music on intro and then changes it once you're actually playing.
Maybe I can use this?
;) |
|
|
| Report Abuse |
|
|
hyyt8
|
  |
| Joined: 02 May 2007 |
| Total Posts: 1760 |
|
|
| 09 Jun 2015 11:20 PM |
Yeah it has to be run through a localscript in the playergui. If you want the music to change when you're in a certain area, put a brick down in the workspace and copy its position and then in the LocalScript say
if ((position)-game.Players.LocalPlayer.Character.Torso.Position).magnitude <=10 then --changesound |
|
|
| Report Abuse |
|
|
reddanger
|
  |
| Joined: 27 May 2009 |
| Total Posts: 38075 |
|
|
| 09 Jun 2015 11:30 PM |
music = script.IntValue.Value game.Players.LocalPlayer.PlayerGui.Sound:Stop() game.Players.LocalPlayer.PlayerGui.Sound.SoundId = "rbxassetid://"..music game.Players.LocalPlayer.PlayerGui.Sound:Play() script.Disabled = true if ((position)-game.Players.LocalPlayer.Character.Torso.Position).magnitude <=10 then --changesound
You said put the last line you posted inside the localscript, right?
;) |
|
|
| Report Abuse |
|
|