Logan_fcx

infini stam

Jan 15th, 2021
1,120
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --[[
  2. One Punch Man: Destiny - AutoFarm - AutoRoll
  3. https://www.roblox.com/games/5483517179/NEW-CLASSES-One-Punch-Man-Destiny
  4. Script from reavreav@v3rmillion.net
  5. reav#2966
  6. loadstring(game:HttpGet("https://reav.me/opm_destiny", true))()
  7. ]]
  8.  
  9. repeat wait() until game:IsLoaded()
  10. --antiafk
  11. local VirtualUser=game:service'VirtualUser'
  12.     game:service'Players'.LocalPlayer.Idled:connect(function()
  13.     print("reav")
  14.     VirtualUser:CaptureController()
  15.     VirtualUser:ClickButton2(Vector2.new())
  16. end)
  17. --variables
  18. local players = game:GetService("Players")
  19. local player = players.LocalPlayer
  20. local remote = game.ReplicatedStorage.RemoteEvent
  21. local questsM = game.ReplicatedStorage.Modules.Quests
  22. local spawns = workspace.Spawns
  23. local questParts = workspace.QuestParts
  24. local class = player.Stats.Class
  25. local spin = player.Stats.Spins
  26. local attr = player.Stats.Attributes
  27.  
  28. local bosses = {}
  29. for i,v in pairs(spawns:GetChildren())do
  30.     if v.Name == "Crablante" or v.Name == "VaccineMan" or v.Name == "MosquitoGirl" or v.Name == "Sonic" or v.Name == "Kabuto" or v.Name == "Boros" or v.Name == "SeaKing" or v.Name == "Gouketsu" or v.Name == "Saitama" or v.Name == "Psykos" or v.Name == "Charanko" then
  31.         if not table.find(bosses,v.Name) then  
  32.             table.insert(bosses,v.Name)
  33.         end
  34.     end
  35. end
  36. for i,v in pairs(spawns:GetChildren())do   
  37.     v.ChildAdded:Connect(function(a)
  38.         if not table.find(bosses,a.Name) then  
  39.             if a:FindFirstChild("Stats") and a.Stats:FindFirstChild("Relic") or a.Name == "Saitama" or a.Name == "Psycos" or a.Name == "Charanko" then
  40.                 table.insert(bosses,a.Name)
  41.             end
  42.         end
  43.     end)
  44. end
  45.  
  46. --Class Change
  47. class.Changed:Connect(function()
  48.     if class.Value == "Puri Puri" then
  49.         class.Value = "PuriPuri"
  50.     end
  51.     if class.Value == "Dark Esper" then
  52.         class.Value = "DarkEsper"
  53.     end
  54.     if class.Value == "Metal Bat" then
  55.         class.Value = "MetalBat"
  56.     end
  57. end)
  58.    
  59. if class.Value == "Puri Puri" then
  60.     class.Value = "PuriPuri"
  61. end
  62. if class.Value == "Dark Esper" then
  63.     class.Value = "DarkEsper"
  64. end
  65. if class.Value == "Metal Bat" then
  66.     class.Value = "MetalBat"
  67. end
  68. --Destroy Lava
  69. for i,v in pairs(workspace.Map.Volcano:GetChildren()) do
  70.     if v.Name == "Part" and v:FindFirstChild("TouchInterest") then
  71.         v:Destroy()
  72.     end
  73. end
  74. --loading wally ui revamped By Aika
  75. local library = loadstring(game:HttpGet(('https://raw.githubusercontent.com/AikaV3rm/UiLib/master/Lib.lua')))()
  76. local w = library:CreateWindow("OPM: Destiny")
  77. local b = w:CreateFolder("AutoFarm")
  78.  
  79. autofarm = false
  80. b:Toggle("Farm specific",function(bool)
  81.     autofarm = bool
  82. end)
  83.  
  84. local target
  85. local mobs = {}
  86. for i,v in pairs(spawns:GetChildren())do
  87.     if not table.find(mobs,v.Name) then
  88.         table.insert(mobs,v.Name)
  89.     end
  90. end
  91.  
  92. b:Dropdown("Mobs",mobs,true,function(a)
  93. target = a
  94. end)
  95.  
  96. agility = false
  97. b:Toggle("Farm Agility",function(bool)
  98.     agility = bool
  99. end)
  100.  
  101. local c = w:CreateFolder("Farm Bosses")
  102.  
  103. c:Label("ALL BOSSES + METEOR",{
  104.     TextSize = 18;
  105.     TextColor = Color3.fromRGB(0,204,0);
  106.     BgColor = Color3.fromRGB(55,55,55);
  107.    
  108. })
  109.  
  110. ALL = false
  111. c:Toggle("Farm ALL",function(bool)
  112.     ALL = bool
  113. end)
  114.  
  115. local bossrem = c:Dropdown("Remove Boss",bosses,false,function(a)
  116.     for i,v in pairs(bosses)do
  117.         if v == a then
  118.             table.remove(bosses,i)
  119.             print(v..(": removed from the farming list"))
  120.         end
  121.     end
  122. end)
  123.  
  124. c:Button("RESET BOSS LIST",function()
  125.     for i,v in pairs(spawns:GetChildren())do
  126.         if v.Name == "Crablante" or v.Name == "VaccineMan" or v.Name == "MosquitoGirl" or v.Name == "Sonic" or v.Name == "Kabuto" or v.Name == "Boros" or v.Name == "SeaKing" or v.Name == "Gouketsu" or v.Name == "Saitama" then
  127.             if not table.find(bosses,v.Name) then
  128.                 table.insert(bosses,v.Name)
  129.                 print(v.Name.." added to the farming List..")
  130.             end
  131.         end
  132.     end
  133. end)
  134.  
  135. c:Button("SKIP METEOR",function()
  136.     local HttpService = game:GetService("HttpService")
  137.     local result = HttpService:GenerateGUID(false)
  138.     for i,v in pairs(game:GetService("Workspace").Storage:GetChildren()) do
  139.         if v.Name == "MeteorHitbox" or v.Name == "SuperMeteorHitbox" and v:FindFirstChild("Humanoid") then
  140.             v.Name = result
  141.         end
  142.     end
  143. end)
  144.  
  145. local meteorMeter = "0"
  146. local mobMeter = "0"
  147.  
  148. local meteordmg = c:Label("Meteor Dmg: "..tostring(meteorMeter),{
  149.     TextSize = 22;
  150.     TextColor = Color3.fromRGB(0,204,0);
  151.     BgColor = Color3.fromRGB(55,55,55);
  152.    
  153. })
  154. local mobdmg = c:Label("Mob Dmg: "..tostring(mobMeter),{
  155.     TextSize = 22;
  156.     TextColor = Color3.fromRGB(0,204,0);
  157.     BgColor = Color3.fromRGB(55,55,55);
  158.    
  159. })
  160. local d = w:CreateFolder("Change Class")
  161.  
  162. local LClass = d:Label("Your Class: "..class.Value,{
  163.     TextSize = 18;
  164.     TextColor = Color3.fromRGB(0,204,0);
  165.     BgColor = Color3.fromRGB(55,55,55);
  166.    
  167. })
  168.  
  169. local LSpin = d:Label("SPINS: "..spin.Value,{
  170.     TextSize = 23;
  171.     TextColor = Color3.fromRGB(0,204,0);
  172.     BgColor = Color3.fromRGB(55,55,55);
  173.    
  174. })
  175.  
  176. d:Label("MANUAL",{
  177.     TextSize = 28;
  178.     TextColor = Color3.fromRGB(255,255,255);
  179.     BgColor = Color3.fromRGB(55,55,55);
  180.    
  181. })
  182.  
  183. d:Button("Purchase Spin 35k$",function()
  184.     remote:FireServer("PurchaseSpin")
  185. end)
  186.  
  187. d:Label("THIS WILL CHANGE UR CLASS",{
  188.     TextSize = 15;
  189.     TextColor = Color3.fromRGB(255,1,1);
  190.     BgColor = Color3.fromRGB(55,55,55);
  191.    
  192. })
  193.  
  194. d:Button("Roll for new Class",function()
  195.     game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer()
  196. end)
  197.  
  198. d:Label("AUTO",{
  199.     TextSize = 28;
  200.     TextColor = Color3.fromRGB(255,255,255);
  201.     BgColor = Color3.fromRGB(55,55,55);
  202.    
  203. })
  204.  
  205. d:Label("Roll for a Specific class",{
  206.     TextSize = 20;
  207.     TextColor = Color3.fromRGB(0,204,0);
  208.     BgColor = Color3.fromRGB(55,55,55);
  209.    
  210. })
  211.  
  212. autoroll = false
  213. d:Toggle("ON/OFF",function(bool)
  214.     autoroll = bool
  215. end)
  216.  
  217. local classlist
  218. d:Dropdown("Pick a class",{"Ninja", "Esper", "Dark Esper", "Cyborg", "Alien", "Superhuman", "Watchdog", "Metal Bat", "Puri Puri", "Phoenix"},true,function(b)
  219. classlist = b
  220. end)
  221.  
  222. d:Label("WARNING:Activating this will buy spins and use it untill you will have the class you have selected",{
  223.     TextSize = 10;
  224.     TextColor = Color3.fromRGB(255,1,1);
  225.     BgColor = Color3.fromRGB(55,55,55);
  226.    
  227. })
  228.  
  229. local e = w:CreateFolder("Misc & Credits")
  230.  
  231. autoparty = false
  232. e:Toggle("Auto Accept Party",function(bool)
  233.     autoparty = bool
  234. end)
  235.  
  236. stats = false
  237. e:Toggle("Auto Health",function(bool)
  238.     stats = bool
  239. end)
  240.  
  241. e:Label("Made by reav#2966",{
  242.     TextSize = 22;
  243.     TextColor = Color3.fromRGB(0,204,0);
  244.     BgColor = Color3.fromRGB(55,55,55);
  245.    
  246. })
  247.  
  248. warn("| OPM: Destiny | AutoFarm by reav |")
  249. if player.Stats.Level.Value > 200 and player.Character.Form.Value == "" then
  250.     remote:FireServer(class.Value.."Attack6")
  251.     print("Awakened")
  252. elseif player.Stats.Level.Value < 200 then
  253.     print("Player level too low to activate Awakening. Player level: ".. player.Stats.Level.Value)  
  254. end
  255. player.CharacterAdded:Connect(function()
  256.     wait(6)
  257.     if player.Stats.Level.Value > 200 and player.Character.Form.Value == "" then
  258.         remote:FireServer(class.Value.."Attack6")
  259.     else
  260.         print("Player level too low to activate Awakening. Player level: ".. player.Stats.Level.Value)  
  261.     end
  262. end)
  263.  
  264. if class.Value == "Ninja" and player.Character then
  265.     wait(2)
  266.     remote:FireServer("EquipKatana")
  267.     print("Class "..class.Value.." Found, Sword Equip Done.")
  268.     player.CharacterAdded:Connect(function()
  269.         wait(2)
  270.         remote:FireServer("EquipKatana")
  271.     end)
  272. end
  273. local quests = {}
  274. for i, v in next, require(questsM) do
  275.     quests[v.Target] = i
  276. end
  277. local function train()
  278.     remote:FireServer("Train")
  279. end
  280. local function PUNCH()
  281.     remote:FireServer("Punch", "Right")
  282. end
  283.  
  284.  
  285. spawn(function()
  286.     while wait()do 
  287.         if autofarm then
  288.             local questId = quests[tostring(target)]
  289.             if questId and not player:FindFirstChild("Quest") or player:FindFirstChild("Quest") and player.Quest:FindFirstChild("Target") and player.Quest.Target.Value ~= target then
  290.                  player.Character.HumanoidRootPart.CFrame=questParts["QuestPart"..questId].CFrame
  291.                  wait(.4)
  292.                  remote:FireServer("GetQuest", questId)
  293.                  wait(.4)
  294.             else
  295.                 for i,v in pairs(spawns:GetChildren())do
  296.                     if v.Name == target and v:FindFirstChild(v.Name) then
  297.                         local mob = v:FindFirstChild(v.Name)
  298.                         if mob and mob:FindFirstChild("HumanoidRootPart") and mob:FindFirstChild("Humanoid") and mob.Humanoid.Health >0 then
  299.                             repeat
  300.                                 pcall(function()
  301.                                     player.Character.HumanoidRootPart.CFrame=mob.HumanoidRootPart.CFrame-player.Character.HumanoidRootPart.CFrame.lookVector*2.5
  302.                                     remote:FireServer(class.Value.."Attack1", Vector3.new(mob.HumanoidRootPart.Position))
  303.                                     remote:FireServer(class.Value.."Attack2", Vector3.new(mob.HumanoidRootPart.Position))
  304.                                     remote:FireServer(class.Value.."Attack3", Vector3.new(mob.HumanoidRootPart.Position))
  305.                                     remote:FireServer(class.Value.."Attack5", Vector3.new(mob.HumanoidRootPart.Position))
  306.                                 end)
  307.                             wait()
  308.                             until not mob or not mob:FindFirstChild("HumanoidRootPart") or not mob:FindFirstChild("Humanoid") or mob:FindFirstChild("Humanoid").Health <=0 or mob.Name ~= target or not autofarm
  309.                         end
  310.                     end
  311.                 end
  312.             end
  313.         end
  314.     end
  315. end)
  316. pcall(function()
  317.     class.Changed:Connect(function()
  318.         LClass:Refresh("Your class " .. class.Value)
  319.     end)
  320.     spin.Changed:Connect(function()
  321.         LSpin:Refresh("SPINS: " .. spin.Value)
  322.     end)
  323. end)
  324. --Autoroll
  325. spawn(function()
  326.     while wait() do
  327.         if autoroll and class.Value ~= classlist then
  328.             wait(.5)
  329.             remote:FireServer("PurchaseSpin")
  330.             if class.Value ~= classlist then
  331.                 game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer()
  332.                 print("Changing Class.. "..class.Value)
  333.             else
  334.                 print("Your class is already "..classlist)
  335.                 autoroll = false
  336.             end
  337.         end
  338.     end
  339. end)
  340.  
  341. spawn(function()
  342.     game:GetService("RunService").RenderStepped:Connect(function()
  343.         if autofarm or ALL then
  344.             pcall(function()
  345.                 player.Character.Humanoid:ChangeState(11)
  346.             end)
  347.         end
  348.     end)
  349. end)
  350.  
  351. local PartyInvite = player.PlayerGui.ScreenGui.PartyInviteBG
  352. PartyInvite.Changed:Connect(function()
  353.     if autoparty then
  354.         remote:FireServer("AcceptInvite");
  355.     end
  356. end)
  357.  
  358. local meteorL = game:GetService("Workspace").Storage
  359. spawn(function()
  360.     while wait()do 
  361.         if ALL then
  362.             if meteorL:FindFirstChild("MeteorHitbox") or meteorL:FindFirstChild("SuperMeteorHitbox") then
  363.                 for i,v in pairs(meteorL:GetChildren()) do
  364.                     if v.Name == "MeteorHitbox" or v.Name == "SuperMeteorHitbox" and v:FindFirstChild("Humanoid") then
  365.                         local SKIP = v
  366.                         repeat
  367.                             pcall(function()
  368.                             for i2,v2 in pairs(SKIP.Attackers:GetChildren()) do
  369.                                 if v2.Name == player.Name then
  370.                                     meteorMeter = v2.Value
  371.                                     meteordmg:Refresh("Meteor Dmg: "..meteorMeter)
  372.                                 end
  373.                             end
  374.                                 player.Character.HumanoidRootPart.CFrame=game:GetService("Workspace").EpicPart.CFrame+Vector3.new(0,-6,0)
  375.                                 remote:FireServer(class.Value.."Attack1", Vector3.new(game:GetService("Workspace").EpicPart.Position))
  376.                                 remote:FireServer(class.Value.."Attack2", Vector3.new(game:GetService("Workspace").EpicPart.Position))
  377.                                 remote:FireServer(class.Value.."Attack3", Vector3.new(game:GetService("Workspace").EpicPart.Position))
  378.                                 remote:FireServer(class.Value.."Attack5", Vector3.new(game:GetService("Workspace").EpicPart.Position))
  379.                             end)
  380.                         wait()
  381.                         until not v or v.Humanoid or not ALL or not meteor
  382.                     end
  383.                 end
  384.             else
  385.                 for i,v in pairs(spawns:GetChildren())do   
  386.                     if table.find(bosses,v.Name) and v:FindFirstChild(v.Name) then
  387.                         local mob = v:FindFirstChild(v.Name)
  388.                         local questId = quests[tostring(v.Name)]
  389.                         if questId and not player:FindFirstChild("Quest") or player:FindFirstChild("Quest") and player.Quest:FindFirstChild("Target") and player.Quest.Target.Value ~= mob.Name then
  390.                             pcall(function()
  391.                                 player.Character.HumanoidRootPart.CFrame=questParts["QuestPart"..questId].CFrame
  392.                                 wait(.3)
  393.                                 remote:FireServer("GetQuest", questId)
  394.                             end)
  395.                         end
  396.                         if mob and mob:FindFirstChild("HumanoidRootPart") and mob:FindFirstChild("Humanoid") and mob.Humanoid.Health >0 then
  397.                             repeat
  398.                                 pcall(function()
  399.                                 for i2,v2 in pairs(mob.Attackers:GetChildren()) do
  400.                                     if v2.Name == player.Name then
  401.                                         mobMeter = v2.Value
  402.                                         mobdmg:Refresh("Mob Dmg: "..tostring(mobMeter))
  403.                                     end
  404.                                 end
  405.                                     --player.Character.HumanoidRootPart.CFrame=CFrame.new(mob.HumanoidRootPart.Position+Vector3.new(0,-7,0)) * CFrame.Angles(math.rad(90), 0, 0)
  406.                                     player.Character.HumanoidRootPart.CFrame=mob.HumanoidRootPart.CFrame-player.Character.HumanoidRootPart.CFrame.lookVector*2
  407.                                     remote:FireServer(class.Value.."Attack1", Vector3.new(mob.HumanoidRootPart.Position))
  408.                                     remote:FireServer(class.Value.."Attack2", Vector3.new(mob.HumanoidRootPart.Position))
  409.                                     remote:FireServer(class.Value.."Attack3", Vector3.new(mob.HumanoidRootPart.Position))
  410.                                     remote:FireServer(class.Value.."Attack5", Vector3.new(mob.HumanoidRootPart.Position))
  411.                                 end)
  412.                             wait()
  413.                             until not mob or not mob:FindFirstChild("HumanoidRootPart") or not mob:FindFirstChild("Humanoid") or mob:FindFirstChild("Humanoid").Health <=0 or not ALL or meteor
  414.                         end
  415.                     end
  416.                 end
  417.             end
  418.         end
  419.     end
  420. end)
  421.  
  422. spawn(function()
  423.     while wait()do
  424.         PUNCH()
  425.         if class.Value == "Ninja" and player.Stats.Agility.Value < 399999 then
  426.             remote:FireServer("LightningPunch")
  427.         end
  428.     end
  429. end)
  430. spawn(function()
  431.     while wait() do
  432.         train()
  433.     end
  434. end)
  435. spawn(function()
  436.     while wait() do
  437.         if stats and attr.Value ~= 0 then
  438.             remote:FireServer("UpgradeHealth", attr.Value)
  439.             print(attr.Value.." points on Health")
  440.         end
  441.     end
  442. end)
  443.  
  444.  
RAW Paste Data