Well what I want to do is a scripting KeyBind change system like this
local Mapa = script.Parent.Mapa
local Open = false
local UserInputService = game:GetService("UserInputService")
UserInputService.InputBegan:connect(function(keyCode)
if keyCode.keyCode == Enum.KeyCode.M then
if Open then
script.Parent.Frame.Visible = false
else
Open = true
script.Parent.Frame.Visible = true
end
end
end)
I want to do that when writing a letter in a text box, the script captures it and saves it for when you want to execute it you have to press the letter on your keyboard executing the script, what do I do?