Like the title said I'm trying to make a text box a player can type in. This player will specifically be able to type a letter into it and once they do they will be able to use in game. As in when the player does press the button that is equaled to the button the game will detect it. Though I'm not sure how to do this. I've seen some examples. One example is Strucid. In Strucid your able to exactly what I just said. Any help will be very appreciated. This is my attempt.
Local Script
local keybindbox = script.Parent
local Player = game.Players.LocalPlayer
local UIS = game:GetService("UserInputService")
UIS.InputBegan:Connect(function(Input,gpe)
local T = keybindbox.Text
if Input.KeyCode == Enum.KeyCode.T and not gpe then
print("Player pressed whatever was in keybindbox")
end
end)

4 comments
I put two dots after KeyCode
No sorry it didn't work. I got this error: 12:00:28.167 - KeyBind is not a valid member of InputObject
Yea, only put one.
Oof