I was creating a StarterCharacter in a serverscript, and it would not move the CharacterMesh into the character? It has the ability to move the CharacterMesh to workspace and everything else, including itself, it just can’t parent the CharacterMesh to the Character.
--//variables (ONLY THE VARIABLES NEEDED. NO EXTRA VARIABLES.)
local BodyFolder = game.ReplicatedStorage.MESHRIG
local Player = script.Parent
--//main (EVERYTHING BELOW THIS IS THE MAIN SCRIPT IN ORDER TO PLAY THE GAME.)
local function DeMesh(user)
if user.Humanoid then
local one = Instance.new("CharacterMesh")
one.Parent = script.Parent
one.BodyPart = 'RightLeg'
one.MeshId = 27111882
local two = Instance.new("CharacterMesh")
two.Parent = script.Parent
two.BodyPart = 'LeftLeg'
two.MeshId = 27111857
local three = Instance.new("CharacterMesh")
three.Parent = script.Parent
three.BodyPart = 'RightArm'
three.MeshId = 27111864
local four = Instance.new("CharacterMesh")
four.Parent = script.Parent
four.BodyPart = 'LeftArm'
four.MeshId = 27111419
local five = Instance.new("CharacterMesh")
five.Parent = script.Parent
five.BodyPart = 'Torso'
five.MeshId = 27111894
--//check BODY COLORS
if user:FindFirstChild('Body Colors') then
user["Body Colors"]:Destroy()
else
end
BodyFolder["Body Colors"]:Clone().Parent = user
--remove ORIGINAL FACE
user.Head.face:Destroy()
BodyFolder.face:Clone().Parent = user.Head
--//check SHIRT
if user:FindFirstChild('Shirt') then
user.Shirt:Destroy()
end
--//check PANTS
if user:FindFirstChild('Pants') then
user.Pants:Destroy()
end
--//check T-SHIRT
if user:FindFirstChild('Shirt Graphic') then
user['Shirt Graphic']:Destroy()
end
--check BACK ACCESSORIES
local children = user:GetChildren()
for i=1, #children do
local instance = children[i]
if (instance.ClassName == "Accessory") then
if (instance.Handle:FindFirstChild("BodyBackAttachment")) then
instance:Destroy()
end
end
end
end
local children = user:GetChildren()
for i=1, #children do
local instance = children[i]
if (instance.ClassName == "Accessory") then
if (instance.Handle:FindFirstChild("FaceFrontAttachment")) then
instance:Destroy()
end
end
end
end
if script.Parent.Humanoid then
wait(1)
DeMesh(Player)
end
this is the script inside StarterCharacterScripts.
Local scripts can parent it to the character. Its just server scripts.