Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- One Punch Man: Destiny - AutoFarm - AutoRoll
- https://www.roblox.com/games/5483517179/NEW-CLASSES-One-Punch-Man-Destiny
- Script from reavreav@v3rmillion.net
- reav#2966
- loadstring(game:HttpGet("https://reav.me/opm_destiny", true))()
- ]]
- repeat wait() until game:IsLoaded()
- --antiafk
- local VirtualUser=game:service'VirtualUser'
- game:service'Players'.LocalPlayer.Idled:connect(function()
- print("reav")
- VirtualUser:CaptureController()
- VirtualUser:ClickButton2(Vector2.new())
- end)
- --variables
- local players = game:GetService("Players")
- local player = players.LocalPlayer
- local remote = game.ReplicatedStorage.RemoteEvent
- local questsM = game.ReplicatedStorage.Modules.Quests
- local spawns = workspace.Spawns
- local questParts = workspace.QuestParts
- local class = player.Stats.Class
- local spin = player.Stats.Spins
- local attr = player.Stats.Attributes
- local bosses = {}
- for i,v in pairs(spawns:GetChildren())do
- 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
- if not table.find(bosses,v.Name) then
- table.insert(bosses,v.Name)
- end
- end
- end
- for i,v in pairs(spawns:GetChildren())do
- v.ChildAdded:Connect(function(a)
- if not table.find(bosses,a.Name) then
- if a:FindFirstChild("Stats") and a.Stats:FindFirstChild("Relic") or a.Name == "Saitama" or a.Name == "Psycos" or a.Name == "Charanko" then
- table.insert(bosses,a.Name)
- end
- end
- end)
- end
- --Class Change
- class.Changed:Connect(function()
- if class.Value == "Puri Puri" then
- class.Value = "PuriPuri"
- end
- if class.Value == "Dark Esper" then
- class.Value = "DarkEsper"
- end
- if class.Value == "Metal Bat" then
- class.Value = "MetalBat"
- end
- end)
- if class.Value == "Puri Puri" then
- class.Value = "PuriPuri"
- end
- if class.Value == "Dark Esper" then
- class.Value = "DarkEsper"
- end
- if class.Value == "Metal Bat" then
- class.Value = "MetalBat"
- end
- --Destroy Lava
- for i,v in pairs(workspace.Map.Volcano:GetChildren()) do
- if v.Name == "Part" and v:FindFirstChild("TouchInterest") then
- v:Destroy()
- end
- end
- --loading wally ui revamped By Aika
- local library = loadstring(game:HttpGet(('https://raw.githubusercontent.com/AikaV3rm/UiLib/master/Lib.lua')))()
- local w = library:CreateWindow("OPM: Destiny")
- local b = w:CreateFolder("AutoFarm")
- autofarm = false
- b:Toggle("Farm specific",function(bool)
- autofarm = bool
- end)
- local target
- local mobs = {}
- for i,v in pairs(spawns:GetChildren())do
- if not table.find(mobs,v.Name) then
- table.insert(mobs,v.Name)
- end
- end
- b:Dropdown("Mobs",mobs,true,function(a)
- target = a
- end)
- agility = false
- b:Toggle("Farm Agility",function(bool)
- agility = bool
- end)
- local c = w:CreateFolder("Farm Bosses")
- c:Label("ALL BOSSES + METEOR",{
- TextSize = 18;
- TextColor = Color3.fromRGB(0,204,0);
- BgColor = Color3.fromRGB(55,55,55);
- })
- ALL = false
- c:Toggle("Farm ALL",function(bool)
- ALL = bool
- end)
- local bossrem = c:Dropdown("Remove Boss",bosses,false,function(a)
- for i,v in pairs(bosses)do
- if v == a then
- table.remove(bosses,i)
- print(v..(": removed from the farming list"))
- end
- end
- end)
- c:Button("RESET BOSS LIST",function()
- for i,v in pairs(spawns:GetChildren())do
- 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
- if not table.find(bosses,v.Name) then
- table.insert(bosses,v.Name)
- print(v.Name.." added to the farming List..")
- end
- end
- end
- end)
- c:Button("SKIP METEOR",function()
- local HttpService = game:GetService("HttpService")
- local result = HttpService:GenerateGUID(false)
- for i,v in pairs(game:GetService("Workspace").Storage:GetChildren()) do
- if v.Name == "MeteorHitbox" or v.Name == "SuperMeteorHitbox" and v:FindFirstChild("Humanoid") then
- v.Name = result
- end
- end
- end)
- local meteorMeter = "0"
- local mobMeter = "0"
- local meteordmg = c:Label("Meteor Dmg: "..tostring(meteorMeter),{
- TextSize = 22;
- TextColor = Color3.fromRGB(0,204,0);
- BgColor = Color3.fromRGB(55,55,55);
- })
- local mobdmg = c:Label("Mob Dmg: "..tostring(mobMeter),{
- TextSize = 22;
- TextColor = Color3.fromRGB(0,204,0);
- BgColor = Color3.fromRGB(55,55,55);
- })
- local d = w:CreateFolder("Change Class")
- local LClass = d:Label("Your Class: "..class.Value,{
- TextSize = 18;
- TextColor = Color3.fromRGB(0,204,0);
- BgColor = Color3.fromRGB(55,55,55);
- })
- local LSpin = d:Label("SPINS: "..spin.Value,{
- TextSize = 23;
- TextColor = Color3.fromRGB(0,204,0);
- BgColor = Color3.fromRGB(55,55,55);
- })
- d:Label("MANUAL",{
- TextSize = 28;
- TextColor = Color3.fromRGB(255,255,255);
- BgColor = Color3.fromRGB(55,55,55);
- })
- d:Button("Purchase Spin 35k$",function()
- remote:FireServer("PurchaseSpin")
- end)
- d:Label("THIS WILL CHANGE UR CLASS",{
- TextSize = 15;
- TextColor = Color3.fromRGB(255,1,1);
- BgColor = Color3.fromRGB(55,55,55);
- })
- d:Button("Roll for new Class",function()
- game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer()
- end)
- d:Label("AUTO",{
- TextSize = 28;
- TextColor = Color3.fromRGB(255,255,255);
- BgColor = Color3.fromRGB(55,55,55);
- })
- d:Label("Roll for a Specific class",{
- TextSize = 20;
- TextColor = Color3.fromRGB(0,204,0);
- BgColor = Color3.fromRGB(55,55,55);
- })
- autoroll = false
- d:Toggle("ON/OFF",function(bool)
- autoroll = bool
- end)
- local classlist
- d:Dropdown("Pick a class",{"Ninja", "Esper", "Dark Esper", "Cyborg", "Alien", "Superhuman", "Watchdog", "Metal Bat", "Puri Puri", "Phoenix"},true,function(b)
- classlist = b
- end)
- d:Label("WARNING:Activating this will buy spins and use it untill you will have the class you have selected",{
- TextSize = 10;
- TextColor = Color3.fromRGB(255,1,1);
- BgColor = Color3.fromRGB(55,55,55);
- })
- local e = w:CreateFolder("Misc & Credits")
- autoparty = false
- e:Toggle("Auto Accept Party",function(bool)
- autoparty = bool
- end)
- stats = false
- e:Toggle("Auto Health",function(bool)
- stats = bool
- end)
- e:Label("Made by reav#2966",{
- TextSize = 22;
- TextColor = Color3.fromRGB(0,204,0);
- BgColor = Color3.fromRGB(55,55,55);
- })
- warn("| OPM: Destiny | AutoFarm by reav |")
- if player.Stats.Level.Value > 200 and player.Character.Form.Value == "" then
- remote:FireServer(class.Value.."Attack6")
- print("Awakened")
- elseif player.Stats.Level.Value < 200 then
- print("Player level too low to activate Awakening. Player level: ".. player.Stats.Level.Value)
- end
- player.CharacterAdded:Connect(function()
- wait(6)
- if player.Stats.Level.Value > 200 and player.Character.Form.Value == "" then
- remote:FireServer(class.Value.."Attack6")
- else
- print("Player level too low to activate Awakening. Player level: ".. player.Stats.Level.Value)
- end
- end)
- if class.Value == "Ninja" and player.Character then
- wait(2)
- remote:FireServer("EquipKatana")
- print("Class "..class.Value.." Found, Sword Equip Done.")
- player.CharacterAdded:Connect(function()
- wait(2)
- remote:FireServer("EquipKatana")
- end)
- end
- local quests = {}
- for i, v in next, require(questsM) do
- quests[v.Target] = i
- end
- local function train()
- remote:FireServer("Train")
- end
- local function PUNCH()
- remote:FireServer("Punch", "Right")
- end
- spawn(function()
- while wait()do
- if autofarm then
- local questId = quests[tostring(target)]
- if questId and not player:FindFirstChild("Quest") or player:FindFirstChild("Quest") and player.Quest:FindFirstChild("Target") and player.Quest.Target.Value ~= target then
- player.Character.HumanoidRootPart.CFrame=questParts["QuestPart"..questId].CFrame
- wait(.4)
- remote:FireServer("GetQuest", questId)
- wait(.4)
- else
- for i,v in pairs(spawns:GetChildren())do
- if v.Name == target and v:FindFirstChild(v.Name) then
- local mob = v:FindFirstChild(v.Name)
- if mob and mob:FindFirstChild("HumanoidRootPart") and mob:FindFirstChild("Humanoid") and mob.Humanoid.Health >0 then
- repeat
- pcall(function()
- player.Character.HumanoidRootPart.CFrame=mob.HumanoidRootPart.CFrame-player.Character.HumanoidRootPart.CFrame.lookVector*2.5
- remote:FireServer(class.Value.."Attack1", Vector3.new(mob.HumanoidRootPart.Position))
- remote:FireServer(class.Value.."Attack2", Vector3.new(mob.HumanoidRootPart.Position))
- remote:FireServer(class.Value.."Attack3", Vector3.new(mob.HumanoidRootPart.Position))
- remote:FireServer(class.Value.."Attack5", Vector3.new(mob.HumanoidRootPart.Position))
- end)
- wait()
- 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
- end
- end
- end
- end
- end
- end
- end)
- pcall(function()
- class.Changed:Connect(function()
- LClass:Refresh("Your class " .. class.Value)
- end)
- spin.Changed:Connect(function()
- LSpin:Refresh("SPINS: " .. spin.Value)
- end)
- end)
- --Autoroll
- spawn(function()
- while wait() do
- if autoroll and class.Value ~= classlist then
- wait(.5)
- remote:FireServer("PurchaseSpin")
- if class.Value ~= classlist then
- game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer()
- print("Changing Class.. "..class.Value)
- else
- print("Your class is already "..classlist)
- autoroll = false
- end
- end
- end
- end)
- spawn(function()
- game:GetService("RunService").RenderStepped:Connect(function()
- if autofarm or ALL then
- pcall(function()
- player.Character.Humanoid:ChangeState(11)
- end)
- end
- end)
- end)
- local PartyInvite = player.PlayerGui.ScreenGui.PartyInviteBG
- PartyInvite.Changed:Connect(function()
- if autoparty then
- remote:FireServer("AcceptInvite");
- end
- end)
- local meteorL = game:GetService("Workspace").Storage
- spawn(function()
- while wait()do
- if ALL then
- if meteorL:FindFirstChild("MeteorHitbox") or meteorL:FindFirstChild("SuperMeteorHitbox") then
- for i,v in pairs(meteorL:GetChildren()) do
- if v.Name == "MeteorHitbox" or v.Name == "SuperMeteorHitbox" and v:FindFirstChild("Humanoid") then
- local SKIP = v
- repeat
- pcall(function()
- for i2,v2 in pairs(SKIP.Attackers:GetChildren()) do
- if v2.Name == player.Name then
- meteorMeter = v2.Value
- meteordmg:Refresh("Meteor Dmg: "..meteorMeter)
- end
- end
- player.Character.HumanoidRootPart.CFrame=game:GetService("Workspace").EpicPart.CFrame+Vector3.new(0,-6,0)
- remote:FireServer(class.Value.."Attack1", Vector3.new(game:GetService("Workspace").EpicPart.Position))
- remote:FireServer(class.Value.."Attack2", Vector3.new(game:GetService("Workspace").EpicPart.Position))
- remote:FireServer(class.Value.."Attack3", Vector3.new(game:GetService("Workspace").EpicPart.Position))
- remote:FireServer(class.Value.."Attack5", Vector3.new(game:GetService("Workspace").EpicPart.Position))
- end)
- wait()
- until not v or v.Humanoid or not ALL or not meteor
- end
- end
- else
- for i,v in pairs(spawns:GetChildren())do
- if table.find(bosses,v.Name) and v:FindFirstChild(v.Name) then
- local mob = v:FindFirstChild(v.Name)
- local questId = quests[tostring(v.Name)]
- if questId and not player:FindFirstChild("Quest") or player:FindFirstChild("Quest") and player.Quest:FindFirstChild("Target") and player.Quest.Target.Value ~= mob.Name then
- pcall(function()
- player.Character.HumanoidRootPart.CFrame=questParts["QuestPart"..questId].CFrame
- wait(.3)
- remote:FireServer("GetQuest", questId)
- end)
- end
- if mob and mob:FindFirstChild("HumanoidRootPart") and mob:FindFirstChild("Humanoid") and mob.Humanoid.Health >0 then
- repeat
- pcall(function()
- for i2,v2 in pairs(mob.Attackers:GetChildren()) do
- if v2.Name == player.Name then
- mobMeter = v2.Value
- mobdmg:Refresh("Mob Dmg: "..tostring(mobMeter))
- end
- end
- --player.Character.HumanoidRootPart.CFrame=CFrame.new(mob.HumanoidRootPart.Position+Vector3.new(0,-7,0)) * CFrame.Angles(math.rad(90), 0, 0)
- player.Character.HumanoidRootPart.CFrame=mob.HumanoidRootPart.CFrame-player.Character.HumanoidRootPart.CFrame.lookVector*2
- remote:FireServer(class.Value.."Attack1", Vector3.new(mob.HumanoidRootPart.Position))
- remote:FireServer(class.Value.."Attack2", Vector3.new(mob.HumanoidRootPart.Position))
- remote:FireServer(class.Value.."Attack3", Vector3.new(mob.HumanoidRootPart.Position))
- remote:FireServer(class.Value.."Attack5", Vector3.new(mob.HumanoidRootPart.Position))
- end)
- wait()
- until not mob or not mob:FindFirstChild("HumanoidRootPart") or not mob:FindFirstChild("Humanoid") or mob:FindFirstChild("Humanoid").Health <=0 or not ALL or meteor
- end
- end
- end
- end
- end
- end
- end)
- spawn(function()
- while wait()do
- PUNCH()
- if class.Value == "Ninja" and player.Stats.Agility.Value < 399999 then
- remote:FireServer("LightningPunch")
- end
- end
- end)
- spawn(function()
- while wait() do
- train()
- end
- end)
- spawn(function()
- while wait() do
- if stats and attr.Value ~= 0 then
- remote:FireServer("UpgradeHealth", attr.Value)
- print(attr.Value.." points on Health")
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement