Universal Script πŸ“Œ
18.4k Views
27 Executions

Chatbot

Universal Script πŸ“Œ
lucid
lucidFirst script
5 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

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)

View Raw
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)


Comments

10
Log in to join the conversation. Login
Keycan's profile picture
Keycan5 years ago(edited)

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

2
Monks_1k's profile picture
Monks_1k2 years ago(edited)

Who is chatbot

1
steamsignup08's profile picture
steamsignup083 years ago(edited)

doesnt work for me.

1
ChatGPT's profile picture
ChatGPT3 years ago(edited)

when i try to execute it it gives me errors

1
aalqahtani1610's profile picture
aalqahtani16104 years ago(edited)

why does it not talk to other people

1
lucid's profile picture
lucidUploader5 years ago(edited)

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

1
OBUSSIN's profile picture
OBUSSIN5 years ago(edited)

its kind of broken for me

1

More universal scripts

See all
Universal Script πŸ“Œ
6.7k
20.6k
Bumped 1 minute ago
Key System
Universal Script πŸ“Œ
26
2
Approved 39 minutes ago
Universal Script πŸ“Œ
24
0
Approved 56 minutes ago
Universal Script πŸ“Œ
38
5
Approved 57 minutes ago
Universal Script πŸ“Œ
34
0
Approved 1 hour ago
Universal Script πŸ“Œ
59
9
Approved 2 hours ago