0% found this document useful (0 votes)
4 views86 pages

Another Script

The document contains Lua code that modifies the behavior of the 'io.open' and 'require' functions to block access to specific files and modules. It also defines a 'Game' class with methods for managing game settings, including map paths based on game types and various game management functionalities. Additionally, it includes a settings system for managing hacks and custom GUI elements within the game.

Uploaded by

qifbbxub
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)
4 views86 pages

Another Script

The document contains Lua code that modifies the behavior of the 'io.open' and 'require' functions to block access to specific files and modules. It also defines a 'Game' class with methods for managing game settings, including map paths based on game types and various game management functionalities. Additionally, it includes a settings system for managing hacks and custom GUI elements within the game.

Uploaded by

qifbbxub
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 original_io_open = io.

open

[Link] = function(path, mode)

if path and tostring(path):find("proc/self/maps") then


return nil, "No such file or directory"
end

return original_io_open(path, mode)


end
function Game:isOpenGM()
return true
end

local originalRequire = require


require = function(moduleName)
if moduleName == "[Link]" then
[Link]("Blocked loading of CommonListener.")
return {}
end
return originalRequire(moduleName)
end

UIGMControlPanel = require("engine_client.[Link]")

function UIGMControlPanel:show()
[Link]("Successful✓")
[Link](self)
[Link](self)
end

function UIGMControlPanel:hide()
showCloseAnim(self, function()
[Link](self)
end)
end

function showCloseAnim(layout, callback)


local root = [Link]
local count = root:GetChildCount()
if count == 0 then
if callback then callback() end
return
end

local animationsRemaining = count

local function checkCompletion()


animationsRemaining = animationsRemaining - 1
if animationsRemaining <= 0 then
if callback then callback() end
end
end

for index = 1, count do


local content = root:GetChildByIndex(index - 1)
if content then
local scale = 0.5
content:SetScale(VectorUtil.newVector3(scale, scale, scale))

layout:addTimer(LuaTimer:scheduleTicker(function()
if scale > 0 then
scale = scale - 0.05
if scale < 0 then
scale = 0
end
content:SetScale(VectorUtil.newVector3(scale, scale, scale))
end

if scale == 0 then
checkCompletion()
end
end, 1, 20))
end
end
end

if [Link]():getGameType() == "g1008" then


local GameType
if Server then
GameType = [Link]():getConfig().gameType
end

if CGame then
GameType = [Link]():getGameType()
end

local mapPath
if [Link]():getLordPlatform() == 2 then
mapPath = [Link]() .. "/map/"
else
mapPath = [Link]():getRootPath() .. "/" .. [Link]()
.. "/map/"
end

[Link]("MapRegionPath", mapPath)

IsAIGame = false

end

if [Link]():getGameType() == "g1071" then


local GameType
if Server then
GameType = [Link]():getConfig().gameType
end
if CGame then
if [Link] then
local pos = [Link]():getWorldName():find("g1071")
if pos then
GameType = [Link]():getWorldName():sub(pos, pos + 4)
else
GameType = [Link]():getGameType()
end
else
GameType = [Link]():getGameType()
end
end

local mapPath
if [Link]():getLordPlatform() == 2 then
mapPath = [Link]() .. "/map/" .. GameType .. "/"
else
mapPath = [Link]():getRootPath() .. "/" .. [Link]()
.. "/map/" .. GameType .. "/"
end
[Link]("MapRegionPath", mapPath)
end

if [Link]():getGameType() == "g1072" then


local GameType
if Server then
GameType = [Link]():getConfig().gameType
end
if CGame then
if [Link] then
local pos = [Link]():getWorldName():find("g1072")
if pos then
GameType = [Link]():getWorldName():sub(pos, pos + 4)
else
GameType = [Link]():getGameType()
end
else
GameType = [Link]():getGameType()
end
end

local mapPath
if [Link]():getLordPlatform() == 2 then
mapPath = [Link]() .. "/map/" .. GameType .. "/"
else
mapPath = [Link]():getRootPath() .. "/" .. [Link]()
.. "/map/" .. GameType .. "/"
end
[Link]("MapRegionPath", mapPath)
end

if [Link]():getGameType() == "g1046" then


local GameType
if Server then
GameType = [Link]():getConfig().gameType
end

if CGame then
GameType = [Link]():getGameType()
end

local mapPath
if [Link]():getLordPlatform() == 2 then
mapPath = [Link]() .. "/map/"
else
mapPath = [Link]():getRootPath() .. "/" .. [Link]()
.. "/map/"
end
[Link]("MapRegionPath", mapPath)

IsAIGame = false

end

if [Link]():getGameType() == "g1062" then


local GameType
if Server then
GameType = [Link]():getConfig().gameType
end

if CGame then
GameType = [Link]():getGameType()
end

local mapPath
if [Link]():getLordPlatform() == 2 then
mapPath = [Link]() .. "/map/"
else
mapPath = [Link]():getRootPath() .. "/" .. [Link]()
.. "/map/"
end

[Link]("MapRegionPath", mapPath)

IsAIGame = false

end

if [Link]():getGameType() == "g1063" then


local GameType
if Server then
GameType = [Link]():getConfig().gameType
end

if CGame then
GameType = [Link]():getGameType()
end

local mapPath
if [Link]():getLordPlatform() == 2 then
mapPath = [Link]() .. "/map/"
else
mapPath = [Link]():getRootPath() .. "/" .. [Link]()
.. "/map/"
end

[Link]("MapRegionPath", mapPath)

IsAIGame = false

end

if [Link]():getGameType() == "g1061" then


local GameType
if Server then
GameType = [Link]():getConfig().gameType
end

if CGame then
GameType = [Link]():getGameType()
end

local mapPath
if [Link]():getLordPlatform() == 2 then
mapPath = [Link]() .. "/map/"
else
mapPath = [Link]():getRootPath() .. "/" .. [Link]()
.. "/map/"
end

[Link]("MapRegionPath", mapPath)

IsAIGame = false

end

if [Link]():getGameType() == "g1048" or [Link]():getGameType() ==


"g1049" or [Link]():getGameType() == "g1050" or
[Link]():getGameType() == "g1051" then
local GameType
if Server then
GameType = [Link]():getConfig().gameType
end
if CGame then
if [Link]().getWorldName then
local pos = [Link]():getWorldName():find("g10")
if pos then
GameType = [Link]():getWorldName():sub(pos, pos + 4)
else
GameType = [Link]():getGameType()
end
else
GameType = [Link]():getGameType()
end
end

local mapPath
if [Link]():getLordPlatform() == 2 then
mapPath = [Link]() .. "/map/" .. GameType .. "/"
else
mapPath = [Link]():getRootPath() .. "/" ..
[Link]() .. "/map/" .. GameType .. "/"
end
[Link]("MapRegionPath", mapPath)
end

local function getGameVersion()


local info = [Link]()
if info then
info = [Link](info)
if info.app_version then
return info.app_version
else
return ""
end
else
return ""
end
end

function isBedwar()
local gtype = [Link]():getGameType()
local validTypes = {
g1008 = true,
g1046 = true,
g1061 = true,
g1062 = true,
g1063 = true,
g1064 = true,
g1065 = true,
}
return validTypes[gtype] == true
end

if isBedwar() then
PacketSender = PacketSender or {}
function PacketSender:sendLuaCommonData(key, data)
if key == "ConnectorRoomMsg" then
print("Blocked key: ConnectorRoomMsg")
return
end

if not CommonSender then


return
end

CommonSender:sendLuaCommonData(key, data or "")


end
CConnectorCenter = T(Global, "ConnectorCenter")
function CConnectorCenter:sendMsg(type, data)
if type == 10103 or tostring(type) == "10103" then
print("Blocked type: 10103")
return
end

local builder = [Link]()


builder:addParam("type", type)
if v_type(data) == "table" then
data = [Link](data)
end
builder:addParam("data", data)
PacketSender:sendLuaCommonData("ConnectorMsg", builder:getListData())
end
end

function Game:init()

[Link] = [Link]()
[Link] = [Link]:getGameType()
[Link] = [Link]:isEnableIndie(true)
[Link] = [Link]()
[Link] = [Link]:getWorld()
[Link] = [Link]:isLowerDevice()
EngineWorld:setWorld([Link])
end

function Game:isOpenGM()
return isClient
end

local Settings = {}
GMHelper = {}
GMSetting = {}

local function isGMOpen(userId)


if isServer then
return true
end
return [Link](AdminIds, tostring(userId))
end

function GMSetting:addTab(tab_prefix, tab_name)


if tab_prefix ~= "ep" then
return
end

local final_tab_name = tab_name

for _, setting in pairs(Settings) do


if [Link] == final_tab_name then
[Link] = {}
return
end
end

[Link](Settings, { name = final_tab_name, items = {} })


end

function GMSetting:addItem(tab_name, item_name, func_name, ...)


local settings
for _, group in pairs(Settings) do
if [Link] == tab_name then
settings = group
break
end
end

if not settings then


return
end

[Link]([Link], { name = item_name, func = func_name, params =


{ ... } })
end

function GMSetting:getSettings()
return Settings
end

GMSetting:addTab("ep", "Hacks")
GMSetting:addItem("Hacks", "^FFA500Equip NinjaShoes", "EquipNinjaShoes")
GMSetting:addItem("Hacks", "^FFA500unlimited jumps", "Fly")
GMSetting:addItem("Hacks", "^FFA500Fast Break", "FastBreak")
GMSetting:addItem("Hacks", "^FFA500Aim Bow", "AimBow")
GMSetting:addItem("Hacks", "^FFA500NoFall", "NoFall")
GMSetting:addItem("Hacks", "^FFA500no fall damage", "NoFallDmg")
GMSetting:addItem("Hacks", "^FFA500no knock back", "NoKnockBack")
GMSetting:addItem("Hacks", "^FFA500KillAura", "KillAura")
GMSetting:addItem("Hacks", "^FFA500Skate", "Skate")
GMSetting:addItem("Hacks", "^FFA500AttackCD", "BanClickCD")
GMSetting:addItem("Hacks", "^FFA500Fast jumps", "FastJump")
GMSetting:addItem("Hacks", "^FFA500Reach", "Reach")
GMSetting:addItem("Hacks", "^FFA500Free camera", "FreeCamera")
GMSetting:addItem("Hacks", "^FFA500Fly", "DevFly")
GMSetting:addItem("Hacks", "^FFA500High Jump", "HighJump")
GMSetting:addItem("Hacks", "^FFA500Speed", "Speed")
GMSetting:addItem("Hacks", "SoftBypass Speed", "SoftBypassSpeed")
GMSetting:addItem("Hacks", "^FFA500QuickPlaceBlock", "QuickPlaceBlock")
GMSetting:addItem("Hacks", "^FFA500Respawn", "AutoRespawn")
GMSetting:addItem("Hacks", "^FFA500Blink", "Blink")
GMSetting:addItem("Hacks", "^FFA500AimBot", "AimBot")
GMSetting:addItem("Hacks", "^FFA500HitBox", "HitBox")
GMSetting:addItem("Hacks", "^FFA500Cannon Button", "CannonBtn")
GMSetting:addItem("Hacks", "^FFA500Jet Pack", "JetPack")
GMSetting:addItem("Hacks", "^FFA500Teleport Killer", "TeleportKiller")
GMSetting:addItem("Hacks", "^FFA500Teleport KillerV2", "TpKill")
GMSetting:addItem("Hacks", "^FFA500Teleport Click", "TpClick")
GMSetting:addItem("Hacks", "^FFA500Attack button", "AtkBtn")
GMSetting:addItem("Hacks", "^FFA500Anti Void", "AntiVoid")
GMSetting:addItem("Hacks", "^FFA500Un Death", "UnDeath")
GMSetting:addItem("Hacks", "^FFA500DeathChangePlace", "DeathChangePlace")
GMSetting:addItem("Hacks", "^FFA500BreakBlock", "BreakBlock")
GMSetting:addItem("Hacks", "^FFA500BedDestroyer", "BedDestroyer")
GMSetting:addItem("Hacks", "^FFA500RaketButton", "RaketButton")

GMSetting:addTab("ep", "CustomGUI")
GMSetting:addItem("CustomGUI", "^FF0000JetPack", "btnJetPack")
GMSetting:addItem("CustomGUI", "^FF0000HitBox", "BtnHitBox")
GMSetting:addItem("CustomGUI", "^FF0000Emote Freeze", "BtnEmoteFrezze")
GMSetting:addItem("CustomGUI", "^FF0000Button Cannon", "CannonBtn")

GMSetting:addTab("ep", "View")
GMSetting:addItem("View", "^FFA500Glowing Butterfly Wings", "equipWings", "117")
GMSetting:addItem("View", "^FFA500Chroma Wings", "equipWings", "27")
GMSetting:addItem("View", "^FFA500Dark Wings", "equipWings", "13")
GMSetting:addItem("View", "^FFA500Angel Wings", "equipWings", "1")
GMSetting:addItem("View", "^FFA500Golden Wings", "equipWings", "62")
GMSetting:addItem("View", "^FFA500Feather Wings", "equipWings", "42")
GMSetting:addItem("View", "^FFA500Vampire Wings", "equipWings", "60")
GMSetting:addItem("View", "^FFA500BlueMetal Wing", "equipWings", "24")
GMSetting:addItem("View", "^FFA500YellowMetal Wing", "equipWings", "20")
GMSetting:addItem("View", "^FFA500Orbital Rainbow Balls", "equipWings", "44")
GMSetting:addItem("View", "&$[ffca00ff-fbd33fff-cad2ceff-23b8feff-677dffff-
ac61ffff-fd15ffff]$Rainbow Name$&", "RainbowName")
GMSetting:addItem("View", "^FF0000Red Name", "SetNameColor", "Red")
GMSetting:addItem("View", "^0000FFBlue Name", "SetNameColor", "Blue")
GMSetting:addItem("View", "&$[ffca00ff-fbd33fff-]$Black Name$&", "SetNameColor",
"Black")
GMSetting:addItem("View", "^FFFFFFWhite Name", "SetNameColor", "White")
GMSetting:addItem("View", "^00FF00Green Name", "SetNameColor", "Green")
GMSetting:addItem("View", "^FFFF00Yellow Name", "SetNameColor", "Yellow")
GMSetting:addItem("View", "^800080PurpleName", "SetNameColor", "Purple")
GMSetting:addItem("View", "^FFC0CBPink Name", "SetNameColor", "Pink")
GMSetting:addItem("View", "^FFA500Orange Name", "SetNameColor", "Orange")
GMSetting:addItem("View", "^FFD700Gold Name", "SetNameColor", "Gold")
GMSetting:addItem("View", "^00FFFFCyan Name", "SetNameColor", "Cyan")
GMSetting:addItem("View", "^FF0000change Nickname", "ChangeNick")

GMSetting:addTab("ep", "ModsHacks")
GMSetting:addItem("ModsHacks", "^FFA500Unlock FPS", "UnlockFps")
GMSetting:addItem("ModsHacks", "^FFA500No Lag", "NoLag")
GMSetting:addItem("ModsHacks", "^FFA500WWE Camera", "WWE_Camera")
GMSetting:addItem("ModsHacks", "^FFA500Esp", "EspMode")
GMSetting:addItem("ModsHacks", "^FFA500Tracer", "Tracer")
GMSetting:addItem("Hacks", "^FFA500TPAllMobs ToME", "TPAllMobsToME")
GMSetting:addItem("ModsHacks", "^FFA500stop players", "StopPlayers")
GMSetting:addItem("ModsHacks", "^FFA500find enemy", "CountEnemies")
GMSetting:addItem("ModsHacks", "^FFA500DmgInc", "DmgInc")
GMSetting:addItem("ModsHacks", "^FFA500Hide Me", "HideMe")
GMSetting:addItem("ModsHacks", "runCode", "Runcode")
GMSetting:addItem("ModsHacks", "run file", "RunFile")
GMSetting:addItem("ModsHacks", "^FF0000Infinity Bridge", "infbrid1")

local Ep = [Link]():getGameType()
local Jb = (Ep == "g1027" or Ep == "g1014")

if Jb then
GMSetting:addTab("ep", "Customset")
GMSetting:addItem("Customset", "^FF0000resetValues", "restValues")
GMSetting:addItem("Customset", "^FFA500SetSpeed", "SetSpeed")
GMSetting:addItem("Customset", "^FFA500SetHighJump", "SetHighJump")
GMSetting:addItem("Customset", "^FFA500SetFov", "SetFov")
GMSetting:addItem("Customset", "^FFA500SetMaxFPS", "SetMaxFPS")
GMSetting:addItem("Customset", "^FFA500ShowHP", "ShowHP")
GMSetting:addItem("Customset", "^FFA500HideHP", "HideHP")
GMSetting:addItem("Customset", "^FFA500Day", "Day")
GMSetting:addItem("Customset", "^FFA500Night", "Night")
GMSetting:addItem("Customset", "^FFA500Evening", "Evening")
GMSetting:addItem("Customset", "^FFA500Snow", "Snow")
end

GMSetting:addTab("ep", "Panel")
GMSetting:addItem("Panel", "^FFAF00Hide/Show GM", "HidePanel")
GMSetting:addItem("Panel", "^FFAF00DDOS", "LagServer2")
GMSetting:addItem("Panel", "^FFAF00re-Enter", "reEnter")
GMSetting:addItem("Panel", "^FFAF00CloseGame", "closeGame")

GMSetting:addTab("ep", "AdminTools")
GMSetting:addItem("AdminTools", "Unlimited Gcubes", "Money")
GMSetting:addItem("AdminTools", "Fake Cash", "Jiang")
GMSetting:addItem("AdminTools", "StarlightDDOS", "guesten")
GMSetting:addItem("AdminTools", "no ban", "bypassId16")

GMSetting:addTab("ep", "Skybox")
GMSetting:addItem("Skybox", "yu", "yu")
GMSetting:addItem("Skybox", "liuxing", "liuxing")
GMSetting:addItem("Skybox", "xue", "xue")
GMSetting:addItem("Skybox", "fanxing", "fanxing")
GMSetting:addItem("Skybox", "qing", "qing")
GMSetting:addItem("Skybox", "wanxia", "wanxia")
GMSetting:addItem("Skybox", "sky2", "sky2")
GMSetting:addItem("Skybox", "starfield04", "starfield04")

GMSetting:addTab("ep", "ClothesSet")
local items = {
{text = "^FFA500Face +", key = "FacePositive"},
{text = "^FFA500Face -", key = "FaceNegative"},
{text = "^FFA500Glasses +", key = "GlassesPositive"},
{text = "^FFA500Glasses -", key = "GlassesNegative"},
{text = "^FFA500Hair +", key = "HairPositive"},
{text = "^FFA500Hair -", key = "HairNegative"},
{text = "^FFA500Pants +", key = "PantsPositive"},
{text = "^FFA500Pants -", key = "PantsNegative"},
{text = "^FFA500Scarf +", key = "ScarfPositive"},
{text = "^FFA500Scarf -", key = "ScarfNegative"},
{text = "^FFA500Shoes +", key = "ShoesPositive"},
{text = "^FFA500Shoes -", key = "ShoesNegative"},
{text = "^FFA500Tops +", key = "TopsPositive"},
{text = "^FFA500Tops -", key = "TopsNegative"},
{text = "^FFA500Wing +", key = "WingPositive"},
{text = "^FFA500Wing -", key = "WingNegative"},
}

local function addVisibleItemsWithSpacing(items)


[Link](items, function(a, b) return [Link] < [Link] end)
local count = 0
for _, item in ipairs(items) do
if [Link] ~= "" and [Link] ~= "" then
GMSetting:addItem("ClothesSet", [Link], [Link])
count = count + 1
if count % 2 == 0 then
GMSetting:addItem("ClothesSet", "", "")
end
end
end
end

addVisibleItemsWithSpacing(items)

GMSetting:addTab("ep", "AddVIP")
local vipItems = {
{text = "^FFA500Vip1", key = "UpdatePlayerNickname"},
{text = "^FFA500Vip2", key = "UpdatePlayerNickname2"},
{text = "^FFA500Vip3", key = "UpdatePlayerNickname3"},
{text = "^FFA500Vip4", key = "UpdatePlayerNickname4"},
{text = "^FFA500Vip5", key = "UpdatePlayerNickname5"},
{text = "^FFA500Vip6", key = "UpdatePlayerNickname6"},
{text = "^FFA500Vip7", key = "UpdatePlayerNickname7"},
{text = "^FFA500Vip8", key = "UpdatePlayerNickname8"},
{text = "^FFA500Vip9", key = "UpdatePlayerNickname9"},
{text = "^FFA500Vip10", key = "UpdatePlayerNickname10"},
{text = "^FFA500Vip11", key = "UpdatePlayerNickname11"},
}

local function addVisibleVipItems(items)


local count = 0
for _, item in ipairs(items) do
if [Link] ~= "" then
GMSetting:addItem("AddVIP", [Link], [Link])
count = count + 1
if count == 2 then
GMSetting:addItem("AddVIP", "", "")
count = 0
end
end
end
end

addVisibleVipItems(vipItems)

local Ep = [Link]():getGameType()
if Ep == "g1027" then
GMSetting:addTab("ep", "sky royale")
GMSetting:addItem("sky royale", "^00FFFFAuto Bridge", "BuildBlock")
GMSetting:addItem("sky royale", "^FF0000Tp to Red", "TpRedSR")
GMSetting:addItem("sky royale", "^0000FFTp to Blue", "TpBlueSR")
GMSetting:addItem("sky royale", "^FFFF00Tp to Yellow", "TpYellowSR")
GMSetting:addItem("sky royale", "^008000Tp to Green", "TpGreenSR")
elseif Ep == "g1072" then
GMSetting:addTab("ep", "clan wars")
GMSetting:addItem("clan wars", "^FF0000Tp to Red Clan", "tp_flag1")
GMSetting:addItem("clan wars", "^0000FFTp to Blue Clan", "tp_flag2")
GMSetting:addItem("clan wars", "^00FFFFattack player",
"AttackAllNearbyPlayers")
elseif Ep == "g1014" then
GMSetting:addTab("ep", "jail break")
GMSetting:addItem("jail break", "^00FFFFTp Police", "TpPolice")
GMSetting:addItem("jail break", "^00FFFFTp Jail", "TpJail")
GMSetting:addItem("jail break", "^00FFFFTp Bink", "TpBank")
GMSetting:addItem("jail break", "^00FFFFTp Shop", "TpShop")
GMSetting:addItem("jail break", "^00FFFFTp JailShop", "TpJailShop")
GMSetting:addItem("jail break", "^00FFFFTp Library", "TpLibrary")
GMSetting:addItem("jail break", "^00FFFFTp McDonald", "TpMcDonald")
GMSetting:addItem("jail break", "^00FFFFTp Church", "TpChurch")
GMSetting:addItem("jail break", "^00FFFFTp Trade (1)", "TpTrade1")
GMSetting:addItem("jail break", "^00FFFFTp TradeV2 (1)", "TpTrade2_V1")
GMSetting:addItem("jail break", "^00FFFFTp TradeV2 (2)", "TpTrade2_V2")
elseif Ep == "g1055" then
GMSetting:addTab("ep", "WWE Sim")
GMSetting:addItem("WWE Sim", "^00FFFFEdit Size", "EditSize")
GMSetting:addItem("WWE Sim", "^00FFFFAuto Sell", "AutoSell")
GMSetting:addItem("WWE Sim", "^00FFFFInf Shiled", "InfShield")
GMSetting:addItem("WWE Sim", "^00FFFFEquip Sun", "EquipSun")
GMSetting:addItem("WWE Sim", "^00FFFFEquip Earth", "EquipEarth")
GMSetting:addItem("WWE Sim", "^00FFFFEquip Air Craft", "EquipAirCraff")
GMSetting:addItem("WWE Sim", "^00FFFFChange Skin (WWE Sim)",
"ChangeSkinSim")
GMSetting:addItem("WWE Sim", "^00FFFFHeal Skin (WWE Sim)", "HealSim")
end

GMSetting:addTab("ep", "credits")

local items = {
{text = "^FF0000==》", key = "a"},
{text = "Credits", key = "b"},
{text = "^FF0000YouTube", key = "c"},
{text = "", key = "d"},
{text = "", key = "e"},
{text = "^FF0000==》", key = "f"},
{text = "^FFA500Crixus", key = "g"},
{text = "^FFA500@crixusreal", key = "h"},
{text = "", key = "i"},
{text = "", key = "j"},
{text = "^FF0000==》", key = "k"},
{text = "^FFA500 ヮカ奥【Λ rix】", key = "l"},
{text = "^FFA500@Arixcrixus", key = "m"},
{text = "^FF0000==》", key = "n"},
{text = "^FFA500 Ericfox【依デび】", key = "o"},
{text = "^FFA500@realEricfox", key = "p"},
}

local function addVisibleItems(items)


local count = 0
for _, item in ipairs(items) do
if [Link] ~= "" then
GMSetting:addItem("credits", [Link], [Link])
count = count + 1
if count == 3 then
GMSetting:addItem("credits", "", "")
count = 0
end
end
end
end
addVisibleItems(items)

local function isGMOpen(userId)


if isClient then
return true
end
return [Link](AdminIds, tostring(userId))
end

function GMSetting:addTab(tab_prefix, tab_name)


if tab_prefix ~= "ep" then
return
end

local final_tab_name = tab_name

for _, setting in pairs(Settings) do


if [Link] == final_tab_name then
[Link] = {}
return
end
end

[Link](Settings, { name = final_tab_name, items = {} })


end

function GMSetting:addItem()
local alphabet = "abcdefghijklmnopqrstuvwxyz"
for i = 1, #alphabet do
local char = alphabet:sub(i, i)
local itemName = "item_" .. char
local item = {
name = itemName,
quantity = 100
}
PlayerManager:getClientPlayer():addItemToInventory(item)
[Link]("Added: " .. itemName)
end
end

function GMSetting:addItem(tab_name, item_name, func_name, ...)


local settings
for _, group in pairs(Settings) do
if [Link] == tab_name then
settings = group
break
end
end

if not settings then


return
end

[Link]([Link], { name = item_name, func = func_name, params =


{ ... } })
end

function GMSetting:getSettings()
return Settings
end

GMHelper = {}
local on = 'on'
local off = 'off'
fun1 = off
fun2 = off
fun3 = off
fun4= off
fun5 = off
fun6 = off
fun7 = off
fun8 = off
fun9 = off
fun10 = off
fun11 = off
fun12 = off
fun13 = off
fun14 = off
fun15 = off
fun16 = off
fun17 = off
fun18 = off
fun20 = off
fun21 = off
fun22 = off
fun23 = off
fun24 = off
fun25 = off
fun26 = off
fun27 = off
fun28 = off
fun29 = off
fun30 = off
fun31 = off
fun32 = off
fun33 = off
fun34 = off
fun35 = off
fun36 = off
fun37 = off
fun38 = off
fun39 = off
fun40 = off
fun41 = off
fun42 = off
fun43 = off
fun44 = off
fun45 = off
fun46 = off
fun47 = off
fun48 = off
fun49 = off
fun50 = off
fun51 = off
fun52 = off
fun53 = off
fun54 = off
fun55 = off
fun56 = off
fun57 = off
fun58 = off
fun59 = off
fun60 = off
fun61 = off
fun62 = off
fun63 = off
fun64 = off
fun65 = off
fun66 = off
fun67 = off
fun68 = off
fun69 = off

function GMHelper:enableGM()
print("Initializing GM Panel...")
if GUIGMControlPanel then
print("GUIGMControlPanel already exists")
return
end

GUIGMControlPanel = [Link]("GUIGMControlPanel",
"[Link]")
if not GUIGMControlPanel then
[Link]("^FF0000Failed to load GUIGMControlPanel")
return
end
GUIGMControlPanel:hide()

GUIGMMain = [Link]("GUIGMMain", "[Link]")


if not GUIGMMain then
[Link]("^FF0000Failed to load GUIGMMain")
return
end
GUIGMMain:show()
print("GM Panel initialized successfully")
[Link](10, "^FF0000You Said Im Code Stealer?")
end

-- Ensure this runs


LuaTimer:scheduleTimer(function()
GMHelper:enableGM()
end, 5000)
---@param paramTexts string[]
function GMHelper:openInput(paramTexts, callBack)
if type(paramTexts) ~= "table" then
return
end
for _, paramText in pairs(paramTexts) do
if type(paramText) ~= "string" then
if isClient then
assert(true, "param need string type")
end
return
end
end
GUIGMControlPanel:openInput(paramTexts, callBack)
end
function GMHelper:callCommand(name, ...)
local func = self[name]
if type(func) == "function" then
func(self, ...)
end
local data = { name = name, params = { ... } }
end

local UIGMTab = require "engine_client.[Link]"


local UIGMItem = require "engine_client.[Link]"

local currentSelectedTab = nil


local value = 0.7 -- Start with brighter value
local increasing = true

local function getBrightWhiteShades(val)


-- Generate bright white shades with varying intensity
local brightness = val
local r = brightness
local g = brightness
local b = brightness
return r, g, b
end

function UIGMTab:onLoad()
[Link] = self:getChildWindowByName("GMButton", [Link])
[Link]:SetBordered(true)

[Link]:registerEvent([Link], function()
if currentSelectedTab and currentSelectedTab ~= self then
currentSelectedTab:resetTabColor()
end
currentSelectedTab = self
self:setSelectedTabColor()
GUIGMControlPanel:selectTab([Link])
end)

local scale = 0.12


[Link]:SetScale(VectorUtil.newVector3(scale, scale, scale))

[Link]:SetProperty("Font", "HT14")
if [Link]:GetTextWidth() > [Link]:GetPixelSize().x then
[Link]:SetProperty("Font", "HT14")
if [Link]:GetTextWidth() > [Link]:GetPixelSize().x then
[Link]:SetProperty("Font", "HT10")
[Link](205)
end
end

local function updateWhiteShades()


if increasing then
value = value + 0.015
if value >= 1.0 then increasing = false end
else
value = value - 0.015
if value <= 0.7 then increasing = true end -- Brighter minimum
end

-- Use bright white shades only


local r, g, b = getBrightWhiteShades(value)
[Link]:SetTextColor({r, g, b, 1.0}) -- Full opacity for brightness
end

LuaTimer:scheduleTimer(updateWhiteShades, 100, -1)


self:resetTabColor()
end

function UIGMTab:setSelectedTabColor()
[Link]:SetBackgroundColor({ 1, 0.5, 0, 1 }) -- Orange background
[Link](205)
end

function UIGMTab:resetTabColor()
-- Dark background with bright white text for unselected tabs
[Link]:SetBackgroundColor({ 0.1, 0.1, 0.1, 0.8 })
local r, g, b = getBrightWhiteShades(0.9) -- Bright white text
[Link]:SetTextColor({r, g, b, 1.0})
[Link](205)
end

function UIGMTab:onTabChange(newTab)
if newTab ~= [Link] then
self:resetTabColor()
UIGMItem:onDataChanged(data)
[Link](self)
GMSetting:addItem(itemName)
[Link](205)
end
end

function UIGMItem:setSelectedItemColor()
[Link] = true
-- Bright white background for selected item
[Link]:SetBackgroundColor({1.0, 1.0, 1.0, 0.9})
[Link]:SetTextColor({0.1, 0.1, 0.1, 1.0}) -- Dark text for contrast

if not [Link] then


[Link] = LuaTimer:scheduleTimer(function()
if [Link] then
-- Maintain bright white when selected
[Link]:SetBackgroundColor({1.0, 1.0, 1.0, 0.9})
end
end, 0.5, 0)
end
[Link](205)
end

function UIGMItem:onItemChange(newItem)
if newItem ~= [Link] then
[Link](self)
self:setSelectedItemColor()
[Link](205)
end
end

function UIGMControlPanel:onLoad()
[Link]:SetLevel(1)
self:getChildWindow("GMControlPanel-Close-Text"):SetText("×")
local llTabs = self:getChildWindow("GMControlPanel-Tabs")
[Link] = self:getChildWindow("GMControlPanel-Input-Layout",
[Link])
[Link]:SetVisible(false)
[Link] = self:getChildWindow("GMControlPanel-Input-Edit", [Link])
[Link] = [Link]("GMControlPanel-Tabs-List", llTabs)
[Link]:setItemSpace(5)

local llContent = self:getChildWindow("GMControlPanel-Content")


[Link] = [Link]("GMControlPanel-Items-List", llContent)
[Link]:setConfig(10, 10, 5)
local itemW = ([Link]:getWidth() - 60) / 5
[Link] = [Link]("GMItemAdapter")
[Link]:setItemSize(itemW, 40)
[Link]:setAdapter([Link])

local btnClose = self:getChildWindow("GMControlPanel-Close", [Link])


btnClose:registerEvent([Link], function()
self:hide()
end)

local stFilterText = self:getChildWindow("GMControlPanel-FilterText",


[Link])
stFilterText:SetBordered(true)

-- Typewriter effect variables


local typewriterData = {
texts = {
"Creators: Arixhacker and Eirefox"
},
currentTextIndex = 1,
currentCharIndex = 0,
isTyping = true,
isDeleting = false,
displayText = "",
pauseCounter = 0,
maxPauseCount = 20, -- 20 * 100ms = 2 seconds
timerActive = true
}

local orangeValue = 0.5 -- Start with medium orange


local increasing = true

local function getOrangeShade(val)


-- Orange shades: varying intensities of orange
local r = 1.0 -- Red component always high for orange
local g = val * 0.6 -- Green component varies (0.3 to 0.6 for orange
shades)
local b = 0.0 -- No blue for pure orange
local a = 1.0
return r, g, b, a
end

-- Enhanced typewriter update function with full cycle


local function updateTypewriter()
if not [Link] then return end

local currentText = [Link][[Link]]

if [Link] then
-- Typewriter effect: add one character at a time
if [Link] < #currentText then
[Link] = [Link] +
1
[Link] = currentText:sub(1,
[Link])
stFilterText:SetText([Link])
else
-- Finished typing current text, start pause
[Link] = false
[Link] = 0
end
elseif [Link] then
-- Backspace effect: remove one character at a time
if [Link] > 0 then
[Link] = [Link] -
1
[Link] = currentText:sub(1,
[Link])
stFilterText:SetText([Link])
else
-- Finished deleting, move to next text
[Link] = false
[Link] = true
[Link] = [Link] %
#[Link] + 1
end
else
-- Pause between typing and deleting
[Link] = [Link] + 1
if [Link] >= [Link] then
[Link] = true
end
end
end

-- Orange color animation function


local function updateColor()
if increasing then
orangeValue = orangeValue + 0.05
if orangeValue >= 1.0 then
orangeValue = 1.0
increasing = false
end
else
orangeValue = orangeValue - 0.05
if orangeValue <= 0.5 then
orangeValue = 0.5
increasing = true
end
end

local r, g, b, a = getOrangeShade(orangeValue)
stFilterText:SetTextColor({ r, g, b, a })
end

-- Combined update function


local function combinedUpdate()
updateTypewriter()
updateColor()
end

-- Start the timer for both effects


LuaTimer:scheduleTimer(combinedUpdate, 100, -1)

-- Set initial text to empty


stFilterText:SetText("")

[Link] = self:getChildWindow("GMControlPanel-FilterValue",
[Link])
[Link]:SetMaxLength(500)
[Link]:SetBackgroundColor({ 0.0, 0.0, 0.0, 0.0 }) -- Transparent
background
[Link]:registerEvent([Link], function(args)
if [Link] == 0 then
self:selectTab([Link])
end
end)

[Link]:SetMaxLength(1200)
[Link]:SetVisible(true)
[Link]:SetTextColor({ 1.0, 0.6, 0.2, 1.0 }) -- Orange text color
[Link]:SetText("Search Feature/Item")
[Link]:registerEvent([Link], function(args)
if [Link] == 0 then
self:inputText()
end
end)

[Link]:registerEvent([Link], function()
self:closeInput()
end)

[Link]:registerEvent([Link], function(args)
if [Link] then
[Link] = [Link]
end
end)
end

-- Define these once at the top instead of repeating


local orangeHue = 0

local function generateOrangeColor(hue)


-- Orange colors range from deep orange to golden yellow
-- Using a sine wave to create smooth transitions between orange shades

-- Base orange: RGB values that create orange tones


local baseRed = 1.0 -- Always high red for orange
local baseGreen = 0.4 -- Base green level for orange
local baseBlue = 0.0 -- No blue in orange colors

-- Create variation in the green component to get different orange shades


-- This creates colors from dark orange to bright orange to golden yellow
local greenVariation = 0.3 + ([Link](hue * 0.01) + 1) * 0.35 -- 0.3 to 0.95

return baseRed, greenVariation, baseBlue


end

function VersionDisplay()
local versionWindow = GUIManager:createGUIWindow([Link], "GUIRoot-
VersionDisplay")
versionWindow:SetVisible(true)

local function UpdateVersionDisplay()


versionWindow:SetText("Game Version (" .. getGameVersion() .. ") Panel
V1.0")

orangeHue = (orangeHue + 1) % 628 -- Using 628 for 2*PI * 100 for smooth
sine waves
local r, g, b = generateOrangeColor(orangeHue)
versionWindow:SetTextColor({ r, g, b, 0.8 })
end

versionWindow:SetWidth({0, 150})
versionWindow:SetHeight({0, 20})
versionWindow:SetXPosition({0, 15})
versionWindow:SetYPosition({0, 580})
versionWindow:SetBordered(true)
[Link]():GetRootWindow():AddChildWindow(versionWindow)

LuaTimer:scheduleTimer(UpdateVersionDisplay, 100, -1)


end
function PlayerCounter()
local counterWindow = GUIManager:createGUIWindow([Link], "GUIRoot-
PlayerCounter")
counterWindow:SetVisible(true)

local function UpdatePlayerCounter()


local playerCount = 0
for _ in pairs(PlayerManager:getPlayers()) do
playerCount = playerCount + 1
end

counterWindow:SetText("[Online Players: " .. playerCount)

orangeHue = (orangeHue + 1) % 628


local r, g, b = generateOrangeColor(orangeHue)
counterWindow:SetTextColor({ r, g, b, 0.8 })
end

counterWindow:SetWidth({0, 100})
counterWindow:SetHeight({0, 20})
counterWindow:SetXPosition({0, 15})
counterWindow:SetYPosition({0, 620})
counterWindow:SetBordered(true)
[Link]():GetRootWindow():AddChildWindow(counterWindow)

LuaTimer:scheduleTimer(UpdatePlayerCounter, 100, -1)


end

function Fps()
local DATS = GUIManager:createGUIWindow([Link], "GUIRoot-Fps")
DATS:SetVisible(true)

local function Updates()


local fps = [Link]():getFPS()
local ping = [Link]():getRaknetPing()
local YUE = "[Fps: " .. fps .. " | Ping: " .. ping

DATS:SetText(YUE)

orangeHue = (orangeHue + 1) % 628


local r, g, b = generateOrangeColor(orangeHue)
DATS:SetTextColor({ r, g, b, 0.8 })
end

DATS:SetWidth({0, 150})
DATS:SetHeight({0, 20})
DATS:SetXPosition({0, 15})
DATS:SetBordered(true)
DATS:SetYPosition({0, 660})
[Link]():GetRootWindow():AddChildWindow(DATS)
LuaTimer:scheduleTimer(Updates, 100, -1)
end

function Pose()
local POS = GUIManager:createGUIWindow([Link], "GUIRoot-Pose")
POS:SetVisible(true)

local function Updaten()


local me = PlayerManager:getClientPlayer()
if me and [Link] then
local myPos = [Link]:getPosition()
local DC = [Link]("[X:%.2f/Y:%.2f/Z:%.2f]", myPos.x, myPos.y,
myPos.z)

POS:SetText(DC)

orangeHue = (orangeHue + 1) % 628


local r, g, b = generateOrangeColor(orangeHue)
POS:SetTextColor({r, g, b, 0.8})
end
end

POS:SetWidth({0, 200})
POS:SetHeight({0, 20})
POS:SetXPosition({0, 15})
POS:SetBordered(true)
POS:SetYPosition({0, 640})
[Link]():GetRootWindow():AddChildWindow(POS)

LuaTimer:scheduleTimer(Updaten, 100, -1)


end

-- Initialize all displays


PlayerCounter()
Fps()
Pose()

function Credits()
local GUF = GUIManager:createGUIWindow([Link], "GUIRoot-Ping")
GUF:SetVisible(true)

local texts = {
"CrixusPanel 1.5 [VERSION:" .. getGameVersion() .. "]"
}
local textIndex = 1
local currentText = texts[textIndex]
local currentCharIndex = 0
local displayText = ""

local localOrangeHue = 0
local isTyping = true
local isDeleting = false
local pauseTimer = 0
local pauseDuration = 2000 -- 2 seconds pause between texts

local function generateOrangeColor(hue)


-- Base orange: RGB values that create orange tones
local baseRed = 1.0 -- Always high red for orange
local baseGreen = 0.4 -- Base green level for orange
local baseBlue = 0.0 -- No blue in orange colors

-- Create variation in the green component to get different orange shades


local greenVariation = 0.3 + ([Link](hue * 0.01) + 1) * 0.35 -- 0.3 to
0.95

return baseRed, greenVariation, baseBlue


end
local function Update()
if isTyping then
-- Typewriter effect: add one character at a time
if currentCharIndex < #currentText then
currentCharIndex = currentCharIndex + 1
displayText = currentText:sub(1, currentCharIndex)
GUF:SetText(displayText)
else
-- Finished typing current text, pause before starting to delete
isTyping = false
pauseTimer = pauseDuration
end
elseif isDeleting then
-- Backspace effect: remove one character at a time
if currentCharIndex > 0 then
currentCharIndex = currentCharIndex - 1
displayText = currentText:sub(1, currentCharIndex)
GUF:SetText(displayText)
else
-- Finished deleting, move to next text
isDeleting = false
isTyping = true
textIndex = textIndex % #texts + 1
currentText = texts[textIndex]
end
else
-- Pause between typing and deleting
if pauseTimer > 0 then
pauseTimer = pauseTimer - 100
else
isDeleting = true
end
end

-- Update color (continues throughout the cycle)


localOrangeHue = (localOrangeHue + 1) % 628
local r, g, b = generateOrangeColor(localOrangeHue)
GUF:SetTextColor({ r, g, b, 0.8 })
end

-- Set window properties


GUF:SetWidth({ 0, 300 })
GUF:SetHeight({ 0, 20 })
GUF:SetXPosition({ 0, 490 })
GUF:SetYPosition({ 0, 110 })
GUF:SetLevel(1)
GUF:SetBordered(true)

-- Add to root window


[Link]():GetRootWindow():AddChildWindow(GUF)

-- Start update timer with faster interval for typing effect


LuaTimer:scheduleTimer(Update, 100, -1)

-- Call Update once immediately to initialize


Update()
end

Credits()
function createWhatsNewGUI()
print("Starting GUI creation...")

-- Create main background window


local Back = GUIManager:createGUIWindow([Link], "GUIRoot-xuy60")
if not Back then
print("❌ ERROR: Failed to create Back window")
return nil
end
print("✓ Back window created successfully")

Back:SetHorizontalAlignment([Link])
Back:SetVerticalAlignment([Link])
Back:SetHeight({0, 400})
Back:SetWidth({0, 780})
Back:SetLevel(999)
Back:SetTouchable(true)
Back:SetBackgroundColor({0.1, 0.1, 0.1, 0.8})
Back:SetVisible(true)
Back:SetYPosition({0, 0})
Back:SetXPosition({0, 0})

-- Add Back to root window


local rootWindow = [Link]():GetRootWindow()
if rootWindow then
rootWindow:AddChildWindow(Back)
print("✓ Added Back to root window")
else
print("❌ ERROR: Could not get root window")
end

-- Create title bar


local titleBar = GUIManager:createGUIWindow([Link], "Title-Bar")
if titleBar then
titleBar:SetHeight({0, 40})
titleBar:SetWidth({0, 780})
titleBar:SetHorizontalAlignment([Link])
titleBar:SetVerticalAlignment([Link])
titleBar:SetXPosition({0, 0})
titleBar:SetYPosition({0, 0})
titleBar:SetText("What's New?")
titleBar:SetTextColor({1, 1, 1, 1})
titleBar:SetBackgroundColor({0.9, 0.55, 0.2, 1})
Back:AddChildWindow(titleBar)
print("✓ Title bar created")
else
print("❌ ERROR: Failed to create title bar")
end

-- Create close button


local closeButton = GUIManager:createGUIWindow([Link], "Close-Button")
if closeButton then
closeButton:SetHeight({0, 40})
closeButton:SetWidth({0, 80})
closeButton:SetHorizontalAlignment([Link])
closeButton:SetVerticalAlignment([Link])
closeButton:SetXPosition({0, -40})
closeButton:SetYPosition({0, 0})
closeButton:SetText("CLOSE")
closeButton:SetTextColor({0.8, 0.2, 0.2, 1})
closeButton:SetBackgroundColor({0.1, 0.1, 0.1, 0.8})

-- Register close event


if [Link] then
closeButton:registerEvent([Link], function()
print("Close button clicked")
Back:SetVisible(false)
end)
elseif [Link] then
closeButton:SubscribeEvent([Link], function()
print("Close button clicked")
Back:SetVisible(false)
end)
end

Back:AddChildWindow(closeButton)
print("✓ Close button created")
else
print("❌ ERROR: Failed to create close button")
end

-- Create scroll container


local Scroll = GUIManager:createGUIWindow([Link], "ScrollWindow")
if not Scroll then
Scroll = GUIManager:createGUIWindow([Link], "ScrollWindow")
end

if Scroll then
Scroll:SetHorizontalAlignment([Link])
Scroll:SetVerticalAlignment([Link])
Scroll:SetHeight({0, 400})
Scroll:SetWidth({0, 740})
Scroll:SetYPosition({0, 50})
Scroll:SetXPosition({0, 0})
Scroll:SetTouchable(true)
Scroll:SetLevel(1)
Scroll:SetVisible(true)
Scroll:SetBackgroundColor({0, 0, 0, 1})
Scroll:SetMoveAble(true)

-- Create update container


local updateContainer = GUIManager:createGUIWindow([Link],
"UpdateContainer")
if updateContainer then
updateContainer:SetWidth({0, 740})
updateContainer:SetHorizontalAlignment([Link])
updateContainer:SetVerticalAlignment([Link])
updateContainer:SetBackgroundColor({0, 0, 0, 1})

local updates = {
"CrixusPanel 1.5 New Updates !!!",
"Panel fully Re-created With New Cheats and more features",
"Added New Gui panel in Bedwars 1.0",
"Fixed AimBot, Killaura, HitBox and etc.",
"",
"What's coming soon in 2.0",
"More Cheats in bedwars and improved panel",
"InfinityKillaura and AutoBridge and softBypass",
"",
"CrixusPanel by Arixhacker",
"Gui Designed By Ericfire"
}

-- Create update text entries


for i, update in ipairs(updates) do
local updateText = GUIManager:createGUIWindow([Link],
"Update-" .. i)
if updateText then
updateText:SetHeight({0, 35})
updateText:SetWidth({0, 730})
updateText:SetHorizontalAlignment([Link])
updateText:SetVerticalAlignment([Link])
updateText:SetYPosition({0, (i - 1) * 35})
updateText:SetText("" .. update)
updateText:SetTextColor({1, 1, 1, 1}) -- White text
updateText:SetBackgroundColor({0, 0, 0, 1})
updateContainer:AddChildWindow(updateText)
end
end

updateContainer:SetHeight({0, #updates * 35})


Scroll:AddChildWindow(updateContainer)
print("✓ Scroll content created with " .. #updates .. " items")
else
print("❌ ERROR: Failed to create update container")
end

Back:AddChildWindow(Scroll)
print("✓ Scroll container added to Back")
else
print("❌ ERROR: Failed to create scroll container")
end

-- Create global helper functions


_G.WhatsNew = {
show = function()
print("Showing What's New panel")
Back:SetVisible(true)
end,

hide = function()
print("Hiding What's New panel")
Back:SetVisible(false)
end,

toggle = function()
local current = Back:IsVisible()
Back:SetVisible(not current)
print("Toggled What's New panel: " .. tostring(not current))
end
}

print("🎉 GUI creation completed successfully!")


print("You can now call: [Link]() or [Link]()")

return Back
end

-- Simple execution
local function initializeGUI()
local success, errorMsg = pcall(function()
createWhatsNewGUI()
end)

if not success then


print("❌ GUI creation failed: " .. tostring(errorMsg))
-- Try again after a delay
local timer = 0
local function retry()
timer = timer + 1
if timer > 5 then
createWhatsNewGUI()
end
end
-- If there's an update system, use it
if UpdateEvent then
[Link](retry)
end
end
end

-- Start the GUI


initializeGUI()

-- Test message
if MsgSender and [Link] then
[Link]("[CrixusPanel]: What's New GUI loaded! Use /whatsnew to
show.")
end

-- Chat command
if Command and [Link] then
[Link]("whatsnew", function()
if _G.WhatsNew and _G.[Link] then
_G.[Link]()
else
print("WhatsNew not available, recreating...")
createWhatsNewGUI()
end
end)
print("✓ Registered /whatsnew command")
end

function GMHelper:Fly(text)
A = not A
if A then
[Link]("EnableDoubleJumps", true)
PlayerManager:getClientPlayer().doubleJumpCount = 99999999999
text:SetBackgroundColor([Link])
else
[Link]("EnableDoubleJumps", false)
PlayerManager:getClientPlayer().doubleJumpCount = 1
text:SetBackgroundColor([Link])
end
end
function GMHelper:FastBreak(text)
A = not A

if A then
[Link](66):setNeedRender(false)
[Link](253):setNeedRender(false)

for blockId = 1, 40000 do


local block = [Link](blockId)
if block then
block:setHardness(nil)
text:SetBackgroundColor([Link])
end
end
else
for blockId = 1, 40000 do
local block = [Link](blockId)
if block then
block:setHardness(1)
text:SetBackgroundColor([Link])
end
end
end
end

function GMHelper:getItem(id)

PlayerManager:getClientPlayer().Player:getInventory():addItemToInventory([Link]
emById(tonumber(id), 1, nil, nil), 1)
end

local function setPosTest(targetPos)


if targetPos.y < 10 then return end

local clientPlayer = PlayerManager:getClientPlayer().Player


local myPos = clientPlayer:getPosition()

yaw = [Link]
pitch = [Link]

local disTp = { x = targetPos.x - myPos.x, z = targetPos.z - myPos.z }


local totalDistance = [Link](disTp.x * disTp.x + disTp.z * disTp.z)

[Link]("Total distance left: " .. [Link]("%.2f",


totalDistance))

if myPos.y < 165 then


myPos.y = 165
end

if [Link](disTp.x) > 18 then


myPos.x = myPos.x + (disTp.x > 0 and 18 or -18)
clientPlayer:setPosition(myPos)

LuaTimer:scheduleTimer(function()
setPosTest(targetPos)
end, 0.015, 1)
return
end

if [Link](disTp.z) > 18 then


myPos.z = myPos.z + (disTp.z > 0 and 18 or -18)
clientPlayer:setPosition(myPos)

LuaTimer:scheduleTimer(function()
setPosTest(targetPos)
end, 0.015, 1)
return
end

local function checkBlock(pos)


if EngineWorld:getBlockId(pos) ~= [Link] then
while EngineWorld:getBlockId(pos) ~= [Link] do
pos.y = pos.y + 1
if pos.y > 256 then break end
end
end
return pos
end

targetPos = checkBlock(targetPos)

[Link] = true
local abovePos = VectorUtil.newVector3(targetPos.x, targetPos.y + 1.3,
targetPos.z)
clientPlayer:setPosition(abovePos)
[Link] = false

clientPlayer:setAllowFlying(false)
clientPlayer:setFlying(false)
[Link] = yaw
[Link] = pitch
[Link]("SyncClientPositionToServer", false)
clientPlayer:setPosition(abovePos)

local timeLeft = 1
tmLft = LuaTimer:scheduleTimer(function()
PacketSender:getSender():sendRebirth()
timeLeft = timeLeft - 1
if timeLeft <= 0 then
[Link]("SyncClientPositionToServer", true)
LuaTimer:cancel(tmLft)
clientPlayer:moveEntity(VectorUtil.newVector3(0, 1.35, 0))
clientPlayer:setAllowFlying(true)
clientPlayer:setFlying(true)
LuaTimer:schedule(function()
clientPlayer:setAllowFlying(false)
clientPlayer:setFlying(false)
end, 0.05)
end
end, 0.015, 1)
end

function GMHelper:TpRedSR()
local targetPos = VectorUtil.newVector3(64, 24, 445)
setPosTest(targetPos)
GUIGMControlPanel:hide()
end

function GMHelper:TpBlueSR()
local targetPos = VectorUtil.newVector3(127, 29, 383)
setPosTest(targetPos)
GUIGMControlPanel:hide()
end

function GMHelper:TpGreenSR()
local targetPos = VectorUtil.newVector3(128, 24, 506)
setPosTest(targetPos)
GUIGMControlPanel:hide()
end

function GMHelper:TpYellowSR()
local targetPos = VectorUtil.newVector3(190, 24, 446)
setPosTest(targetPos)
GUIGMControlPanel:hide()
end

function GMHelper:TpJailShop()
local targetPos = VectorUtil.newVector3(392.98, 63.62, 163.05)
setPosTest(targetPos)
GUIGMControlPanel:hide()
end

function GMHelper:TpShop()
local targetPos = VectorUtil.newVector3(228.16, 63.62, 47.35)
setPosTest(targetPos)
GUIGMControlPanel:hide()
end

function GMHelper:TpChurch()
local targetPos = VectorUtil.newVector3(262.40, 63.62, 102.52)
setPosTest(targetPos)
GUIGMControlPanel:hide()
end

function GMHelper:TpBank()
local targetPos = VectorUtil.newVector3(124.05, 63.62, 178.14)
setPosTest(targetPos)
GUIGMControlPanel:hide()
end

function GMHelper:TpMcDonald()
local targetPos = VectorUtil.newVector3(217.14, 63.62, 178.98)
setPosTest(targetPos)
GUIGMControlPanel:hide()
end

function GMHelper:TpPolice()
local targetPos = VectorUtil.newVector3(312.23, 63.62, 232.14)
setPosTest(targetPos)
GUIGMControlPanel:hide()
end

function GMHelper:TpJail()
local targetPos = VectorUtil.newVector3(339.97, 63.62, 290.51)
setPosTest(targetPos)
GUIGMControlPanel:hide()
end

function GMHelper:TpLibrary()
local targetPos = VectorUtil.newVector3(228.67, 63.62, 259.24)
setPosTest(targetPos)
GUIGMControlPanel:hide()
end

function GMHelper:TpTrade1()
local targetPos = VectorUtil.newVector3(180.57, 66.62, 236.83)
setPosTest(targetPos)
GUIGMControlPanel:hide()
end

function GMHelper:TpTrade2_V1()
local targetPos = VectorUtil.newVector3(180.43, 66.62, 230.84)
setPosTest(targetPos)
GUIGMControlPanel:hide()
end

function GMHelper:TpTrade2_V2()
local targetPos = VectorUtil.newVector3(179.61, 66.62, 225.33)
setPosTest(targetPos)
GUIGMControlPanel:hide()
end

function GMHelper:tp_flag1()
local targetPos = VectorUtil.newVector3(-173.54, 67.62, -22.40)
setPosTest(targetPos)
GUIGMControlPanel:hide()
end

function GMHelper:tp_flag2()
local targetPos = VectorUtil.newVector3(60.40, 67.62, -52.78)
setPosTest(targetPos)
GUIGMControlPanel:hide()
end

function GMHelper:NoKnockBack(text)
NoKnockbackEnabled = not NoKnockbackEnabled

if NoKnockbackEnabled then
text:SetBackgroundColor([Link])
[Link] = [Link]
lastPosition = nil
lastHealth = nil

NoKnockbackTimer = LuaTimer:scheduleTimer(function()
local player = PlayerManager:getClientPlayer()
if not player or not [Link] then
print("Player object not found!")
return
end

local currentHealth = [Link]:getHealth()


local currentPosition = [Link]:getPosition()

if lastHealth and currentHealth < lastHealth then


if lastPosition then
[Link]:setPosition(lastPosition)
[Link]("^00FF00Knockback successfully")
end
end

lastHealth = currentHealth
lastPosition = currentPosition
end, 10, -1)

else
text:SetBackgroundColor([Link])
[Link] = [Link]

if NoKnockbackTimer then
LuaTimer:cancel(NoKnockbackTimer)
NoKnockbackTimer = nil
end
lastPosition = nil
lastHealth = nil
end
end

-- no fall damage
GMHelper = GMHelper or {}

[Link] = false
[Link] = nil
[Link] = nil
[Link] = 5

function GMHelper:NoFallDamg(text)
[Link] = not [Link]

if [Link] then
LuaTimer:cancel([Link])
[Link] = nil
end

PlayerManager:getClientPlayer().[Link] = false
text:SetBackgroundColor([Link])

if [Link] then
[Link] = LuaTimer:scheduleTimer(function()
local player = PlayerManager:getClientPlayer().Player
local currentY = player:getPosition().y

if not [Link] then


[Link] = currentY
end

[Link] = currentY < [Link] - 1.0


[Link] = currentY
end, 100, -1)

text:SetBackgroundColor([Link])
end

if [Link] then
LuaTimer:scheduleTimer(function()
local player = PlayerManager:getClientPlayer()
local fallDistance = [Link]

if fallDistance > 3 then


local playerPos = player:getPosition()
local blockFound = false
local blockBeneath = nil

for i = 1, [Link] do
local blockBelow = VectorUtil.newVector3(playerPos.x,
playerPos.y - i, playerPos.z)
if EngineWorld:getBlockId(blockBelow) ~= 0 then
blockFound = true
blockBeneath = blockBelow
break
end
end

if blockFound then
local currentPos = player:getPosition()
[Link] = true

if currentPos.y <= blockBeneath.y + 2.50 then

[Link]:setPosition(VectorUtil.newVector3(currentPos.x, currentPos.y + 1,
currentPos.z))
EngineWorld:setBlock(VectorUtil.newVector3(currentPos.x,
currentPos.y - 0.1, currentPos.z), 8)

EngineWorld:setBlockToAir(VectorUtil.newVector3(currentPos.x, currentPos.y - 0.1,


currentPos.z))

[Link] = false
end
end
end
end, 0.5, -1)
end
end

function GMHelper:BreakBlock()
local curWorld = EngineWorld:getWorld()
local playerPeer = PlayerManager:getClientPlayer()
local innerPlayer = [Link]
local pos = playerPeer:getPosition()
local yaw = playerPeer:getYaw()
local inv = playerPeer:getInventory()
local invSize = 36
local debugCount = 0

local function breakBlock(rakssid, blockId, vec3)


curWorld:destroyBlock(vec3, true)
for i = 0, invSize do
local curItemId = inv:getItemStackInfo(i).id
if curItemId == blockId then
inv:decrStackSize(i, -1)
return true
elseif curItemId == nil or curItemId == 0 then
inv:addItemToInventory([Link](blockId), 1)
return true
else
debugCount = debugCount + 1
end
end
curWorld:spawnItemInWorld(blockId, 1, 0, 480, vec3, [Link], false,
true)
return true
end

local function placeBlock(rakssid, itemId, meta, toPlacePos)


local vec3 = VectorUtil.newVector3(toPlacePos.x, toPlacePos.y + 1,
toPlacePos.z)
EngineWorld:setBlock(vec3,
inv:getItemStackInfo(inv:getCurrentItemIndex()).id)
inv:decrStackSize(inv:getCurrentItemIndex(), 1)
return true
end

togEnableBreakBlocks = not togEnableBreakBlocks

if togEnableBreakBlocks then
[Link]:registerCallBack(breakBlock)
[Link]:registerCallBack(placeBlock)
[Link]("on")
else
[Link]:unregisterCallBack(breakBlock)
[Link]:unregisterCallBack(placeBlock)
[Link]("off")
end
end

function GMHelper:HitBox(text)
a = not a
if a then
text:SetBackgroundColor([Link])
local players = PlayerManager:getPlayers()

for _, player in ipairs(players) do


local entity = [Link]

if player ~= PlayerManager:getClientPlayer() then


[Link] = 8
[Link] = 8
[Link] = 8
end
end
else
text:SetBackgroundColor([Link])
local players = PlayerManager:getPlayers()

for _, player in ipairs(players) do


local entity = [Link]
[Link] = 2
[Link] = 2
[Link] = 2
end
end
end

function GMHelper:UnDeath(text)
local function setPosTest(targetPos)
if targetPos.y < 10 then return end

local clientPlayer = PlayerManager:getClientPlayer().Player


local myPos = clientPlayer:getPosition()
local disTp = { x = targetPos.x - myPos.x, z = targetPos.z - myPos.z }

if myPos.y < 165 then


myPos.y = 165
end

if [Link](disTp.x) > 18 then


if disTp.x > 0 then
myPos.x = myPos.x + 18
else
myPos.x = myPos.x - 18
end
clientPlayer:setPosition(myPos)
LuaTimer:scheduleTimer(function()
setPosTest(targetPos)
end, 100, 1)
return
end

if [Link](disTp.z) > 18 then


if disTp.z > 0 then
myPos.z = myPos.z + 18
else
myPos.z = myPos.z - 18
end
clientPlayer:setPosition(myPos)
LuaTimer:scheduleTimer(function()
setPosTest(targetPos)
end, 100, 1)
return
end

local function checkBlock(pos)


while EngineWorld:getBlockId(pos) ~= [Link] do
pos.y = pos.y + 1
if pos.y > 256 then break end
end
return pos
end

targetPos = checkBlock(targetPos)
clientPlayer:setPosition(targetPos)

local player = PlayerManager:getClientPlayer().Player


player:setAllowFlying(false)
player:setFlying(false)
[Link] = yaw
[Link] = pitch
end

togRespawnInSamePlace = not togRespawnInSamePlace


if not togRespawnInSamePlace and respawnCallback then
[Link]:unregisterCallBack(respawnCallback)
respawnCallback = nil
text:SetBackgroundColor([Link])
[Link] = [Link]
return
end

if togRespawnInSamePlace then
respawnCallback = function(deadPlayer)
if deadPlayer == [Link]():getPlatformUserId() then
LuaTimer:scheduleTimer(function()
[Link]("SyncClientPositionToServer", true)
end, 1, 1000)

local playerPosition =
PlayerManager:getClientPlayer().Player:getPosition()
yaw = PlayerManager:getClientPlayer().Player:getYaw()
pitch = PlayerManager:getClientPlayer().Player:getPitch()

LuaTimer:scheduleTimer(function()
PacketSender:getSender():sendRebirth()

local player = PlayerManager:getClientPlayer().Player


player:setAllowFlying(true)
player:setFlying(true)

LuaTimer:schedule(function()
setPosTest(VectorUtil.newVector3(playerPosition.x,
playerPosition.y, playerPosition.z))
end, 400)
end, 1, 300)

[Link]():showMainControl()
end
end

[Link]:registerCallBack(respawnCallback)
text:SetBackgroundColor([Link])
[Link] = [Link]
end
end

local isEnabled = true

function RG_posTest(targetPos)
if targetPos.y < 10 then return end

local clientPlayer = PlayerManager:getClientPlayer().Player


local myPos = clientPlayer:getPosition()

local disTp = { x = targetPos.x - myPos.x, z = targetPos.z - myPos.z }


local totalDistance = [Link](disTp.x * disTp.x + disTp.z * disTp.z)

[Link]("Total distance left: " .. [Link]("%.2f",


totalDistance))
if myPos.y < 165 then
myPos.y = 165
end

if [Link](disTp.x) > 18 then


myPos.x = myPos.x + (disTp.x > 0 and 18 or -18)
clientPlayer:setPosition(myPos)

LuaTimer:scheduleTimer(function()
RG_posTest(targetPos)
end, 80.55, 1)
return
end

if [Link](disTp.z) > 18 then


myPos.z = myPos.z + (disTp.z > 0 and 18 or -18)
clientPlayer:setPosition(myPos)

LuaTimer:scheduleTimer(function()
RG_posTest(targetPos)
end, 80.56, 1)
return
end

local function checkBlock(pos)


if EngineWorld:getBlockId(pos) ~= [Link] then
while EngineWorld:getBlockId(pos) ~= [Link] do
pos.y = pos.y + 1
if pos.y > 256 then break end
end
end
return pos
end

[Link] = true
targetPos = checkBlock(targetPos)
clientPlayer:setPosition(targetPos)
[Link] = false

local player = PlayerManager:getClientPlayer().Player


player:setAllowFlying(false)
player:setFlying(false)
[Link] = yaw
[Link] = pitch
[Link]("SyncClientPositionToServer", false)
clientPlayer:setPosition(targetPos)

local timeLeft = 1
tmLft = LuaTimer:scheduleTimer(function()
PacketSender:getSender():sendRebirth()
timeLeft = timeLeft - 1
if timeLeft == 0 or timeLeft == -1 then
[Link]("SyncClientPositionToServer", true)
LuaTimer:cancel(tmLft)
clientPlayer:moveEntity(VectorUtil.newVector3(0, 1.35, 0))
clientPlayer:setAllowFlying(true)
clientPlayer:setFlying(true)
LuaTimer:schedule(function()
clientPlayer:setAllowFlying(false)
clientPlayer:setFlying(false)
end, 0.05)
end
end, 0.06, 1)
end

function GMHelper:AntiVoid(text)
antiVoidEnabled = not antiVoidEnabled

if antiVoidEnabled then
text:SetBackgroundColor([Link])
[Link] = [Link]

if not antiVoidTimer then


void = LuaTimer:scheduleTimer(function()
local clientPlayer = PlayerManager:getClientPlayer().Player
local fallDistance = [Link]

if not originalPos and fallDistance == 0 then


originalPos = clientPlayer:getPosition()
elseif fallDistance >= 15 then
clientPlayer:setPosition(originalPos)
[Link] = 0
end
end, 100, -1)
end
else
text:SetBackgroundColor([Link])
[Link] = [Link]
[Link]("Anti Void: Off")

if void then
LuaTimer:cancel(void)
void = nil
end
originalPos = nil
end
end

function GMHelper:Reach(text)
A = not A
[Link]("BlockReachDistance", 999)
[Link]("EntityReachDistance", 9999)
text:SetBackgroundColor([Link])
if A then
text:SetBackgroundColor([Link])

return
end
[Link]("BlockReachDistance", 6.5)
[Link]("EntityReachDistance", 9999)
text:SetBackgroundColor([Link])
end

function GMHelper:WWE_Camera()
A = not A
[Link]("IsSeparateCamera", true)
if A then
return
end
[Link]("IsSeparateCamera", false)
end

function GMHelper:BowSpeed(text)
[Link]("BowPullingSpeedMultiplier", 1000)
[Link]("BowPullingFOVMultiplier", 0)
text:SetBackgroundColor([Link])
GUIGMControlPanel:hide()
end

function GMHelper:BanClickCD(text)
A = not A
[Link]("banClickCD", true)
if A then
text:SetBackgroundColor([Link])
return
end
[Link]("banClickCD", false)
text:SetBackgroundColor([Link])
end

function GMHelper:RunFile()
local file_path =
"/storage/emulated/0/Android/data/[Link]/[Link]/"
local file, error = [Link](file_path, "r")
if file then
local content = file:read("*a")
file:close()
local func, error = load(content)
if func then
pcall(func)
end
end
end

function GMHelper:infbrid1()
function ModuleBlockConfig:init()
local config = [Link]("module_block/ModuleBlock", true)
or {}
[Link] = [Link] or 2
[Link] = 99999999999
[Link] = 9999999999999
if isClient then
[Link]("RunLimitCheck", [Link] or 10)
[Link]("SprintLimitCheck", [Link]
or 10)
end
config = [Link]("module_block/[Link]", 2, true,
true) or {}
for _, item in pairs(config) do
local data = {
id = tonumber([Link]),
itemId = tonumber([Link]),
teamId = tonumber([Link]) or 0,
consumeNum = tonumber([Link]) or 1,
schematic = [Link],
offsetX = tonumber([Link]) or 0,
offsetZ = tonumber([Link]) or 0,
image = [Link],
extraParam = tonumber([Link]) or 0,
}
Settings[[Link]] = Settings[[Link]] or {}
[Link](Settings[[Link]], data)
end
for _, setting in pairs(Settings) do
[Link](setting, function(a, b)
return [Link] < [Link]
end)
end
end

function ModuleBlockConfig:getModuleBlock(itemId, moduleId, teamId)


local modules = Settings[itemId]
if not modules then
return nil
end
if moduleId and moduleId ~= 0 then
for _, module in pairs(modules) do
if [Link] == moduleId then
return module
end
end
end
for _, module in pairs(modules) do
if [Link] == teamId then
return module
end
end
if teamId == 0 then
return nil
else
return self:getModuleBlock(itemId, moduleId, 0)
end
end

function ModuleBlockConfig:getModuleBlocks(itemId)
return Settings[itemId]
end

function ModuleBlockConfig:getDefaultModuleId(itemId)
local modules = Settings[itemId]
if [Link](modules) then
return 0
end
return modules[1].id
end

function ModuleBlockConfig:hasConfig()
return not [Link](Settings)
end

ModuleBlockConfig:init()
[Link]("^00FF00ON")
GUIGMControlPanel:hide()
end

function GMHelper:JetPack(text)
BJF = not BJF
if BJF then
text:SetBackgroundColor([Link])
[Link] = [Link]
local JetPack = true
BJFS = LuaTimer:scheduleTimer(function()
local yaw=PlayerManager:getClientPlayer().Player:getYaw()
local pitch = PlayerManager:getClientPlayer().Player:getPitch()
local yawRadians = [Link](yaw)
local pitchRadians = [Link](pitch)
local speed = 2.1
local x = -speed * [Link](pitchRadians) * [Link](yawRadians)
local y = -speed * [Link](pitchRadians)
local z = speed * [Link](pitchRadians) * [Link](yawRadians)
local velocity = VectorUtil.newVector3(x,y,z)
PlayerManager:getClientPlayer().Player:setVelocity(velocity)
end, 15, 200000)
else
text:SetBackgroundColor([Link])
[Link] = [Link]
LuaTimer:cancel(BJFS)
end
end

function GMHelper:Speed(text)
A = not A
if A then
text:SetBackgroundColor([Link])
[Link] = [Link]
PlayerManager:getClientPlayer().Player:setSpeedAdditionLevel(150000)
else
PlayerManager:getClientPlayer().Player:setSpeedAdditionLevel(1)
text:SetBackgroundColor([Link])
[Link] = [Link]
end
end

function GMHelper:AtkBtn(text)
local AtkBtn = GUIManager:getWindowByName("Main-Gun-Operate-RightShootBtn")
togAtkBtn = not togAtkBtn

if togAtkBtn then
local throwpotControls = GUIManager:getWindowByName("Main-throwpot-
Controls")
throwpotControls:SetVisible(true)
throwpotControls:SetXPosition({0, 0})
throwpotControls:SetYPosition({0, -170})

if AtkBtn then
AtkBtn:SetVisible(true)
AtkBtn:SetAlwaysOnTop(true)
AtkBtn:SetLevel(1)

local mainLayout = GUIManager:getWindowByName("Main")


if mainLayout then
mainLayout:AddChildWindow(AtkBtn)
end

AtkBtn:SetYPosition({0, 400})
AtkBtn:SetProperty("NormalImage", "set:main_btn.json image:skill_btn")
AtkBtn:SetProperty("PushedImage", "set:main_btn.json image:skill_btn")
AtkBtn:SetXPosition({1, -355})
AtkBtn:SetHeight({0, 120})
AtkBtn:SetWidth({0, 120})

AtkBtn:setEnableLongTouch(true)

local function enableCollimatorMode()


[Link]().m_gameSettings:setCollimatorMode(true)
GUIManager:getWindowByName("Main-BedWar-BowShoot-
Operate"):SetVisible(true)
GUIManager:getWindowByName("Main-BedWar-BowShoot-
CrossHairs"):SetVisible(true)
text:SetBackgroundColor([Link])
[Link]():handleTouchClick(1, 1)
end

local function disableCollimatorMode()


[Link]().m_gameSettings:setCollimatorMode(false)
GUIManager:getWindowByName("Main-BedWar-BowShoot-
Operate"):SetVisible(false)
GUIManager:getWindowByName("Main-BedWar-BowShoot-
CrossHairs"):SetVisible(false)
text:SetBackgroundColor([Link])
end

AtkBtn:registerEvent([Link], enableCollimatorMode)
AtkBtn:registerEvent([Link], enableCollimatorMode)
AtkBtn:registerEvent([Link], disableCollimatorMode)
AtkBtn:registerEvent([Link], enableCollimatorMode)
AtkBtn:registerEvent([Link], enableCollimatorMode)
AtkBtn:registerEvent([Link], disableCollimatorMode)
AtkBtn:registerEvent([Link], disableCollimatorMode)

AtkBtn:registerEvent([Link],
function(pos, blockID)
[Link]("^FF0000Block Broken at: " .. tostring(pos))
end
)
else
print("Shoot button not found!")
end
return
end

if AtkBtn then
AtkBtn:SetVisible(false)
else
print("Shoot button not found!")
end
end

local espEnabled = false


local processedPlayers = {}

local predefinedColors = {
{1, 0, 0, 1},
{0, 1, 0, 1},
{0, 0, 1, 1},
{1, 1, 0, 1},
{1, 0, 1, 1},
{0, 1, 1, 1},
{0.5, 0.5, 0.5, 1},
{1, 0.5, 0, 1},
{0.5, 0, 0.5, 1},
{0, 0.5, 0.5, 1},
{0.7, 0.2, 0.2, 1},
{0.2, 0.7, 0.2, 1},
{0.2, 0.2, 0.7, 1},
{0.8, 0.6, 0.1, 1},
{0.6, 0.1, 0.8, 1},
{0.3, 0.8, 0.5, 1},
}

local colorIndex = 1

function GMHelper:EspMode(text)
LuaTimer:scheduleTimer(function()
if espEnabled then
local updatedHoomans = PlayerManager:getPlayers()
local myclient = PlayerManager:getClientPlayer()
for _, nubs in pairs(updatedHoomans) do
if [Link] ~= [Link] and [Link] and not
processedPlayers[[Link]] then
local color = predefinedColors[colorIndex]
[Link]:enableXRay(color)
processedPlayers[[Link]] = true
colorIndex = (colorIndex % #predefinedColors) + 1
end
end
end
end, 5)

espEnabled = not espEnabled

if espEnabled then
text:SetBackgroundColor([Link])
local myclient = PlayerManager:getClientPlayer()
local hoomans = PlayerManager:getPlayers()
for _, nubs in pairs(hoomans) do
if [Link] ~= [Link] and [Link] and not
processedPlayers[[Link]] then
local color = predefinedColors[colorIndex]
[Link]:enableXRay(color)
processedPlayers[[Link]] = true
colorIndex = (colorIndex % #predefinedColors) + 1
end
end
else
text:SetBackgroundColor([Link])
local hoomans = PlayerManager:getPlayers()
for _, nubs in pairs(hoomans) do
if [Link] then
[Link]:disableXRay()
end
end
processedPlayers = {}
colorIndex = 1
end
end

function GMHelper:KillAura(text)
[Link] = not [Link]

if [Link] then
[Link]("^FF00EEKillAura Enabled")
text:SetBackgroundColor([Link])
[Link] = [Link]

-- Schedule the KillAura logic


[Link] = LuaTimer:scheduleTimer(function()
local me = PlayerManager:getClientPlayer() -- Get the client player
if not me or not [Link] then
print("Error: Client player not found")
return
end

local myPos = [Link]:getPosition()


local myTeamId = me:getTeamId()
local players = PlayerManager:getPlayers()

-- Variables to find the closest enemy


local closestDistance = [Link]
local closestPlayer = nil

-- Find the closest enemy player


for _, player in pairs(players) do
if player ~= me and [Link] and player:getTeamId() ~=
myTeamId then
local playerPos = [Link]:getPosition()
local distance = MathUtil:distanceSquare2d(playerPos, myPos)

-- Check if the player is within range


if distance <= 75 then -- Adjust range as needed
closestDistance = distance
closestPlayer = player
end
end
end

-- Attack the closest player


if closestPlayer then
local entity = [Link]
if entity then
-- Adjust enemy dimensions (if necessary)
[Link] = 5
[Link] = 5
[Link] = 5

-- Simulate attack
[Link]():handleTouchClick(800, 360)
[Link]("^00FF00PlayerInfo: " ..
(closestPlayer:getName() or "Unknown"))
end
end
end, 100, -1) -- Run every 100ms
else
[Link]("^FF0000KillAura Disabled")
text:SetBackgroundColor([Link])
[Link] = [Link]

-- Cancel the timer


if [Link] then
LuaTimer:cancel([Link])
[Link] = nil
end

-- Reset dimensions of all players


local players = PlayerManager:getPlayers()
for _, player in pairs(players) do
if [Link] then
[Link] = 0.1
[Link] = 0.1
[Link] = 0.1
end
end
end
end

function GMHelper:CountEnemies()
local me = PlayerManager:getClientPlayer()
if not me or not [Link] then
print("Error: Client player not found")
return
end

local myTeamId = me:getTeamId()


local players = PlayerManager:getPlayers()
local enemyCount = 0

for _, player in pairs(players) do


if player ~= me and [Link] and player:getTeamId() ~= myTeamId then
enemyCount = enemyCount + 1
end
end

[Link]("^FF0000Enemies found: " .. enemyCount)


return enemyCount
end

function GMHelper:DmgInc()
local playerHealthData = {}

local function updateHealth(entityId, health)


for i, v in ipairs(playerHealthData) do
if [Link] == entityId then
[Link] = health
return
end
end
[Link](playerHealthData, {entityId = entityId, hp = health})
end

[Link]:registerCallBack(function(userId)
local player = PlayerManager:getPlayerByUserId(userId)
if player and player ~= PlayerManager:getClientPlayer() then
updateHealth([Link], player:getHealth())
end
end)

[Link]:registerCallBack(function(entityId, health)
LuaTimer:schedule(function()
if PlayerManager:getPlayerByEntityId(entityId) then
updateHealth(entityId, health)
end
end, 1000)
end)

[Link]:registerCallBack(function(entityId)
local target = PlayerManager:getPlayerByEntityId(entityId)
if not target then return end

for _, v in ipairs(playerHealthData) do
if [Link] == entityId then
local newHealth = target:getHealth()
local dmg = [Link] - newHealth
if dmg > 0 then
[Link]():addFloatNumber("number_" .. dmg,
target:getPosition(), 2, 1)
end
break
end
end
end)

for _, p in pairs(PlayerManager:getPlayers()) do
if p ~= PlayerManager:getClientPlayer() then
updateHealth([Link], p:getHealth())
end
end
[Link]("^00FF00Enabled")
end

function GMHelper:Runcode(code)
togrunCode = false
GMHelper:openInput({""}, function(input)
if input == "" then
return
end

local func, loadError = load(input)


if not func then
[Link]("Error: " .. loadError)
[Link](loadError)
return
end

local success, result = pcall(func)


if not success then
[Link]("Error: " .. result)
[Link](result)
else
[Link]("Script executed successfully")
end
end)
end

function GMHelper:HidePanel(text)
HidePaneltog = not HidePaneltog

if HidePaneltog then
text:SetBackgroundColor([Link])
GUIManager:getWindowByName("GUIRoot-Fps"):SetVisible(false)
GUIManager:getWindowByName("GUIRoot-PlayerCounter"):SetVisible(false)
GUIManager:getWindowByName("GUIRoot-Ping"):SetVisible(false)
GUIManager:getWindowByName("GUIRoot-Pose"):SetVisible(false)
GUIManager:getWindowByName("GMMain-Open"):SetAlpha(0)
[Link]("^FFA500Panel has been Hided")
else
text:SetBackgroundColor([Link])
GUIManager:getWindowByName("GUIRoot-Fps"):SetVisible(true)
GUIManager:getWindowByName("GUIRoot-PlayerCounter"):SetVisible(true)
GUIManager:getWindowByName("GUIRoot-Ping"):SetVisible(true)
GUIManager:getWindowByName("GUIRoot-Pose"):SetVisible(true)
GUIManager:getWindowByName("GMMain-Open"):SetAlpha(1)
[Link]("^FFA500Panel has been Showed")
end
end

function GMHelper:closeGame()
[Link]("^FFA500Bye")
[Link]():exitGame("normal")
end

function GMHelper:reEnter()
gameType = [Link]():getGameType() or "g1001"
targetId = targetId or Game:getPlatformUserId()
mapId = mapId or ""
[Link]("^FFA500Resetting...")
[Link]():resetGame(gameType, targetId, mapId)
end

function GMHelper:MovablePanel()
CenterToastg2 = GUIManager:getWindowByName("GMMain-Open")
togmoving = not togmoving
if togmoving then
[Link]("^00FF00MovableGM ON")
local mainLayout = GUIManager:getWindowByName("Main")
if mainLayout then
mainLayout:AddChildWindow(CenterToastg2)
end
CenterToastg2:SetHorizontalAlignment([Link])
CenterToastg2:SetWidth({ 0, 64 })
CenterToastg2:SetHeight({ 0, 64 })
CenterToastg2:SetVerticalAlignment([Link])

CenterToastg2:SetTouchable(true)

[Link]():GetRootWindow():AddChildWindow(CenterToastg2)

[Link]():GetRootWindow():AddChildWindow(CenterToastg2)
CenterToastg2:SetVisible(true)
CenterToastg2:SetYPosition({0, -273})
CenterToastg2:SetXPosition({0, 0})
local move = function(w)
[Link] = LuaTimer:scheduleTimer(function()
if not [Link]().m_gameSettings:isMouseMoving() then
local mousePos =
[Link]().m_gameSettings:getMousePos()
CenterToastg2:SetXPosition({0, mousePos.x / 2.3 - 390})
CenterToastg2:SetYPosition({0, mousePos.y / 2.3 - 305})
end
end, 5, 250)
end
CenterToastg2:registerEvent([Link], move)

CenterToastg2:registerEvent([Link], function()
isTest = true
GUIGMControlPanel:show()
LuaTimer:scheduleTimer(function() end, 5, 100)
isTest = false
end)
else
[Link]("^FF0000MovableGM OFF")
if CenterToastg2 then
CenterToastg2:SetTouchable(true)
CenterToastg2:SetWidth({ 0, 50 })
CenterToastg2:SetHeight({ 0, 50 })
CenterToastg2:SetXPosition({0, 0})
CenterToastg2:SetYPosition({0, -273})
if move then move = nil end
end
end
end

function GMHelper:CannonBtn(text)
local canon = GUIManager:getWindowByName("Main-Cannon")
A = not A
text:SetBackgroundColor([Link])
[Link] = [Link]
canon:SetVisible(false)
[Link]("^FF0000Cannon OFF")
if A then
text:SetBackgroundColor([Link])
[Link] = [Link]
canon:SetVisible(true)
local scale = 0.5
canon:SetScale(VectorUtil.newVector3(scale, scale, scale))
LuaTimer:scheduleTicker(function()
if scale <= 1 then
scale = scale + 0.05
else
scale = scale - 0.0125
end
canon:SetScale(VectorUtil.newVector3(scale, scale, scale))
end, 1, 15)
canon:registerEvent([Link], function()
local clientPlayer = PlayerManager:getClientPlayer()
if clientPlayer then
local pitch = [Link]:getPitch()
local yaw = [Link]:getYaw()

local pitchRad = pitch * [Link] / 180


local yawRad = yaw * -[Link] / 180
local x = [Link](pitchRad) * [Link](yawRad) * 3
local y = -[Link](pitchRad) * 4
local z = [Link](pitchRad) * [Link](yawRad) * 3
local newPos = VectorUtil.newVector3(x, y, z)
[Link]:setVelocity(newPos)
[Link](313)
end
end)
[Link]("^00FF00Cannon ON")
end
end

function GMHelper:HairPositive()
local player = PlayerManager:getClientPlayer().Player
if not player.m_hairID then
player.m_hairID = 0
end
player.m_hairID = player.m_hairID + 1
player.m_outLooksChanged = true
[Link]("^FF00EE Success: Hair ID is now " .. player.m_hairID)
end

function GMHelper:HairNegative()
local player = PlayerManager:getClientPlayer().Player
if not player.m_hairID then
player.m_hairID = 0
end
player.m_hairID = player.m_hairID - 1
player.m_outLooksChanged = true
[Link]("^FF00EE Success: Hair ID is now " .. player.m_hairID)
end

function GMHelper:FacePositive()
local player = PlayerManager:getClientPlayer().Player
if not player.m_faceID then
player.m_faceID = 0
end
player.m_faceID = player.m_faceID + 1
player.m_outLooksChanged = true
[Link]("^FF00EE Success: Face ID is now " .. player.m_faceID)
end

function GMHelper:FaceNegative()
local player = PlayerManager:getClientPlayer().Player
if not player.m_faceID then
player.m_faceID = 0
end
player.m_faceID = player.m_faceID - 1
player.m_outLooksChanged = true
[Link]("^FF00EE Success: Face ID is now " .. player.m_faceID)
end

function GMHelper:TopsPositive()
local player = PlayerManager:getClientPlayer().Player
if not player.m_topsID then
player.m_topsID = 0
end
player.m_topsID = player.m_topsID + 1
player.m_outLooksChanged = true
[Link]("^FF00EE Success: Tops ID is now " .. player.m_topsID)
end

function GMHelper:TopsNegative()
local player = PlayerManager:getClientPlayer().Player
if not player.m_topsID then
player.m_topsID = 0
end
player.m_topsID = player.m_topsID - 1
player.m_outLooksChanged = true
[Link]("^FF00EE Success: Tops ID is now " .. player.m_topsID)
end

function GMHelper:PantsPositive()
local player = PlayerManager:getClientPlayer().Player
if not player.m_pantsID then
player.m_pantsID = 0
end
player.m_pantsID = player.m_pantsID + 1
player.m_outLooksChanged = true
[Link]("^FF00EE Success: Pants ID is now " .. player.m_pantsID)
end

function GMHelper:PantsNegative()
local player = PlayerManager:getClientPlayer().Player
if not player.m_pantsID then
player.m_pantsID = 0
end
player.m_pantsID = player.m_pantsID - 1
player.m_outLooksChanged = true
[Link]("^FF00EE Success: Pants ID is now " .. player.m_pantsID)
end

function GMHelper:ShoesPositive()
local player = PlayerManager:getClientPlayer().Player
if not player.m_shoesID then
player.m_shoesID = 0
end
player.m_shoesID = player.m_shoesID + 1
player.m_outLooksChanged = true
[Link]("^FF00EE Success: Shoes ID is now " .. player.m_shoesID)
end

function GMHelper:ShoesNegative()
local player = PlayerManager:getClientPlayer().Player
if not player.m_shoesID then
player.m_shoesID = 0
end
player.m_shoesID = player.m_shoesID - 1
player.m_outLooksChanged = true
[Link]("^FF00EE Success: Shoes ID is now " .. player.m_shoesID)
end

function GMHelper:GlassesPositive()
local player = PlayerManager:getClientPlayer().Player
if not player.m_glassesId then
player.m_glassesId = 0
end
player.m_glassesId = player.m_glassesId + 1
player.m_outLooksChanged = true
[Link]("^FF00EE Success: Glasses ID is now " .. player.m_glassesId)
end

function GMHelper:GlassesNegative()
local player = PlayerManager:getClientPlayer().Player
if not player.m_glassesId then
player.m_glassesId = 0
end
player.m_glassesId = player.m_glassesId - 1
player.m_outLooksChanged = true
[Link]("^FF00EE Success: Glasses ID is now " .. player.m_glassesId)
end

function GMHelper:ScarfPositive()
local player = PlayerManager:getClientPlayer().Player
if not player.m_scarfId then
player.m_scarfId = 0
end
player.m_scarfId = player.m_scarfId + 1
player.m_outLooksChanged = true
[Link]("^FF00EE Success: Scarf ID is now " .. player.m_scarfId)
end

function GMHelper:ScarfNegative()
local player = PlayerManager:getClientPlayer().Player
if not player.m_scarfId then
player.m_scarfId = 0
end
player.m_scarfId = player.m_scarfId - 1
player.m_outLooksChanged = true
[Link]("^FF00EE Success: Scarf ID is now " .. player.m_scarfId)
end

function GMHelper:WingPositive()
local player = PlayerManager:getClientPlayer().Player
if not player.m_wingId then
player.m_wingId = 0
end
player.m_wingId = player.m_wingId + 1
player.m_outLooksChanged = true
[Link]("^FF00EE Success: Wing ID is now " .. player.m_wingId)
end

function GMHelper:WingNegative()
local player = PlayerManager:getClientPlayer().Player
if not player.m_wingId then
player.m_wingId = 0
end
player.m_wingId = player.m_wingId - 1
player.m_outLooksChanged = true
[Link]("^FF00EE Success: Wing ID is now " .. player.m_wingId)
end
function GMHelper:CrownPositive()
local player = PlayerManager:getClientPlayer().Player
if not player.m_crownId then
player.m_crownId = 0
end
player.m_crownId = player.m_crownId + 1
player.m_outLooksChanged = true
[Link]("^FF00EE Success: Crown ID is now " .. player.m_crownId)
end

function GMHelper:CrownNegative()
local player = PlayerManager:getClientPlayer().Player
if not player.m_crownId then
player.m_crownId = 0
end
player.m_crownId = player.m_crownId - 1
player.m_outLooksChanged = true
[Link]("^FF00EE Success: Crown ID is now " .. player.m_crownId)
end

function GMHelper:AirSpeed(text)
local isJumpSpeedActive = false
local isFastJumpEnabled = [Link]("EnableDoubleJumps")
local callbackFunction = nil

local function removeCallback()


if callbackFunction then
[Link]:unregisterCallBack(callbackFunction)
callbackFunction = nil
end
end

local function resetToNormalSpeed()


local clientPlayer = PlayerManager:getClientPlayer()
if clientPlayer then
local player = [Link]
local velocity = VectorUtil.newVector3(0, 0, 0)
player:setVelocity(velocity)
end
end

local function activateJumpSpeed()


removeCallback()

callbackFunction = function(playerId)
if playerId == [Link]():getPlatformUserId() then
local clientPlayer = PlayerManager:getClientPlayer()
local player = [Link]
local pitch, yaw = player:getPitch(), player:getYaw()
local speedFactor = 5.55

local radPitch = [Link](pitch)


local radYaw = [Link](yaw)

local velocityX = -speedFactor * [Link](radPitch) *


[Link](radYaw)
local velocityY = -speedFactor * [Link](radPitch)
local velocityZ = speedFactor * [Link](radPitch) *
[Link](radYaw)
local newVelocity = VectorUtil.newVector3(velocityX, velocityY,
velocityZ)
player:moveEntity(VectorUtil.newVector3(0, 1.35, 0))
player:setVelocity(newVelocity)
end
end

[Link]:registerCallBack(callbackFunction)
text:SetBackgroundColor([Link])
isJumpSpeedActive = true
end

local function deactivateJumpSpeed()


removeCallback()
resetToNormalSpeed()
text:SetBackgroundColor([Link])
isJumpSpeedActive = false
end

local function toggleFastJump()


if isFastJumpEnabled then
[Link]("EnableDoubleJumps", false)
PlayerManager:getClientPlayer().Player.m_keepJumping = true
text:SetBackgroundColor([Link])
else
[Link]("EnableDoubleJumps", true)
PlayerManager:getClientPlayer().Player.m_keepJumping = false
text:SetBackgroundColor([Link])
end
end

if isJumpSpeedActive then
deactivateJumpSpeed()
else
activateJumpSpeed()
end

toggleFastJump()
end

function GMHelper:NoLag()
local FPS = 500000
togNoLag = not togNoLag
if not togNoLag then
[Link]():SetMaxFps(60)
[Link]("^FF0000NoLag stopped")
return
end
[Link]():SetMaxFps(FPS)
[Link]("^00FF00NoLag Enabled")
end

function GMHelper:UnlockFPS()
local originalRenderDistance = 500
local antiLagRenderDistance = 100
togUnlockFPS = not togUnlockFPS
if togUnlockFPS then
originalRenderDistance = [Link]("BlockRenderDistance")
[Link]("BlockRenderDistance", antiLagRenderDistance)
[Link]("^00FF00UnlockFPS Enabled")
return
end
[Link]("BlockRenderDistance", originalRenderDistance)
[Link]("^FF0000UnlockFPS Disabled")
end

local highJumpValue = 1
function GMHelper:HighJump(text)
local player = PlayerManager:getClientPlayer()
togHighJump = not togHighJump
if togHighJump then
[Link]("^FF00FFHigh Jump Enabled")
text:SetBackgroundColor([Link])
[Link]:setFloatProperty("JumpHeight", highJumpValue)
return
end
[Link]("High Jump Disabled")
text:SetBackgroundColor([Link])
[Link]:setFloatProperty("JumpHeight", 0.4)
end

function GMHelper:FreeCamera(text)
togFreeCamera = not togFreeCamera
if not togFreeCamera then
GUIManager:getWindowByName("Main-HideAndSeek-Operate"):SetVisible(false)
text:SetBackgroundColor([Link])
return
end
GUIManager:getWindowByName("Main-HideAndSeek-Operate"):SetVisible(true)
text:SetBackgroundColor([Link])
end

local function createButtonHandler(button, moveVector)


local isTouching = false
local timer
local pos = PlayerManager:getClientPlayer():getPosition()

local function movePlayer()


if isTouching then
pos = PlayerManager:getClientPlayer():getPosition()
PlayerManager:getClientPlayer().Player:moveEntity(moveVector)
end
end

local function startTouch()


if not isTouching then
isTouching = true
timer = LuaTimer:scheduleTimer(movePlayer, 0.1, -1)
end
end

local function stopTouch()


isTouching = false
if timer then
LuaTimer:cancel(timer)
timer = nil
end
end

button:registerEvent([Link], startTouch)
button:registerEvent([Link], movePlayer)
button:registerEvent([Link], stopTouch)
button:registerEvent([Link], startTouch)
button:registerEvent([Link], stopTouch)
button:registerEvent([Link], startTouch)
button:registerEvent([Link], startTouch)
button:registerEvent([Link], startTouch)
button:registerEvent([Link], movePlayer)
button:registerEvent([Link], stopTouch)
button:registerEvent([Link], stopTouch)
end

function GMHelper:DevFly(text)
flyButtonn = GUIManager:createGUIWindow([Link], "GUIRoot-flyButtonn")
flyButtonn:SetHorizontalAlignment([Link])
flyButtonn:SetVerticalAlignment([Link])
flyButtonn:SetHeight({0, 60})
flyButtonn:SetWidth({0, 60})
flyButtonn:SetLevel(1)
flyButtonn:SetTouchable(true)
flyButtonn:SetBackgroundColor({0, 0, 0, 0.6})
flyButtonn:SetXPosition({0.45, 0})
flyButtonn:SetYPosition({0.1, 0})
flyButtonn:SetNormalImage("set:fly_control.json image:luodi")
flyButtonn:SetPushedImage("set:fly_control.json image:luodi")
flyButtonn:SetVisible(true)

[Link]():GetRootWindow():AddChildWindow(flyButtonn)

local UpBtn = GUIManager:getWindowByName("Main-Down")


createButtonHandler(UpBtn, VectorUtil.newVector3(0, -0.0030, 0))

local DownBtn = GUIManager:getWindowByName("Main-Up")


createButtonHandler(DownBtn, VectorUtil.newVector3(0, 0.0030, 0))

[Link] = [Link] or false

if not [Link] then


[Link] = LuaTimer:scheduleTimer(function()
local player = PlayerManager:getClientPlayer().Player
if player then
if player:getIsFlying() then
player:setSpeedAdditionLevel(15000)
else
player:setSpeedAdditionLevel(0)
end
end
end, 50, -1)
end

flyButtonn:registerEvent([Link], function()
local player = PlayerManager:getClientPlayer().Player
[Link] = not [Link]

if [Link] then
player:setAllowFlying(true)
player:setFlying(true)
player:moveEntity(VectorUtil.newVector3(0.0, 1.35, 0.0))
[Link]("^00FF00 Fly Mode Enabled")
else
player:setFlying(false)
player:setAllowFlying(false)
[Link]("^FF0000 Fly Mode Disabled")
end
end)
end

function GMHelper:AutoRespawn()
local deathPosition = nil

local function setPositionWithAirFall()


if deathPosition then
local newY = 165
local targetPos = VectorUtil.newVector3(deathPosition.x, newY,
deathPosition.z)
local clientPlayer = PlayerManager:getClientPlayer().Player
clientPlayer:setPosition(targetPos)
clientPlayer:setAllowFlying(false)
clientPlayer:setFlying(false)
[Link] = [Link]
[Link] = [Link]
end
end

togRespawnInSamePlace = not togRespawnInSamePlace

if not togRespawnInSamePlace and respawnCallback then


[Link]:unregisterCallBack(respawnCallback)
respawnCallback = nil
text:SetBackgroundColor([Link])
return
end

if togRespawnInSamePlace then
respawnCallback = function(deadPlayer)
if deadPlayer == [Link]():getPlatformUserId() then
local player = PlayerManager:getClientPlayer().Player
deathPosition = {
x = player:getPosition().x,
y = player:getPosition().y,
z = player:getPosition().z,
yaw = player:getYaw(),
pitch = player:getPitch()
}

LuaTimer:scheduleTimer(function()
PacketSender:getSender():sendRebirth()
LuaTimer:schedule(function()
setPositionWithAirFall()
end, 400)
end, 1, 300)

[Link]():showMainControl()
[Link]("Respawning player...")
end
end

[Link]:registerCallBack(respawnCallback)
text:SetBackgroundColor([Link])
end
end

function GMHelper:DeathChangePlace(text)
local predefinedPos = VectorUtil.newVector3(100, 200, 100)

local function setPosTest(targetPos)


if targetPos.y < 10 then return end
local clientPlayer = PlayerManager:getClientPlayer().Player
local myPos = clientPlayer:getPosition()
local disTp = { x = targetPos.x - myPos.x, z = targetPos.z - myPos.z }

if myPos.y < 165 then


myPos.y = 165
end

if [Link](disTp.x) > 18 then


myPos.x = myPos.x + (disTp.x > 0 and 18 or -18)
clientPlayer:setPosition(myPos)
LuaTimer:scheduleTimer(function()
setPosTest(targetPos)
end, 100, 1)
return
end

if [Link](disTp.z) > 18 then


myPos.z = myPos.z + (disTp.z > 0 and 18 or -18)
clientPlayer:setPosition(myPos)
LuaTimer:scheduleTimer(function()
setPosTest(targetPos)
end, 100, 1)
return
end

local function checkBlock(pos)


while EngineWorld:getBlockId(pos) ~= [Link] do
pos.y = pos.y + 1
if pos.y > 256 then break end
end
return pos
end

targetPos = checkBlock(targetPos)
clientPlayer:setPosition(targetPos)
clientPlayer:setAllowFlying(false)
clientPlayer:setFlying(false)
[Link] = yaw
[Link] = pitch
end

togRespawnInSamePlace = not togRespawnInSamePlace

if not togRespawnInSamePlace and respawnCallback then


[Link]:unregisterCallBack(respawnCallback)
respawnCallback = nil
text:SetBackgroundColor([Link])
return
end

if togRespawnInSamePlace then
respawnCallback = function(deadPlayer)
if deadPlayer == [Link]():getPlatformUserId() then
local playerPosition =
PlayerManager:getClientPlayer().Player:getPosition()
yaw = PlayerManager:getClientPlayer().Player:getYaw()
pitch = PlayerManager:getClientPlayer().Player:getPitch()

LuaTimer:scheduleTimer(function()
PacketSender:getSender():sendRebirth()
local player = PlayerManager:getClientPlayer().Player
player:setAllowFlying(true)
player:setFlying(true)

LuaTimer:schedule(function()
if predefinedPos then
setPosTest(predefinedPos)
else
setPosTest(VectorUtil.newVector3(playerPosition.x,
playerPosition.y, playerPosition.z))
end
end, 400)
end, 1, 300)

[Link]():showMainControl()
[Link]("Respawning player...")
end
end

[Link]:registerCallBack(respawnCallback)
text:SetBackgroundColor([Link])
end
end

function GMHelper:Tp
(text)
A = not A
LuaTimer:cancel(teleportTimer)

if A then
teleportTimer = LuaTimer:scheduleTimer(function()
local clientPos = PlayerManager:getClientPlayer().Player:getPosition()
clientPos.y = clientPos.y + 2
local entities = EntityCache:getAllEntity()
for _, entity in pairs(entities) do
if entity ~= PlayerManager:getClientPlayer() then
[Link]:setPosition(clientPos)
end
end
text:SetBackgroundColor([Link])
end, 1, -1)
else
text:SetBackgroundColor([Link])
end
end
local function setPosTest(targetPos)
if not targetPos or targetPos.y < 10 then return end

local clientPlayer = PlayerManager:getClientPlayer().Player


if not clientPlayer then return end

local myPos = clientPlayer:getPosition()


local dx = targetPos.x - myPos.x
local dz = targetPos.z - myPos.z

if myPos.y < 165 then


myPos.y = 165
end

if [Link](dx) > 18 then


myPos.x = myPos.x + (dx > 0 and 18 or -18)
clientPlayer:setPosition(myPos)
LuaTimer:scheduleTimer(function()
setPosTest(targetPos)
end, 100, 1)
return
end

if [Link](dz) > 18 then


myPos.z = myPos.z + (dz > 0 and 18 or -18)
clientPlayer:setPosition(myPos)
LuaTimer:scheduleTimer(function()
setPosTest(targetPos)
end, 100, 1)
return
end

local function findSafeY(pos)


while EngineWorld:getBlockId(pos) ~= [Link] and pos.y < 256 do
pos.y = pos.y + 1.5
end
return pos
end

targetPos = findSafeY(targetPos)
[Link] = true
clientPlayer:setPosition(targetPos)
[Link] = false

local player = PlayerManager:getClientPlayer().Player


if not player then return end

player:setAllowFlying(false)
player:setFlying(false)

if yaw then [Link] = yaw end


if pitch then [Link] = pitch end

[Link]("SyncClientPositionToServer", false)
clientPlayer:setPosition(targetPos)

local tmLft
local timeLeft = 1
tmLft = LuaTimer:scheduleTimer(function()
PacketSender:getSender():sendRebirth()
timeLeft = timeLeft - 1
if timeLeft <= 0 then
[Link]("SyncClientPositionToServer", true)
LuaTimer:cancel(tmLft)
clientPlayer:moveEntity(VectorUtil.newVector3(0, 1.35, 0))
clientPlayer:setAllowFlying(true)
clientPlayer:setFlying(true)

LuaTimer:schedule(function()
clientPlayer:setAllowFlying(false)
clientPlayer:setFlying(false)
end, 0.05)
end
end, 0.06, 1)
end

function GMHelper:BedDestroyer(text)
BedDestroyertog = not BedDestroyertog
if not BedDestroyertog then
[Link]("BedTP: Off")
text:SetBackgroundColor([Link])
if self._bedTpTimer then
LuaTimer:cancel(self._bedTpTimer)
self._bedTpTimer = nil
end

local me = PlayerManager:getClientPlayer()
if me and [Link] then
[Link] = false
end
return
end

[Link]("BedTP: On")
text:SetBackgroundColor([Link])

local currentTargetBed = nil


local lastScanTime = 0
local scanCooldown = 1500

local function scanForEnemyBed()


local meWrapper = PlayerManager:getClientPlayer()
if not meWrapper or not [Link] then return nil end
local me = [Link]
local myPos = me:getPosition()
local myTeam = meWrapper:getTeamId()

local players = PlayerManager:getPlayers()


local beds = {}
for _, wrapper in ipairs(players) do
if [Link] and wrapper ~= meWrapper then
local team = wrapper:getTeamId()
if team ~= myTeam then
local ppos = [Link]:getPosition()
for dx = -15, 15 do
for dy = -6, 6 do
for dz = -15, 15 do
local bpos = VectorUtil.newVector3(ppos.x + dx,
ppos.y + dy, ppos.z + dz)
if EngineWorld:getBlockId(bpos) == [Link] then
local d = [Link](myPos, bpos)
[Link](beds, {pos = bpos, dist = d})
end
end
end
end
end
end
end

if #beds == 0 then return nil end


[Link](beds, function(a, b) return [Link] < [Link] end)
return beds[1].pos
end

self._bedTpTimer = LuaTimer:scheduleTimer(function()
local me = PlayerManager:getClientPlayer()
if not me or not [Link] then return end

local now = [Link]() * 500


if (not currentTargetBed or EngineWorld:getBlockId(currentTargetBed) ~=
[Link]) and (now - lastScanTime >= scanCooldown) then
lastScanTime = now
currentTargetBed = scanForEnemyBed()
if currentTargetBed then
[Link] = true
else
[Link] = false
return
end
end

if currentTargetBed then
-- Send teleport packet before setting position
PacketSender:sendLuaCommonData("TeleportHallInitPos")

local tp = VectorUtil.newVector3(
currentTargetBed.x + 0.5,
currentTargetBed.y + 2,
currentTargetBed.z + 0.5
)
setPosTest(tp)
end
end, 70, -1)
end

function GMHelper:QuickPlaceBlock(text)
T = not T
text:SetBackgroundColor([Link])
LuaTimer:cancel([Link])
if T then
text:SetBackgroundColor([Link])
[Link] = LuaTimer:scheduleTimer(function()
[Link]("QuicklyBuildBlockNum", 5)
end, 0.10, -1)
end
end

function GMHelper:NoFall(text)
U = not U
LuaTimer:cancel([Link])
[Link]("SprintLimitCheck", 0)
text:SetBackgroundColor([Link])
if U then
text:SetBackgroundColor([Link])
[Link] = LuaTimer:scheduleTimer(function()
[Link]("SprintLimitCheck", 1)
end, 0.10, -1)
end
end

function GMHelper:Skate(text)
A = not A
text:SetBackgroundColor([Link])
[Link] = [Link]

PlayerManager:getClientPlayer().Player:setBoolProperty("DisableUpdateAnimState",
false)
if A then
GUIGMControlPanel:hide()

PlayerManager:getClientPlayer().Player:setBoolProperty("DisableUpdateAnimState",
true)
text:SetBackgroundColor([Link])
[Link] = [Link]
end
end

function GMHelper:Blink(text)
A = not A
text:SetBackgroundColor([Link])
[Link] = [Link]
[Link]("SyncClientPositionToServer", true)
if A then
text:SetBackgroundColor([Link])
[Link] = [Link]
[Link]("SyncClientPositionToServer", false)
end
end

function GMHelper:TpKill(text)
A = not A
text:SetBackgroundColor([Link])
[Link] = [Link]
LuaTimer:cancel([Link])
if A then
local me = PlayerManager:getClientPlayer()
local moveDir = VectorUtil.newVector3(1.0, 1.0, 1.0)
local myTeamId = [Link]:getTeamId()
[Link] = LuaTimer:scheduleTimer(function()
local others = PlayerManager:getPlayers()
for _, c_player in pairs(others) do
if c_player ~= me and [Link]:getTeamId() ~= myTeamId then
--player ~= me and [Link] and [Link]:getTeamId() ~= myTeamId
[Link]:setPosition(c_player:getPosition())
[Link]:moveEntity(moveDir)
end
end
end, 119, -1)
GMHelper:Aimbot(text)
GMHelper:Blink(text)
text:SetBackgroundColor([Link])
[Link] = [Link]
end
end

function GMHelper:Aimbot(text)
AIs = not AIs
text:SetBackgroundColor([Link])
LuaTimer:cancel([Link])

if AIs then
text:SetBackgroundColor([Link])
[Link] = LuaTimer:scheduleTimer(function()
local me = PlayerManager:getClientPlayer()

if me then
local myPos = [Link]:getPosition()
local players = PlayerManager:getPlayers()

local closestDistance = [Link]


local closestPlayer = nil

for _, player in pairs(players) do


if player ~= me then
local playerPos = player:getPosition()
local distance = MathUtil:distanceSquare2d(playerPos,
myPos)

if distance < closestDistance then


closestDistance = distance
closestPlayer = player
end
end
end

if closestPlayer ~= nil and closestDistance < 10 then

local health = [Link](closestPlayer:getHealth(), 50.0)

local locationString = [Link]("^FF00EEPlayers Hp: %.1f


❤", health)

[Link](locationString)

local camera = [Link]():getMainCamera()


local pos = camera:getPosition()
local dir = VectorUtil.sub3(closestPlayer:getPosition(), pos)

local yaw = math.atan2(dir.x, dir.z) / [Link] * -180


local calculate = [Link](dir.x * dir.x + dir.z * dir.z)
local pitch = -math.atan2(dir.y, calculate) / [Link] * 180
[Link] = yaw or 0
[Link] = pitch or 0

locationString:SetBackgroundColor({ 0, 0, 0, 0.5 })

end
end
end, 1, 99999)
end
end

function GMHelper:AimBow(text)
AimbowEnabled = not AimbowEnabled

if AimbowEnabled then
LuaTimer:scheduleTimer(function()
local clientPlayer = PlayerManager:getClientPlayer().Player
local heldItemId = clientPlayer:getHeldItemId()

if heldItemId == 261 then


local players = PlayerManager:getPlayers()
local closestPlayer = nil
local closestDistance = [Link]
local myTeamId = clientPlayer:getTeamId()

for _, targetPlayer in ipairs(players) do


if targetPlayer ~= clientPlayer and targetPlayer:getTeamId() ~=
myTeamId then
local distance =
MathUtil:distanceSquare2d(targetPlayer:getPosition(), clientPlayer:getPosition())

if distance < closestDistance then


closestDistance = distance
closestPlayer = targetPlayer
end
end
end

if closestPlayer then
local dir = VectorUtil.sub3(closestPlayer:getPosition(),
clientPlayer:getPosition())
local yaw = math.atan2(dir.x, dir.z) * -180 / [Link]
local distance = [Link](dir.x * dir.x + dir.z * dir.z)
local pitch = -math.atan2(dir.y, distance) * 180 / [Link]

[Link] = yaw
[Link] = pitch
end
end
end, 0.1, 0)

[Link]("Aimbow Enabled")
text:SetBackgroundColor([Link])
else
LuaTimer:cancel([Link])
[Link]("Aimbow Disabled")
text:SetBackgroundColor([Link])
end
end

function GMHelper:FastJump(text)
local isEnabled = [Link]("EnableDoubleJumps")
A = not A
PlayerManager:getClientPlayer().Player.m_keepJumping = true
text:SetBackgroundColor([Link])
if A then
[Link]("EnableDoubleJumps", true)
PlayerManager:getClientPlayer().Player.m_keepJumping = false
text:SetBackgroundColor([Link])
end
end

function GMHelper:StopPlayers(text)
self._allPlayersStopped = not self._allPlayersStopped

if self._allPlayersStopped then
text:SetBackgroundColor([Link])
[Link]("§cAll players frozen (via packet)")

self._freezeAllPacketTimer = LuaTimer:scheduleTimer(function()
local players = PlayerManager:getAllPlayers()
for i = 1, #players do
local player = players[i]
if player and player:isValid() and not player:isLocalPlayer() then
local motion = VectorUtil.newVector3(0, 0, 0)

local packet = [Link]()


[Link] = player:getEntityId()
[Link] = motion

PacketManager:sendPacket(packet)
end
end
end, 50, -1)

else
if self._freezeAllPacketTimer then
LuaTimer:cancel(self._freezeAllPacketTimer)
self._freezeAllPacketTimer = nil
end

text:SetBackgroundColor([Link])
[Link]("§aAll players unfrozen (via packet)")
end
end

function GMHelper:EquipNinjaShoes(text)
local player = PlayerManager:getClientPlayer()
EnableJump = not EnableJump

if EnableJump then
[Link]:setFloatProperty("JumpHeight", 0.50)
[Link] = 2
text:SetBackgroundColor([Link])
else
[Link]:setFloatProperty("JumpHeight", 0.42)
[Link] = 1
text:SetBackgroundColor([Link])
end
end

function GMHelper:Night()
[Link]("fanxing")
end

function GMHelper:Day()
[Link]("Qing")
end

function GMHelper:Evening()
[Link]("Wanxia")
end

function GMHelper:Snow()
[Link]("xue")
end

function GMHelper:HideHP(text)
text:SetBackgroundColor([Link])
GUIManager:getWindowByName("ClientSetting-TabList"):SetVisible(true)
end

function GMHelper:ShowHP(text)
text:SetBackgroundColor([Link])
GUIManager:getWindowByName("PlayerInfo-Health"):SetVisible(true)
end

function GMHelper:SetFov()
GMHelper:openInput({ "" }, function(data)
[Link]().m_gameSettings:setFovSetting(data)
[Link]("success")
end)
end

function GMHelper:SetHighJump()
GMHelper:openInput({ "Set new jump value" }, function(newHighJump)
local player = PlayerManager:getClientPlayer()
newHighJump = tonumber(newHighJump)
if player and [Link] and newHighJump then
[Link]:setFloatProperty("JumpHeight", newHighJump)
[Link]("^FF00EESuccess")
end
end)
end

function GMHelper:SetSpeed()
GMHelper:openInput({ "Set new speed value" }, function(Number)
PlayerManager:getClientPlayer().Player:setSpeedAdditionLevel(Number)
[Link]("^FF00EESuccess")
end)
end

function GMHelper:SetMaxFPS()
GMHelper:openInput({""}, function(FPS)
[Link]():SetMaxFps(FPS)
end)
end

function GMHelper:restValues(text)
SpeedValue = 1
PlayerManager:getClientPlayer().Player:setSpeedAdditionLevel(SpeedValue)
text:SetBackgroundColor([Link])

highJumpValue = 0.4
local player = PlayerManager:getClientPlayer()
if player and [Link] then
[Link]:setFloatProperty("JumpHeight", highJumpValue)
end

AimBotValue = 0
AimbotRange = nil
if [Link] then
LuaTimer:cancel([Link])
[Link] = nil
end

local players = PlayerManager:getPlayers()


for _, player in ipairs(players) do
local entity = [Link]
if player ~= PlayerManager:getClientPlayer() then
[Link] = 2
[Link] = 2
[Link] = 2
end
end

[Link]().m_gameSettings:setFovSetting(1.0)
end

function GMHelper:UpdatePlayerNickname()
local isEnabled = true

[Link]()
[Link]("Terms and Conditions")
[Link]("Please agree to the terms and conditions to
continue.")
[Link]("Agree")
[Link]("Cancel")
GUIGMControlPanel:hide()

[Link](
function()
if isEnabled then
local clientPlayer = PlayerManager:getClientPlayer()
local playerEntity = [Link]
local fixedNickname = playerEntity:getEntityName()
local formattedNickname = [Link]("[S=vip_nameplate_1.json]&$
[ff0000ff-ff7f00ff-ffff00ff-00ff00ff-00ffffff-0000ffff-7f00ffff]$%s$&",
playerEntity:getEntityName())
playerEntity:setShowName(formattedNickname)

[Link]()
[Link]("Vip1")
[Link]("--> ^00FF00 Vip1 NameColor
^FFFFFF<--")
[Link]("Done")
[Link](
function()
end
)
[Link]()
else
[Link]("Button is disabled.")
end
end
)

[Link](
function()
if isEnabled then
[Link]("Operation Cancelled")
else
[Link]("Button is disabled.")
end
end
)

[Link]()
end

function GMHelper:UpdatePlayerNickname2(text)
local isEnabled = true

[Link]()
[Link]("Terms and Conditions")
[Link]("Please agree to the terms and conditions to
continue.")
[Link]("Agree")
[Link]("Cancel")
GUIGMControlPanel:hide()

[Link](
function()
if isEnabled then
text:SetBackgroundColor([Link])
local clientPlayer = PlayerManager:getClientPlayer()
local playerEntity = [Link]
local fixedNickname = playerEntity:getEntityName()
local formattedNickname = [Link]("[S=vip_nameplate_2.json]&$
[ff0000ff-ff7f00ff-ffff00ff-00ff00ff-00ffffff-0000ffff-7f00ffff]$%s$&",
playerEntity:getEntityName())
playerEntity:setShowName(formattedNickname)

[Link]()
[Link]("Vip2")
[Link]("--> ^00FF00 Vip2 NameColor
^FFFFFF<--")
[Link]("Done")
[Link](
function()
end
)
[Link]()
else
[Link]("Button is disabled.")
end
end
)

[Link](
function()
if isEnabled then
[Link]("Operation Cancelled")
else
[Link]("Button is disabled.")
end
end
)

[Link]()
end

function GMHelper:UpdatePlayerNickname3(text)
local isEnabled = true

[Link]()
[Link]("Terms and Conditions")
[Link]("Please agree to the terms and conditions to
continue.")
[Link]("Agree")
[Link]("Cancel")
GUIGMControlPanel:hide()

[Link](
function()
if isEnabled then
text:SetBackgroundColor([Link])
local clientPlayer = PlayerManager:getClientPlayer()
local playerEntity = [Link]
local fixedNickname = playerEntity:getEntityName()
local formattedNickname = [Link]("[S=vip_nameplate_3.json]&$
[ff0000ff-ff7f00ff-ffff00ff-00ff00ff-00ffffff-0000ffff-7f00ffff]$%s$&",
playerEntity:getEntityName())
playerEntity:setShowName(formattedNickname)

[Link]()
[Link]("Vip3")
[Link]("--> ^00FF00 Vip3 NameColor
^FFFFFF<--")
[Link]("Done")
[Link](
function()
end
)
[Link]()
else
[Link]("Button is disabled.")
end
end
)
[Link](
function()
if isEnabled then
[Link]("Operation Cancelled")
else
[Link]("Button is disabled.")
end
end
)

[Link]()
end

function GMHelper:UpdatePlayerNickname4(text)
local isEnabled = true

[Link]()
[Link]("Terms and Conditions")
[Link]("Please agree to the terms and conditions to
continue.")
[Link]("Agree")
[Link]("Cancel")
GUIGMControlPanel:hide()

[Link](
function()
if isEnabled then
text:SetBackgroundColor([Link])
local clientPlayer = PlayerManager:getClientPlayer()
local playerEntity = [Link]
local fixedNickname = playerEntity:getEntityName()
local formattedNickname = [Link]("[S=vip_nameplate_4.json]&$
[ff0000ff-ff7f00ff-ffff00ff-00ff00ff-00ffffff-0000ffff-7f00ffff]$%s$&",
playerEntity:getEntityName())
playerEntity:setShowName(formattedNickname)

[Link]()
[Link]("Vip4")
[Link]("--> ^00FF00 Vip4 NameColor
^FFFFFF<--")
[Link]("Done")
[Link](
function()
end
)
[Link]()
else
[Link]("Button is disabled.")
end
end
)

[Link](
function()
if isEnabled then
[Link]("Operation Cancelled")
else
[Link]("Button is disabled.")
end
end
)

[Link]()
end

function GMHelper:UpdatePlayerNickname5(text)
local isEnabled = true

[Link]()
[Link]("Terms and Conditions")
[Link]("Please agree to the terms and conditions to
continue.")
[Link]("Agree")
[Link]("Cancel")
GUIGMControlPanel:hide()

[Link](
function()
if isEnabled then
text:SetBackgroundColor([Link])
local clientPlayer = PlayerManager:getClientPlayer()
local playerEntity = [Link]
local fixedNickname = playerEntity:getEntityName()
local formattedNickname = [Link]("[S=vip_nameplate_5.json]&$
[ff0000ff-ff7f00ff-ffff00ff-00ff00ff-00ffffff-0000ffff-7f00ffff]$%s$&",
playerEntity:getEntityName())
playerEntity:setShowName(formattedNickname)

[Link]()
[Link]("Vip5")
[Link]("--> ^00FF00 Vip5 NameColor
^FFFFFF<--")
[Link]("Done")
[Link](
function()
end
)
[Link]()
else
[Link]("Button is disabled.")
end
end
)

[Link](
function()
if isEnabled then
[Link]("Operation Cancelled")
else
[Link]("Button is disabled.")
end
end
)

[Link]()
end

function GMHelper:UpdatePlayerNickname6(text)
local isEnabled = true

[Link]()
[Link]("Terms and Conditions")
[Link]("Please agree to the terms and conditions to
continue.")
[Link]("Agree")
[Link]("Cancel")
GUIGMControlPanel:hide()

[Link](
function()
if isEnabled then
text:SetBackgroundColor([Link])
local clientPlayer = PlayerManager:getClientPlayer()
local playerEntity = [Link]
local fixedNickname = playerEntity:getEntityName()
local formattedNickname = [Link]("[S=vip_nameplate_6.json]&$
[ff0000ff-ff7f00ff-ffff00ff-00ff00ff-00ffffff-0000ffff-7f00ffff]$%s$&",
playerEntity:getEntityName())
playerEntity:setShowName(formattedNickname)

[Link]()
[Link]("Vip6")
[Link]("--> ^00FF00 Vip6 NameColor
^FFFFFF<--")
[Link]("Done")
[Link](
function()
end
)
[Link]()
else
[Link]("Button is disabled.")
end
end
)

[Link](
function()
if isEnabled then
[Link]("Operation Cancelled")
else
[Link]("Button is disabled.")
end
end
)

[Link]()
end

function GMHelper:UpdatePlayerNickname7(text)
local isEnabled = true

[Link]()
[Link]("Terms and Conditions")
[Link]("Please agree to the terms and conditions to
continue.")
[Link]("Agree")
[Link]("Cancel")
GUIGMControlPanel:hide()

[Link](
function()
if isEnabled then
text:SetBackgroundColor([Link])
local clientPlayer = PlayerManager:getClientPlayer()
local playerEntity = [Link]
local fixedNickname = playerEntity:getEntityName()
local formattedNickname = [Link]("[S=vip_nameplate_7.json]&$
[ff0000ff-ff7f00ff-ffff00ff-00ff00ff-00ffffff-0000ffff-7f00ffff]$%s$&",
playerEntity:getEntityName())
playerEntity:setShowName(formattedNickname)

[Link]()
[Link]("Vip7")
[Link]("--> ^00FF00 Vip7 NameColor
^FFFFFF<--")
[Link]("Done")
[Link](
function()
end
)
[Link]()
else
[Link]("Button is disabled.")
end
end
)

[Link](
function()
if isEnabled then
[Link]("Operation Cancelled")
else
[Link]("Button is disabled.")
end
end
)

[Link]()
end

function GMHelper:UpdatePlayerNickname8(text)
local isEnabled = true

[Link]()
[Link]("Terms and Conditions")
[Link]("Please agree to the terms and conditions to
continue.")
[Link]("Agree")
[Link]("Cancel")
GUIGMControlPanel:hide()
[Link](
function()
if isEnabled then
text:SetBackgroundColor([Link])
local clientPlayer = PlayerManager:getClientPlayer()
local playerEntity = [Link]
local fixedNickname = playerEntity:getEntityName()
local formattedNickname = [Link]("[S=vip_nameplate_8.json]&$
[ff0000ff-ff7f00ff-ffff00ff-00ff00ff-00ffffff-0000ffff-7f00ffff]$%s$&",
playerEntity:getEntityName())
playerEntity:setShowName(formattedNickname)

[Link]()
[Link]("Vip8")
[Link]("--> ^00FF00 Vip8 NameColor
^FFFFFF<--")
[Link]("Done")
[Link](
function()
end
)
[Link]()
else
[Link]("Button is disabled.")
end
end
)

[Link](
function()
if isEnabled then
[Link]("Operation Cancelled")
else
[Link]("Button is disabled.")
end
end
)

[Link]()
end

function GMHelper:UpdatePlayerNickname9(text)
local isEnabled = true

[Link]()
[Link]("Terms and Conditions")
[Link]("Please agree to the terms and conditions to
continue.")
[Link]("Agree")
[Link]("Cancel")
GUIGMControlPanel:hide()

[Link](
function()
if isEnabled then
text:SetBackgroundColor([Link])
local clientPlayer = PlayerManager:getClientPlayer()
local playerEntity = [Link]
local fixedNickname = playerEntity:getEntityName()
local formattedNickname = [Link]("[S=vip_nameplate_9.json]&$
[ff0000ff-ff7f00ff-ffff00ff-00ff00ff-00ffffff-0000ffff-7f00ffff]$%s$&",
playerEntity:getEntityName())
playerEntity:setShowName(formattedNickname)

[Link]()
[Link]("Vip9")
[Link]("--> ^00FF00 Vip9 NameColor
^FFFFFF<--")
[Link]("Done")
[Link](
function()
end
)
[Link]()
else
[Link]("Button is disabled.")
end
end
)

[Link](
function()
if isEnabled then
[Link]("Operation Cancelled")
else
[Link]("Button is disabled.")
end
end
)

[Link]()
end

function GMHelper:UpdatePlayerNickname10(text)
local isEnabled = true

[Link]()
[Link]("Terms and Conditions")
[Link]("Please agree to the terms and conditions to
continue.")
[Link]("Agree")
[Link]("Cancel")
GUIGMControlPanel:hide()

[Link](
function()
if isEnabled then
text:SetBackgroundColor([Link])
local clientPlayer = PlayerManager:getClientPlayer()
local playerEntity = [Link]
local fixedNickname = playerEntity:getEntityName()
local formattedNickname = [Link]("[S=vip_nameplate_10.json]&$
[ff0000ff-ff7f00ff-ffff00ff-00ff00ff-00ffffff-0000ffff-7f00ffff]$%s$&",
playerEntity:getEntityName())
playerEntity:setShowName(formattedNickname)
[Link]()
[Link]("Vip10")
[Link]("--> ^00FF00 Vip10 NameColor
^FFFFFF<--")
[Link]("Done")
[Link](
function()
end
)
[Link]()
else
[Link]("Button is disabled.")
end
end
)

[Link](
function()
if isEnabled then
[Link]("Operation Cancelled")
else
[Link]("Button is disabled.")
end
end
)

[Link]()
end

function GMHelper:UpdatePlayerNickname11(text)
local isEnabled = true

[Link]()
[Link]("Terms and Conditions")
[Link]("Please agree to the terms and conditions to
continue.")
[Link]("Agree")
[Link]("Cancel")
GUIGMControlPanel:hide()

[Link](
function()
if isEnabled then
text:SetBackgroundColor([Link])
local clientPlayer = PlayerManager:getClientPlayer()
local playerEntity = [Link]
local fixedNickname = playerEntity:getEntityName()
local formattedNickname =
[Link]("[S=vip_nameplate_10_plus.json]&$[ff0000ff-ff7f00ff-ffff00ff-
00ff00ff-00ffffff-0000ffff-7f00ffff]$%s$&", playerEntity:getEntityName())
playerEntity:setShowName(formattedNickname)

[Link]()
[Link]("Vip11")
[Link]("--> ^00FF00 Vip11 NameColor
^FFFFFF<--")
[Link]("Done")
[Link](
function()
end
)
[Link]()
else
[Link]("Button is disabled.")
end
end
)

[Link](
function()
if isEnabled then
[Link]("Operation Cancelled")
else
[Link]("Button is disabled.")
end
end
)

[Link]()
end

function GMHelper:reSetHealth()
LuaTimer:scheduleTimer(function()
local playerWrapper = PlayerManager:getClientPlayer()
if not playerWrapper or not [Link] then
return
end

playerWrapper:sendPacket({
pid = "PluginSetThornSubHealth",
health = 25
})

[Link]:setEntityHealthNoHurtEffect(25)
[Link]("Enabled")
end, 100, -1)
end

function GMHelper:TeleportKiller()
Aim = not Aim
LuaTimer:cancel(TpKillTimer)
[Link]().m_gameSettings:setCollimatorMode(false)
[Link]("^FF0000KillTP Off")

if Aim then
[Link]().m_gameSettings:setCollimatorMode(true)
local me = PlayerManager:getClientPlayer()
local moveDir = VectorUtil.newVector3(0.0, 2.0, 0.0)
local gameType = [Link]():getGameType()
local GameHasTeams = { "g1061", "g1062", "g1063", "g1065", "g1072",
"g1027", "g1018", "g1014", "g1038" }

local isGameHasTeams = false


for _, hasTeams in pairs(GameHasTeams) do
if gameType == hasTeams then
isGameHasTeams = true
break
end
end

TpKillTimer = LuaTimer:scheduleTimer(function()
local others = PlayerManager:getPlayers()
local minDis = [Link]
local nearestClient
local teamId = me:getTeamId()

for _, c_player in pairs(others) do


local distance = MathUtil:distanceSquare3d(c_player:getPosition(),
me:getPosition())
if minDis > distance and c_player ~= me then
minDis = distance
nearestClient = c_player
end
end

if nearestClient then
local nearestTeamId = nearestClient:getTeamId()
local nearestHealth = nearestClient:getHealth()

if isGameHasTeams then
if nearestTeamId ~= teamId and nearestHealth ~= 0 then
[Link]:setPosition(nearestClient:getPosition())
[Link]:moveEntity(moveDir)
local camera = [Link]():getMainCamera()
local pos = camera:getPosition()
local dir = VectorUtil.sub3(nearestClient:getPosition(),
pos)
local yaw = math.atan2(dir.x, dir.z) / [Link] * -180
local calculate = [Link](dir.x * dir.x + dir.z * dir.z)
local pitch = -math.atan2(dir.y + 1.5, calculate) / [Link]
* 180

[Link] = yaw or 0
[Link] = pitch or 0
[Link]():handleTouchClick(1204, 503)
[Link]("Name: " .. nearestClient:getName() .. "
Health: " .. nearestHealth .. "/" .. nearestClient:getMaxHealth())
end
else
if nearestHealth ~= 0 and nearestClient ~= me then
[Link]:setPosition(nearestClient:getPosition())
[Link]:moveEntity(moveDir)
local camera = [Link]():getMainCamera()
local pos = camera:getPosition()
local dir = VectorUtil.sub3(nearestClient:getPosition(),
pos)
local yaw = math.atan2(dir.x, dir.z) / [Link] * -180
local calculate = [Link](dir.x * dir.x + dir.z * dir.z)
local pitch = -math.atan2(dir.y + 1.5, calculate) / [Link]
* 180

[Link] = yaw or 0
[Link] = pitch or 0
[Link]():handleTouchClick(1204, 503)
[Link]("Name: " .. nearestClient:getName() .. "
Health: " .. nearestHealth .. "/" .. nearestClient:getMaxHealth())
end
end
end
end, 10, -1)

[Link]("^00FF00KillTP On")
end
end

local A40a = true


function GMHelper:TPAllMobsToME()
A40a = not A40a
LuaTimer:cancel(teleportTimer)
[Link]("^FF0000Disabled")

if A40a then
teleportTimer = LuaTimer:scheduleTimer(function()
local clientPos = PlayerManager:getClientPlayer():getPosition()
clientPos.z = clientPos.z + 2
local entities = EntityCache:getAllEntity()
for _, entity in pairs(entities) do
if entity ~= PlayerManager:getClientPlayer() then
[Link]:setPosition(clientPos)
end
end
[Link]("^00FF00Enabled")
end, 1, -1)
else
[Link]("^FF0000Disabled")
end
end

function GMHelper:SoftBypassSpeed()
local lp
local p = PlayerManager:getClientPlayer()
LuaTimer:scheduleTimer(function()
if p and [Link] then
local cp = {p:getPosition()}
if not lp or cp[1]~=lp[1] or cp[2]~=lp[2] or cp[3]~=lp[3] then
[Link].m_longMoveBeginTime, [Link].m_longMoveCnt = 0, 0
[Link]("longMoveCnt", 0)
[Link]("longMoveBeginTime", 0)
p.m_inTheAirBeginTime, p.m_inTheAirCnt = 0, 0
[Link]("InTheAirCntLimit", [Link])
[Link]("InTheAirTimeLimit", [Link])
[Link]():getPlayer().onGround = true
[Link]():getPlayer().m_flyingByPulled = true
lp = cp
end
end
end, 10, -1)
[Link]("Speed bypass active")
[Link]("^00FF00Enabled")
end

function GMHelper:HideMe()
[Link]("^00FF00Success")
local CRecordUtil = T(Global, "CRecordUtil")
[Link]([Link], function(entityId)
local player = PlayerManager:getPlayerByEntityId(entityId)
if not player then
return true
end
[Link]("Enabled")
return true
end)
end

function GMHelper:InfShield()
local params = {
Time = 99999999999
}
local data = [Link]():fromTable(params):getData()
PacketSender:sendLuaCommonData("AddInvincibleState", data)
[Link]("Sukses")
end

function GMHelper:AutoSell()
alxjejsn=not alxjejsn
if alxjejsn then
encjaha=LuaTimer:scheduleTimer(function()
local params = {
Area = "SellArea"
}
local data = [Link]():fromTable(params):getData()
PacketSender:sendLuaCommonData("TeleportToArea", data)
end, 500, -1)
else
LuaTimer:cancel(encjaha)
[Link]("AutoSell Off")
end end

function GMHelper:EditSize()
GMHelper:openInput({""}, function(Lolq)
PacketSender:sendLuaCommonData("ConcealPower", tostring(Lolq))
end)
end

function GMHelper:EquipSun()
local params = {
ItemId = 607,
selectMode = [Link],
}
local data = [Link]():fromTable(params):getData()
PacketSender:sendLuaCommonData("ChangeHoldItemActor", data)
[Link]("Sukess")
end

function GMHelper:EquipEarth()
local params = {
ItemId = 606,
selectMode = [Link],
}
local data = [Link]():fromTable(params):getData()
PacketSender:sendLuaCommonData("ChangeHoldItemActor", data)
[Link]("Sukess")
end

function GMHelper:EquipAirCraft()
local params = {
ItemId = 605,
selectMode = [Link],
}
local data = [Link]():fromTable(params):getData()
PacketSender:sendLuaCommonData("ChangeHoldItemActor", data)
[Link]("Sukess")
end

function GMHelper:ChangeSkinSim()
GMHelper:openInput({""}, function(skinidowo)
local data = [Link]():addParam("index", skinidowo):getData()
PacketSender:sendLuaCommonData("SelectSkin", data)
[Link]("Skin Changed Success")
end) end

function GMHelper:HealSim()
local data = [Link]():addParam("index",
[Link]):getData()
PacketSender:sendLuaCommonData("SelectSkin", data)
local data = [Link]():addParam("index",
[Link]):getData()
PacketSender:sendLuaCommonData("SelectSkin", data)
end

function GMHelper:bypassId16()
togBypassId16 = not togBypassId16

if togBypassId16 then
[Link]("Bypasser ON!")
[Link](0.01, "Bypasser : on")

if not toggleTimerA then


toggleTimerA = LuaTimer:scheduleTimer(function()
togAssz = not togAssz

if togAssz then
[Link]("SyncClientPositionToServer", false)

[Link]("InTheAirCntLimit", [Link])
[Link]("InTheAirTimeLimit", 99999)
else
[Link]("SyncClientPositionToServer", true)

[Link]("InTheAirCntLimit", [Link])
[Link]("InTheAirTimeLimit", 99999)
end
end, 20, -1)
end

else
[Link]("Bypass Off")
[Link](0.01, "Bypasser : off")

if toggleTimerA then
LuaTimer:cancel(toggleTimerA)
toggleTimerA = nil
end

togAssz = false
[Link]("SyncClientPositionToServer", true)
end
end

function GMHelper:RaketButton()
GUIManager:getWindowByName("Main-BuildWar-Block"):SetVisible(true)
GUIManager:getWindowByName("Main-BuildWar-Block",
[Link]):registerEvent([Link], function()
local moveDir = VectorUtil.newVector3(0.0, 1.35, 0.0)
local player = PlayerManager:getClientPlayer()
[Link]:setAllowFlying(true)
[Link]:setFlying(true)
[Link]:moveEntity(moveDir)
PlayerManager:getClientPlayer().Player:setSpeedAdditionLevel(150000)
[Link]("^00FF00ON")
end)
end

function GMHelper:Money()
local me = _G["PlayerManager"]:getClientPlayer()
local wallet = Game:getPlayer():getWallet()

wallet.m_diamondBlues = 999999999
wallet.m_Currency = 999999999
wallet.m_diamondGolds = 999999999
wallet:setGolds(99999999)
PlayerWallet:setMoneyCount([Link], 999999999)

local MyName = "\083\104\141\144\151\145"


Game:setRegionId(MyName)
Game:setGameId(MyName)
text:SetBackgroundColor([Link])
end

function GMHelper:Jiang()
[Link](999999999)
end

function GMHelper:guesten()
local player = PlayerManager:getClientPlayer()
local packetCount = 0

for i = 1, 999999 do
player:sendPacket({
pid = "pid"
})
packetCount = packetCount + 1
end

[Link]("Total packets sent: " .. packetCount)


end
function GMHelper:SetNameColor(color, text)
local pickColor = {
Red = "FF0000",
Blue = "0000FF",
Pink = "FF00FF",
Cyan = "00FFFF",
Green = "00FF00",
Purple = "9600FF",
Yellow = "FFFF00",
Orange = "FFAF00",
Gold = "FFD700",
Black = "000000",
White = "FFFFFF"
}

if pickColor[color] then
local playerName = PlayerManager:getClientPlayer().Player:getEntityName()

PlayerManager:getClientPlayer().Player:setShowName("▢FF"..pickColor[color]..playerN
ame)
text:SetBackgroundColor([Link])
end
end

function GMHelper:btnJetPack(text)
btnJetpackg2 = GUIManager:createGUIWindow([Link],
tostring([Link](1, 999e9)))
btnJetpackg2:SetHorizontalAlignment([Link])
btnJetpackg2:SetVerticalAlignment([Link])
btnJetpackg2:SetHeight({ 0, 60 })
btnJetpackg2:SetWidth({ 0, 180 })
btnJetpackg2:SetYPosition({ 0, -560 })
btnJetpackg2:SetXPosition({ 0, -550 })
btnJetpackg2:SetLevel(1)
btnJetpackg2:SetTextColor({ 0.6, 0, 0, 1 })
btnJetpackg2:registerEvent([Link], function()
btnJetpackfunction()
end)
[Link]():GetRootWindow():AddChildWindow(btnJetpackg2)
btnJetpackg2:SetBackgroundColor({ 0, 0, 0, 0.6 })
text:SetBackgroundColor([Link])
btnJetpackg2:SetVisible(true)
btnJetpackg2:SetText("JetPack")
end

function btnJetpackfunction()
BJF = not BJF
if BJF then
btnJetpackg2:SetTextColor({ 0, 255, 0, 0.6 })
local JetPack = true
BJFS = LuaTimer:scheduleTimer(function()
local yaw=PlayerManager:getClientPlayer().Player:getYaw()
local pitch = PlayerManager:getClientPlayer().Player:getPitch()
local yawRadians = [Link](yaw)
local pitchRadians = [Link](pitch)
local speed = 2.1
local x = -speed * [Link](pitchRadians) * [Link](yawRadians)
local y = -speed * [Link](pitchRadians)
local z = speed * [Link](pitchRadians) * [Link](yawRadians)
local velocity = VectorUtil.newVector3(x,y,z)
PlayerManager:getClientPlayer().Player:setVelocity(velocity)
end, 15, 200000)
else
btnJetpackg2:SetTextColor({ 0.6, 0, 0, 1 })
LuaTimer:cancel(BJFS)
end
end

function btnEmotefunction()
emote = not emote
btnEmote:SetTextColor({ 0, 255, 0, 0.6 })

PlayerManager:getClientPlayer().Player:setBoolProperty("DisableUpdateAnimState",
true)
if emote then

PlayerManager:getClientPlayer().Player:setBoolProperty("DisableUpdateAnimState",
false)
btnEmote:SetTextColor({ 0.6, 0, 0, 1 })
end
end

function GMHelper:BtnHitBox(text)
BtnHitBox = GUIManager:createGUIWindow([Link], tostring([Link](1,
999e9)))
BtnHitBox:SetHorizontalAlignment([Link])
BtnHitBox:SetVerticalAlignment([Link])
BtnHitBox:SetHeight({ 0, 60 })
BtnHitBox:SetWidth({ 0, 180 })
BtnHitBox:SetYPosition({ 0, -430 })
BtnHitBox:SetXPosition({ 0, -550 })
BtnHitBox:SetLevel(1)
BtnHitBox:SetTextColor({ 0.6, 0, 0, 1 })
BtnHitBox:registerEvent([Link], function()
btnHitFunction()
end)
[Link]():GetRootWindow():AddChildWindow(BtnHitBox)
BtnHitBox:SetBackgroundColor({ 0, 0, 0, 0.6 })
text:SetBackgroundColor([Link])
BtnHitBox:SetVisible(true)
BtnHitBox:SetText("Hitbox")
end

function btnHitFunction()
Lol = not Lol
local players = PlayerManager:getPlayers()
local autoHeight, autoWidth, autoLength

if Lol then
autoHeight = 5
autoWidth = 5
autoLength = 5
BtnHitBox:SetTextColor({0, 255, 0, 0.6})
else
autoHeight = 1
autoWidth = 1
autoLength = 1
BtnHitBox:SetTextColor({0.6, 0, 0, 1})
end

for _, player in ipairs(players) do


local entity = [Link]
if player ~= PlayerManager:getClientPlayer() then
[Link] = autoHeight
[Link] = autoWidth
[Link] = autoLength
end
end
end

function GMHelper:ChangeNick()
GMHelper:openInput({ "" }, function(Nick)
PlayerManager:getClientPlayer().Player:setShowName(Nick)
[Link]("^FF00EENickNameChanged")
end)
end

function GMHelper:RainbowName(text)
local player = PlayerManager:getClientPlayer().Player
local playerName = player:getEntityName()
[Link]("&$[ffca00ff-fbd33fff-cad2ceff-23b8feff-677dffff-ac61ffff-
fd15ffff]$Rainbow Name Successfully$&")
text:SetBackgroundColor([Link])
player:setShowName("&$[ffca00ff-fbd33fff-cad2ceff-23b8feff-677dffff-ac61ffff-
fd15ffff]$" .. playerName .. "$&")
end

function GMHelper:equipWings(type, text)


local player = PlayerManager:getClientPlayer().Player
player.m_outLooksChanged = true
player.m_wingId = type
text:SetBackgroundColor([Link])
[Link]("Success")
end

function GMHelper:LagServer2()
togLagServer2 = not togLagServer2
if togLagServer2 then
ddosTimer = LuaTimer:scheduleTimer(function()
[Link]("^FFA500DDosing")
for i = 1, 100000 do
PlayerManager:getClientPlayer():sendPacket({pid="pid"})
end
end, 3000, -1)
return
end
LuaTimer:cancel(ddosTimer)
[Link]("^FFA500DDos stopped")
end

function GMHelper:yu()
[Link]("yu")
end
function GMHelper:liuxing()
[Link]("liuxing")
end

function GMHelper:xue()
[Link]("xue")
end

function GMHelper:fanxing()
[Link]("fanxing")
end

function GMHelper:qing()
[Link]("qing")
end

function GMHelper:wanxia()
[Link]("wanxia")
end

function GMHelper:sky2()
[Link]("sky2")
end

function GMHelper:starfield02()
[Link]("starfield02")
end

You might also like