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

Cloning joined player onto separate posable humanoid?

Hiya, I have gone through several places on the Internet to try and find a way to get a joined player's appearance to be copied onto a humanoid they can see in game. To give an idea of what I want to do: I want a player to join my game and then spawn next to a clone of themselves sitting in a chair. The humanoid won't be programmed to move as it is supposed to be 'sleeping'. My game only allows 1 player per server, so I would imagine it would be easier to get the information from the playing player as there are no other players. So far, I have come across the use of the 'HumanoidDescription' and fetching the player's userid, but I couldn't seem to make that work.

Thank you for any help that you can provide.

1 answer

game.Players.PlayerAdded:Connect(function(plr)
	character = plr.Character
	ClonedCharacter = character:Clone()
	charHead = ClonedCharacter.Head
	charRightLeg  = ClonedCharacter.RightLeg
	charLeftLeg = ClonedCharacter.LeftLeg
	charLeftArm = ClonedCharacter.LeftArm
	charRightArm = ClonedCharacter.RightArm
	chracterTorso = ClonedCharacter.Torso
end)

Take all your cloned character's parts and move them into the place you want by CFrame

1 comment

0

However if your game uses R15 characters, then you'll have to do UpperTorso and LowerTorso

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