nise45
|
  |
| Joined: 17 Nov 2008 |
| Total Posts: 7002 |
|
|
| 18 Dec 2011 05:10 AM |
player = script.Parent.Parent.Parent.Parent
if game.Workspace:findFirstChild("Mute_" ..player.Name) == nil then a = Instance.new("BoolValue") a.Name = ("Mute_" ..player.Name) a.Parent = game.Workspace print("Inserted mute toggle!") else a = game.Workspace:findFirstChild("Mute_" ..player.Name) print("Mute found!") end
while wait(1) do if a.Value == false then script.Parent.Parent:findFirstChild("AdventureMusic"):Stop() print("Stopping Music") elseif a.Value == true and script.Parent.Parent:findFirstChild("AdventureMusic").IsPlaying == false then script.Parent.Parent:findFirstChild("AdventureMusic"):Play() print("Playing Music") end end
script.Parent.MouseButton1Click:connect(function(testificate) print("Press") if a.Value == false then a.Value = false script.Parent.Texure = "http://www.roblox.com/asset/?id=67879019" print("Sound off!") else a.Value = true script.Parent.Texure = "http://www.roblox.com/asset/?id=67879028" print("Sound on!") end end)
It's the last one. It refuses to. It is inside a ImageButton. |
|
|
| Report Abuse |
|
|
nise45
|
  |
| Joined: 17 Nov 2008 |
| Total Posts: 7002 |
|
| |
|
Apocalyps
|
  |
| Joined: 15 Feb 2009 |
| Total Posts: 816 |
|
|
| 18 Dec 2011 06:30 AM |
script.Parent.MouseButton1Click:connect(function(testificate) print("Press") if a.Value == false then a.Value = true script.Parent.Texure = "http://www.roblox.com/asset/?id=67879019" print("Sound off!") else a.Value = false script.Parent.Texure = "http://www.roblox.com/asset/?id=67879028" print("Sound on!") end end)
|
|
|
| Report Abuse |
|
|