-- We must get the UserInputService before we can use it
local UserInputService = game:GetService("UserInputService")
 
-- A sample function providing one usage of InputBegan
local function onInputBegan(input, gameProcessed)
	if input.UserInputType == Enum.UserInputType.Enter then
		
	end
end
 
UserInputService.InputBegan:Connect(onInputBegan)

3 comments

0

Explain ?

0

Enter is not a userinput type but i dont know what it is

1

I think Enter is referred as Return on code