Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Cloning joined player onto separate posable humanoid?

Asked by 4 years ago

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

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago
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

0
However if your game uses R15 characters, then you'll have to do UpperTorso and LowerTorso sheepposu 561 — 4y
Ad

Answer this question