📅  最后修改于: 2022-03-11 14:56:55.908000             🧑  作者: Mango
local function getPlayerFromCharacter(character)
for _, player in pairs(game:GetService("Players"):GetPlayers()) do
if player.Character == character then
return player
end
end
end