Curvn

bingo

Oct 7th, 2021 (edited)
440
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.66 KB | None | 0 0
  1. if not game.Loaded then game.Loaded:Wait() end
  2. wait(20)
  3. print("started")
  4.  
  5. local Players = game:GetService("Players")
  6. local LPlayer = Players.LocalPlayer
  7. local LPG = LPlayer.PlayerGui
  8. local UserInputService, TweenService, CoreGui = game:GetService("UserInputService"), game:GetService("TweenService"), game:GetService("CoreGui")
  9. local ChatEvent = game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest
  10.  
  11. local BingoGui = LPG.Bingo
  12. local CardsHolder = BingoGui.StaticDisplayArea.Cards.PlayerArea.Cards.Container.SubContainer
  13. local NumberCallInfo = BingoGui.TopBar.Communicator.Display.BingoCalls.InfoText.CallNo
  14.  
  15. local Playbutton = LPG.Bingo.Menu.MainMenu.Header.PlayButton
  16. local bingobutton = LPG.Bingo.StaticDisplayArea.Cards.PlayerArea.Cards.Container.SubContainer.Buttons.ClaimButton
  17. local ActivatorClicky = {"MouseButton1Click", "MouseButton1Down", "Activated"}
  18.  
  19. for i,v in pairs(ActivatorClicky) do
  20.     for i,v in pairs(getconnections(Playbutton[v])) do
  21.         v:Fire()
  22.         print("Pressed Play Button")
  23.     end
  24. end
  25.  
  26. local WinnerSayings = { -- CHAT WHEN BINGO, SAYS A RANDOM CHAT WHEN YOU GET A BINGO.
  27.     "Well that was easy. #BINGO #EZ",
  28.     "OMG I GOT BINGO! :D",
  29.     "BINNNNGGOOOO!!!",
  30.     "HAHA I GOT BINGO! YAY!",
  31.     "I GOT BINGO CAUSE I'M COOL!",
  32.     "Imagine not getting bingo lol #EZ #BINGO",
  33.     "Yayy i got bingo :D"
  34. }
  35.  
  36. --[[local JokeStartChat = "JOTG: "
  37. local JokerSayings = { -- JOKE OF THE GAME, TELLS A RANDOM JOKE WHEN THE GAME STARTS.
  38.     JokeStartChat.. "What type of cloud is so lazy, because it will never get up? Fog!",
  39.     JokeStartChat.. "Why was the belt sent to jail? For holding up a pair of pants!",
  40.     JokeStartChat.. "Which bear is the most condescending? A pan-duh!",
  41.     JokeStartChat.. "Whats 9+10? 21",
  42.     JokeStartChat.. "What kind of noise does a witch’s vehicle make? Brrrroooom, brrroooom.",
  43.     JokeStartChat.. "Why are elevator jokes so classic and good? They work on many levels.",
  44.     JokeStartChat.. "Why do bees have sticky hair? Because they use a honeycomb.",
  45.     JokeStartChat.. "What’s the most detail-oriented ocean? The Pacific.",
  46.     JokeStartChat.. "Why is Peter Pan always flying? Because he Neverlands.",
  47.     JokeStartChat.. "Why did the coach go to the bank? To get his quarterback.",
  48.     JokeStartChat.. "How do celebrities stay cool? They have many fans.",
  49.     JokeStartChat.. "Sundays are always a little sad, but the day before is a sadder day.",
  50.     JokeStartChat.. "5/4 of people admit they’re bad at fractions.",
  51.     JokeStartChat.. "Dogs can’t operate MRI machines. But catscan."
  52. }
  53. ]]
  54.  
  55. BingoGui.DisplayArea.Visible = false
  56.  
  57. NumberCallInfo:GetPropertyChangedSignal("Text"):Connect(function()
  58.     print(NumberCallInfo.Text)
  59.     if NumberCallInfo.Text == "Call 1" then
  60.         print("RESTARTED AUTOMATIC BINGO.")
  61.         --ChatEvent:FireServer(JokerSayings[math.random(1,#JokerSayings)],"All")
  62.         for i,v in pairs(CardsHolder:GetDescendants()) do
  63.             if v.ClassName == "TextLabel" and v.Name == "ToGoText" then
  64.                 v:GetPropertyChangedSignal("Text"):Connect(function()
  65.                     if v.Text == "BINGO!" then
  66.                         ChatEvent:FireServer(WinnerSayings[math.random(1,#WinnerSayings)],"All")
  67.                         for i,v in pairs(ActivatorClicky) do
  68.                             for i,v in pairs(getconnections(bingobutton[v])) do
  69.                                 v:Fire()
  70.                             end
  71.                         end
  72.                         print(v.Text)
  73.                     end
  74.                 end)
  75.             end
  76.         end
  77.        
  78.     end
  79. end)
  80.  
  81. function FindNewServer()
  82.     if syn.queue_on_teleport then
  83.         syn.queue_on_teleport('game:GetService("ReplicatedFirst"):RemoveDefaultLoadingScreen()')
  84.         local loadstringy = "https://pastebin.com/raw/7Fck9FRt"
  85.         syn.queue_on_teleport('loadstring(game:HttpGet("'..loadstringy..'"))()')
  86.     end
  87.     local GUIDs = {}
  88.     local maxPlayers = 70
  89.     local minPlayers = 20
  90.     local pagesToSearch = 100
  91.     local Http = game:GetService("HttpService"):JSONDecode(game:HttpGet("https://games.roblox.com/v1/games/"..game.PlaceId.."/servers/Public?sortOrder=Asc&limit=100&cursor="))
  92.     for i = 1,pagesToSearch do
  93.         for i,v in pairs(Http.data) do
  94.             if v.playing <= v.maxPlayers and v.playing >= minPlayers and v.id ~= game.JobId then
  95.                 maxPlayers = v.maxPlayers
  96.                 table.insert(GUIDs, {id = v.id, users = v.playing})
  97.             end
  98.         end
  99.         if Http.nextPageCursor ~= null then Http = game:GetService("HttpService"):JSONDecode(game:HttpGet("https://games.roblox.com/v1/games/"..game.PlaceId.."/servers/Public?sortOrder=Asc&limit=100&cursor="..Http.nextPageCursor)) else break end
  100.     end
  101.     game:GetService("TeleportService"):TeleportToPlaceInstance(game.PlaceId, GUIDs[math.random(1,#GUIDs)].id, LPlayer)
  102. end
  103.  
  104. Players.LocalPlayer.Idled:Connect(function()
  105.     game:GetService("VirtualUser"):Button2Down(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  106.     wait()
  107.     game:GetService("VirtualUser"):Button2Up(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  108. end)
  109.  
  110. spawn(function() loadstring(game:HttpGet("https://raw.githubusercontent.com/Curvn/bingobot/main/TimeServer.lua"))() end)
  111.  
  112. wait(1)
  113. CoreGui.RobloxGui:WaitForChild("TimeServer")
  114. local Guis = {TimeServer = CoreGui.RobloxGui.TimeServer.ScrollComplex.header}
  115. wait(1)
  116. CoreGui.RobloxGui.TimeServer:TweenPosition(UDim2.new(0.92, 0, 0.91, 0), "In", "Quint", 1)
  117. wait(2.5)
  118.  
  119. spawn(function()
  120.     for i = 0, 60 do
  121.         Guis.TimeServer.Text = tostring(60 - i)
  122.         wait(60)
  123.     end
  124.     FindNewServer()
  125. end)
  126.  
  127. repeat wait(5)
  128.     if #Players:GetPlayers() < 20 then
  129.         FindNewServer()
  130.     end
  131. until nil
Add Comment
Please, Sign In to add comment