📜  roblox 播放器死了 - CSS 代码示例

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

代码示例1
game:GetService('Players').PlayerAdded:Connect(function(player)
    player.CharacterAdded:Connect(function(character)
        character:WaitForChild("Humanoid").Died:Connect(function()
            print(player.Name .. " has died!")
        end)
    end)
end)