Hi i tried to make a custom chat and i don't know any way to active a textbox without clicking on them
Here is what i tried
uis.InputBegan:Connect(function(input) if input.KeyCode == Enum.KeyCode.Z or input.KeyCode == Enum.KeyCode.Y then -- Made that because i'm a austria german and have a qwertz keyboard chatgui.TextBox.Active = not chatgui.TextBox.Active end end)
That didn't work so could anyone help me?
Use CaptureFocus.
http://wiki.roblox.com/index.php?title=API:Class/TextBox/CaptureFocus
chatgui.TextBox:CaptureFocus()