robloxexploits.lol
KeylessUniversal

Smart AI Chatbot Script

Zulrics 4 years ago 39K views 4

Run it

Copy the script and paste it into your executor.

Smart AI Chatbot Script.lua · 20 lines
local HttpService = game:GetService("HttpService")
local Players = game:GetService("Players")
 
_G.Owner = "YourUsernameHere"
 
function getChat(message,plrname)
 
   local Split = message:gsub(" ", "+") -- This takes spaces within the person's message and turns it into for ex: Hi+How+Are+You... to ensure that there are no errors and to also make the URL work
 
   local Response = game:HttpGet("https://api.affiliateplus.xyz/api/chatbot?message=" .. Split .. "&botname=" .. plrname .. "&ownername=" .. _G.Owner .. "&user=1")
   local Data = HttpService:JSONDecode(Response)
   wait(1)
   game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(Data.message, "All")
end
 
Players.PlayerChatted:Connect(function(type, plr, message)
   if plr.Name ~= Players.LocalPlayer.Name then
       getChat(message, plr.Name)
   end
end)

Loads code from the internet. It downloads more code when it runs (loadstring + HttpGet), which can change after it was posted. From: api.affiliateplus.xyz.

About this script

Responds to what other people say in games automatically with an AI-generated response. Very smart, and very funny to use.

More universal scripts