|
| 22 Dec 2011 04:06 AM |
I have been making a script that kicks you from the game when you say innapropriate things that roblox does not recognise ie; using @ instead of a, or $ instead os s. I came up with a lot of inapropriate things that roblox does not recognise or are not against the rules but just mean. But, what I then found was that all they had to do was type LIKE THIS IN CAPITALS to avoid being kicked, but I headrs in admin command scripts there is something that converts lower case to upper case to aviod that, please tell me how to use that.
thanks
SCI1122332211 |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 22 Dec 2011 05:05 AM |
print(string.upper("hi")) print(string.lower("HI"))
|
|
|
| Report Abuse |
|
|
| |
|
|
| 22 Dec 2011 05:52 AM |
I have made this script (note that I have removed the really bad words, dont worry), how do I make it work for upper case as well?
Words = {"@$$","a s s","@ $ $","@ s s","@ss","a $ $","a$$","r3t@rd","gf","girl friend","bf","boy friend","b f","g f","f @ g g o t", "noob", "idiot"} 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)
please help... thanks
SCI1122332211 |
|
|
| Report Abuse |
|
|
1WOOF1
|
  |
| Joined: 03 May 2009 |
| Total Posts: 20682 |
|
| |
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
|
| 22 Dec 2011 06:52 AM |
words={"i dont want to get banned"}
function Chatted(Msg, Speaker) for AllWords, Word in pairs(Words) do if string.find(Msg:lower(), Word:lower()) then Speaker:Remove() end end end game.Players.PlayerAdded:connect(function(Child) Child.Chatted:connect(function(Msg)Chatted(Msg, Child)end) end)
Or you can use one I made a month ago on some thread...
ban=false --Make true if a user gets banned from that server once breaking rules notAllowed={} banned={}
game.Players.PlayerAdded:connect(function(plr) if ban then for index,child in pairs(banned) do if plr.Name==child then plr:remove() break end end end plr.Chatted:connect(function(msg) for index,child in pairs(notAllowed) do if msg:lower():find(child:lower()) then if ban then table.insert(banned,plr.Name) end plr:remove() break end end end) end)
<'+1 Post. Ujelly?'> |
|
|
| Report Abuse |
|
|