Facebook
From s, 1 Year ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 278
  1. getgenv().AutoReroll = true
  2. getgenv().DelaySpeedReroll = 0.5 -- [[ RECOMMEND 0.5 IF U HAVE GOOD WIFI, SET IT TO 1 IF BAD WIFI ]] --
  3. getgenv().DmgWant = 110 -- ALL 3 STATS IF THE NUMBER IS HIGHER THAN U WANT, ITS WILL ALSO KEEP 3 STATS.
  4. getgenv().StaminaWant = 110 -- ALL 3 STATS IF THE NUMBER IS HIGHER THAN U WANT, ITS WILL ALSO KEEP 3 STATS.
  5. getgenv().CostWant = 80  -- ALL 3 STATS IF THE NUMBER IS HIGHER THAN U WANT, ITS WILL ALSO KEEP 3 STATS.
  6.  -- \\ DO NOT TOUCH IF YOU DONT KNOW WHAT ARE YOU DOING // --
  7. local DmgText = game:GetService("Players").LocalPlayer.PlayerGui.TrainUI.ToggleUnit.Informations.HiddenPower.Modify.ATK.V
  8. local CostText = game:GetService("Players").LocalPlayer.PlayerGui.TrainUI.ToggleUnit.Informations.HiddenPower.Modify.Cost.V
  9. local StaminaText = game:GetService("Players").LocalPlayer.PlayerGui.TrainUI.ToggleUnit.Informations.HiddenPower.Modify.Stamina.V
  10. local UnitName = game:GetService("Players").LocalPlayer.PlayerGui.UnitSelect
  11. local Player = game.Players.LocalPlayer
  12. local vim = game:GetService("VirtualInputManager")
  13. local UI = game:GetService("Players").LocalPlayer.PlayerGui.TrainUI.ToggleUnit.Informations.HiddenPower.Modified_Button
  14.  
  15. local returnDmgNum = DmgText.Text:match("%d+")
  16. local returnStaminaNum = StaminaText.Text:match("%d+")
  17. local returnCostNum = CostText.Text:match("%d+")
  18.  
  19.  while task.wait(0.5) do
  20.  if AutoReroll == true then
  21.         if  tonumber(returnDmgNum) >= getgenv().DmgWant
  22.        and tonumber(returnStaminaNum ) >= getgenv().StaminaWant
  23.        and tonumber(returnCostNum) >= getgenv().CostWant then
  24. game:GetService("StarterGui"):SetCore("SendNotification",{
  25.     Title = "Reroll Notif", -- Required
  26.     Text = UnitName.Value .. " Already got stat u wanted!", -- Required
  27. })
  28. else
  29.      local partCenterX = UI.AbsolutePosition.X + (UI.AbsoluteSize.X / 2)
  30.      local partCenterY = UI.AbsolutePosition.Y + (UI.AbsoluteSize.Y /0.7)
  31.  
  32.      vim:SendMouseButtonEvent(partCenterX, partCenterY, 0, true, game, 0)
  33.      vim:SendMouseButtonEvent(partCenterX, partCenterY, 0, false, game, 0)
  34.  
  35.    end
  36.  else
  37. wait()
  38. break
  39. end
  40. end