Judo123

ASDAD

Aug 9th, 2025
5
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.61 KB | None | 0 0
  1. local UserInputService = game:GetService("UserInputService")
  2. local player = game:GetService("Players").LocalPlayer
  3. local isScriptActive = true
  4.  
  5.  
  6. local gui = Instance.new("ScreenGui")
  7. gui.Name = "ArmorBotUI"
  8. gui.ResetOnSpawn = false
  9. gui.Parent = player:WaitForChild("PlayerGui")
  10.  
  11. local toggleButton = Instance.new("TextButton")
  12. toggleButton.Size = UDim2.new(0, 200, 0, 40)
  13. toggleButton.Position = UDim2.new(0, 10, 0.5, -20)
  14. toggleButton.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  15. toggleButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  16. toggleButton.Font = Enum.Font.GothamBold
  17. toggleButton.TextSize = 14
  18. toggleButton.Text = "Armor Spammer Enabled"
  19. toggleButton.BackgroundTransparency = 0.2
  20. toggleButton.Parent = gui
  21.  
  22. local introLabel = Instance.new("TextLabel")
  23. introLabel.Size = UDim2.new(0, 400, 0, 60)
  24. introLabel.Position = UDim2.new(0.5, -200, 0.4, 0)
  25. introLabel.BackgroundTransparency = 1
  26. introLabel.TextTransparency = 1
  27. introLabel.Text = "Script made by Schmeckt"
  28. introLabel.TextColor3 = Color3.new(1, 1, 1)
  29. introLabel.Font = Enum.Font.GothamBlack
  30. introLabel.TextSize = 30
  31. introLabel.Parent = gui
  32.  
  33. local sound = Instance.new("Sound")
  34. sound.SoundId = "rbxassetid://3601621507"
  35. sound.Volume = 1
  36. sound.Parent = gui
  37.  
  38.  
  39. local dragging, dragInput, mousePos, framePos = false, nil, nil, nil
  40.  
  41. local function updateInput(input)
  42. local delta = input.Position - mousePos
  43. toggleButton.Position = UDim2.new(0, framePos.X + delta.X, 0, framePos.Y + delta.Y)
  44. end
  45.  
  46. toggleButton.InputBegan:Connect(function(input)
  47. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  48. dragging, mousePos, framePos = true, input.Position, Vector2.new(toggleButton.Position.X.Offset, toggleButton.Position.Y.Offset)
  49. input.Changed:Connect(function()
  50. if input.UserInputState == Enum.UserInputState.End then dragging = false end
  51. end)
  52. end
  53. end)
  54.  
  55. toggleButton.InputChanged:Connect(function(input)
  56. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  57. dragInput = input
  58. end
  59. end)
  60.  
  61. UserInputService.InputChanged:Connect(function(input)
  62. if input == dragInput and dragging then updateInput(input) end
  63. end)
  64.  
  65.  
  66. task.delay(0.5, function()
  67. sound:Play()
  68. for i = 1, 20 do
  69. introLabel.TextTransparency = 1 - (i / 20)
  70. task.wait(0.03)
  71. end
  72. task.wait(5)
  73. for i = 1, 20 do
  74. introLabel.TextTransparency = i / 20
  75. task.wait(0.03)
  76. end
  77. introLabel:Destroy()
  78. sound:Destroy()
  79. end)
  80.  
  81.  
  82. -- HIER KANNST DU DIE WERTE ANPASSEN
  83. local HP_PROZENT_SCHWELLE = 100
  84. local MAXIMALE_RUSTUNG = 175 -- Geändert auf 175
  85. local RUSTUNGS_PROZENT_SCHWELLE = 43
  86. local RUSTUNGS_SEQUENZ = { "[High-Medium Armor]" }
  87. local PAUSE_ZWISCHEN_KAUFEN = 0.5
  88. local PADS_PFAD = game:GetService("Workspace").MAP.BuyPads
  89.  
  90. local gefundenePads, isBuying = {}, false
  91.  
  92. if not fireclickdetector then return print("FEHLER: 'fireclickdetector' nicht unterstützt.") end
  93.  
  94. local function initialisierePads()
  95. for i, name in ipairs(RUSTUNGS_SEQUENZ) do
  96. local pad = PADS_PFAD:FindFirstChild(name)
  97. if pad and pad:FindFirstChild("ClickDetector") then
  98. gefundenePads[i] = pad.ClickDetector
  99. else
  100. return print("FEHLER: Pad für '" .. name .. "' nicht initialisiert.")
  101. end
  102. end
  103. return true
  104. end
  105.  
  106. local function kaufeKompletteSequenz()
  107. if not isScriptActive or isBuying then return end
  108. isBuying = true
  109. print("-> KAUFBEDINGUNG ERFÜLLT! Kaufe " .. RUSTUNGS_SEQUENZ[1] .. "...")
  110. for i, clicker in ipairs(gefundenePads) do
  111. if not isScriptActive then
  112. isBuying = false
  113. return
  114. end
  115. fireclickdetector(clicker)
  116. task.wait(PAUSE_ZWISCHEN_KAUFEN)
  117. end
  118. task.wait(1)
  119. isBuying = false
  120. end
  121.  
  122. -- --- KORRIGIERTE ÜBERWACHUNGSFUNKTION ---
  123. local function starteUberwachung()
  124. task.spawn(function()
  125. while true do
  126. task.wait(0.2)
  127.  
  128. if isScriptActive and player.Character and player.Character:FindFirstChild("Humanoid") and player.Character.Humanoid.Health > 0 then
  129. local character = player.Character
  130. local humanoid = character.Humanoid
  131.  
  132. local aktuellerHPProzent = (humanoid.Health / humanoid.MaxHealth) * 100
  133. local aktuellerRustungswert = character:GetAttribute("Armor") or 0
  134. local aktuellerRustungProzent = (aktuellerRustungswert / MAXIMALE_RUSTUNG) * 100
  135.  
  136. if (aktuellerHPProzent < HP_PROZENT_SCHWELLE) or (aktuellerRustungProzent < RUSTUNGS_PROZENT_SCHWELLE) then
  137. kaufeKompletteSequenz()
  138. end
  139. end
  140. end
  141. end)
  142. end
  143.  
  144.  
  145. local function toggleScriptActivity()
  146. isScriptActive = not isScriptActive
  147. if isScriptActive then
  148. toggleButton.Text = "Armor Spammer Enabled"
  149. print("### Rüstungs-Bot AKTIVIERT ###")
  150. else
  151. toggleButton.Text = "Armor Spammer Disabled"
  152. print("### Rüstungs-Bot DEAKTIVIERT ###")
  153. end
  154. end
  155.  
  156. toggleButton.MouseButton1Click:Connect(toggleScriptActivity)
  157.  
  158. UserInputService.InputBegan:Connect(function(input, gameProcessedEvent)
  159. if gameProcessedEvent then return end
  160. if input.KeyCode == Enum.KeyCode.G then
  161. toggleScriptActivity()
  162. end
  163. end)
  164.  
  165.  
  166. if initialisierePads() then
  167. starteUberwachung()
  168. print("-> Rüstungs-Bot bereit. Steuerung: [G] oder GUI-Button.")
  169. else
  170. print("Skript gestoppt, da Pads nicht gefunden wurden.")
  171. end
Advertisement
Add Comment
Please, Sign In to add comment