Mobile Aimbot Script for Shooters

0% found this document useful (0 votes)
490 views1 page
This Lua script contains an aimbot for Fortnite. It checks if the shooter is on an aimbot list, finds the closest enemy player that is not on the aimbot list and in a different team, and automatically damages that enemy player when certain projectile types are launched.

Uploaded by

Paul Yuan Dablo
License
© 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
  • Code Documentation

local aimbotList = {"OptimalAces821",""}

local function StringInTable(str, tbl)


for _, value in ipairs(tbl) do
if value == str then
return true
end
end
return false
end

[Link](function(event)
if ([Link] == nil) then
return
end
if ([Link] == "arrow") or ([Link] ==
"crossbow_arrow") or ([Link] == "tactical_crossbow_arrow") or
([Link] == "headhunter_arrow") or ([Link] ==
"tactical_headhunter_arrow") then

local player = [Link]:getPlayer()


if StringInTable([Link], aimbotList) == true then
local target = nil
local targetDistance = 100000000

for i, enemy in [Link]() do


if (not enemy:getEntity():isAlive()) then
continue
end

local enemyPosition = enemy:getEntity():getPosition()


local playerPosition = player:getEntity():getPosition()
local distance = (enemyPosition - playerPosition).magnitude

if (distance < targetDistance) and (StringInTable([Link],


aimbotList) == false) and [Link](enemy) ~= [Link](player)
then
target = enemy
targetDistance = distance
end
end
if ([Link] == "arrow") then
[Link](target:getEntity(), 25)
elseif ([Link] == "crossbow_arrow") then
[Link](target:getEntity(), 35)
elseif ([Link] == "tactical_crossbow_arrow") then
[Link](target:getEntity(), 50)
elseif([Link] == "tactical_headhunter_arrow") then
[Link](target:getEntity(), 60)
end
end
end
end)

local aimbotList = {"OptimalAces821",""}
local function StringInTable(str, tbl)
    for _, value in ipairs(tbl) do
        if

You might also like