Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

UserInputService not working on key press or any user input?

function onInputBegan(input,gameProcessed)
	print("okwtf")
	if input.Type == Enum.UserInputType.Keyboard then
		print("xd")
		if input.KeyCode == Enum.KeyCode.X then
			print("xpress")
		end
	end
end


UserInputService.InputBegan:Connect(onInputBegan)

Nothing is printed, I am very confused

1 comment

0

what is the value of gameProcessed?

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.