CWRA0444
|
  |
| Joined: 14 Jan 2010 |
| Total Posts: 6013 |
|
|
| 04 Oct 2017 03:12 PM |
Local script in a ScreenGui is trying to stop a sound inside the same Gui and filteringEnabled is on. Advice?
|
|
|
| Report Abuse |
|
|
|
| 04 Oct 2017 03:14 PM |
Post the Script bud? then maybe we can see whats wrong?
|
|
|
| Report Abuse |
|
|
CWRA0444
|
  |
| Joined: 14 Jan 2010 |
| Total Posts: 6013 |
|
|
| 04 Oct 2017 03:16 PM |
I'm sure that's not what the problem is; but here you go (code to stop sound is 3rd ###m##################script.Parent.Play.MouseButton1Click:connect(function() if canClick == true then canClick = false local player = game.Players.LocalPlayer spawn(function() wait(.5) player.PlayerGui.MainGui.Darkness.Close:play() local objects = workspace.SpawnRoom_DUMMY.Door:GetChildren() for i = 1, 40 do wait(1.2/40) for o = 1, #objects do objects[o].CFrame = objects[o].CFrame + Vector3.new(0, -.2, 0) end end end) for i = 1, 100 do wait() player.PlayerGui.MainGui.Darkness.Transparency = player.PlayerGui.MainGui.Darkness.Transparency - 0.01 end workspace.CurrentCamera.CameraType = "Custom" workspace.CurrentCamera.CameraSubject = player.Character.Humanoid player.Character.Torso.CFrame = workspace.SPAWN_001.CFrame player.Character.Torso.CFrame = player.Character.Torso.CFrame*CFrame.Angles(0, math.rad(180), 0) script.Parent.Play.Visible = false wait(1) for i = 1, 100 do wait() player.PlayerGui.MainGui.Music.Volume = player.PlayerGui.MainGui.Music.Volume - 0.01 player.PlayerGui.MainGui.Darkness.Transparency = player.PlayerGui.MainGui.Darkness.Transparency + 0.01 end player.PlayerGui.MainGui.Music:stop() end end)
|
|
|
| Report Abuse |
|
|
CWRA0444
|
  |
| Joined: 14 Jan 2010 |
| Total Posts: 6013 |
|
|
| 04 Oct 2017 03:20 PM |
The sound keeps playing even when it says it's volume is 0. I have tried test mode, mock server mode, and play mode. It's all the same.
|
|
|
| Report Abuse |
|
|
Hazania
|
  |
| Joined: 04 Jun 2010 |
| Total Posts: 1344 |
|
|
| 04 Oct 2017 04:03 PM |
| is blabla.Music:Play() in another script? |
|
|
| Report Abuse |
|
|
|
| 04 Oct 2017 04:04 PM |
| the sound is only getting stopped client side. maybe use remote events to fire a server script to mute the sound. |
|
|
| Report Abuse |
|
|
|
| 04 Oct 2017 04:06 PM |
| im not sure if im correct but you can try this. tell me if it works thx. lol |
|
|
| Report Abuse |
|
|
Hazania
|
  |
| Joined: 04 Jun 2010 |
| Total Posts: 1344 |
|
|
| 04 Oct 2017 04:13 PM |
| He is right. If your main song isn't client side, then trying to stop it on a client will not work since FE is enabled. |
|
|
| Report Abuse |
|
|
CWRA0444
|
  |
| Joined: 14 Jan 2010 |
| Total Posts: 6013 |
|
|
| 04 Oct 2017 09:47 PM |
Hazania was right the first time, sort of. The sound was already playing by default, and I guess localScript and FE jazz made it not stop by script. When I made the script manual start, and stop, the sound, it worked. Thanks for the help guys.
|
|
|
| Report Abuse |
|
|
Hazania
|
  |
| Joined: 04 Jun 2010 |
| Total Posts: 1344 |
|
| |
|