Advertisement
NinoLelis

ShovelWare's Brain Game Auto Win Script

Mar 23rd, 2023
4,972
1
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.58 KB | Gaming | 1 0
  1. --[[
  2. MODIFIED BY BRICKMANE (Cospiracy#5570)
  3. Original Author: SleepyLuc
  4. Author's Vermillion profile link: https://v3rmillion.net/member.php?action=profile&uid=2272275
  5. ]]
  6. local player = game.Players.LocalPlayer
  7. local http = game:GetService("HttpService")
  8. local url = "https://sleepylucapis.herokuapp.com/shovelware"
  9. local answers
  10. local question
  11. answers = http:JSONDecode(game:HttpGet(url.."?file=json"))
  12. player.PlayerGui.menusAndHud.sidebar.joinGame:GetPropertyChangedSignal("Visible"):Connect(function()
  13. if player.PlayerGui.menusAndHud.sidebar.joinGame.Visible then
  14. firesignal(player.PlayerGui.menusAndHud.sidebar.joinGame.TextButton.MouseButton1Click)
  15. end
  16. end)
  17. player.PlayerGui.ChildAdded:Connect(function(UI)
  18. if UI.Name == "questionUI" then
  19. question = UI.q.TextLabel.Text
  20. local option
  21. if question == "Which country does this flag belong to?" then
  22. local flag = workspace.gameshowHost.npc_boardy.boardyScreen.boardyScreen.ImageButton.TextLabel.Text
  23. local flags = {
  24. ["??"] = "Antarctica",
  25. ["??"] = "Argentina",
  26. ["??"] = "Czech Republic",
  27. }
  28. local answer = flags[flag]
  29. if answer then
  30. for _, v in pairs(UI.choices:GetChildren()) do
  31. if v.Value == answer then
  32. option = v.Name
  33. end
  34. end
  35. end
  36. elseif answers[UI.q.TextLabel.Text] then
  37. for _, v in pairs(UI.choices:GetChildren()) do
  38. if v.Value == answers[UI.q.TextLabel.Text] then
  39. option = v.Name
  40. end
  41. end
  42. end
  43. if option then
  44. warn("answer : " .. tostring(option), "Name: " .. UI.options:WaitForChild(option).TextButton.TextLabel.Text)
  45. task.wait(math.random(.8, 3))
  46. firesignal(UI.options:WaitForChild(option).TextButton.MouseButton1Click)
  47. end
  48. elseif UI.Name == "revealUI" then
  49. if not answers[question] then
  50. answers[question] = UI.correct.Value
  51. local post = request({
  52. ["Url"] = url,
  53. ["Method"] = "POST",
  54. ["Headers"] = {
  55. ["Content-Type"] = "application/json"
  56. },
  57. ["Body"] = http:JSONEncode(answers)
  58. })
  59. answers = http:JSONDecode(post["Body"])
  60. end
  61. elseif UI.Name == "categoryChoose" then
  62. local choices = UI.choices:GetChildren()
  63. task.wait(.6)
  64. firesignal(UI:WaitForChild(choices[math.random(1, #choices)].Value).TextButton.MouseButton1Click)
  65. end
  66. end)
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement