Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

One line of keycode enter (very easy) not even working?

Asked by 7 years ago
Edited 7 years ago
game.ContextActionService:BindAction("keyPressenter", onKeyPress, false, Enum.KeyCode.Enter);

What is it expecting?

The error msg:

16:33:28.983 - Players.Player1.PlayerGui.Chat.Chatbar.Input.Chat:19: ')' expected near ';'
0
Obviously a typo in the context cabbler 1942 — 7y
0
I don't know what the proper syntax to use this should be. Can you give me the corrrected version by any chance? Arithmeticity 167 — 7y

1 answer

Log in to vote
0
Answered by
Klamman 220 Moderation Voter
7 years ago

I think that you may be thinking of Java or another programming language that ends statements with semicolons ";". Lua doesn't use semicolons like some other programming languages do to signify the end of a line of code. Taking out the ";" at the end of your line should fix it.

Ad

Answer this question