lua加密不等待函数完成

这是一个 ROBLOX lua 脚本,使用了经过修改、删除或添加的 lua 5.1 特性。如果您有 lua 5.1 的知识,将会非常有帮助。

我的问题是,当我尝试混淆这个脚本时:

_G.findchild = function (instance, name)
for _, child in pairs(instance:GetChildren()) do
    if child.Name == name then
        return true
    elseif _==#instance:GetChildren() then
        return false
    end
end
end
print(_G.findchild(game,"Workspace"))

它不等待函数完成就直接打印出了空值(nil),而不是 false 或 true。

这里是加密脚本(注意我已将 io.write 行注释掉,因为 roblox 移除了这个库)

https://pastebin.com/TcHTBf3C

任何帮助将不胜感激!

点赞