NoTextForSpeech

sadasdsd

Aug 15th, 2025 (edited)
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.17 KB | None | 0 0
  1. local WindUI = loadstring(game:HttpGet("https://raw.githubusercontent.com/Footagesus/WindUI/main/dist/main.lua"))()
  2.  
  3. WindUI:Localization({
  4. Enabled = true,
  5. Prefix = "loc:",
  6. DefaultLanguage = "en",
  7. Translations = {
  8. ["en"] = {
  9. ["KILL_AURA"] = "Kill Aura",
  10. ["ATTACK_SPEED"] = "Attack Speed",
  11. ["ATTACK_RANGE"] = "Attack Range",
  12. ["MULTI_ATTACK"] = "Allow Multiple Enemies"
  13. }
  14. }
  15. })
  16.  
  17. WindUI.TransparencyValue = 0.2
  18. WindUI:SetTheme("Dark")
  19.  
  20. local Window = WindUI:CreateWindow({
  21. Title = "99 Nights in the Forest",
  22. Icon = "sword",
  23. Author = "",
  24. Folder = "Combat_Tools",
  25. Size = UDim2.fromOffset(400, 300),
  26. Theme = "Dark",
  27. SideBarWidth = 200,
  28. ScrollBarEnabled = true
  29. })
  30.  
  31. local CombatSection = Window:Section({ Title = "Combat", Opened = true })
  32. local CombatTab = CombatSection:Tab({ Title = "Main", Icon = "crosshair" })
  33.  
  34. local killAura = false
  35. local attackSpeed = 0.1
  36. local attackRange = 500
  37. local multiAttack = false
  38.  
  39. CombatTab:Toggle({
  40. Title = "loc:KILL_AURA",
  41. Desc = "Automatically attack nearby enemies",
  42. Value = false,
  43. Callback = function(v)
  44. killAura = v
  45. end
  46. })
  47.  
  48. CombatTab:Slider({
  49. Title = "loc:ATTACK_SPEED",
  50. Desc = "Time delay between attacks",
  51. Value = { Min = 0.1, Max = 1, Default = 0.1 },
  52. Step = 0.1,
  53. Callback = function(v)
  54. attackSpeed = tonumber(v)
  55. end
  56. })
  57.  
  58. CombatTab:Slider({
  59. Title = "loc:ATTACK_RANGE",
  60. Desc = "Maximum attack distance",
  61. Value = { Min = 0, Max = 500, Default = 500 },
  62. Step = 10,
  63. Callback = function(v)
  64. attackRange = tonumber(v)
  65. end
  66. })
  67.  
  68. CombatTab:Toggle({
  69. Title = "loc:MULTI_ATTACK",
  70. Desc = "Attack all enemies in range if enabled",
  71. Value = false,
  72. Callback = function(v)
  73. multiAttack = v
  74. end
  75. })
  76.  
  77. local Players = game:GetService("Players")
  78. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  79. local Remote = ReplicatedStorage.RemoteEvents.ToolDamageObject
  80. local LocalPlayer = Players.LocalPlayer
  81.  
  82. task.spawn(function()
  83. while task.wait(attackSpeed) do
  84. if not killAura then
  85. continue
  86. end
  87. local character = LocalPlayer.Character
  88. if not character then
  89. continue
  90. end
  91. local hrp = character:FindFirstChild("HumanoidRootPart")
  92. if not hrp then
  93. continue
  94. end
  95. local weapon
  96. pcall(function()
  97. for _, v in ipairs(LocalPlayer.PlayerGui.Interface.Hotbar:GetChildren()) do
  98. if v:IsA("ImageButton") then
  99. local stroke = v:FindFirstChild("EquippedStroke")
  100. if stroke and stroke.Enabled then
  101. local label = v:FindFirstChildOfClass("TextLabel")
  102. if label then
  103. weapon = LocalPlayer.Inventory:FindFirstChild(label.Text)
  104. break
  105. end
  106. end
  107. end
  108. end
  109. end)
  110. if not weapon then
  111. continue
  112. end
  113. for _, target in ipairs(workspace.Characters:GetChildren()) do
  114. if target ~= character then
  115. local targetHRP = target:FindFirstChild("HumanoidRootPart")
  116. if targetHRP then
  117. local distance = (hrp.Position - targetHRP.Position).Magnitude
  118. if distance <= attackRange then
  119. local ohInstance1 = target
  120. local ohInstance2 = weapon
  121. local ohString3 = "999_" .. LocalPlayer.UserId
  122. local ohCFrame4 = target:GetPivot()
  123. task.defer(function()
  124. pcall(function()
  125. Remote:InvokeServer(ohInstance1, ohInstance2, ohString3, ohCFrame4)
  126. end)
  127. end)
  128. if not multiAttack then
  129. break
  130. end
  131. end
  132. end
  133. end
  134. end
  135. end
  136. end)
Advertisement
Add Comment
Please, Sign In to add comment