naintor09
|
  |
| Joined: 07 Sep 2011 |
| Total Posts: 59 |
|
|
| 14 Sep 2017 05:36 PM |
I need help to make a message lowercase.
game.Players.PlayerAdded:connect(function(plr) plr.Chatted:connect(function(msg) if msg == "hello y'all" then end end end
Let's say that's the script, and "msg" = "Hello Y'all", how would I make "msg" lowercase?
B |
|
|
| Report Abuse |
|
|
LaeMVP
|
  |
| Joined: 24 Jun 2013 |
| Total Posts: 4416 |
|
|
| 14 Sep 2017 05:37 PM |
| if msg:lower() == "hello y'all" then |
|
|
| Report Abuse |
|
|
mattscy
|
  |
| Joined: 06 May 2011 |
| Total Posts: 1079 |
|
|
| 14 Sep 2017 05:38 PM |
| http://wiki.roblox.com/index.php?title=Global_namespace/String_manipulation&redirect=no#string.lower |
|
|
| Report Abuse |
|
|
naintor09
|
  |
| Joined: 07 Sep 2011 |
| Total Posts: 59 |
|
|
| 14 Sep 2017 05:42 PM |
Thanks a lot, I feel stupid by not finding that out by myself. I was thinking to much about "print(string.lower(CAPS))" too much that I forgot ":lower()" was a function.
My excuse.
B |
|
|
| Report Abuse |
|
|
naintor09
|
  |
| Joined: 07 Sep 2011 |
| Total Posts: 59 |
|
|
| 14 Sep 2017 05:44 PM |
Not good at English I guess. I wish there was an edit button.
B |
|
|
| Report Abuse |
|
|