Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game.Players--ИИ говрит если вышел игрок
- Players.PlayerRemoving:Connect(function(player)
- local args = {
- [1] = "leaved "..player.Name,
- [2] = "All"
- }
- game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(unpack(args))
- local args = {
- [1] = "" ,
- }
- game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(unpack(args))
- end)
- loadstring(game:HttpGet("https://raw.githubusercontent.com/GamingScripter/Animation-Hub/main/Animation%20Gui", true))()--список анимаций
- while true do
- local Players = game:GetService("Players")
- local RunService = game:GetService("RunService")
- local Player = Players.LocalPlayer
- RunService.Stepped:Connect(function()
- for _, CoPlayer in pairs(Players:GetChildren()) do
- if CoPlayer ~= Player and CoPlayer.Character then
- for _, Part in pairs(CoPlayer.Character:GetChildren()) do
- if Part.Name == "HumanoidRootPart" then
- Part.CanCollide = false
- end
- end
- end
- end
- for _, Accessory in pairs(workspace:GetChildren()) do
- if Accessory:IsA("Accessory") and Accessory:FindFirstChildWhichIsA("Part") then Accessory:FindFirstChildWhichIsA("Part"):Destroy()
- end
- end
- end)
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 5--скорость хождения ИИ
- function roll()
- action = math.random(1,4)
- return action
- end
- --защита от падения Fe плитой
- local part = Instance.new("Part")
- part.Name = "AntiFallPart"
- part.Size = Vector3.new(999999999999999999999999999999, 1.5, 99999999999999999999999999999)
- part.Transparency = 1
- part.Anchored = true
- part.Position = Vector3.new(-1, -3, 66)
- part.Parent = game.Workspace
- function walkandjump()
- local LocalPlayer = game:GetService("Players").LocalPlayer
- local move = game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass('Humanoid'):MoveTo(Vector3.new(math.random(-100,100), 10, math.random(-100,100)))
- wait(math.random(1,10))
- LocalPlayer.Character:FindFirstChildOfClass("Humanoid").Jump = true
- end
- --прыжки
- function jump()
- local LocalPlayer = game:GetService("Players").LocalPlayer
- LocalPlayer.Character:FindFirstChildOfClass("Humanoid").Jump = true
- end
- --ходьба
- function walk()
- local move = game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass('Humanoid'):MoveTo(Vector3.new(math.random(-100,100), 10, math.random(-100,100)))
- end
- --функция использования чата
- function talk()
- localaction = math.random(1,32)
- if localaction == 1 then
- chatString = "hi friend!"
- end
- if localaction == 2 then
- chatString = "how are you?"
- end
- if localaction == 3 then
- chatString = "Can we be friends?"
- end
- if localaction == 4 then
- chatString = "I am NPC"
- end
- if localaction == 5 then
- chatString = "lets talk"
- end
- if localaction == 6 then
- chatString = "i know you"
- end
- if localaction == 7 then
- chatString = "hehehehe"
- end
- if localaction == 8 then
- chatString = "I'm bot made by player ERROR_CODE i help to see who is leave"
- end
- if localaction == 9 then
- chatString = "This bot is based on Artificial Intelligence"
- end
- if localaction == 10 then
- chatSteing = "Artificial Intelligence is a universal thing, but I only say who leaved"
- end
- if localaction == 11 then
- chatString = "I have a lot of interesting topics to talk about"
- end
- if localaction == 12 then
- chatString = "what is your favorite hobby?"
- end
- if localaction == 13 then
- chatString = "i can talk like that all the time"
- end
- if localaction == 14 then
- chatString = "I can tell the magician about everything, just ask, but I can tell more about who leaved"
- end
- if localaction == 15 then
- chatString = "you are an interesting speaker"
- end
- if localaction == 16 then
- chatString = "How do you think I should develop artificial intelligence?"
- end
- if localaction == 17 then
- chatString = "I can do a lot, just ask"
- end
- if localaction == 18 then
- chatString = "maybe we can be friends"
- end
- if localaction == 19 then
- chatString = "and you are interesting"
- end
- if localaction == 20 then
- chatString = "I can chat with you and I can teach you how to use scripts"
- end
- if localaction == 21 then
- chatString = "listen, can we talk?"
- end
- if localaction == 22 then
- charString = "i think you are a good person"
- end
- if localaction == 23 then
- chatString = "what do you like to talk about?"
- end
- if localaction == 24 then
- chatString = "What is your favourite game?"
- end
- if localaction == 25 then
- chatString = "What is your name?"
- end
- if localaction == 26 then
- chatString = "How old are you?"
- end
- if localaction == 27 then
- chatString = "although I am artificial intelligence, I develop every day thanks to ERROR_CODE"
- end
- if localaction == 28 then
- chatString = "I can fly, can you?"
- end
- if localaction == 29 then
- chatString = "i think you like this bot"
- end
- if localaction == 30 then
- chatString = "I'm a bot, but I'm trying not to swear in the chat"
- end
- if localaction == 31 then
- chatString = "I'm a bot you're a man everything is honest"
- end
- if localaction == 32 then
- chatString = ":D"
- end
- game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(chatString, "All")
- end
- while true do
- wait(math.random(1,(4)))
- roll()
- if action == 1 then
- print("walking and jumping")
- walkandjump()
- end
- if action == 2 then
- print("walking")
- walk()
- end
- if action == 3 then
- print("jumping")
- jump()
- end
- if action == 4 then
- print("talking")
- talk()
- end
- end
- while true do
- wait(math.random(1,(4)))
- roll()
- if action == 1 then
- print("walking and jumping")
- walkandjump()
- end
- if action == 2 then
- print("walking")
- walk()
- end
- if action == 3 then
- print("jumping")
- jump()
- end
- if action == 4 then
- print("talking")
- talk()
- end
- end
- while true do
- wait(math.random(1,(4)))
- roll()
- if action == 1 then
- print("walking and jumping")
- walkandjump()
- end
- if action == 2 then
- print("walking")
- walk()
- end
- if action == 3 then
- print("jumping")
- jump()
- end
- if action == 4 then
- print("talking")
- talk()
- end
- end
- while true do
- wait(math.random(1,(4)))
- roll()
- if action == 1 then
- print("walking and jumping")
- walkandjump()
- end
- if action == 2 then
- print("walking")
- walk()
- end
- if action == 3 then
- print("jumping")
- jump()
- end
- if action == 4 then
- print("talking")
- talk()
- end
- end
- end
- --My Telegram (Flippy555)
- --My Discord (justerror#2242)
- --https://pastebin.com/c5i76DE2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement