I have this script but wont register the enter key being pressed

if key == string.char(13) then
    print("Enter Pressed")

end

PLEASE HELP!!!

4 comments

0

There is significant context that is necessary to make this work. Can you please provide the context of this excerpt of Lua?

0

um......... I dont know what that means...

0

He means show us the surrounding code, like the function that this is inside of and how it is connected and to what events, etc...

0

Still dont understand