Thank you for using our website
Your script:
-- // https://t.me/arceusxscripts \\ --
repeat task.wait() until game:IsLoaded()
getgenv().autofarm = true
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Services = ReplicatedStorage.ReplicatedStorage.Packages.Knit.Services
local PartyService = Services.PartyService
local GetPartyFromPlayer = PartyService.RF.GetPartyFromPlayer
local VoteOn = PartyService.RF.VoteOn
local StartDungeon = Services.DungeonService.RF.StartDungeon
local UseSword = Services.WeaponService.RF.UseSword
function createDungeon(name, difficulty, join, hardcore)
CreateParty:InvokeServer(name, difficulty, join, not hardcore and "Normal")
StartParty:InvokeServer(GetPartyFromPlayer:InvokeServer(LocalPlayer)['Data']['UUID'])
end
function retry()
VoteOn:InvokeServer("Retry")
end
function goNext()
VoteOn:InvokeServer("Next")
end
if game.PlaceId == 10515146389 then
createDungeon("SnowCastle", "Hell", "All", "Normal")
end
function startDungeon()
StartDungeon:InvokeServer()
end
function getAliveMobs()
local mobs = {}
for _,v in next, workspace.Mobs:GetChildren() do
if v:FindFirstChild("Humanoid") and v.PrimaryPart and v.Humanoid.Health > 0 then
table.insert(mobs, v)
end
end
return mobs
end
function swing()
UseSword:InvokeServer()
end
-- THIS IS FOR DODGE ATTACKS, DOESN'T WORK YET. FEEL FREE TO MAKE IT WORK
function isPositionClear(position, obstacles)
for _, obstacle in pairs(obstacles) do
if obstacle.Parent and obstacle.Name == "Warning" and obstacle.Transparency ~= 1 then
local distance = (Vector3.new(position.X, 0, position.Z) - Vector3.new(obstacle.Position.X, 0, obstacle.Position.Y)).Magnitude
if distance - 1 0 then
local targetPosition = (mob.PrimaryPart.CFrame).p + Vector3.new(0,4,0)
if not targetPosition then
LocalPlayer.Character.PrimaryPart.CFrame = CFrame.new(1000,100,1000)
else
local oldHealth = mob.Humanoid.Health
repeat
LocalPlayer.Character.PrimaryPart.CFrame = CFrame.new(targetPosition, mob.PrimaryPart.Position)
task.wait()
swing()
until not LocalPlayer.Character or not LocalPlayer.Character.PrimaryPart or mob.Humanoid.Health ~= oldHealth or #mob.Humanoid:GetPlayingAnimationTracks() > 1
if LocalPlayer.Character and LocalPlayer.Character.PrimaryPart then
LocalPlayer.Character.PrimaryPart.CFrame = LocalPlayer.Character.PrimaryPart.CFrame + Vector3.new(0,50,0)
end
end
end
end
function pickupShit()
for _,v in next, workspace.Camera.Drops:GetChildren() do
if v:FindFirstChild("Center") and v.Center:FindFirstChild("ProximityPrompt") then
fireproximityprompt(v.Center.ProximityPrompt)
end
end
end
while getgenv().autofarm and task.wait() do
for _, mob in next, getAliveMobs() do
killMob(mob)
pickupShit()
end
if game:GetService("Players").LocalPlayer.PlayerGui.DungeonComplete.Main.Visible then
retry()
end
end