Judo123

ADGGG

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