📜  如何找出一个值是否在表 roblox 中 - 无论代码示例

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

代码示例1
for i, player in pairs(currentWinners) do
   if player == hit.Parent:GetPlayerFromCharacter():GetPlayerByUserId() then
        break
   else
        table.insert(currentWinners,hit.Parent:GetPlayerFromCharacter():GetPlayerByUserId())
   end
end