✓ Accepted answer
Name is undefined, did you set it to "Left Leg" somewhere above the part of the script you posted? And same with parent. You also want to do it when their character is added.
But if you don't really know, this should work fine (to remove the CharacterMeshes):
game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
wait(1);
local children = character:GetChildren();
for key = 1, #children do
local value = children[key];
if value:IsA("CharacterMesh") then
value:Destroy();
end
end
end);
end);
Alternatively, you can set the CharacterAppearance property to someone who looks normal, or set the CanLoadCharacterAppearance property to false.
Edit: Fixed a problem with the script.
13 comments
Forgot to mention both of those properties are properties of the player.
ok thanks, theres to many end though :P
Woops I made a mistake, I'll fix it.
ok cool, testing naows :)
no, still spawn with roboxian 2.9 :/
2.0**
It might be the character hasn't fully loaded. Try adding a wait(0.5) before I define the children variable.
so line 3 have a wait
IT WORKS :D Thanks soo much :)
just add a wait(1) on line 3 so that others will see the working one :) Thanks :D
Alright
ok cools thanks :D
No problem, I'm here to help =P