I've tried to make this chat GUI, with a custom chat bar. As usual, the script works in Studio, but not in the client, and I was wondering if I would need to change it otherwise.
The script
local service = game:GetService("UserInputService") local gui = script.Parent service.InputBegan:connect(function(keyPressed,gameProcessedEvent) if gameProcessedEvent then return end if script.Parent.Parent.Status.Value == true then if keyPressed.KeyCode == Enum.KeyCode.E then gui.TextBox:CaptureFocus() end end end)