of     1   

jeremylittlemars
#182609821Friday, January 29, 2016 12:13 PM GMT

I'm trying to have a music toggle it works the problem is when the character resets whether or not the toggle was on or off the music plays and you would have to go back into the settings menu and click the toggle.... Here's the script if you could tell me what i did wrong i would love it also if you could simplify it so that there's less lines of code that would be a big help no need to though... script.Parent.Music:Play() V = 0 L = 0 script.Parent.MouseButton1Down:connect (function() game.Players.LocalPlayer.PlayerGui.Click:Play() if V == 0 then script.Parent.ImageTransparency = V script.Parent.Music.Volume = L V = 1 L = 1 else script.Parent.ImageTransparency = V script.Parent.Music.Volume = L game.Players.LocalPlayer.PlayerGui.Click:Play() V = 0 L = 0 end end) -God Of Technology
jeremylittlemars
#182610981Friday, January 29, 2016 1:06 PM GMT

Bump -God Of Technology
jeremylittlemars
#182611649Friday, January 29, 2016 1:36 PM GMT

Bump :(
jeremylittlemars
#182611841Friday, January 29, 2016 1:44 PM GMT

Damn...no help ;-;
cody123454321
#182611924Friday, January 29, 2016 1:47 PM GMT

Check out my music library. You can adapt this logic in mine.
Smeers
#182613099Friday, January 29, 2016 2:34 PM GMT

You could go the easy way out and simply toggle ResetPlayerGuiOnSpawn to False (under StarterGui's properties) or you can make a script to save the setting and transfer it over to the next life. Otherwise, you could even just make the sound in the player's Camera, thus preventing it from resetting/restarting when they reset.
jeremylittlemars
#182688107Saturday, January 30, 2016 7:04 PM GMT

Do you mean putting the music object into the camera in workspace then playing it like game.Workspace.CurrentCamera.Music:Play() V = 0 script.Parent.MouseButton1Down:connect (function() game.Players.LocalPlayer.PlayerGui.Click:Play() if V == 0 then script.Parent.ImageTransparency = V game.Workspace.CurrentCamera.Music:Stop() V = 1 else script.Parent.ImageTransparency = V game.Players.LocalPlayer.PlayerGui.Click:Play() game.Workspace.CurrentCamera.Music:Play() V = 0 end end) If i do it like this the music still plays again when they reset... i don't under stand what you mean by the other ways of doing it.
jeremylittlemars
#182703354Saturday, January 30, 2016 10:42 PM GMT

???
jeremylittlemars
#182718149Sunday, January 31, 2016 2:09 AM GMT

Bump
jeremylittlemars
#182749247Sunday, January 31, 2016 12:50 PM GMT

-_- bump
jeremylittlemars
#182859637Tuesday, February 02, 2016 1:16 AM GMT

This is the hardest it's ever been to get help -_- -God Of Technology
jeremylittlemars
#182863672Tuesday, February 02, 2016 2:16 AM GMT

BUMP BUMP BUMP -God Of Technology
jeremylittlemars
#182864392Tuesday, February 02, 2016 2:25 AM GMT

I figured out a way using a Bool value but the problem is it won't change the value my script is if script.Parent.Parent.Settings.Value.Value == true then game.Workspace.CurrentCamera.Music:Play() end V = 0 script.Parent.MouseButton1Down:connect (function() game.Players.LocalPlayer.PlayerGui.Click:Play() if V == 0 then script.Parent.ImageTransparency = V game.Workspace.CurrentCamera.Music:Stop() V = 1 else script.Parent.ImageTransparency = V game.Players.LocalPlayer.PlayerGui.Click:Play() game.Workspace.CurrentCamera.Music:Resume() V = 0 end end) -God Of Technology
jeremylittlemars
#182864561Tuesday, February 02, 2016 2:28 AM GMT

oops wrong script if script.Parent.Parent.Settings.Value.Value == true then game.Workspace.CurrentCamera.Music:Play() end V = 0 script.Parent.MouseButton1Down:connect (function() game.Players.LocalPlayer.PlayerGui.Click:Play() if V == 0 then script.Parent.ImageTransparency = V game.Workspace.CurrentCamera.Music:Stop() V = 1 else script.Parent.ImageTransparency = V game.Players.LocalPlayer.PlayerGui.Click:Play() game.Workspace.CurrentCamera.Music:Resume() script.Parent.Parent.Settings.Value.Value = false V = 0 end end) -God Of Technology

    of     1