generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

converting lower case to upper case

Previous Thread :: Next Thread 
SCI1122332211 is not online. SCI1122332211
Joined: 25 Aug 2011
Total Posts: 43
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 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
22 Dec 2011 05:05 AM
print(string.upper("hi"))
print(string.lower("HI"))
Report Abuse
SCI1122332211 is not online. SCI1122332211
Joined: 25 Aug 2011
Total Posts: 43
22 Dec 2011 05:25 AM
thanks
Report Abuse
SCI1122332211 is not online. SCI1122332211
Joined: 25 Aug 2011
Total Posts: 43
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 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
22 Dec 2011 06:36 AM
[ Content Deleted ]
Report Abuse
nate890 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image