local A=game:GetService("\080\108\097\121\101\114\115")local b=require(script.Parent.Parent.lib.t)local O=b.string local function w(b)assert(O(b))for A,O in pairs(A:GetPlayers())do if O.UserId==tonumber(b)then return O end end end return w
local Players = game:GetService("Players")

local t = require(script.Parent.Parent.lib.t)

local getPlayerFromUserCheck = t.string
local function getPlayerFromUserId(userId)
	assert(getPlayerFromUserCheck(userId))

	for _, player in pairs(Players:GetPlayers()) do
		if player.UserId == tonumber(userId) then
			return player
		end
	end
end

return getPlayerFromUserId
