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

📅  最后修改于: 2022-03-11 14:54:56.142000             🧑  作者: 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)