0% found this document useful (0 votes)
90 views15 pages

Lootify AutoFarm Script for Roblox

Uploaded by

bintang0wiratama
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
90 views15 pages

Lootify AutoFarm Script for Roblox

Uploaded by

bintang0wiratama
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

local ui =

loadstring(game:HttpGet('[Link]
2/main/[Link]'))()
local mainWindow = [Link]({
text = 'Lootify Updated By Huclom',
size = [Link](0, 650, 0, 400)
})
[Link]()

local autoFarmTab = [Link]({


text = 'AutoFarm',
padding = [Link](10, 10)
})

local autoKillEnabled = false


local lastActionTime = [Link]()

local dungeonList = {
{
name = '[...] None',
id = nil
},
{
name = '01. Starter',
id = 101002
},
{
name = '01. Medium',
id = 101003
},
{
name = '01. Hard',
id = 101004
},
{
name = '01. Extreme',
id = 101005
},
{
name = '01. Final Boss',
id = 101006
},
{
name = '02. Starter',
id = 101007
},
{
name = '02. Medium',
id = 101008
},
{
name = '02. Hard',
id = 101009
},
{
name = '02. Extreme',
id = 101010
},
{
name = '02. Final Boss',
id = 101011
},
{
name = '02. Secret Boss',
id = 101012
},
{
name = '03. Starter',
id = 101013
},
{
name = '03. Medium',
id = 101014
},
{
name = '03. Hard',
id = 101015
},
{
name = '03. Extreme',
id = 101016
},
{
name = '03. Final Boss',
id = 101017
},
{
name = '04. Starter',
id = 101025
},
{
name = '04. Medium',
id = 101026
},
{
name = '04. Hard',
id = 101027
},
{
name = '04. Extreme',
id = 101028
},
{
name = '04. Final Boss',
id = 101029
}
}

local priorityList = {}

local function findClosestEnemy()


local closestDistance, closestEnemy = [Link], nil
local playerRoot = [Link] and
[Link]:FindFirstChild('HumanoidRootPart')

if not playerRoot then


return nil
end

for _, enemy in pairs(workspace:FindFirstChild('EnemyFolder'):GetChildren()) do


if enemy:IsA('Model') and enemy:FindFirstChild('HumanoidRootPart') and
enemy:FindFirstChild('Humanoid') and [Link] > 0 then
local distance = ([Link] -
[Link]).Magnitude
if distance < closestDistance then
closestDistance = distance
closestEnemy = enemy
end
end
end

return closestEnemy
end

local tweenService = game:GetService('TweenService')

local function moveToTarget(playerRoot, target)


local targetCFrame = [Link] * [Link](0, 0, 5)
local tweenInfo = [Link](0.1, [Link],
[Link])
local tween = tweenService:Create(playerRoot, tweenInfo, {
CFrame = targetCFrame
})
tween:Play()
end

local function enemiesExist()


local enemyFolder = workspace:FindFirstChild('EnemyFolder')
if not enemyFolder then
return false
end

for _, enemy in pairs(enemyFolder:GetChildren()) do


if enemy:IsA('Model') and enemy:FindFirstChild('Humanoid') and
[Link] > 0 then
return true
end
end

return false
end

local dungeonPositions = {
[101002] = [Link](37.09999999999991, 101.35, -306.84),
[101003] = [Link](14.54000000000002, 101.34999999999991, -306.6),
[101004] = [Link](-15.3900000000001, 101.35, -307.2),
[101005] = [Link](-37.099999999999994, 101.35, -306.47),
[101006] = [Link](-2.29, 102.22, -274.05999999999995),
[101007] = [Link](-718.27, 55.77, 1270.1),
[101008] = [Link](-781.76, 56.08, 1320.87),
[101009] = [Link](-825.8899999999999, 59.6400000000001,
1408.4799999999996),
[101010] = [Link](-923.6300000000001, 56.75, 1384.1599999999999),
[101011] = [Link](-1049.83, 56.25999999999999, 1313.55),
[101012] = [Link](-893.3, 61.21000000000001, 1479.94),
[101013] = [Link](1776.08, -133.5, 2860.93),
[101014] = [Link](1378.2399999999998, -129.25, 2808.32),
[101015] = [Link](2014.44, -131.98, 2759.540000000001),
[101016] = [Link](1366.6400000000003, -127.01, 2824.76),
[101017] = [Link](1992.17, -65.05, 2805.37),
[101025] = [Link](3655.67, 56.26, 1261.62),
[101026] = [Link](3751.95, 56.78, 1254.43),
[101027] = [Link](3788.69, 58.47, 1169.73),
[101028] = [Link](3927.13, 58.92, 1139.26),
[101029] = [Link](4040.52, 66.84, 1152.36)
}

local function teleportToDungeon(dungeonId)


local player = [Link]
local character = [Link] or [Link]:Wait()
local humanoidRootPart = character:FindFirstChild('HumanoidRootPart')

if humanoidRootPart and dungeonPositions[dungeonId] then


[Link] = [Link](dungeonPositions[dungeonId])
print('Teleported to dungeon:', dungeonId)
else
print('Invalid dungeon ID or missing HumanoidRootPart')
end
end

local function tryNextDungeon()


for _, dungeonInfo in ipairs(priorityList) do
teleportToDungeon([Link])
wait(1)

local args = {
[Link]
}

game:GetService('ReplicatedStorage'):WaitForChild('Remotes'):WaitForChild('Region')
:WaitForChild('EnterRegion'):FireServer(unpack(args))

print('Attempting to enter:', [Link])


wait(8)

if enemiesExist() then
print('Enemies detected. Proceeding with Auto Kill.')
return
else
print('No enemies detected in:', [Link], '. Trying next
priority...')
end
end
print('All selected dungeons attempted. Restarting from priority 1.')
end

local function toggleAutoKill(enabled)


autoKillEnabled = enabled
local player = [Link]
local respawnDelay = 5
local noEnemiesTimeout = 8
local noEnemiesCounter = 0

if autoKillEnabled then
print('Auto Kill enabled')
spawn(function()
while autoKillEnabled do
pcall(function()
local character = [Link] or
[Link]:Wait()
local humanoid = character:WaitForChild('Humanoid', 5)
local humanoidRootPart =
character:WaitForChild('HumanoidRootPart', 5)

if [Link] <= 0 then


print('-- Player is dead. Waiting to respawn...')
repeat
wait(1)
humanoid = [Link]:WaitForChild('Humanoid', 5)
until [Link] > 0
print('-- Respawn detected. Waiting before resuming
attacks...')
wait(respawnDelay)
end

if not humanoidRootPart or not humanoid then


print('-- Tool or HumanoidRootPart not found, retrying...')
return
end

local tool = character:FindFirstChildOfClass('Tool') or


[Link]:FindFirstChildOfClass('Tool')

if not tool then


print('-- Tool not found, retrying...')
return
end

if [Link] ~= character then


[Link] = character
wait(0.5)
end

local target = findClosestEnemy()

if target then
print('-- Enemy found, attacking immediately')
moveToTarget(humanoidRootPart, target)
tool:Activate()
noEnemiesCounter = 0
else
print('-- No target found, checking for enemies...')
end
end)
wait(0.1)
end
end)

spawn(function()
while autoKillEnabled do
if not enemiesExist() then
noEnemiesCounter = noEnemiesCounter + 1
if noEnemiesCounter >= noEnemiesTimeout then
print('No enemies detected for 8 seconds. Attempting to
join next dungeon in priority order...')
tryNextDungeon()
noEnemiesCounter = 0
end
else
noEnemiesCounter = 0
end
wait(1)
end
end)
else
print('Auto Kill disabled')
end
end

local autoKillSwitch = [Link]('switch', {


text = 'Auto Kill',
tooltip = 'Smoothly tethers behind enemies and attacks them automatically.'
})
[Link](false)
[Link]:Connect(toggleAutoKill)

local priorityDropdowns = {}
for i = 1, 10 do
local dropdown = [Link]('dropdown', {
text = 'Priority ' .. i,
tooltip = 'Select dungeon for priority ' .. i
})

for _, dungeonInfo in ipairs(dungeonList) do


[Link]([Link])
end

[Link]:Connect(function(selectedName)
for _, dungeonInfo in ipairs(dungeonList) do
if [Link] == selectedName then
priorityList[i] = {
name = selectedName,
id = [Link]
}
print('Set priority ' .. i .. ' to dungeon:', selectedName)
break
end
end
end)

[Link](priorityDropdowns, dropdown)
end

[Link]('label', {
text = 'Do not TP to dungeons across different islands as it may ban you.',
color = [Link](1, 0, 0)
})

[Link]('label', {
text = 'Wait 10 seconds then it will TP you :3',
color = [Link](1, 0, 0)
})
local autoTab = [Link]({
text = 'Auto',
padding = [Link](10, 10)
})

local autoPickupRelicSwitch = [Link]('switch', {


text = 'Auto Pickup Ancient Relic',
tooltip = 'Automatically picks up Ancient Relics by teleporting and interacting
with them.'
})
[Link](false)

local player = [Link]


local autoPickupRelicEnabled = false

local function tweenToPosition(part)


local character = [Link] or [Link]:Wait()
local humanoidRootPart = character:WaitForChild('HumanoidRootPart')

if humanoidRootPart then
local targetCFrame = [Link] + [Link](0, 3, 0)
local tweenInfo = [Link](0.8, [Link],
[Link])
local tween = tweenService:Create(humanoidRootPart, tweenInfo, {
CFrame = targetCFrame
})
tween:Play()
[Link]:Wait()
end
end

local function interactWithPrompt(prompt)


print('Interacting with ProximityPrompt at:', [Link])
fireproximityprompt(prompt)
wait(0.5)
end

local function scanForRelics()


local character = [Link] or [Link]:Wait()
local humanoidRootPart = character:WaitForChild('HumanoidRootPart')
local originalPosition = [Link]
local relicsFound = 0

local relicsFolder = workspace:FindFirstChild('Folder')


if not relicsFolder then
print('Folder not found!')
return
end

print('Scanning for relics inside Folder...')


for _, relic in ipairs(relicsFolder:GetChildren()) do
if relic:IsA('Model') then
local relicPart = relic:FindFirstChildWhichIsA('Part')
local proximityPrompt = relic:FindFirstChildWhichIsA('ProximityPrompt',
true)

if relicPart and proximityPrompt then


relicsFound = relicsFound + 1
print('Found Relic:', [Link])
tweenToPosition(relicPart)
interactWithPrompt(proximityPrompt)
[Link] = originalPosition
end
end
end

if relicsFound == 0 then
print('No Ancient Relics found.')
else
print('Processed', relicsFound, 'relic(s).')
end
end

local function toggleAutoPickupRelic(enabled)


autoPickupRelicEnabled = enabled

if autoPickupRelicEnabled then
print('Auto Pickup Ancient Relic enabled')
while autoPickupRelicEnabled do
pcall(scanForRelics)
wait(1)
end
else
print('Auto Pickup Ancient Relic disabled')
end
end

[Link]:Connect(toggleAutoPickupRelic)

local autoPickupPotionSwitch = [Link]('switch', {


text = 'Auto Pickup Potion',
tooltip = 'Automatically picks up potions by teleporting to them and
interacting with them.'
})
[Link](false)

local autoPickupPotionEnabled = false

local function tweenToPotion(potion)


local player = [Link]
local character = [Link] or [Link]:Wait()
local humanoidRootPart = character:WaitForChild('HumanoidRootPart')
local originalPosition = [Link]

if potion and potion:IsA('Part') then


print('Tweening to potion:', [Link])
local targetPosition = [Link] + [Link](0, 3, 0)
local tweenInfo = [Link](0.8, [Link],
[Link])

local tween = tweenService:Create(humanoidRootPart, tweenInfo, {


CFrame = targetPosition
})
tween:Play()
[Link]:Wait()

local humanoid = character:FindFirstChild('Humanoid')


if humanoid then
[Link] = true
wait(1)
end

local returnTween = tweenService:Create(humanoidRootPart, tweenInfo, {


CFrame = originalPosition
})
returnTween:Play()
end
end

local function scanForPotions()


local potionsFound = 0
local potionsFolder = workspace:FindFirstChild('Folder')

if not potionsFolder then


print('Folder not found!')
return
end

for _, potion in ipairs(potionsFolder:GetChildren()) do


if potion:IsA('Part') then
potionsFound = potionsFound + 1
print('Found Potion:', [Link])
tweenToPotion(potion)
end
end

if potionsFound == 0 then
print('No potions found.')
else
print('Processed', potionsFound, 'potion(s).')
end
end

local function toggleAutoPickupPotion(enabled)


autoPickupPotionEnabled = enabled

if autoPickupPotionEnabled then
print('Auto Pickup Potion enabled')
while autoPickupPotionEnabled do
pcall(scanForPotions)
wait(1)
end
else
print('Auto Pickup Potion disabled')
end
end

[Link]:Connect(toggleAutoPickupPotion)

[Link]('label', {
text = '------------------',
color = [Link](1, 1, 1)
})

local autoUseCoinBoostSwitch = [Link]('switch', {


text = 'Auto Use Potion: Coin Boost',
tooltip = 'Automatically uses Coin Boost potion every 2 seconds.'
})
[Link](false)

local autoUseCoinBoostEnabled = false

local function toggleAutoUseCoinBoost(enabled)


autoUseCoinBoostEnabled = enabled

if autoUseCoinBoostEnabled then
print('Auto Use Potion: Coin Boost enabled')
while autoUseCoinBoostEnabled do
pcall(function()
local args = {
[1] = 104010
}

game:GetService('ReplicatedStorage'):WaitForChild('Remotes'):WaitForChild('Item'):W
aitForChild('Use'):FireServer(unpack(args))
end)
wait(2)
end
else
print('Auto Use Potion: Coin Boost disabled')
end
end

[Link]:Connect(toggleAutoUseCoinBoost)

local autoUseLuckSwitch = [Link]('switch', {


text = 'Auto Use Potion: Luck',
tooltip = 'Automatically uses Luck potion every 2 seconds.'
})
[Link](false)

local autoUseLuckEnabled = false

local function toggleAutoUseLuck(enabled)


autoUseLuckEnabled = enabled

if autoUseLuckEnabled then
print('Auto Use Potion: Luck enabled')
while autoUseLuckEnabled do
pcall(function()
local args = {
[1] = 104001
}

game:GetService('ReplicatedStorage'):WaitForChild('Remotes'):WaitForChild('Item'):W
aitForChild('Use'):FireServer(unpack(args))
end)
wait(2)
end
else
print('Auto Use Potion: Luck disabled')
end
end

[Link]:Connect(toggleAutoUseLuck)
local autoUseRollSpeedSwitch = [Link]('switch', {
text = 'Auto Use Potion: Roll Speed',
tooltip = 'Automatically uses Roll Speed potion every 2 seconds.'
})
[Link](false)

local autoUseRollSpeedEnabled = false

local function toggleAutoUseRollSpeed(enabled)


autoUseRollSpeedEnabled = enabled

if autoUseRollSpeedEnabled then
print('Auto Use Potion: Roll Speed enabled')
while autoUseRollSpeedEnabled do
pcall(function()
local args = {
[1] = 104004
}

game:GetService('ReplicatedStorage'):WaitForChild('Remotes'):WaitForChild('Item'):W
aitForChild('Use'):FireServer(unpack(args))
end)
wait(2)
end
else
print('Auto Use Potion: Roll Speed disabled')
end
end

[Link]:Connect(toggleAutoUseRollSpeed)

local autoUseExpSwitch = [Link]('switch', {


text = 'Auto Use Potion: Exp',
tooltip = 'Automatically uses Exp potion every 2 seconds.'
})
[Link](false)

local autoUseExpEnabled = false

local function toggleAutoUseExp(enabled)


autoUseExpEnabled = enabled

if autoUseExpEnabled then
print('Auto Use Potion: Exp enabled')
while autoUseExpEnabled do
pcall(function()
local args = {
[1] = 104007
}

game:GetService('ReplicatedStorage'):WaitForChild('Remotes'):WaitForChild('Item'):W
aitForChild('Use'):FireServer(unpack(args))
end)
wait(2)
end
else
print('Auto Use Potion: Exp disabled')
end
end
[Link]:Connect(toggleAutoUseExp)

local miscTab = [Link]({


text = 'Misc',
padding = [Link](10, 10)
})

local autoRollEnabled = false

local function toggleAutoRoll(enabled)


autoRollEnabled = enabled

if autoRollEnabled then
print('Auto Roll enabled')
while autoRollEnabled do
pcall(function()

game:GetService('ReplicatedStorage'):WaitForChild('Remotes'):WaitForChild('RollChes
t'):WaitForChild('RollCmd'):FireServer()
end)
wait(0.01)
end
else
print('Auto Roll disabled')
end
end

local autoRollSwitch = [Link]('switch', {


text = 'Auto Roll',
tooltip = 'Rolls chests automatically every 0.01 seconds.'
})
[Link](false)
[Link]:Connect(toggleAutoRoll)

local equipBestEnabled = false

local function toggleEquipBest(enabled)


equipBestEnabled = enabled

if equipBestEnabled then
print('Equip Best enabled')
while equipBestEnabled do
pcall(function()

game:GetService('ReplicatedStorage'):WaitForChild('Remotes'):WaitForChild('Backpack
'):WaitForChild('EquipBest'):FireServer()
end)
wait(1)
end
else
print('Equip Best disabled')
end
end

local autoRebirthEnabled = false

local function toggleAutoRebirth(enabled)


autoRebirthEnabled = enabled
if autoRebirthEnabled then
print('Auto Rebirth enabled')
while autoRebirthEnabled do
pcall(function()

game:GetService('ReplicatedStorage'):WaitForChild('Remotes'):WaitForChild('Rebirth'
):WaitForChild('TryRebirth'):FireServer()
end)
wait(5)
end
else
print('Auto Rebirth disabled')
end
end

local autoRebirthSwitch = [Link]('switch', {


text = 'Auto Rebirth',
tooltip = 'Automatically attempts to rebirth every 5 seconds.'
})
[Link](false)
[Link]:Connect(toggleAutoRebirth)

local equipBestSwitch = [Link]('switch', {


text = 'Equip Best',
tooltip = 'Automatically equips the best items every second.'
})
[Link](false)
[Link]:Connect(toggleEquipBest)

local autoSellEnabled = false

local function sellItems()


local deleteRemote =
game:GetService('ReplicatedStorage'):WaitForChild('Remotes'):WaitForChild('Backpack
'):WaitForChild('Delete')
local itemsToSell = {}

for i = 1, 30 do
[Link](itemsToSell, i)
end

if #itemsToSell > 0 then


local args = {
itemsToSell,
nil,
true
}
deleteRemote:FireServer(unpack(args))
print('Auto Sell triggered for items:', [Link](itemsToSell, ', '))
else
print('No items to sell.')
end
end

local function toggleAutoSell(enabled)


autoSellEnabled = enabled

if autoSellEnabled then
print('Auto Sell enabled')
while autoSellEnabled do
sellItems()
wait(5)
end
else
print('Auto Sell disabled')
end
end

local autoSellSwitch = [Link]('switch', {


text = 'Auto Sell',
tooltip = 'Automatically sells all inventory items every second.'
})
[Link](false)
[Link]:Connect(toggleAutoSell)

[Link]('label', {
text = 'Note: Use Equip Best, Auto Roll, and Auto Sell for faster
progression.',
color = [Link](0, 1, 0)
})

local teleportTab = [Link]({


text = 'TP',
padding = [Link](10, 10)
})

local function teleportTo(position)


local player = [Link]
local character = [Link] or [Link]:Wait()
local humanoidRootPart = character:FindFirstChild('HumanoidRootPart')

if humanoidRootPart then
[Link] = [Link](position)
print('Teleported to:', position)
else
print('HumanoidRootPart not found!')
end
end

local island1Button = [Link]('button', {


text = 'Teleport to Island 1'
})
[Link]:Connect(function()
teleportTo([Link](-1.07, 97.28999999999996, -400.77))
end)

local island2Button = [Link]('button', {


text = 'Teleport to Island 2'
})
[Link]:Connect(function()
teleportTo([Link](-667.32, 72.21, 1327.43))
end)

local island3Button = [Link]('button', {


text = 'Teleport to Island 3'
})
[Link]:Connect(function()
teleportTo([Link](1731.0500000000002, 53.58, 2833.26))
end)
--nuevo contenido aqui
local island4Button = [Link]('button', {
text = 'Teleport to Island 4'
})
[Link]:Connect(function()
teleportTo([Link](3561.03, 58.73, 1739.64))
end)

local island5Button = [Link]('button', {


text = 'Teleport to Island 5'
})
[Link]:Connect(function()
teleportTo([Link](1339.02, 701.68, 1203.47))
end)

local island6Button = [Link]('button', {


text = 'Teleport to Island 6'
})
[Link]:Connect(function()
teleportTo([Link](3068.84, 53.87, -679.50))
end)

-----------------------

local infoTab = [Link]({


text = 'Info',
padding = [Link](10, 10)
})

[Link]('label', {
text = 'Contact',
color = [Link](1, 1, 1)
})

[Link]('label', {
text = "Contact\n------------\nDiscord: Huclom\n",
color = [Link](1, 1, 1)
})

[Link]('label', {
text = " "
})

[Link]('label', {
text = 'Updated by Huclom.',
color = [Link](1, 0, 0)
})

You might also like