Advertisement
ERROR_CODE

AI v4

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