Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

What does the code key:lower mean and what does it do?

May I please ask of you an explanation explaining key:lower, how it works, what to use it for, etc. Thank you so very much!

4 comments

0

The lower function just lowercases a string. e-e Literally, that's all it does. XP

0

Are you talking about the mouse key pressed event? If so this is the old system that used strings to represent the key pressed, since it also supported capital letters you would lower the strings case so that it would work either way.

1

We should now be using the http://wiki.roblox.com/index.php?title=API:Class/UserInputService as the mouse key events are deprecated.

1 answer

All it does is return the string given in lowercase format

local letter = "ABCD"
local lowercase = letter:lower()
print(lowercase) --Prints 'abcd'

Hope this helped!

This discussion is preserved as it was. New answers, comments, and votes are closed.