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

How to use Enter Key on Enum.KeyCode?

Asked by 5 years ago

So I am trying to find out how to get a keycode like this Enum.KeyCode.Enter Here is my script:

game:GetService("UserInputService").InputBegan:Connect(function(input)
    if input == Enum.KeyCode.KeypadEnter then
    print ' reeeeee  '
end
end

And I would like to change Enum.KeypadEnter to just the Enter key. How would I go about doing that?

3
Enum.KeyCode.Return I believe Vulkarin 581 — 5y
2
Yeah, Enum.KeyCode.Return is enter. SummerEquinox 643 — 5y
0
yes all of you User#19524 175 — 5y
0
i believe thats correct, you have print"reeee" instead of print("reeeee") BlackLatex_Puro 2 — 5y
View all comments (2 more)
0
Lua isn't Python 2; only Python 2 has print as a command and not a function. However, Python 3 uses print as a function, like Lua. DeceptiveCaster 3761 — 5y
0
Excuse me. I believe there is a print command on roblox correct me if I am wrong but print() ???? namespace25 594 — 5y

Answer this question