Project Slayers Infinite Dungeon Auto Farm
Project Slayers Infinite Dungeon Auto Farm
Project Slayers Infinite Dungeon Auto Farm
--#region Functions
local spawn, wait = task.spawn, task.wait
function Call(self, ...) --Caching the FireServer and InvokeServer functions for
optimization
local Method = self.ClassName == ("RemoteEvent") and FireServer or
self.ClassName == ("RemoteFunction") and InvokeServer
Tween:Play()
return Tween.Completed:Wait()
else
Client.Character.HumanoidRootPart.CFrame = Position + (Offset or
Vector3.zero)
return wait()
end
end
local AttackMethods = {
Fist = "fist_combat",
Sword = "Sword_Combat_Slash",
Claws = "claw_Combat_Slash"
}
function Attack()
local Method = AttackMethods[Method]
for Cycle=1, 5 do
Call(
Initiate_S,
Method,
Client,
Client.Character,
Client.Character.HumanoidRootPart,
Client.Character.Humanoid,
Cycle ~= 5 and Cycle or Cycle == 5 and 919
)
end
end
local Orbs = {
"InstaKill",
"HealthRegen",
"StaminaRegen",
"BloodMoney",
"DoublePoints",
}
function ClaimOrbs()
for i, Orb in next, Map:GetChildren() do
if table.find(Orbs, Orb.Name) then
pcall(Teleport, Orb:FindFirstChildOfClass("MeshPart").CFrame.Position,
nil, 256)
end
end
end
return Instance
end
--#endregion
--Main
local BodyVelocity = CreateInstance("BodyVelocity", {MaxForce = Vector3.new(1/0,
1/0, 1/0), Velocity = Vector3.zero, Name = "BV"})
local BodyAngularVelocity = CreateInstance("BodyAngularVelocity", {MaxTorque =
Vector3.new(1/0, 1/0, 1/0), AngularVelocity = Vector3.zero, Name = "BAV"})
spawn(function()
while _G.Enabled do
for i, Mob in next, Mobs:GetChildren() do
Mob = Mob:FindFirstChildOfClass("Model")
pcall(function()
BodyVelocity:Clone().Parent = Client.Character.LowerTorso
BodyAngularVelocity:Clone().Parent = Client.Character.LowerTorso
repeat
local Status = pcall(function()
if #Mobs:GetChildren() == 0 then
spawn(ClaimOrbs)
end
Client.Character.HumanoidRootPart.CFrame =
Mob.HumanoidRootPart.CFrame
wait(0.25)
Attack()
Teleport(Mob.HumanoidRootPart.CFrame.Position, Vector3.new(0,
50, 0), 256)
repeat wait() until Client:WaitForChild("combotangasd123",
9e9).Value == 0 and wait(0.25)
end)
if not Status or not _G.Enabled then
break
end
pcall(function()
Client.Character.LowerTorso:FindFirstChildOfClass("BodyVelocity"):Destroy()
Client.Character.LowerTorso:FindFirstChildOfClass("BodyAngularVelocity"):Destroy()
end)
end
wait()
end
end)
spawn(function()
while _G.Enabled do
local Chest =
game:GetService("Workspace").Debree:FindFirstChild("Loot_Chest")