I am trying to detect when the player presses any key. I know how to get an input from a specific one, but not from any and could not find any articles to help.
Any solutions?
(Currently using this:)
UserInputService.InputBegan:Connect(function(inputObject)
if inputObject.UserInputType == Enum.UserInputType.Keyboard then
playerGui.MenuScreen.Enabled = true
--[[FrameTween:Play()
wait(2)
LoadingScreen:Destroy()]]
end
end)
Well InputBegan is for mouse and keyboard, and I think he was trying to track only the keyboard, and in your code, the function gets triggered for both mouse and keyboard.