Xceislor

Bloxy Bingo Script Part 2

Dec 5th, 2021
657
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  1. local SubContainer = game:GetService("Players").LocalPlayer.PlayerGui.Bingo.StaticDisplayArea.Cards.PlayerArea.Cards.Container.SubContainer
  2.  
  3. function firebutton(button)
  4. if button ~= nil then
  5. for i,signal in pairs(getconnections(button.MouseButton1Click)) do
  6. signal:Fire()
  7. end
  8. for i,signal in pairs(getconnections(button.MouseButton1Down)) do
  9. signal:Fire()
  10. end
  11. for i,signal in pairs(getconnections(button.Activated)) do
  12. signal:Fire()
  13. end
  14. end
  15. end
  16.  
  17. while wait() do
  18. local Cards
  19.  
  20. if SubContainer:FindFirstChild("Blocks") then
  21. Cards = SubContainer.Blocks.Block
  22. else
  23. Cards = SubContainer.VerticalScroll.Cards
  24. end
  25.  
  26. local BingoButton = SubContainer.Buttons.ClaimButton
  27.  
  28. if Cards ~= nil and BingoButton ~= nil then
  29. for _, card in pairs(Cards:GetChildren()) do
  30. if card:IsA("Frame") then
  31. if card ~= nil and card:FindFirstChild("Content") ~= nil and card:FindFirstChild("Content"):FindFirstChild("Numbers") ~= nil then
  32. for _, button in pairs(card.Content.Numbers:GetChildren()) do
  33. firebutton(button)
  34. wait()
  35. end
  36.  
  37. if card ~= nil and card:FindFirstChild("ToGo") ~= nil then
  38. if card.ToGo.ToGoText.Text == "BINGO!" then
  39. firebutton(BingoButton)
  40. end
  41. end
  42. end
  43. end
  44. end
  45. end
  46. end
  47.  
Add Comment
Please, Sign In to add comment