local UserInputServices = game:GetService("UserInputService")
UserInputServices.InputBegan:Connect(function(Key)
if Key.KeyCode == Enum.KeyCode.F9 then
print('Player Opened Console.')
end
end)
Make sure you using Local script, put it on StarterPlayer scripts.
Feel free to make another post, @Mystery_Devx.
Hello. This question has already been answered. The aforementioned topic may help you. Also, please ensure to search the DevForum for related questions before posting topics. Thank you.