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

how to set the character of a player?

i cant figure out how to copy a character to a player

	local plr = game.Players.LocalPlayer
	local m = game.ServerStorage.Pets.Husky.StarterCharcter:Clone()
	m = plr

this code does not work and i do not know why

2 comments

0

You'd do m.Parent = workspace and then assign plr.Character = m. Though you wouldn't be able to control the character.

0

Thanks!

1 answer

✓ Accepted answer

This will not work for several reasons, firstly you are setting the variable m to the player, it should be the other way around, secondly you are trying to directly set the player object instead of the character property inside the player object, it should look more like:

plr.Character = m

3 comments

0

It should also be m.Parent = game.Workspace or smth

0

^ yeah because the m's parent wasn't assigned

0

^Don't forget to do this as well. As a side note, if you want the character to be able to move you need a humanoid object inside the model with a part named HumanoidRootPart (optional but preferred: set the model's PrimaryPart to the HumanoidRootPart)

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