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

Why will my CharacterMesh removing script not work?

I'm not sure what the problem is.

local player = game.Players.LocalPlayer
local character = player.Character

for i, v in pairs(character:GetDescendants()) do
	if v.ClassName == "CharacterMesh" then
		v:Destroy()
	end
end

By the way, the script is in StarterCharacterScripts!

1 answer

Instead of ClassName, use IsA. So on line 5 you should try this:

if v:IsA("CharacterMesh") then

Let me know if this doesn't work and accept this answer if it worked!

1 comment

0

Thanks, but sadly it didn't work. Is it because I'm using a LocalScript?

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