sucksuck

Untitled

Nov 27th, 2023
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.98 KB | None | 0 0
  1. --- Tables, Functions & Variables ---
  2. Brew = {
  3. ["Services"] = {
  4. ["Players"] = game:GetService("Players"),
  5. ["SoundService"] = game:GetService("SoundService"),
  6. ["ReplicatedStorage"] = game:GetService("ReplicatedStorage"),
  7. ["HttpService"] = game:GetService("HttpService"),
  8. ["UserInputService"] = game:GetService("UserInputService"),
  9.  
  10. -- Other --
  11. ['gameName'] = game:GetService("MarketplaceService"):GetProductInfo(game.PlaceId).Name
  12. },
  13.  
  14. ["Reach"] = {
  15. ["Enabled"] = false, -- Self-Explanatory
  16. ["Magnitude"] = Vector3.new(1, 0.800000011920929, 4), -- Magnitude of the Reach
  17. ["Method"] = "Spoof", -- Reaching Method (Spoofing, Extension)
  18. ["SelectionBox"] = false, -- Enable or Disable Visuals
  19. ["SelectionBoxMethod"] = "Box",
  20. ["SelectionBoxColor"] = Color3.fromRGB(0,0,0) -- Color of the Visual Box
  21. },
  22.  
  23. ["Character"] = {
  24. ["cWalkspeed"] = 16,
  25. ["cJumppower"] = 50,
  26. ["Spin"] = false
  27. },
  28.  
  29. ["Features"] = {
  30. ["StaffDetection"] = true,
  31. ["Autoclick"] = false
  32. },
  33.  
  34. ["Libraries"] = {
  35. ["Notifications"] = loadstring(game:HttpGet("https://raw.githubusercontent.com/Kinlei/Dynissimo/main/Scripts/AkaliNotif.lua"))()
  36. }
  37. }
  38.  
  39. Player = Brew.Services.Players.LocalPlayer
  40.  
  41. function Brew:WaitForChildOfClass(parents, className, timeout)
  42. local startTime = tick()
  43. timeout = timeout or 9e9
  44. while tick() - startTime < timeout do
  45. for _, parent in pairs(parents) do
  46. for _, child in pairs(parent:GetChildren()) do
  47. if child:IsA(className) then
  48. return child
  49. end
  50. end
  51. end
  52. wait(0.01)
  53. end
  54. return nil
  55. end
  56. function Brew:Spoof(Instance, Property, Value)
  57. local b
  58. b = hookmetamethod(game, "__index", function(A, B)
  59. if not checkcaller() then
  60. if A == Instance then
  61. local filter = string.gsub(tostring(B), "\0", "")
  62. if filter == Property then
  63. return Value
  64. end
  65. end
  66. end
  67. return b(A, B)
  68. end)
  69. end
  70. function Brew:disableConnection(Connection)
  71. for i, v in pairs(getconnections(Connection)) do
  72. v:Disable()
  73. end
  74. end
  75. function Brew:Async(func)
  76. task.spawn(function()
  77. func()
  78. end)
  79. end
  80. function Brew:Notify(title, description, duration)
  81. duration = duration or 3
  82. Brew.Libraries.Notifications.Notify({Title=title,Description=description,Duration=tonumber(duration)})
  83. end
  84. function Brew:DetermineOS()
  85. if Brew.Services["UserInputService"].TouchEnabled and not Brew.Services["UserInputService"].KeyboardEnabled and not Brew.Services["UserInputService"].MouseEnabled then
  86. return "Mobile"
  87. elseif not Brew.Services["UserInputService"].TouchEnabled and Brew.Services["UserInputService"].KeyboardEnabled and Brew.Services["UserInputService"].MouseEnabled then
  88. return "PC"
  89. end
  90. end
  91.  
  92. -- Game Functions
  93. function Brew:getSword()
  94. return Brew:WaitForChildOfClass({Player.Character, Player.Backpack}, "Tool")
  95. end
  96. function Brew:getHitbox()
  97. for i,v in pairs(Brew:getSword():GetDescendants()) do
  98. if v:FindFirstChildOfClass("TouchTransmitter") then
  99. v.Massless = true
  100. return v
  101. end
  102. end
  103. end
  104. function Brew.Reach:undoReach()
  105. Brew.Reach.Enabled = false
  106. Brew:getSword()
  107. Brew:disableConnection(Brew:getHitbox():GetPropertyChangedSignal("Size"))
  108. Brew:Spoof(Brew:getHitbox(), "Size", Vector3.new(1, 0.800000011920929, 4))
  109. Brew:getHitbox().Size = Vector3.new(1, 0.800000011920929, 4)
  110. end
  111. function Brew.Reach:undoVisual()
  112. Brew.Reach.SelectionBox = false
  113. if Brew:getHitbox():FindFirstChildOfClass("SelectionBox") then
  114. Brew:getHitbox():FindFirstChildOfClass("SelectionBox"):Destroy()
  115. end
  116. end
  117. function Brew.Reach:doReach()
  118. if Brew.Reach.Method == "Spoof" then
  119. Brew.Reach.Enabled = true
  120. Brew:getSword()
  121. Brew:disableConnection(Brew:getHitbox():GetPropertyChangedSignal("Size"))
  122. Brew:Spoof(Brew:getHitbox(), "Size", Vector3.new(1, 0.800000011920929, 4))
  123. Brew:getHitbox().Size = Brew.Reach.Magnitude
  124.  
  125. while Brew.Reach.Enabled and Brew.Reach.Method == "Spoof" do
  126. Brew:getHitbox().Size = Brew.Reach.Magnitude
  127. Brew:Async(function()
  128. for i,v in pairs(Brew.Services.Players:GetChildren()) do
  129. local Character = v.Character
  130. if Character.HumanoidRootPart and Character.Name ~= Player.Name then
  131. if (Character.HumanoidRootPart.Position - Brew:getHitbox().Position).Magnitude <= Brew.Reach.Magnitude.X then
  132. Brew:Async(function()
  133. for index,limb in pairs(Character:GetChildren()) do
  134. if limb:IsA("BasePart") then
  135. Brew:Async(function()
  136. for x = 0,15 do
  137. firetouchinterest(limb, Brew:getHitbox(), 0)
  138. wait()
  139. firetouchinterest(limb, Brew:getHitbox(), 1)
  140. end
  141. end)
  142. end
  143. end
  144. end)
  145. end
  146. end
  147. end
  148. end)
  149. wait()
  150. end
  151. else
  152. Brew:Notify("Brew", "That method is not supported yet.", 3)
  153. end
  154. end
  155. function Brew.Reach:doVisual()
  156. Brew.Reach.SelectionBox = true
  157. if Brew.Reach.SelectionBoxMethod == "Box" then
  158. local Box = Instance.new("SelectionBox", Brew:getHitbox())
  159. Box.Adornee = Brew:getHitbox()
  160. Box.LineThickness = 0.01
  161. Box.Color3 = Brew.Reach.SelectionBoxColor
  162. Brew:Async(function()
  163. Box.Color3 = Brew.Reach.SelectionBoxColor
  164. end)
  165. else
  166. Brew:Notify("Brew", "Not supported.", 3)
  167. end
  168. end
  169. function Brew.Character:doSpin()
  170. Brew.Character.Spin = true
  171. if not Player.Character:WaitForChild("HumanoidRootPart"):FindFirstChildOfClass("BodyAngularVelocity") then
  172. local Velocity = Instance.new("BodyAngularVelocity",Player.Character:WaitForChild("HumanoidRootPart"))
  173. Velocity.AngularVelocity = Vector3.new(0,15,0)
  174. Velocity.MaxTorque = Vector3.new(0,9e9,0)
  175. Velocity.P = 1250
  176. end
  177. end
  178. function Brew.Character.undoSpin()
  179. Brew.Character.Spin = false
  180. if Player.Character:WaitForChild("HumanoidRootPart"):FindFirstChildOfClass("BodyAngularVelocity") then
  181. Player.Character:WaitForChild("HumanoidRootPart"):FindFirstChildOfClass("BodyAngularVelocity"):Destroy()
  182. end
  183. end
  184.  
  185. --- Fix Settings ---
  186. Player.Character.Humanoid.Died:Connect(function()
  187. if DamageAmplify then
  188. DamageAmplify:Disconnect()
  189. end
  190. end)
  191. Player.CharacterAdded:Connect(function()
  192. Brew:getSword()
  193. wait(.25)
  194. Brew:getHitbox().Massless = true
  195. Brew:Async(function()
  196. if Brew.Reach.Enabled then
  197. Brew.Reach:doReach()
  198. end
  199. end)
  200. Brew:Async(function()
  201. if Brew.Reach.SelectionBox then
  202. Brew.Reach:doVisual()
  203. end
  204. end)
  205. Brew:Async(function()
  206. if Brew.Character.Spin then
  207. Brew.Character:doSpin()
  208. end
  209. end)
  210. Brew:Async(function()
  211. Brew:Spoof(Player.Character.Humanoid, "WalkSpeed", 16)
  212. Player.Character:WaitForChild("Humanoid").WalkSpeed = Brew.Character.cWalkspeed
  213. end)
  214. end)
  215.  
  216. --- UI Library Init ---
  217.  
  218. ---------------------------- COMPUTER DEVICES ----------------------------
  219. if Brew:DetermineOS() == "PC" then
  220. -- Window
  221. local Library = loadstring(game:HttpGet('https://raw.githubusercontent.com/Rain-Design/Libraries/main/Shaman/Library.lua'))()
  222. local Flags = Library.Flags
  223. local Window = Library:Window({
  224. Text = "Brew | v3.04"
  225. })
  226.  
  227. -- Tabs
  228. local ModTab = Window:Tab({
  229. Text = "Mods"
  230. })
  231. local CharacterTab = Window:Tab({
  232. Text = "Character"
  233. })
  234. local AdvancedTab = Window:Tab({
  235. Text = "Advanced"
  236. })
  237. local ReachSection = ModTab:Section({
  238. Text = "Reach"
  239. })
  240. local VisualSection = ModTab:Section({
  241. Text = "Visuals"
  242. })
  243. local CharacterSection = CharacterTab:Section({
  244. Text = "Character"
  245. })
  246. local AdvancedSection = AdvancedTab:Section({
  247. Text = "Advanced"
  248. })
  249.  
  250.  
  251. -- Reach Section
  252. ReachToggle = ReachSection:Toggle({
  253. Text = "Enabled",
  254. Tooltip = "Whether reach is enabled or not.",
  255. Callback = function(v)
  256. print(v)
  257. if v == true or v == "true" then
  258. Brew:Async(function()
  259. Brew.Reach:doReach()
  260. end)
  261. Brew:Notify('Brew', "Reach Enabled")
  262. else
  263. Brew.Reach:undoReach()
  264. Brew:Notify('Brew', "Reach Disabled")
  265. end
  266. end
  267. })
  268. ReachMethodDropdown = ReachSection:Dropdown({
  269. Text = "Dropdown",
  270. List = {"Spoof", "Root"},
  271. Flag = "Choosen",
  272. Tooltip = "What type of reach method you use.",
  273. Callback = function(v)
  274. Brew.Reach.Method = v
  275. Brew:Notify("Brew", "Set method to "..v, 2)
  276. end
  277. })
  278. ReachSection:Slider({
  279. Text = "Reach Magnitude",
  280. Default = 8,
  281. Minimum = 0,
  282. Maximum = 25,
  283. Flag = "SliderFlag",
  284. Tooltip = "Legit: 6-8, Blatant: 25",
  285. Callback = function(v)
  286. Brew.Reach.Magnitude = Vector3.new(tonumber(v),tonumber(v),tonumber(v))
  287. end
  288. })
  289. --[[
  290. local ReachWarn = ReachSection:Label({
  291. Text = "Hitbox Extension can be detected!",
  292. Color = Color3.fromRGB(255, 0, 0),
  293. })
  294. ]]--
  295.  
  296. -- Visual Section
  297. VisualSection:Toggle({
  298. Text = "Enabled",
  299. Tooltip = "Whether visuals is enabled or not.",
  300. Callback = function(v)
  301. print(v)
  302. if v == true or v == "true" then
  303. Brew:Async(function()
  304. Brew.Reach:doVisual()
  305. end)
  306. Brew:Notify('Brew', "Visual Enabled")
  307. else
  308. Brew.Reach:undoVisual()
  309. Brew:Notify('Brew', "Visual Disabled")
  310. end
  311. end
  312. })
  313. VisualSection:Dropdown({
  314. Text = "Dropdown",
  315. List = {"Box", "Sphere"},
  316. Flag = "Choosen",
  317. Tooltip = "What type of shape you use.",
  318. Callback = function(v)
  319. Brew.Reach.Method = v
  320. Brew:Notify("Brew", "Set shape to "..v, 2)
  321. end
  322. })
  323.  
  324. --- Character Section ---
  325. CharacterSection:Toggle({
  326. Text = "Spin",
  327. Tooltip = "Whether spin is enabled or not.",
  328. Callback = function(v)
  329. print(v)
  330. if v == true or v == "true" then
  331. Brew.Character.doSpin()
  332. Brew:Notify('Brew', "Spin Enabled")
  333. else
  334. Brew.Character.undoSpin()
  335. Brew:Notify('Brew', "Spin Disabled")
  336. end
  337. end
  338. })
  339. CharacterSection:Slider({
  340. Text = "Speed",
  341. Default = 16,
  342. Minimum = 16,
  343. Maximum = 23,
  344. Flag = "SliderFlag",
  345. Tooltip = "Edit your walkspeed.",
  346. Callback = function(v)
  347. Brew:Spoof(Player.Character.Humanoid, "WalkSpeed", 16)
  348. Brew.Character.cWalkspeed = tonumber(v)
  349. Player.Character.Humanoid.WalkSpeed = tonumber(v)
  350. end
  351. })
  352.  
  353. --- Advanced Section ---
  354. AdvancedSection:Toggle({
  355. Text = "Autoclick",
  356. Tooltip = "Automatically activates your sword.",
  357. Callback = function(v)
  358. print(v)
  359. if v == true or v == "true" then
  360. Brew.Features.Autoclick = true
  361. Brew:Notify('Brew', "Autoclick Enabled")
  362. while Brew.Features.Autoclick and Brew:getSword().Parent == Player.Character do
  363. if Player.Character:FindFirstChild(Brew:getSword().Name) then
  364. Brew:getSword():Activate()
  365. end
  366. wait()
  367. end
  368. else
  369. Brew.Features.Autoclick = false
  370. Brew:Notify('Brew', "Autoclick Disabled")
  371. end
  372. end
  373. })
  374. else
  375. Brew:Notify("Brew", "i hate you mobile users", 2)
  376. end
  377.  
  378. --- Prevent Anticheat(s) ---
  379. Brew:disableConnection(game:GetService("ScriptContext").Error)
  380. if not identifyexecutor() == "Fluxus" then
  381. Brew:Notify("Brew", "You are using an un-supported executor.\nUse Fluxus."..identifyexecutor(), 3)
  382. end
  383.  
  384. Brew:Notify("Brew", '['..Brew:DetermineOS()..'] Brew has loaded.', 3)
Advertisement
Add Comment
Please, Sign In to add comment