getgenv().CODE = [[
if not game:IsLoaded() then
game.Loaded:Wait()
end
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
local Teams = game:GetService("Teams")
local TeleportService = game:GetService("TeleportService")
local HttpService = game:GetService("HttpService")
local ACS_Engine
repeat
task.wait()
ACS_Engine = ReplicatedStorage:FindFirstChild("ACS_Engine")
until ACS_Engine
local Events = ACS_Engine.Events
local Remotes = ReplicatedStorage.Remotes
local teams = {}
local myPlayer = Players.LocalPlayer
for i, v in Teams:GetTeams() do
if v.AutoAssignable or v == myPlayer.Team then
continue
end
table.insert(teams, v)
end
Remotes.Time:FireServer(teams[math.random(1, #teams)])
myPlayer.CharacterAdded:Wait()
task.wait() -- roblox roblox
local gunName = "AK-103"
Remotes.PlayerGun:FireServer(1, "AK-103", true)
task.wait(3)
myPlayer.Backpack[gunName].Parent = myPlayer.Character
myPlayer.OnTeleport:Connect(function(State)
queue_on_teleport(getgenv().CODE)
end)
local function TeleportToBestServer()
local body
repeat
body = HttpService:JSONDecode(
game:HttpGet(`https://games.roblox.com/v1/games/{game.PlaceId}/servers/Public?sortOrder=Desc&limit=100&excludeFullGames=true`)
)
until body and body.data and task.wait(1)
local bestServer
while not bestServer do
for i, v in body.data do
if type(v) ~= "table" then
continue
end
if v.playing >= v.maxPlayers then
continue
end
bestServer = v.id
end
task.wait()
end
TeleportService:TeleportToPlaceInstance(game.PlaceId, bestServer, myPlayer)
end
local gunLocalScript = (function()
for i, v in myPlayer.PlayerScripts:GetChildren() do
if not v:FindFirstChild("Events") then
continue
end
return v
end
end)()
local env = getsenv(gunLocalScript)
local GetWeaponId = env.byIdxCrr
local CastRay = env.abcdefg
local upv = getupvalues(CastRay)
local count = upv[10]
local byteRot = upv[11]
local key = upv[12]
while true do
local enemies = Players:GetPlayers()
if #enemies <= 10 then
TeleportToBestServer()
end
for _, enemy in enemies do
if enemy == myPlayer then
continue
end
local enemyCharacter = enemy.Character
if not enemyCharacter then
continue
end
local enemyRootPart = enemyCharacter:FindFirstChild("HumanoidRootPart")
if not enemyRootPart then
continue
end
Events.Damage:FireServer(enemyRootPart, enemyRootPart.Position, count, byteRot.rotate(count, key, 1), 100, GetWeaponId())
count += 1
end
task.wait(1)
end
debug.setupvalue(CastRay, 10, count)]]
loadstring(getgenv().CODE)()