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
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
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
It should also be m.Parent = game.Workspace or smth
^ yeah because the m's parent wasn't assigned
^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.
2 comments
You'd do m.Parent = workspace and then assign plr.Character = m. Though you wouldn't be able to control the character.
Thanks!