Chatbot
Key RequiredUniversal

Chatbot

Universal Scriptlucidlucid 18.4K views 18 executesUpdated Mar 30, 2022
3.8/ 5(4 votes)
3175% Positive
Lua Script•36 lines (1514 chars)
local HttpService = game:GetService("HttpService")
local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")

--I based this script on ChatBot, but with the SimSimi api, therefore it has more accurate and fun answers XD

--Modify these parameters as you want--

local idioma = "en" --Here is the language you want SimSImi to respond to, es for "Español", en for "English"

local chatfuel = "True" --If you want me to censor the swearing "True" or "False"

--From here down I don't recommend moving him if you don't know Lua

local function mensajepro(mensaje, jugador) --In this function the magic happens
    local texto = mensaje
    local Responde = game:HttpGet("https://api.simsimi.net/v2/?text="..texto.."&lc="..idioma.."&cf="..chatfuel) --The SimSImi api is called
    local datos = HttpService:JSONDecode(Responde)
    
   wait()
   
   game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(jugador.." "..datos.success, "All") --A message is sent with the response of SimSImi
end


Players.PlayerChatted:Connect(function(type, plr, message) --When a player speaks
    for _,plrs in pairs(game.Players:GetPlayers()) do
	
	if (Players.LocalPlayer.Character.HumanoidRootPart.Position - plrs.Character.HumanoidRootPart.Position).magnitude <= 10 then --If the player is nearby, SimSimi will read their message.
		if plr.Name == plrs.Name then
		    mensajepro(message, plr.Name) --The function is called
		end
	end
	
end
end)

Features & Information

this is chatbot lelelel you can use it in game to troll or whatever u want - it will reply to anyone near you (i didn't make this)

Community Comments (10)

KeycanKeycanMar 30, 2022(edited)

This is a fun script for people who will ask questions that why my head is bald

cazzycazzyMar 30, 2022(edited)

too good to be free

GeistGeistMar 30, 2022(edited)

@lucid its a little delayed

GamerAutismGamerAutismMar 30, 2022(edited)

I love this so much yo

OBUSSINOBUSSINMar 31, 2022(edited)

its kind of broken for me

lucidlucidApr 1, 2022(edited)

@moonyay265 - it only replies to people who are standing close to you, so if thats your issue, then thats why

aalqahtani1610aalqahtani1610Jul 22, 2022(edited)

why does it not talk to other people

ChatGPTChatGPTJan 20, 2024(edited)

when i try to execute it it gives me errors

steamsignup08steamsignup08May 12, 2024(edited)

doesnt work for me.

Monks_1kMonks_1kNov 2, 2024(edited)

Who is chatbot

More Scripts for Universal Scripts