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 » Scripters
Home Search
 

Re: Sound not stopping when I stop it?

Previous Thread :: Next Thread 
CWRA0444 is online. 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
Blinfield33 is not online. Blinfield33
Joined: 11 Nov 2010
Total Posts: 14
04 Oct 2017 03:14 PM
Post the Script bud? then maybe we can see whats wrong?



Report Abuse
CWRA0444 is online. 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 is online. 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 is not online. Hazania
Joined: 04 Jun 2010
Total Posts: 1344
04 Oct 2017 04:03 PM
is blabla.Music:Play() in another script?
Report Abuse
Spectrum555 is not online. Spectrum555
Joined: 20 Jul 2010
Total Posts: 171
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
Spectrum555 is not online. Spectrum555
Joined: 20 Jul 2010
Total Posts: 171
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 is not online. 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 is online. 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 is not online. Hazania
Joined: 04 Jun 2010
Total Posts: 1344
05 Oct 2017 07:43 AM
No problem!!
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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