BrennoMaturino1

FAKE ROBLOX BOT.EXE

Oct 3rd, 2020
534
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.92 KB | None | 0 0
  1. local Chat = game:GetService("Chat")
  2. local plrs = game:GetService("Players")
  3. local serverScriptService = game:GetService("ServerScriptService")
  4. local chatServiceModule = require(serverScriptService:WaitForChild("ChatServiceRunner").ChatService)
  5.  
  6. local ReplicatedModules = Chat:WaitForChild("ClientChatModules")
  7. local ChatModules = Chat:WaitForChild("ChatModules")
  8. local ChatConstants = require(ReplicatedModules:WaitForChild("ChatConstants"))
  9. local speaker = chatServiceModule:AddSpeaker("ROBLOX")
  10. local messages = {
  11.     ", you are awesome!",
  12.     ", you are special!",
  13.     ", i like you",
  14.     ", i like you the way you are"
  15. }
  16. speaker:JoinChannel("All")
  17. speaker:SetExtraData("NameColor", Color3.new(0, 132, 255))
  18. speaker:SayMessage("I am fake, sorry :(")
  19. speaker:SayMessage ("You can say: !message and i will send you a message :)")
  20.  
  21. serverScriptService:WaitForChild("ChatServiceRunner").ChatService:Clone().Parent = workspace
  22. for i, v in pairs(chatServiceModule:GetChannelList()) do
  23.     print(v)
  24. end
  25.  
  26. local function GetWhisperChannelPrefix()
  27.     if ChatConstants.WhisperChannelPrefix then
  28.         return ChatConstants.WhisperChannelPrefix
  29.     end
  30.     return "To "
  31. end
  32.  
  33. function GetWhisperChannelId(userName)
  34.     return GetWhisperChannelPrefix() .. userName
  35. end
  36.  
  37.  
  38. local function plr_chatted(player, message)
  39.     if string.lower(message) == "!message" then
  40.         local number = table.getn(messages)
  41.         local random = math.random(1, number)
  42.         local channelObj = GetWhisperChannelId(player.Name)
  43.         if channelObj == nil then warn("Erro: canal não encontrado!") return end
  44.         speaker:JoinChannel(channelObj.Name)
  45.         speaker:SayMessage(messages[random])
  46.     end
  47.     speaker:JoinChannel("All")
  48. end
  49.  
  50. for i, player in pairs(plrs:GetPlayers()) do
  51.     player.Chatted:Connect(function(message)
  52.         plr_chatted(player, message)
  53.     end)
  54.     speaker:SayMessage("Hi "..player.Name.."!")
  55. end
  56.  
  57. plrs.PlayerAdded:Connect(function(player)
  58.     speaker:SayMessage("Hi "..player.Name.."!")
  59. end)
  60.  
Advertisement
Add Comment
Please, Sign In to add comment