📜  如何让团队中的每个人都看到名字 roblox - Lua 代码示例

📅  最后修改于: 2022-03-11 14:54:54.577000             🧑  作者: Mango

代码示例1
game.Players.PlayerAdded:connect(function(plr)
    plr.CharacterAdded:connect(function(char)
        wait(0.001)
        char:WaitForChild('Humanoid').NameOcclusion = Enum.NameOcclusion.EnemyOcclusion
        char:WaitForChild('Humanoid').HealthDisplayDistance = math.huge
        char:WaitForChild('Humanoid').NameDisplayDistance = math.huge
    end)
end)