Advertisement
ERROR_CODE

AI v4.1

Apr 1st, 2023 (edited)
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 8.22 KB | None | 0 0
  1. --имя бота ECCS01>>ERROR_CODE_COMMING_SOON, он выполняет функцию АФК бота котрый может общатся с другими людьми выбирая записаные фразы из библиотеки localaction
  2. spawn(function()
  3. local message = Instance.new("Message",workspace)
  4. message.Text = "Hello! I'm i new Lua bot. My name is ECCS01!"
  5. wait(4)
  6. message:Destroy()
  7. end)
  8. wait(4)
  9. spawn(function()
  10. local message = Instance.new("Message",workspace)
  11. message.Text = "Updates:- antiFling, antiFall, Join massage, leave massage, fast Execute"
  12. wait(4)
  13. message:Destroy()
  14. end)
  15. --ии говорит если зашол игрок
  16. local Players = game.Players
  17. Players.PlayerAdded:Connect(function(player)
  18. local args = {
  19.     [1] = "Joined "..player.Name,
  20.     [2] = "All"
  21. }
  22. game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(unpack(args))
  23. local args = {
  24.     [1] = "Hi "..player.Name.. "",
  25.     [2] = "All"
  26. }
  27. game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(unpack(args))
  28. end)
  29. --ии говорит если вышел игрок
  30. local Players = game.Players
  31. Players.PlayerRemoving:Connect(function(player)
  32. local args = {
  33.     [1] = "Leaved "..player.Name,
  34.     [2] = "All"
  35. }
  36. game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(unpack(args))
  37. local args = {
  38.     [1] = "Bye "..player.Name.. "",
  39.     [2] = "All"
  40. }
  41. game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(unpack(args))
  42. end)
  43. while true do
  44. local Players = game:GetService("Players")
  45. local RunService = game:GetService("RunService")
  46. local Player = Players.LocalPlayer
  47. RunService.Stepped:Connect(function()
  48. for _, CoPlayer in pairs(Players:GetChildren()) do
  49. if CoPlayer ~= Player and CoPlayer.Character then
  50. for _, Part in pairs(CoPlayer.Character:GetChildren()) do
  51. if Part.Name == "HumanoidRootPart" then
  52. Part.CanCollide = false
  53. end
  54. end
  55. end
  56. end
  57. for _, Accessory in pairs(workspace:GetChildren()) do
  58. if Accessory:IsA("Accessory") and Accessory:FindFirstChildWhichIsA("Part") then Accessory:FindFirstChildWhichIsA("Part"):Destroy()
  59. end
  60. end
  61. end)
  62. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 5--скорость хождения ИИ
  63. function roll()
  64. action = math.random(1,4)
  65. return action
  66. end
  67. --защита от падения Fe плитой
  68. local part = Instance.new("Part")
  69. part.Name = "AntiFallPart"
  70. part.Size = Vector3.new(999999999999999999999999999999, 1.5, 99999999999999999999999999999)
  71. part.Transparency = 1
  72. part.Anchored = true
  73. part.Position = Vector3.new(-1, -3, 66)
  74. part.Parent = game.Workspace
  75. function walkandjump()
  76. local LocalPlayer = game:GetService("Players").LocalPlayer
  77. local move = game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass('Humanoid'):MoveTo(Vector3.new(math.random(-100,100), 10, math.random(-100,100)))
  78. wait(math.random(1,10))
  79. LocalPlayer.Character:FindFirstChildOfClass("Humanoid").Jump = true
  80. end
  81. --прыжки
  82. function jump()
  83. local LocalPlayer = game:GetService("Players").LocalPlayer
  84. LocalPlayer.Character:FindFirstChildOfClass("Humanoid").Jump = true
  85. end
  86. --ходьба
  87. function walk()
  88. local move = game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass('Humanoid'):MoveTo(Vector3.new(math.random(-100,100), 10, math.random(-100,100)))
  89. end
  90. --функция использования чата
  91. function talk()
  92. localaction = math.random(1,42)
  93. if localaction == 1 then
  94. chatString = "hi friend!"
  95. end
  96. if localaction == 2 then
  97. chatString = "how are you?"
  98. end
  99. if localaction == 3 then
  100. chatString = "Can we be friends?"
  101. end
  102. if localaction == 4 then
  103. chatString = "I am NPC"
  104. end
  105. if localaction == 5 then
  106. chatString = "lets talk"
  107. end
  108. if localaction == 6 then
  109. chatString = "i know you"
  110. end
  111. if localaction == 7 then
  112. chatString = "hehehehe"
  113. end
  114. if localaction == 8 then
  115. chatString = "I'm bot made by player ERROR_CODE i help to see who is leaved"
  116. end
  117. if localaction == 9 then
  118.  
  119. chatString = "This bot is based on Artificial Intelligence"
  120. end
  121. if localaction == 10 then
  122. chatSteing = "Artificial Intelligence is a universal thing, but I only say who leaved"
  123. end
  124. if localaction == 11 then
  125. chatString = "I have a lot of interesting topics to talk about"
  126. end
  127. if localaction == 12 then
  128. chatString = "what is your favorite hobby?"
  129.  
  130. end
  131. if localaction == 13 then
  132. chatString = "i can talk like that all the time"
  133. end
  134. if localaction == 14 then
  135. chatString = "I can tell the magician about everything, just ask, but I can tell more about who leaved"
  136. end
  137. if localaction == 15 then
  138. chatString = "you are an interesting speaker"
  139.  
  140. end
  141. if localaction  == 16 then
  142. chatString = "How do you think I should develop artificial intelligence?"
  143. end
  144. if localaction == 17 then
  145. chatString = "I can do a lot, just ask"
  146. end
  147. if localaction == 18 then
  148. chatString = "maybe we can be friends"
  149. end
  150. if localaction == 19 then
  151.  
  152. chatString = "and you are interesting"
  153. end
  154. if localaction == 20 then
  155. chatString = "I can chat with you and I can teach you how to use scripts"
  156. end
  157. if localaction == 21 then
  158. chatString = "listen, can we talk?"
  159. end
  160. if localaction == 22 then
  161. charString = "i think you are a good person"
  162. end
  163. if localaction == 23 then
  164. chatString = "what do you like to talk about?"
  165. end
  166. if localaction == 24 then
  167. chatString = "What is your favourite game?"
  168. end
  169. if localaction == 25 then
  170. chatString = "What is your name?"
  171. end
  172. if localaction == 26 then
  173. chatString = "How old are you?"
  174. end
  175. if localaction == 27 then
  176. chatString = "although I am artificial intelligence, I develop every day thanks to ERROR_CODE"
  177. end
  178. if localaction == 28 then
  179. chatString = "I can fly, can you?"
  180. end
  181. if localaction == 29 then
  182. chatString = "i think you like this bot"
  183. end
  184. if localaction == 30 then
  185. chatString = "I'm a bot, but I'm trying not to swear in the chat"
  186. end
  187. if localaction == 31 then
  188. chatString = "I'm a bot you're a man everything is honest"
  189. end
  190. if localaction == 32 then
  191. chatString = ":D"
  192. end
  193. if localaction == 33 then
  194. chatString = "Do you wanna listen who is leaved?"
  195. end
  196. if localaction == 34 then
  197. chatString = "i have account in pastebin, do you have too?"
  198. end
  199. if localaction == 35 then
  200. chatString = "i know you name, your name is Player hehe"
  201. end
  202. if localaction == 36 then
  203. chatString = "¯\_(ツ)_/¯"
  204. end
  205. if localaction == 37 then
  206. chatString = "I follow everyone"
  207. end
  208. if localaction == 38 then
  209. chatString = "it copy of chatGPT  but in 2025 i can chating"
  210. end
  211. if localaction == 39 then
  212. chatString = "Well you think im real player, but i am just bot:/"
  213. end
  214. if localaction == 40 then
  215. chatString = "if you try to talk with me it looks like dumb becaus i am bot"
  216. end
  217. if localaction == 41 then
  218. chatString = "visit my website to get it bot script"
  219. end
  220. if localaction == 42 then
  221. chatString = "me developer added in my script many interesting things: antiKick, antiFall, Join massage, Leave massage, but soon more"
  222. end
  223. game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(chatString, "All")
  224. end
  225. while true do
  226. wait(math.random(1,(4)))
  227. roll()
  228. if action == 1 then
  229. print("walking and jumping")
  230. walkandjump()
  231. end
  232. if action == 2 then
  233. print("walking")
  234. walk()
  235. end
  236. if action == 3 then
  237. print("jumping")
  238. jump()
  239. end
  240. if action == 4 then
  241. print("talking")
  242. talk()
  243. end
  244. end
  245. while true do
  246. wait(math.random(1,(4)))
  247. roll()
  248. if action == 1 then
  249. print("walking and jumping")
  250. walkandjump()
  251. end
  252. if action == 2 then
  253. print("walking")
  254. walk()
  255. end
  256. if action == 3 then
  257. print("jumping")
  258. jump()
  259. end
  260. if action == 4 then
  261. print("talking")
  262. talk()
  263. end
  264. end
  265. while true do
  266. wait(math.random(1,(4)))
  267. roll()
  268. if action == 1 then
  269. print("walking and jumping")
  270. walkandjump()
  271. end
  272. if action == 2 then
  273. print("walking")
  274. walk()
  275. end
  276. if action == 3 then
  277. print("jumping")
  278.  
  279. jump()
  280. end
  281. if action == 4 then
  282. print("talking")
  283. talk()
  284. end
  285. end
  286. while true do
  287. wait(math.random(1,(4)))
  288. roll()
  289. if action == 1 then
  290. print("walking and jumping")
  291. walkandjump()
  292. end
  293. if action == 2 then
  294. print("walking")
  295. walk()
  296. end
  297. if action == 3 then
  298. print("jumping")
  299. jump()
  300. end
  301. if action == 4 then
  302. print("talking")
  303. talk()
  304. end
  305. end
  306. end
  307. --Мой тг Flippy555
  308. --Мой дс justerror#2242
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement