brianops1

WrdBomb

Jan 24th, 2020
3,537
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 13.10 KB | None | 0 0
  1. --https://www.roblox.com/games/2653064683/Word-Bomb-BETA
  2.  
  3. --Made by brianops1
  4.  
  5. local ver = "5.2"
  6.  
  7. --https://detourious.gitbook.io/project-finity/docs
  8. if game:GetService("CoreGui"):FindFirstChild("FinityUI") then
  9.     game.CoreGui.FinityUI:Destroy()
  10.     _G.Reset = true
  11.     wait(.5)
  12. end
  13. _G.Reset = false
  14. local desc = ver
  15. local plr = game.Players.LocalPlayer
  16. local Finity = loadstring(game:HttpGet("http://finity.vip/scripts/finity_lib.lua"))()
  17. local FinityWindow = Finity.new(true)
  18. FinityWindow.ChangeToggleKey(Enum.KeyCode.Semicolon)
  19. local CreditsCategory = FinityWindow:Category("Credits/Info")
  20. local CreditsCreator = CreditsCategory:Sector("Finity Library Creator:")
  21. local ScriptCredit = CreditsCategory:Sector("Cheat Credit:")
  22. local Description = CreditsCategory:Sector("Description:")
  23. local OC = CreditsCategory:Sector("Open Close Button:")
  24. CreditsCreator:Cheat("Label", "detourious @ v3rmillion.net")
  25. ScriptCredit:Cheat("Label", "brianops16 @ v3rmillion.net")
  26. Description:Cheat("Label", desc)
  27. local Cheats = FinityWindow:Category("Cheats")
  28. local S1 = Cheats:Sector("Auto Cheats")
  29. local EnumKeys = {'Semicolon','Tab','Equals','Comma','Minus','Period','F1',"F2","F3","F4",'F5',"F6","F7",
  30. "F8","F9","F10","F11","F12",'Q', 'W', 'E', 'R', 'T', 'Y', 'U', 'I', 'O', 'P', 'A', 'S', 'D', 'F', 'G', 'H',
  31.  'J', 'K', 'L', 'Z', 'X', 'C', 'V', 'B', 'N', 'M','Slash','One','Two','Three',"Four","Five","Six","Seven","Eight",
  32.  "Nine","Zero",'BackSlash','RightBracket','LeftBracket'}
  33. local WordBombKeys = {'Comma','Period','BackSlash','RightBracket','LeftBracket'}
  34. OC:Cheat("Dropdown", "(Default ';')", function(Option) --Dropdowns
  35.   print('Current key: '..Option)
  36.     FinityWindow.ChangeToggleKey(Enum.KeyCode[Option])
  37. end, {
  38.     options = EnumKeys
  39. })
  40. loadstring(game:HttpGet("https://pastebin.com/raw/iAfarbPF",true))()
  41.  
  42. ----------Load Words-----------
  43.  
  44. --Vars--
  45.  
  46. local contracted = ""
  47.  
  48. --Functions/code--
  49.  
  50. print('Loading english words')
  51.  
  52. function load(org,tbl)
  53.     for i,v in pairs(tbl) do
  54.         if not string.find(contracted,v) then
  55.             table.insert(org,v)
  56.         end
  57.     end
  58. end
  59.  
  60. local a = http_request({["Url"] = "https://pastebin.com/raw/aUD58y32"})
  61. print(_G.ENGLISH_WORDS)
  62.  
  63. if not _G.ENGLISH_WORDS then
  64.     if pcall(function()
  65.         loadstring(http_request({["Url"] = "https://pastebin.com/raw/aUD58y32"}).Body)()
  66.     end) then
  67.         print('Using faster load method')
  68.         loadstring(http_request({["Url"] = "https://pastebin.com/raw/Bj97ZwPp"}).Body)()
  69.         loadstring(http_request({["Url"] = "https://pastebin.com/raw/jNWum66L"}).Body)()
  70.         loadstring(http_request({["Url"] = "https://pastebin.com/raw/9GdmNVrc"}).Body)()
  71.         loadstring(http_request({["Url"] = "https://pastebin.com/raw/izGHZLha"}).Body)()
  72.         loadstring(http_request({["Url"] = "https://pastebin.com/raw/PFHG47S2"}).Body)()
  73.         loadstring(http_request({["Url"] = "https://pastebin.com/raw/HPZswDsv"}).Body)()
  74.         loadstring(http_request({["Url"] = "https://pastebin.com/raw/tKpFPgzj"}).Body)()
  75.         loadstring(http_request({["Url"] = "https://pastebin.com/raw/9uHe83wS"}).Body)()
  76.         loadstring(http_request({["Url"] = "https://pastebin.com/raw/zKJEWmk5"}).Body)()
  77.         loadstring(http_request({["Url"] = "https://pastebin.com/raw/RRaxmXev"}).Body)()
  78.         loadstring(http_request({["Url"] = "https://pastebin.com/raw/RCLRrYMY"}).Body)()
  79.         loadstring(http_request({["Url"] = "https://pastebin.com/raw/d8msLPTc"}).Body)()
  80.         loadstring(http_request({["Url"] = "https://pastebin.com/raw/cksJgkPQ"}).Body)()
  81.         loadstring(http_request({["Url"] = "https://pastebin.com/raw/a3d5AHwS"}).Body)()
  82.         loadstring(http_request({["Url"] = "https://pastebin.com/raw/idcpdyPV"}).Body)()
  83.         loadstring(http_request({["Url"] = "https://pastebin.com/raw/cQgezry1"}).Body)()
  84.         loadstring(http_request({["Url"] = "https://pastebin.com/raw/NKKaNuX9"}).Body)()
  85.         loadstring(http_request({["Url"] = "https://pastebin.com/raw/YSi13Rna"}).Body)()
  86.         loadstring(http_request({["Url"] = "https://pastebin.com/raw/AKKzxs1Q"}).Body)()
  87.         loadstring(http_request({["Url"] = "https://pastebin.com/raw/q9md57vv"}).Body)()
  88.     else
  89.         print('Using slower load method')
  90.         loadstring(game:HttpGet("https://pastebin.com/raw/aUD58y32",true))()--english words
  91.         loadstring(game:HttpGet("https://pastebin.com/raw/Bj97ZwPp",true))()--tbl1
  92.         loadstring(game:HttpGet("https://pastebin.com/raw/jNWum66L",true))()--tbl2
  93.         loadstring(game:HttpGet("https://pastebin.com/raw/9GdmNVrc",true))()--tbl3
  94.         loadstring(game:HttpGet("https://pastebin.com/raw/izGHZLha",true))()--tbl5
  95.         loadstring(game:HttpGet("https://pastebin.com/raw/PFHG47S2",true))()--tbl4
  96.         loadstring(game:HttpGet("https://pastebin.com/raw/HPZswDsv",true))()--tbl6
  97.         loadstring(game:HttpGet("https://pastebin.com/raw/tKpFPgzj",true))()--tbl7
  98.         loadstring(game:HttpGet("https://pastebin.com/raw/9uHe83wS",true))()--tbl8
  99.         loadstring(game:HttpGet("https://pastebin.com/raw/zKJEWmk5",true))()--tbl9
  100.         loadstring(game:HttpGet("https://pastebin.com/raw/RRaxmXev",true))()--tbl10
  101.         loadstring(game:HttpGet("https://pastebin.com/raw/RCLRrYMY",true))()--tbl11
  102.         loadstring(game:HttpGet("https://pastebin.com/raw/d8msLPTc",true))()--tbl12
  103.         loadstring(game:HttpGet("https://pastebin.com/raw/cksJgkPQ",true))()--tbl13
  104.         loadstring(game:HttpGet("https://pastebin.com/raw/a3d5AHwS",true))()--tbl14
  105.         loadstring(game:HttpGet("https://pastebin.com/raw/idcpdyPV",true))()--tbl15
  106.         loadstring(game:HttpGet("https://pastebin.com/raw/cQgezry1",true))()--tbl16
  107.         loadstring(game:HttpGet("https://pastebin.com/raw/NKKaNuX9",true))()--tbl17
  108.         loadstring(game:HttpGet("https://pastebin.com/raw/YSi13Rna",true))()--tbl18
  109.         loadstring(game:HttpGet("https://pastebin.com/raw/AKKzxs1Q",true))()--tbl19
  110.         loadstring(game:HttpGet("https://pastebin.com/raw/q9md57vv",true))()--tbl20
  111.     end
  112.     print('contracting')
  113.     contracted = table.concat(_G.ENGLISH_WORDS," ")
  114.     load(_G.ENGLISH_WORDS,Tbl1)
  115.     contracted = table.concat(_G.ENGLISH_WORDS," ")
  116.     load(_G.ENGLISH_WORDS,Tbl2)
  117.     contracted = table.concat(_G.ENGLISH_WORDS," ")
  118.     load(_G.ENGLISH_WORDS,Tbl3)
  119.     contracted = table.concat(_G.ENGLISH_WORDS," ")
  120.     load(_G.ENGLISH_WORDS,Tbl5)
  121.     contracted = table.concat(_G.ENGLISH_WORDS," ")
  122.     load(_G.ENGLISH_WORDS,Tbl4)
  123.     contracted = table.concat(_G.ENGLISH_WORDS," ")
  124.     load(_G.ENGLISH_WORDS,Tbl6)
  125.     contracted = table.concat(_G.ENGLISH_WORDS," ")
  126.     load(_G.ENGLISH_WORDS,Tbl7)
  127.     contracted = table.concat(_G.ENGLISH_WORDS," ")
  128.     load(_G.ENGLISH_WORDS,Tbl8)
  129.     contracted = table.concat(_G.ENGLISH_WORDS," ")
  130.     load(_G.ENGLISH_WORDS,Tbl9)
  131.     contracted = table.concat(_G.ENGLISH_WORDS," ")
  132.     load(_G.ENGLISH_WORDS,Tbl10)
  133.     contracted = table.concat(_G.ENGLISH_WORDS," ")
  134.     load(_G.ENGLISH_WORDS,Tbl11)
  135.     contracted = table.concat(_G.ENGLISH_WORDS," ")
  136.     load(_G.ENGLISH_WORDS,Tbl12)
  137.     contracted = table.concat(_G.ENGLISH_WORDS," ")
  138.     load(_G.ENGLISH_WORDS,Tbl13)
  139.     contracted = table.concat(_G.ENGLISH_WORDS," ")
  140.     load(_G.ENGLISH_WORDS,Tbl14)
  141.     contracted = table.concat(_G.ENGLISH_WORDS," ")
  142.     load(_G.ENGLISH_WORDS,Tbl15)
  143.     contracted = table.concat(_G.ENGLISH_WORDS," ")
  144.     load(_G.ENGLISH_WORDS,Tbl16)
  145.     contracted = table.concat(_G.ENGLISH_WORDS," ")
  146.     load(_G.ENGLISH_WORDS,Tbl17)
  147.     contracted = table.concat(_G.ENGLISH_WORDS," ")
  148.     load(_G.ENGLISH_WORDS,Tbl18)
  149.     contracted = table.concat(_G.ENGLISH_WORDS," ")
  150.     load(_G.ENGLISH_WORDS,Tbl19)
  151.     contracted = table.concat(_G.ENGLISH_WORDS," ")
  152.     load(_G.ENGLISH_WORDS,Tbl20)
  153. end
  154.  
  155. ----------Main Code-----------
  156.  
  157. --Vars--
  158.  
  159. print('Loading Variables')
  160.  
  161. WordTime = true
  162. CPM = 260
  163. CPS = CPM / 60
  164. MinWordLen = 0
  165. ManualKey = 'Comma'
  166. WordLenMax = 7
  167. ThinkingTime = 1.5
  168. MissChance = 50
  169. UnfairMode = false
  170. _G.on = 0
  171. local BigM = false
  172. local Qwerty = "qwertyuiopasdfghjklzxcvbnmqwertyuiop"
  173. local Player = game:GetService('Players').LocalPlayer
  174. local UIS = game:GetService('UserInputService')
  175. local PlayerGui = Player:WaitForChild('PlayerGui')
  176. local PC = PlayerGui["GameUI"]["Container"]["GameSpace"]["DefaultUI"]:FindFirstChild("GameContainer")
  177. repeat wait() PC = PlayerGui["GameUI"]["Container"]["GameSpace"]["DefaultUI"]:FindFirstChild("GameContainer") until PC
  178. wait(.2)
  179. local SubtitleUI = PC["DesktopContainer"]["InfoFrameContainer"]["InfoFrame"]["Subtitle"]
  180. local Typebar = PC["DesktopContainer"]["Typebar"]
  181. local NotUsed = _G.ENGLISH_WORDS
  182. local PrevHelp = ""
  183. local subtitle = nil
  184. local Chatbox = PlayerGui["GameUI"]["Container"]["SideContainer"]["ChatContainer"]["ChatUI"]["Chatbox"]["MessageContainer"]["Textbox"]
  185.  
  186. --MainStuff--
  187.  
  188. print('Loading Functions')
  189.  
  190. function AddKey(key,box,c)
  191.     if c > 95 then
  192.         local bef = box.Text
  193.         local p = string.find(Qwerty,key)
  194.         box.Text = box.Text .. string.sub(Qwerty,p+1,p+1)
  195.         wait(math.random(60,140) / 1000)
  196.         box.Text = bef
  197.         box.Text = box.Text .. key
  198.     else
  199.         box.Text = box.Text .. key
  200.     end
  201. end
  202.  
  203. function Sub()
  204.     local PC = PlayerGui["GameUI"]["Container"]["GameSpace"]["DefaultUI"]:WaitForChild("GameContainer")
  205.     local S = ""
  206.     local stuff = PC["DesktopContainer"]["InfoFrameContainer"]["InfoFrame"]["TextFrame"]:GetChildren()
  207.     if PC then
  208.         for i,v in pairs(stuff) do
  209.             if v:IsA("Frame") and v:FindFirstChild("Letter") and v.Letter.ImageColor3 ~= Color3.new(1,1,1) then
  210.                 S = S .. v.Letter.TextLabel.Text
  211.             end
  212.         end
  213.         return S
  214.     elseif not PC then
  215.         return nil
  216.     end
  217. end
  218.  
  219. function Typeit(text,miss,thing)
  220.   local Len = (#text / CPS)
  221.   local Max = Len / #text
  222.   local WT = 0
  223.   local Prev = 0
  224.   local fast = false
  225.     for i = 1,#text do
  226.         if miss and i == #text then
  227.             local aaa = math.random(1,20)
  228.             thing.Text = thing.Text..string.sub(Qwerty,aaa,aaa)
  229.         else
  230.             local char = string.sub(text,i,i)
  231.         if math.random(1,2) == 1 and not fast then
  232.           WT = Max / (math.random(200,400) / 100)
  233.           Prev = WT
  234.           fast = true
  235.         else
  236.           fast = false
  237.           WT = Prev + Max
  238.           Prev = 0
  239.         end
  240.             wait(WT)
  241.             AddKey(char,thing,math.random(1,100))
  242.         end
  243.     end
  244.     wait(.1)
  245. end
  246.  
  247. function Submit(Text,miss)
  248.     local PC = PlayerGui["GameUI"]["Container"]["GameSpace"]["DefaultUI"]:WaitForChild("GameContainer")
  249.     if PC then
  250.         local SubtitleUI = PC["DesktopContainer"]["InfoFrameContainer"]["InfoFrame"]["Subtitle"]
  251.         local Typebar = PC["DesktopContainer"]["Typebar"]
  252.         local Bar = Typebar:findFirstChild('Typebox')
  253.         if UnfairMode then
  254.             Bar.Text = Text
  255.         else
  256.             Typeit(Text,miss,Bar)
  257.         end
  258.         Bar:ReleaseFocus()
  259.         if not pcall(function()
  260.             syn_keypress(0x0D)
  261.         end) then
  262.             pcall(function()
  263.                 Input.KeyPress(0x0D)
  264.             end)
  265.         end
  266.         if miss then
  267.             wait(math.random(.6,2))
  268.             Submit(Text,false)
  269.         end
  270.     end
  271. end
  272.  
  273. function shuffle(t)
  274.   local tbl = {}
  275.   for i = 1, #t do
  276.     tbl[i] = t[i]
  277.   end
  278.   for i = #tbl, 2, -1 do
  279.     local j = math.random(i)
  280.     tbl[i], tbl[j] = tbl[j], tbl[i]
  281.   end
  282.   return tbl
  283. end
  284.  
  285. local mixedwords = shuffle(_G.ENGLISH_WORDS)
  286.  
  287. function findWord (str,HELP)
  288.     local found = nil
  289.     if HELP then
  290.         local mixedwords = shuffle(mixedwords)
  291.         local Max = math.random(3,7)
  292.         while Max < 30 do
  293.             for i,v in pairs (mixedwords) do
  294.                 if string.match(v, string.lower(str)) and #v <= Max and v ~= PrevHelp then
  295.                     PrevHelp = v
  296.                     return v
  297.                 end
  298.             end
  299.             game:GetService('RunService').Stepped:wait()
  300.             Max = Max + 1
  301.         end
  302.         return nil
  303.     end
  304.     NotUsed = shuffle(NotUsed)
  305.     local miss = false
  306.     if MissChance > 0 then
  307.         miss = MissChance > math.random(1,100)
  308.     else
  309.         miss = false
  310.     end
  311.     if not Checks then
  312.         local Max = 1
  313.         while Max < 30 do
  314.             for i,v in pairs (NotUsed) do
  315.                 if string.match(v, string.lower(str)) and #v <= Max then
  316.                     found = v
  317.                     table.remove(NotUsed,i)
  318.                     Max = 60
  319.                     break
  320.                 end
  321.             end
  322.             game:GetService('RunService').Stepped:wait()
  323.             Max = Max + 1
  324.         end
  325.     elseif Checks then
  326.         for i,v in pairs (NotUsed) do
  327.             if string.match(v, string.lower(str)) and #v <= WordLenMax and #v >= MinWordLen then
  328.                 found = v
  329.                 table.remove(NotUsed,i)
  330.                 break
  331.             end
  332.         end
  333.     end
  334.     if not found then
  335.         print('uhoh, a word could not be found')
  336.         wait(1)
  337.     end
  338.     return found,miss
  339. end
  340.  
  341.  
  342. local con = UIS.InputBegan:Connect(function(inp,_)
  343.     if BigM and inp.KeyCode.Name == ManualKey then
  344.         local Answer = findWord(Sub(),false)
  345.         if Answer then
  346.             print(Answer)
  347.             Submit(Answer,false)
  348.         else
  349.             print('No answer found, big oof')
  350.         end
  351.     end
  352. end)
  353.  
  354. -------------------------------------------------------------------------
  355.  
  356. S1:Cheat("Checkbox","Auto",
  357. function(State)
  358.     if not State then
  359.         _G.on = 0
  360.     else
  361.         _G.on = 1
  362.         while _G.on == 1 do
  363.             game:GetService('RunService').Stepped:wait()
  364.             local PC = PlayerGui["GameUI"]["Container"]["GameSpace"]["DefaultUI"]:FindFirstChild("GameContainer")
  365.             if PC then
  366.                 local Typebar = PC["DesktopContainer"]["Typebar"]
  367.                 if Typebar and Typebar:findFirstChild('Typebox'):IsFocused() then
  368.                     wait(.1)
  369.                     subtitle = Sub()
  370.                     if subtitle then
  371.                         local Word,miss = findWord(subtitle)
  372.                         if Word and not miss and string.find(Word, string.lower(subtitle)) then
  373.                             print(Word)
  374.                             if not UnfairMode then
  375.                                     wait(ThinkingTime)
  376.                             end
  377.                             Submit(Word,miss)
  378.                             wait(.1)
  379.                         elseif miss then
  380.                             print('Miss '..Word)
  381.                             if not UnfairMode then
  382.                                 wait(ThinkingTime)
  383.                             end
  384.                             Submit(Word,miss)
  385.                             wait(.1)
  386.                         end
  387.                     end
  388.                 end
  389.             else
  390.                 NotUsed = _G.ENGLISH_WORDS
  391.                 wait()
  392.             end
  393.         end
  394.     end
  395. end
  396. )
  397.  
  398.  
  399.  
  400. S1:Cheat("Checkbox","Manual",
  401. function(State)
  402.     if not State then
  403.         BigM = false
  404.     else
  405.         BigM = true
  406.     end
  407. end
  408. )
  409.  
  410. S1:Cheat("Dropdown", "Manual Key", function(Option) --Dropdowns
  411.   print('Current manual key: '..Option)
  412.     ManualKey = Option
  413. end, {
  414.     options = WordBombKeys
  415. })
  416.  
  417. S1:Cheat("Button", "Help Others", function() --Button
  418.     local Answer = findWord(Sub(),true)
  419.     if Answer then
  420.         print(Answer)
  421.         KeyDown("/")
  422.         wait()
  423.         KeyUp("/")
  424.         Chatbox.Text = Answer
  425.         wait()
  426.         KeyDown("ENTER")
  427.         wait()
  428.         KeyUp("ENTER")
  429.     else
  430.         print('No answer found, big oof')
  431.     end
  432. end)
  433.  
  434. S1:Cheat("Slider", "Thinking Time (Mid = 1.5)", function(Value)--Slider
  435.     ThinkingTime = tonumber(Value)
  436. end, {min = 0, max = 3, suffix = " seconds"})
  437.  
  438. S1:Cheat("Textbox", "CPM", function(Value) --Textbox
  439.     if not pcall(function()
  440.         CPM = tonumber(Value)
  441.         CPS = CPM / 60
  442.     end) then
  443.         CPM = 260
  444.         CPS = CPM / 60
  445.     end
  446. end, {
  447.     placeholder = "Char. per minute ("..CPM..")"
  448. })
  449.  
  450. S1:Cheat("Checkbox","CheckWordLengths",
  451. function(State)
  452.     if not State then
  453.         Checks = false
  454.     else
  455.         Checks = true
  456.     end
  457. end
  458. )
  459.  
  460. S1:Cheat("Textbox", "Max word length", function(Value) --Textbox
  461.     if not pcall(function()
  462.         WordLenMax = tonumber(Value)
  463.         if WordLenMax < 3 then
  464.             WordLenMax = 10
  465.         end
  466.     end) then
  467.         WordLenMax = 10
  468.     end
  469. end, {
  470.     placeholder = "Minimum of 3"
  471. })
  472.  
  473. S1:Cheat("Textbox", "Min word length", function(Value) --Textbox
  474.     if not pcall(function()
  475.         MinWordLen = tonumber(Value)
  476.         if MinWordLen < 1 then
  477.             MinWordLen = 1
  478.         end
  479.     end) then
  480.         MinWordLen = 1
  481.     end
  482. end, {
  483.     placeholder = "The min length ("..MinWordLen..")"
  484. })
  485.  
  486. S1:Cheat("Slider", "Miss Chance (Mid = 50)", function(Value)--Slider
  487.     MissChance = tonumber(Value)
  488. end, {min = 0, max = 100, suffix = "%"})
  489.  
  490. S1:Cheat("Checkbox","UnfairMode",
  491. function(State)
  492.     if not State then
  493.         UnfairMode = false
  494.     else
  495.         UnfairMode = true
  496.     end
  497. end
  498. )
  499.    
  500. print("\nVersion "..ver.." has been loaded\n"..#_G.ENGLISH_WORDS .." Words have been loaded")
  501.  
  502. while not _G.Reset do
  503.     wait(.2)
  504.     local PC = PlayerGui["GameUI"]["Container"]["GameSpace"]["DefaultUI"]:FindFirstChild("GameContainer")
  505.     if not PC then
  506.         NotUsed = _G.ENGLISH_WORDS
  507.     end
  508. end
  509.  
  510. print('Ending previous script')
  511.  
  512. if con then
  513.     pcall(function()
  514.         con:Disconnect()
  515.     end)
  516.     con = nil
  517. end
Add Comment
Please, Sign In to add comment