qwdawdaw

LuFSe7 Hub | Combat Warriors Script

Aug 11th, 2024 (edited)
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 9.39 KB | None | 0 0
  1. local DiscordLib = loadstring(game:HttpGet"https://raw.githubusercontent.com/dawid-scripts/UI-Libs/main/discord%20lib.txt")()
  2.  
  3. local win = DiscordLib:Window("LuFSe7 Hub | Head Size Control")
  4.  
  5. -- Main Tab
  6. local mainTab = win:Server("Main", "")
  7.  
  8. -- Autoparry Channel
  9. local autoparryChannel = mainTab:Channel("Autoparry")
  10.  
  11. -- Autoparry Toggle
  12. local autoparryToggle = autoparryChannel:Toggle("Enable Autoparry", false, function(state)
  13.     _G.AutoparryToggled = state
  14.    
  15.     if _G.AutoparryToggled then
  16.         local lp = game.Players.LocalPlayer
  17.         local animationInfo = {}
  18.  
  19.         function getInfo(id)
  20.             local success, info = pcall(function()
  21.                 return game:GetService("MarketplaceService"):GetProductInfo(id)
  22.             end)
  23.             if success then
  24.                 return info
  25.             end
  26.             return {Name=''}
  27.         end
  28.  
  29.         function block(player)
  30.             keypress(0x46)
  31.             wait()
  32.             keyrelease(0x46)
  33.         end
  34.  
  35.         local AnimNames = {
  36.             "Block",
  37.             "Parry"
  38.         }
  39.  
  40.         local function playerAdded(v)
  41.             if v.Character then
  42.                 local function charadded(char)
  43.                     local humanoid = char:WaitForChild("Humanoid", 5)
  44.                     if humanoid then
  45.                         humanoid.AnimationPlayed:Connect(function(track)
  46.                             local info = animationInfo[track.Animation.AnimationId]
  47.                             if not info then
  48.                                 info = getInfo(tonumber(track.Animation.AnimationId:match("%d+")))
  49.                                 animationInfo[track.Animation.AnimationId] = info
  50.                             end
  51.                             if (lp.Character and lp.Character:FindFirstChild("Head") and v.Character:FindFirstChild("Head")) then
  52.                                 local mag = (v.Character.Head.Position - lp.Character.Head.Position).Magnitude
  53.                                 if mag < 15 then
  54.                                     for _, animName in pairs(AnimNames) do
  55.                                         if info.Name:match(animName) then
  56.                                             pcall(block, v)
  57.                                         end
  58.                                     end
  59.                                 end
  60.                             end
  61.                         end)
  62.                     end
  63.                 end
  64.  
  65.                 if v.Character then
  66.                     charadded(v.Character)
  67.                 end
  68.                 v.CharacterAdded:Connect(charadded)
  69.             end
  70.         end
  71.  
  72.         for i, v in pairs(game.Players:GetPlayers()) do
  73.             if v ~= lp then
  74.                 playerAdded(v)
  75.             end
  76.         end
  77.  
  78.         game.Players.PlayerAdded:Connect(playerAdded)
  79.     end
  80. end)
  81.  
  82. -- HeadSize Channel
  83. local headSizeChannel = mainTab:Channel("HeadSize")
  84.  
  85. -- Enable Head Size Hack Toggle
  86. local headSizeToggle = headSizeChannel:Toggle("Enable Head Size Hack", false, function(state)
  87.     _G.Disabled = not state
  88.    
  89.     if _G.Disabled then
  90.         for _, v in next, game:GetService('Players'):GetPlayers() do
  91.             if v.Name ~= game:GetService('Players').LocalPlayer.Name then
  92.                 pcall(function()
  93.                     v.Character.Head.Size = Vector3.new(2, 1, 1)
  94.                     v.Character.Head.Transparency = 0
  95.                     v.Character.Head.BrickColor = BrickColor.new("Medium stone grey")
  96.                     v.Character.Head.Material = "Plastic"
  97.                     v.Character.Head.CanCollide = true
  98.                     v.Character.Head.Massless = false
  99.                 end)
  100.             end
  101.         end
  102.     end
  103. end)
  104.  
  105. -- Head Size Slider
  106. local headSizeSlider = headSizeChannel:Slider("Head Size", 10, 100, 25, function(value)
  107.     _G.HeadSize = value
  108. end)
  109.  
  110. -- Transparency Slider
  111. local transparencySlider = headSizeChannel:Slider("Head Transparency", 0, 10, 1, function(value)
  112.     _G.HeadTransparency = value
  113. end)
  114.  
  115. -- Movement Channel
  116. local movementChannel = mainTab:Channel("Movement")
  117.  
  118. -- WalkSpeed Slider
  119. local walkspeedSlider = movementChannel:Slider("WalkSpeed", 16, 100, 16, function(value)
  120.     game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = value
  121. end)
  122.  
  123. -- JumpPower Slider
  124. local jumppowerSlider = movementChannel:Slider("JumpPower", 50, 200, 50, function(value)
  125.     game.Players.LocalPlayer.Character.Humanoid.JumpPower = value
  126. end)
  127.  
  128. -- Fly Toggle
  129. local flyToggle = movementChannel:Toggle("Enable Fly", false, function(state)
  130.     _G.FlyToggled = state
  131. end)
  132.  
  133. -- FOV Slider
  134. local fovSlider = movementChannel:Slider("Field of View", 60, 120, 70, function(value)
  135.     game.Workspace.CurrentCamera.FieldOfView = value
  136. end)
  137.  
  138. -- ESP Tab
  139. local espTab = win:Server("ESP", "")
  140.  
  141. local espSection = espTab:Channel("ESP Settings")
  142.  
  143. -- ESP Toggle
  144. local espToggle = espSection:Toggle("Enable ESP", false, function(state)
  145.     _G.ESPToggled = state
  146.    
  147.     local function updateESP()
  148.         if not _G.ESPToggled then return end
  149.  
  150.         for _, player in next, game:GetService('Players'):GetPlayers() do
  151.             if player.Name ~= game:GetService('Players').LocalPlayer.Name then
  152.                 if not player.Character or not player.Character:FindFirstChild("HumanoidRootPart") then continue end
  153.  
  154.                 local character = player.Character
  155.                 pcall(function()
  156.                     local highlight = character:FindFirstChild("Highlight")
  157.                     if not highlight then
  158.                         highlight = Instance.new("Highlight", character)
  159.                         highlight.Name = "Highlight"
  160.                         highlight.FillTransparency = 1
  161.                         highlight.OutlineTransparency = 0
  162.                     end
  163.                 end)
  164.             end
  165.         end
  166.     end
  167.  
  168.     local function clearESP()
  169.         for _, player in next, game:GetService('Players'):GetPlayers() do
  170.             if player.Character and player.Character:FindFirstChild("Highlight") then
  171.                 player.Character.Highlight:Destroy()
  172.             end
  173.         end
  174.     end
  175.  
  176.     if _G.ESPToggled then
  177.         updateESP()
  178.         -- Update ESP every 1 second to reduce FPS impact
  179.         local espUpdateConnection
  180.         espUpdateConnection = game:GetService('RunService').RenderStepped:Connect(function()
  181.             if not _G.ESPToggled then
  182.                 espUpdateConnection:Disconnect()
  183.                 clearESP()
  184.                 return
  185.             end
  186.             -- Avoid frequent updates
  187.             wait(1)
  188.             updateESP()
  189.         end)
  190.     else
  191.         clearESP()
  192.     end
  193. end)
  194.  
  195. -- Rainbow ESP Toggle
  196. local rainbowEspToggle = espSection:Toggle("Enable Rainbow ESP", false, function(state)
  197.     _G.RainbowESPToggled = state
  198.  
  199.     if _G.RainbowESPToggled then
  200.         local hue = 0
  201.         local rainbowSpeed = _G.RainbowSpeed or 1
  202.  
  203.         -- Update ESP colors
  204.         local function updateRainbowESP()
  205.             if not _G.RainbowESPToggled then return end
  206.  
  207.             for _, player in next, game:GetService('Players'):GetPlayers() do
  208.                 if player.Name ~= game:GetService('Players').LocalPlayer.Name then
  209.                     local highlight = player.Character and player.Character:FindFirstChild("Highlight")
  210.                     if highlight then
  211.                         local color = Color3.fromHSV(hue, 1, 1)
  212.                         highlight.OutlineColor = color
  213.                         highlight.FillColor = color
  214.                     end
  215.                 end
  216.             end
  217.  
  218.             hue = (hue + (rainbowSpeed / 100)) % 1
  219.         end
  220.  
  221.         -- Update rainbow color every 1 second to reduce FPS impact
  222.         local rainbowUpdateConnection
  223.         rainbowUpdateConnection = game:GetService('RunService').RenderStepped:Connect(function()
  224.             if not _G.RainbowESPToggled then
  225.                 rainbowUpdateConnection:Disconnect()
  226.                 return
  227.             end
  228.             -- Avoid frequent updates
  229.             wait(1)
  230.             updateRainbowESP()
  231.         end)
  232.     end
  233. end)
  234.  
  235. -- Rainbow Speed Slider
  236. local rainbowSpeedSlider = espSection:Slider("Rainbow Speed", 0, 10, 1, function(value)
  237.     _G.RainbowSpeed = value
  238. end)
  239.  
  240. -- Inf Stamina Tab
  241. local infStaminaTab = win:Server("Inf Stamina", "")
  242.  
  243. local infStaminaSection = infStaminaTab:Channel("Inf Stamina Settings")
  244.  
  245. -- Inf Stamina Toggle
  246. local infStaminaToggle = infStaminaSection:Toggle("Enable Inf Stamina", false, function(state)
  247.     _G.InfStaminaToggled = state
  248.    
  249.     if _G.InfStaminaToggled then
  250.         local userInputService = game:GetService("UserInputService")
  251.         local player = game.Players.LocalPlayer
  252.  
  253.         userInputService.InputBegan:Connect(function(input, gameProcessed)
  254.             if not gameProcessed and input.KeyCode == Enum.KeyCode.LeftShift then
  255.                 while userInputService:IsKeyDown(Enum.KeyCode.LeftShift) do
  256.                     wait()
  257.                     -- Here, you would add code to prevent stamina from decreasing
  258.                     -- For example:
  259.                     -- game.Players.LocalPlayer.PlayerGui:FindFirstChild("Stamina").Value = 100
  260.                 end
  261.             end
  262.         end)
  263.     end
  264. end)
  265.  
  266. _G.HeadSize = 25
  267. _G.HeadTransparency = 1
  268. _G.Disabled = true
  269. _G.FlyToggled = false
  270. _G.ESPToggled = false
  271. _G.RainbowESPToggled = false
  272. _G.RainbowSpeed = 1
  273. _G.InfStaminaToggled = false
  274.  
Add Comment
Please, Sign In to add comment