
KeylessUniversal

-- Services
local TextChatService = game:GetService("TextChatService")
local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
-- Variables
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
-- a Simple UI
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "CustomChatUI"
screenGui.Parent = playerGui
local chatFrame = Instance.new("Frame")
chatFrame.Size = UDim2.new(0, 300, 0, 50)
chatFrame.Position = UDim2.new(0.5, -150, 0.8, 0)
chatFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
chatFrame.BackgroundTransparency = 0.5
chatFrame.Parent = screenGui
local textBox = Instance.new("TextBox")
textBox.Size = UDim2.new(1, -10, 1, -10)
textBox.Position = UDim2.new(0, 5, 0, 5)
textBox.PlaceholderText = "Type here and press Enter to chat whit all players..."
textBox.Text = ""
textBox.TextColor3 = Color3.fromRGB(255, 255, 255)
textBox.BackgroundTransparency = 1
textBox.TextScaled = true
textBox.Parent = chatFrame
-- 2. Function to Send Message
local function sendMessage()
local message = textBox.Text
if message ~= "" then
-- Find the default general channel
local textChannel = TextChatService.TextChannels:FindFirstChild("RBXGeneral")
if textChannel then
-- Send the message to the channel
textChannel:SendAsync(message)
end
-- Clear the box
textBox.Text = ""
end
end
-- 3. Detect "Enter" key press
textBox.FocusLost:Connect(function(enterPressed)
if enterPressed then
sendMessage()
end
end)
-- Optional: Focus the textbox when pressing "/"
UserInputService.InputBegan:Connect(function(input, gameProcessed)
if not gameProcessed and input.KeyCode == Enum.KeyCode.Slash then
task.wait() -- Small delay to prevent "/" from appearing in the box
textBox:CaptureFocus()
end
end)
print("Custom Chat Script Loaded!")



wdym by bypass
@constantsun23434 say swear word
@The_scripter0 ok
Is not working pls fix it
@younoobbit ok