📜  检测玩家加入 roblox - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:41.692000             🧑  作者: Mango

代码示例1
local Players = game:GetService("Players")
 
Players.PlayerAdded:Connect(function(player)
    print(player.Name .. " joined the game!")
end)
 
Players.PlayerRemoving:Connect(function(player)
    print(player.Name .. " left the game!")
end)