Anonymouse10101

Another Booga Booga

Dec 11th, 2020
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.55 KB | None | 0 0
  1. local lib = loadstring(game:HttpGet("https://pastebin.com/raw/qwdPKKDN"))()
  2.  
  3. local booga = lib.new("BoogaX")
  4. local Local = booga:addPage("LocalPlayer", 5012544693)
  5. local auto = Local:addSection("Automation")
  6.  
  7. local getGlobal = function()
  8. for i, v in pairs(getrenv()) do
  9. if tostring(i) == "_G" then
  10. return v.SD[game.Players.LocalPlayer.UserId]
  11. end
  12. end
  13. end
  14.  
  15. local getMeds = function()
  16. for i, v in pairs(getGlobal().inventory) do
  17. for x, c in pairs(v) do
  18. if tostring(c) == "Medicine" then
  19. return i
  20. end
  21. end
  22. end
  23. return false
  24. end
  25.  
  26. local heal = false
  27. local hBelow = 20
  28. local healStart = function()
  29. heal = true
  30. spawn(function()
  31. while wait() do
  32. if not heal then
  33. return
  34. end
  35. if getMeds() then
  36. local max = getGlobal().stats.maxHealth
  37. local health = getGlobal().stats.health
  38. if health < (max - hBelow) then
  39. local EatInventoryItem = game:GetService("ReplicatedStorage").Relay.Inventory.EatInventoryItem
  40. EatInventoryItem:FireServer(getMeds())
  41. wait(1)
  42. end
  43. end
  44. end
  45. end)
  46. end
  47.  
  48. auto:addToggle("Auto-heal", nil, function(bool)
  49. if bool then
  50. return healStart()
  51. end
  52. heal = false
  53. end)
  54.  
  55. auto:addSlider("Heal after 20 HP loss", 20, 1, 50, function(v)
  56. hBelow = v
  57. auto:updateSlider(auto.modules[2], "Heal after "..v.." HP loss", v, 1, 50)
  58. end)
  59.  
  60. -- End of auto-heal
  61. local plantgrab = false
  62. local pFrequency = 1
  63. local plantGrab = function()
  64. plantgrab = true
  65. spawn(function()
  66. while wait() do
  67. if not plantgrab then
  68. return
  69. end
  70. for i, v in pairs(game.Workspace.Deployables:GetChildren()) do
  71. if v.Name == "Plant Box" and v.Grown:GetChildren()[1] then
  72. local HR = game.Players.LocalPlayer.Character.HumanoidRootPart.Position
  73. local PT = v.Grown:GetChildren()[1]:FindFirstChildOfClass("Part").Position
  74. local Mag = (HR - PT).magnitude
  75. if Mag < 25 then
  76. wait(pFrequency)
  77. local Pickup = game:GetService("ReplicatedStorage").Relay.Pickup
  78. Pickup:FireServer(v.Grown:GetChildren()[1])
  79. end
  80. end
  81. end
  82. end
  83. end)
  84. end
  85.  
  86. auto:addToggle("Auto-grab plants from boxes", nil, function(bool)
  87. if bool then
  88. return plantGrab()
  89. end
  90. plantgrab = false
  91. end)
  92.  
  93. auto:addSlider("Grab every 1 second(s)", 1, 0, 10, function(v)
  94. pFrequency = v
  95. auto:updateSlider(auto.modules[4], "Grab every "..v.." second(s)", v, 0, 10)
  96. if platgrab then
  97. plantgrab = false
  98. plantGrab()
  99. end
  100. end)
  101. -- End of plants grabber
  102. local combat = Local:addSection("Combat")
  103.  
  104. local getClosest = function()
  105. local Players = game.Players
  106. local LocalPlayer = Players.LocalPlayer
  107. local Character = LocalPlayer.Character
  108. local HumanoidRootPart = Character and Character:FindFirstChild("HumanoidRootPart")
  109. if not (Character or HumanoidRootPart) then
  110. return
  111. end
  112. local TargetDistance = math.huge
  113. local Target
  114. for i, v in ipairs(Players:GetPlayers()) do
  115. if v ~= LocalPlayer and v.Character and v.Character:FindFirstChild("HumanoidRootPart") then
  116. local TargetHRP = v.Character.HumanoidRootPart
  117. local mag = (HumanoidRootPart.Position - TargetHRP.Position).magnitude
  118. if mag < TargetDistance then
  119. TargetDistance = mag
  120. Target = v
  121. end
  122. end
  123. end
  124. return Target
  125. end
  126.  
  127. local crender = false
  128. local kill = false
  129. local startKill = function()
  130. kill = true
  131. spawn(function()
  132. if not crender then
  133. while wait() do
  134. if not kill then
  135. return
  136. end
  137. local HR = game.Players.LocalPlayer.Character.HumanoidRootPart.Position
  138. local CL = getClosest()
  139. local PT = CL.Character.HumanoidRootPart.Position
  140. if (HR - PT).magnitude < 5 then
  141. local wChar = game.Workspace[CL.Name]
  142. local SwingTool = game:GetService("ReplicatedStorage").Relay.SwingTool
  143. SwingTool:FireServer({
  144. wChar.Head
  145. })
  146. end
  147. end
  148. else
  149. game:GetService("RunService").Stepped:connect(function()
  150. if not kill then
  151. return
  152. end
  153. local HR = game.Players.LocalPlayer.Character.HumanoidRootPart.Position
  154. local CL = getClosest()
  155. local PT = CL.Character.HumanoidRootPart.Position
  156. if (HR - PT).magnitude < 5 then
  157. local wChar = game.Workspace[CL.Name]
  158. local SwingTool = game:GetService("ReplicatedStorage").Relay.SwingTool
  159. SwingTool:FireServer({
  160. wChar.Head
  161. })
  162. end
  163. end)
  164. end
  165. end)
  166. end
  167.  
  168. combat:addToggle("Kill-aura", nil, function(bool)
  169. if bool then
  170. return startKill()
  171. end
  172. kill = false
  173. end)
  174.  
  175. combat:addToggle("RenderStepped Kill-aura", false, function(bool)
  176. crender = bool
  177. if kill then
  178. kill = false
  179. startKill()
  180. end
  181. end)
  182. -- End of kill-aura
  183. local autoeat = false
  184. local ethreshold = 80
  185. local gfoods = {}
  186. for i, v in pairs(require(game.ReplicatedStorage.Modules.EntityData.Food)) do
  187. if i ~= "Medicine" then
  188. table.insert(gfoods, i)
  189. end
  190. end
  191.  
  192. local getFoods = function()
  193. local foods = {}
  194. for i, v in pairs(getGlobal().inventory) do
  195. for x, c in pairs(v) do
  196. if table.find(gfoods, tostring(c)) then
  197. table.insert(foods, c)
  198. end
  199. end
  200. end
  201. return foods
  202. end
  203.  
  204. local getFoodValue = function(n)
  205. for i, v in pairs(require(game.ReplicatedStorage.Modules.EntityData.Food)) do
  206. if tostring(i) == n then
  207. return v.nourishment.food
  208. end
  209. end
  210. end
  211.  
  212. local getHighestValuedFood = function(f)
  213. local Highest = 0
  214. local Food
  215. for i, v in pairs(getFoods()) do
  216. if getFoodValue(v) > Highest then
  217. Highest = getFoodValue(v)
  218. Food = v
  219. end
  220. end
  221. return Food
  222. end
  223.  
  224. local findFoodInv = function(f)
  225. for i, v in pairs(getGlobal().inventory) do
  226. for x, c in pairs(v) do
  227. if tostring(c) == tostring(f) then
  228. return i
  229. end
  230. end
  231. end
  232. return false
  233. end
  234.  
  235. local startEating = function()
  236. autoeat = true
  237. spawn(function()
  238. while wait(1) do
  239. if not autoeat then
  240. return
  241. end
  242. if getGlobal().stats.food < ethreshold then
  243. local EatInventoryItem = game:GetService("ReplicatedStorage").Relay.Inventory.EatInventoryItem
  244. EatInventoryItem:FireServer(findFoodInv(getHighestValuedFood()))
  245. end
  246. end
  247. end)
  248. end
  249.  
  250. auto:addToggle("Auto-eat", nil, function(bool)
  251. if bool then
  252. return startEating()
  253. end
  254. autoeat = false
  255. end)
  256.  
  257. auto:addSlider("Eat at 80 hunger", 80, 5, 90, function(v)
  258. ethreshold = v
  259. auto:updateSlider(auto.modules[6], "Eat at "..v.." hunger", v, 5, 90)
  260. if autoeat then
  261. autoeat = false
  262. startEating()
  263. end
  264. end)
  265. -- End of autoeat
  266. local autopick = false
  267. local autodis = 5
  268. local pickupspeed = 1
  269. local pickup = function()
  270. autopick = true
  271. spawn(function()
  272. while wait() do
  273. if not autopick then
  274. return
  275. end
  276. for i, v in pairs(game.Workspace.ItemDrops:GetChildren()) do
  277. if v:FindFirstChild("Pickup") then
  278. wait(tonumber("."..pickupspeed))
  279. local HR = game.Players.LocalPlayer.Character.HumanoidRootPart.Position
  280. local PR = v.Position
  281. if ((HR - PR).magnitude) < autodis then
  282. local Pickup = game:GetService("ReplicatedStorage").Relay.Pickup
  283. Pickup:FireServer(v)
  284. end
  285. end
  286. end
  287. end
  288. end)
  289. end
  290.  
  291. auto:addToggle("Auto-pickup", nil, function(bool)
  292. if bool then
  293. return pickup()
  294. end
  295. autopick = false
  296. end)
  297.  
  298. auto:addSlider("Max distance", 5, 1, 25, function(v)
  299. autodis = v
  300. end)
  301.  
  302. auto:addSlider("Pickup speed (.1 seconds)", 1, 0, 9, function(v)
  303. pickupspeed = v
  304. auto:updateSlider(auto.modules[9], "Pickup speed (."..v.." seconds)", v, 0, 9)
  305. end)
  306. -- End of AutoPickup BTW [9] on slider here
  307. local plantc = false
  308. local pname = ""
  309. local findInv = function(n)
  310. for i, v in pairs(getGlobal().inventory) do
  311. for x, c in pairs(v) do
  312. if tostring(c) == n then
  313. return i
  314. end
  315. end
  316. end
  317. return false
  318. end
  319.  
  320. local startPlanting = function()
  321. spawn(function()
  322. plantc = true
  323. while wait(0.1) do
  324. if not plantc then
  325. return
  326. end
  327. for i, v in pairs(game.Workspace.Deployables:GetChildren()) do
  328. if v.Name == "Plant Box" then
  329. local HP = game.Players.LocalPlayer.Character.HumanoidRootPart.Position
  330. local PT = v:FindFirstChild("Part").Position
  331. if (HP - PT).magnitude < 5 and not v.Grown:GetChildren()[1] and findInv(pname) then
  332. local SID = v.Structure_ID.Value
  333. local InputStructure = game:GetService("ReplicatedStorage").Relay.Structures.InputStructure
  334. local inInv = findInv(pname)
  335. InputStructure:FireServer(SID, inInv, v)
  336. wait(0.1)
  337. end
  338. end
  339. end
  340. end
  341. end)
  342. end
  343.  
  344. auto:addToggle("Auto-plant", nil, function(bool)
  345. if bool then
  346. return startPlanting()
  347. end
  348. plantc = bool
  349. end)
  350.  
  351. auto:addTextbox("Plant name", "None", function(t, f)
  352. if f then
  353. pname = t
  354. end
  355. end)
  356. -- End of autoplant
  357.  
  358. booga:SelectPage(booga.pages[1], true)
Add Comment
Please, Sign In to add comment