I'm using a TextBox for the player to type a username in and a TextButton for a function to run that generates the player model that the player had entered.
The script is a LocalScript inside the TextButton.
script.Parent.MouseButton1Click:Connect(function() local NewPlayer = Players:GetUserIdFromNameAsync(script.Parent.Parent.TextBox.Text) print(NewPlayer) local appearanceModel = game.Players:GetCharacterAppearanceAsync(NewPlayer) appearanceModel.Parent = game.Workspace appearanceModel:MoveTo(Vector3.new(30.315, 2.454, -78.375)) end)
The code can find the accessories/hats of the searched player. If the player isn't using the default package (1.0) then it spawns the package that the user has but unanchored and falls into pieces. If the user is a 1.0, the code only spawns in the accessories/hats. If they have any non 1.0 limbs, it spawns the limbs too.
here's a gif of how it's generated: https://gyazo.com/5724ebfe492c4b4515898993c48a1f37
I want a full Model of the searched player. Full body, Accessories, basically everything.