-- Services local Players = game:GetService("Players") local TextChatService = game:GetService("TextChatService") local player = Players.LocalPlayer repeat task.wait() until TextChatService.ChatVersion == Enum.ChatVersion.TextChatService local channel = TextChatService.TextChannels:WaitForChild("RBXGeneral") -- GUI local gui = Instance.new("ScreenGui") gui.Name = "MobileAutoChatGUI" gui.ResetOnSpawn = false gui.Parent = player:WaitForChild("PlayerGui") local frame = Instance.new("Frame") frame.Size = UDim2.fromScale(0.85, 0.45) frame.Position = UDim2.fromScale(0.075, 0.275) frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30) frame.Parent = gui frame.Active = true frame.Draggable = true Instance.new("UICorner", frame).CornerRadius = UDim.new(0, 16) local padding = Instance.new("UIPadding", frame) padding.PaddingTop = UDim.new(0.03, 0) padding.PaddingBottom = UDim.new(0.03, 0) padding.PaddingLeft = UDim.new(0.05, 0) padding.PaddingRight = UDim.new(0.05, 0) -- Message box local msgBox = Instance.new("TextBox") msgBox.PlaceholderText = "Type message to auto chat" msgBox.Size = UDim2.fromScale(1, 0.25) msgBox.BackgroundColor3 = Color3.fromRGB(50, 50, 50) msgBox.TextColor3 = Color3.new(1, 1, 1) msgBox.TextScaled = true msgBox.ClearTextOnFocus = false msgBox.Parent = frame Instance.new("UICorner", msgBox).CornerRadius = UDim.new(0, 12) -- Delay box local delayBox = Instance.new("TextBox") delayBox.PlaceholderText = "Delay (seconds)" delayBox.Text = "10" delayBox.Size = UDim2.fromScale(1, 0.2) delayBox.Position = UDim2.fromScale(0, 0.32) delayBox.BackgroundColor3 = Color3.fromRGB(50, 50, 50) delayBox.TextColor3 = Color3.new(1, 1, 1) delayBox.TextScaled = true delayBox.ClearTextOnFocus = false delayBox.Parent = frame Instance.new("UICorner", delayBox).CornerRadius = UDim.new(0, 12) -- ON/OFF toggle button local toggleBtn = Instance.new("TextButton") toggleBtn.Text = "OFF" toggleBtn.Size = UDim2.fromScale(1, 0.25) toggleBtn.Position = UDim2.fromScale(0, 0.62) toggleBtn.BackgroundColor3 = Color3.fromRGB(170, 0, 0) toggleBtn.TextColor3 = Color3.new(1, 1, 1) toggleBtn.TextScaled = true toggleBtn.Parent = frame Instance.new("UICorner", toggleBtn).CornerRadius = UDim.new(0, 14) local running = false toggleBtn.MouseButton1Click:Connect(function() running = not running if running then toggleBtn.Text = "ON" toggleBtn.BackgroundColor3 = Color3.fromRGB(0, 170, 0) else toggleBtn.Text = "OFF" toggleBtn.BackgroundColor3 = Color3.fromRGB(170, 0, 0) end end) -- Auto chat loop task.spawn(function() while true do if running then local delayTime = tonumber(delayBox.Text) if delayTime and delayTime >= 1 and msgBox.Text ~= "" then channel:SendAsync(msgBox.Text) task.wait(delayTime) else task.wait(1) end else task.wait(1) end end end)