When someone types n in chat it fires this script
game:GetService("UserInputService").InputBegan:connect(function(input)
if input.KeyCode == Enum.KeyCode.N then
local statsGui = script.Parent.StatsBorder
local invGui = script.Parent.Parent.InventoryGuiBG.InventoryBorder
if statsGui.Visible == true then
statsGui.Visible = false
elseif statsGui.Visible == false then
invGui.Visible = false
statsGui.Visible = true
end
end
end)
How can I tell if a player is focused on a textbox or not?

1 comment
With the wiki ;) http://wiki.roblox.com/index.php?title=API:Class/TextBox/Focused