UserInput Don't Working

lol why this don’t working🤨

		UserInput.InputBegan:Connect(function(IO, GPE)
		print('F3 Pressed')
		if GPE == false and IO.KeyCode == Enum.KeyCode.F3 then
			print('F3 Triggeret')
			if Frame.Visible == true then
				Frame.Visible = false
				print('false')
			else
				Frame.Visible = true
				print('true')
			end
		end
	end)

2025-01-15_19-09-10

it says in the console that the input has started, but it doesn’t write that I pressed F3 although I checked, I pressed the F3 key tried to rewind to another key and everything worked. I just want to understand why I can’t lock the F3 key even though it’s not used in the studio.

although I checked the F3 key and it works.

And I know something that can be done like this:

Frame.Visible = not Frame.Visible

my code was like that at first, but I removed it thinking that this was the problem.

Have you tested it in-game? I believe studio won’t register F3 input because it uses it as a shortcut.

Oh right

I forgot all about it.

Only then I don’t understand why the F3 key was added to the Enum.KeyCode

I think its only not registered in studio, all function keys should still work in-game.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.