Universal Script πŸ“Œ
18.4k Views
39 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)

Updates

  1. Script edited: Create script

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
Script hub
4.1M
558.4k
Bumped 1 minute ago
Key System

Script hub

Hall of Fame #3

Verified script badgeOverflow #1 *OP*

Script hub
5.4k
28.8k
Bumped 55 minutes ago
Key System
Script hub
14.0k
28.4k
Bumped 2 hours ago
Universal Script πŸ“Œ
339.0k
74.9k
Bumped 2 hours ago
Script hub
462.0k
989.7k
Bumped 2 hours ago
Key System

Script hub

Hall of Fame #5

Verified script badgeRonix Hub | 52 Supported Games + OP!

Universal Script πŸ“Œ
65
6
Approved 3 hours ago