Roblox Heroes Academia AUTO FARM 2020

Roblox Heroes Academia AUTO FARM 2020

Script By serpentes

local npc = "name of the npc that you want to farm"

--hit function--
function hit()
local oh1 = "Attacking"
local oh2 = true
local oh3 = "Melee"
local oh4 = 1
game:GetService("ReplicatedStorage").Remotes.Combat:FireServer(oh1, oh2, oh3, oh4)
wait(0.5)
local oh1 = "Attacking"
local oh2 = false
game:GetService("ReplicatedStorage").Remotes.Combat:FireServer(oh1, oh2)
end

--autofarm--
spawn(function()
while wait() do
       for i,v in pairs(game:GetService("Workspace").Dummies:GetChildren())do
           if v.Name == npc then
                   repeat
                   wait()
                   hit()
game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
                   game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").CFrame = v.HumanoidRootPart.CFrame*CFrame.new(0,0,2)
                   until v.Parent == nil or v:FindFirstChildOfClass("Humanoid").Health <=0
                end
           end
end
end)
%d bloggers like this: