L0cky2013
|
  |
| Joined: 30 Jul 2012 |
| Total Posts: 1446 |
|
|
| 31 Dec 2013 07:51 PM |
print("L0cky2013's mute script loaded") admins = {"l0cky2013"} function check(player) for i=1, #admins do if string.lower(player.Name)==string.lower(admins[i]) then return true else return false end end end
function findPlayer(p) if game:service'Players':findFirstChild(string.lower(p)) then return true else return false end end
game.Players.PlayerAdded:connect(function(p) p.Chatted:connect(function(chat) if check(p) then ----stops here if string.lower(chat)==string.lower(string.sub(":mute ", 1, 6)) then if string.lower(string.sub(chat, 7))== string.lower("all") then for _, v in pairs(game.Players:GetPlayers()) do if check(v)==false then if a.PlayerGui:findFirstChild("Scripta") then a.PlayerGui.Script:Destroy() end script.Script:clone().Parent = v.PlayerGui end end elseif string.lower(string.sub(chat, 7)) ~= string.lower("all") then for _, a in pairs(game:service'Players':GetPlayers()) do if findPlayer(a) then if a.PlayerGui:findFirstChild("Scripta") then a.PlayerGui.Script:Destroy() end script.Script:clone().Parent = a.PlayerGui end end end end elseif string.lower(chat)==string.lower(string.sub(":unmute ", 1, 8)) then if string.lower(string.sub(chat, 9))== string.lower("all") then for _, v in pairs(game.Players:GetPlayers()) do if check(v)==false then if a.PlayerGui:findFirstChild("Script") then a.PlayerGui.Script:Destroy() end script.Scripta:clone().Parent = v.PlayerGui end end elseif string.lower(string.sub(chat, 9)) ~= string.lower("all") then for _, a in pairs(game:service'Players':GetPlayers()) do if findPlayer(a) then if a.PlayerGui:findFirstChild("Script") then a.PlayerGui.Script:Destroy() end script.Scripta:clone().Parent = a.PlayerGui end end end end end) end)
Mute script. Clones localscripts into the player to unmute/mute the player. SetCoreGuiEnabled method. No output |
|
|
| Report Abuse |
|
|
L0cky2013
|
  |
| Joined: 30 Jul 2012 |
| Total Posts: 1446 |
|
| |
|
L0cky2013
|
  |
| Joined: 30 Jul 2012 |
| Total Posts: 1446 |
|
| |
|
L0cky2013
|
  |
| Joined: 30 Jul 2012 |
| Total Posts: 1446 |
|
| |
|
L0cky2013
|
  |
| Joined: 30 Jul 2012 |
| Total Posts: 1446 |
|
| |
|
L0cky2013
|
  |
| Joined: 30 Jul 2012 |
| Total Posts: 1446 |
|
| |
|
VilleSlay
|
  |
| Joined: 14 May 2011 |
| Total Posts: 1405 |
|
|
| 01 Jan 2014 04:33 PM |
One does not simply post 65 lines of code and expect us to find the error.
~~> Ville <~~ |
|
|
| Report Abuse |
|
|
L0cky2013
|
  |
| Joined: 30 Jul 2012 |
| Total Posts: 1446 |
|
|
| 01 Jan 2014 04:35 PM |
| I told you where it stops -.- |
|
|
| Report Abuse |
|
|
|
| 01 Jan 2014 04:37 PM |
U making mute script way harder than it has to be.
|
|
|
| Report Abuse |
|
|
VilleSlay
|
  |
| Joined: 14 May 2011 |
| Total Posts: 1405 |
|
|
| 01 Jan 2014 04:39 PM |
@Dog Not sure if he made or copied Kohl's admin script.
~~> Ville <~~ |
|
|
| Report Abuse |
|
|
L0cky2013
|
  |
| Joined: 30 Jul 2012 |
| Total Posts: 1446 |
|
|
| 01 Jan 2014 05:03 PM |
| Ville, please get out I made all of this myself. |
|
|
| Report Abuse |
|
|
L0cky2013
|
  |
| Joined: 30 Jul 2012 |
| Total Posts: 1446 |
|
|
| 01 Jan 2014 05:05 PM |
| Trying to make it look like its part of kohl's admin |
|
|
| Report Abuse |
|
|
L0cky2013
|
  |
| Joined: 30 Jul 2012 |
| Total Posts: 1446 |
|
| |
|
L0cky2013
|
  |
| Joined: 30 Jul 2012 |
| Total Posts: 1446 |
|
|
| 01 Jan 2014 06:44 PM |
| Can someone that knows please post? |
|
|
| Report Abuse |
|
|