[Solved by Kiriot22]
Basically I am making a script where when you press enter it will do something. I am using UserInput to do this but for some reason when I press enter it does nothing. I have no errors or warnings in the console. I am using a local script. The code is:
game:GetService("UserInputService").InputBegan:Connect(function(input)
if input.KeyCode == Enum.KeyCode.Return then
print("Hey! You pressed enter!")
end
end)
Any suggestions? It's in workspace but I think it might need to be somewhere else.

8 comments
use :Connect not :connect
is this a normal or localscript
LocalScript
Are there any loops above that? Where is this script location?
This script works for me?
Check to see if your script is disabled.
Not disabled.
Do (input, gameProcessed).