How would I go about getting the character of a roblox studio team create member?

I would like to get the character of a player who is in team create. Unfortunately, using Player.Character hasn’t worked for me.

image

I have seen an instance of a plugin that puts hats on these guys, but I don’t think it was open source. Is this achievable using the command line?

2 Likes

If you have their Username or UserId, you can use some functions the Player service provides.

Getting their character from a UserId:

local Players = game:GetService("Players")

function GetCharacterFromUserId(UserId)
	return Players:CreateHumanoidModelFromUserId(UserId)
end

Getting their character from a Username:

local Players = game:GetService("Players")

function GetCharacterFromUsername(Username)
	local UserId = Players:GetUserIdFromNameAsync(Username)
	
	return Players:CreateHumanoidModelFromUserId(UserId)
end

I am looking to get the flying arrow character they are maneuvering, rather than creating a copy of their character.

Okay, well, no better place to go to than the source:

I can’t seem to find anything in the source that helps answer my question.:slightly_frowning_face: