Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How can I load a players character into the game?

I am trying to load a character of a player into the game. The player is not in the specific place. I want to load a players character by id from roblox. I have tried the code below:

game.InsertService:ApproveAssetId(35904028)
game.InsertService:loadAsset(35904028).Parent = workspace

No errors but the model inserted is empty, no character to be found. Please help me!

1 comment

0

Someone?!

1 answer

Currently the only way to load the assets contained by a player's character is by setting an actual ingame player's CharacterAppearance to that of the desired player and then respawning the player.

Player.CharacterAppearance="http://www.roblox.com/Asset/CharacterFetch.ashx?userId=35904028"
Player:LoadCharacter()

1 comment

0

Thank you! That also gives me an idea! My idea is I set a player in the game to the character appearance, clone them, and set their character appearance back. Also you can use Player:LoadCharacterAppearance(...) or something like that.

This discussion is preserved as it was. New answers, comments, and votes are closed.