Ro-Meet: Chat With Robloxians Script | BOT STARTER KIT

Created by Jaydenn#7592

Features:

  • CHAT BOT STARTER KIT
  • DEV NOTES
  • made a quick little library thing that makes it easy to make a bot for this stupid chat game.
  • the commands only work when the other person in the call types them but that can be changed easily.
local rm_api = {} --[[Ro-Meet api]] do
   rm_api.MessageManager = getsenv(game:GetService("Players").LocalPlayer.PlayerGui.ScreenGui.Screen.Message.Message.MessageManager)
   rm_api.Message = game:GetService("Players").LocalPlayer.PlayerGui.ScreenGui.Screen.Message.Message
   rm_api.Messages = game:GetService("Players").LocalPlayer.PlayerGui.ScreenGui.Screen.topContainer.messages

   function rm_api:getMessages() -- Returns table of all messages
       local messages = {}
       for i, v in pairs(self.Messages:GetChildren()) do
           if v.Name == 'message' then
               table.insert(messages, v)
           end
       end
       return messages
   end

   function rm_api:getLastMessage() -- Returns last message that was sent
       local messages = self:getMessages()
       return messages[#messages]
   end

   function rm_api:sendMessage(text) -- Sends a message using ro-meets functions
       self.Message.Text = tostring(text)
       --task.wait(0.1)
       self.MessageManager.send()
   end

end

rm_api.Messages.ChildAdded:Connect(function()
   local lastMsg = rm_api:getLastMessage()
   if string.find(lastMsg.Text, 'You') then -- Commands only work when the other person in the call types them
       if string.find(string.lower(lastMsg.Text), ";ping") then
           rm_api:sendMessage("Pong!")
       end
   end
end)