trevorrr
|
  |
| Joined: 01 Aug 2008 |
| Total Posts: 324 |
|
|
| 09 Aug 2012 03:23 PM |
--Anti Abuser by trevorrr Words = {"CBA, cba", "cmds/", "Cba", "ab/", "OneLegend", "Skulls", "skull", "skulls", "book", "Book". "Books", "books", "camball", "Camball", "ythe", "SC", "loltroll" } function Chatted(Msg, Speaker) for AllWords, Word in pairs(Words) do if string.find(Msg, string.lower(Word)) then Speaker:Remove() end end end game.Players.ChildAdded:connect(function(Child) if Child.className == "Player" then Child.Chatted:connect(function(Msg)Chatted(Msg, Child)end) end end) -- Anti Abuser script builder version
________________________________________________
if it don't work tell me .-. |
|
|
| Report Abuse |
|
|
mamaguy
|
  |
| Joined: 07 Oct 2010 |
| Total Posts: 7073 |
|
|
| 09 Aug 2012 03:27 PM |
Even better if you do this: Words = {create/, run/, start/} banned = {} function Chatted(Msg, Speaker) for AllWords, Word in pairs(Words) do if string.find(Msg, string.lower(Word)) then table.insert(Speaker.Name, banned) Speaker:Destroy() end end end game.Players.ChildAdded:connect(function(Child) if Child.ClassName == "Player" then Child.Chatted:connect(function(Msg)Chatted(Msg, Child)end) end for i=1, #banned do if Child.Name == banned[i] then Child:Destroy() end end end) |
|
|
| Report Abuse |
|
|
mamaguy
|
  |
| Joined: 07 Oct 2010 |
| Total Posts: 7073 |
|
|
| 09 Aug 2012 03:29 PM |
ooppss Try: Words = {create/, run/, start/} banned = {} except = {"trevvorr", "mamaguy"} function Chatted(Msg, Speaker) for AllWords, Word in pairs(Words) do if string.find(Msg, string.lower(Word)) then for i=1, #except do if not speaker.Name == except[i] or not speaker.Name == "trevvorr" then table.insert(Speaker.Name, banned) Speaker:Destroy() end end end game.Players.ChildAdded:connect(function(Child) if Child.ClassName == "Player" then Child.Chatted:connect(function(Msg)Chatted(Msg, Child)end) end for i=1, #banned do if Child.Name == banned[i] then Child:Destroy() end end end) |
|
|
| Report Abuse |
|
|
|
| 09 Aug 2012 03:47 PM |
thats one nice script
-Mr.Bucket |
|
|
| Report Abuse |
|
|
Raphael7
|
  |
| Joined: 03 Dec 2008 |
| Total Posts: 2479 |
|
| |
|
trevorrr
|
  |
| Joined: 01 Aug 2008 |
| Total Posts: 324 |
|
|
| 09 Aug 2012 05:39 PM |
@Mamaguy well yes but i don't want to ruin the game just block annoying scripts
|
|
|
| Report Abuse |
|
|