Forum > Scripts >

[RELEASE] Send chat message in new chat

Posts: 1209

Threads: 68

Joined: May, 2022

Reputation: 17

Posted

this is probably not a great way of doing it but i couldnt be bothered to dig into how you send messages

 

script:

function msg(content)
	local expChat = game.CoreGui.ExperienceChat
	local inputContainer = expChat.appLayout.chatInputBar.Background.Container
	local sendButton = inputContainer.SendButton
	local textInput = inputContainer.TextContainer.TextBoxContainer.TextBox
	local currentPos = game:GetService('UserInputService'):GetMouseLocation()

	textInput.Text = content
	mousemoveabs(sendButton.AbsolutePosition.X, sendButton.AbsolutePosition.Y)
	task.wait(0.01)
	mouse1click()
	task.wait(0.01)
	mousemoveabs(currentPos.X, currentPos.Y)
end

while task.wait() do
	msg('my father left for milk')
end
  • 0

Did I mention I use arch btw?

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )