local A=require(script.Parent.Parent.lib.t)local b=require(script.Parent.getPlayerFromUserId)local O=A.string local function w(A)assert(O(A))local w=b(A)if w then return w.Character end end return w
--[[
	Gets a character from their player's UserId.
]]

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

local getPlayerFromUserId = require(script.Parent.getPlayerFromUserId)

local getCharacterFromUserIdCheck = t.string
local function getCharacterFromUserId(userId)
	assert(getCharacterFromUserIdCheck(userId))

	local player = getPlayerFromUserId(userId)
	if player then
		return player.Character
	end
end

return getCharacterFromUserId
