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

Character Editing

I am trying to make a script that removes a players CharacterMeshes,Hats and Body Colors when he enters and spawns.

I am a terrible scripter but I tried to write it.

game.Players.PlayerAdded:connect(function(player)
	player.CharacterAdded:connect(function(character)
		character:finclassName == "CharacterMesh"
		if character:finclassName == "CharacterMesh" then character:finclassName == "CharacterMesh":destroy()
	end)
end)

This is the first part, I know I got something wrong but I dont know where. Can you help?

3 answers

✓ Accepted answer
	game.Players.PlayerAdded:connect(function(player)

player. CanLoadCharacterAppearance = false
end)

CanLoadCharacterAppearance is property of a player which allows the player's appearance to be loaded or not.

3 comments

0

If u get rid of the character appearance then the shirt and everything else will be gone

1

I don't know he didn't say that in the description.

2

Yeah I want everything to be gone.

game.Players.PlayerAdded:connect(function(p)
p.CharacterAdded:connected(function(c)
for i, v in pairs(c:GetChildren()) do
if v:IsA("CharacterMesh") or v:IsA("Hat") or v.Name == "Body Colors" then
v:Destroy()
end
end
end)

This was done on a IPad so sorry if there might be simple errors

1 comment

0

You don't need to do that.

game.Players.PlayerAdded:connect(function(player)
    player.CharacterAdded:connect(function(character)
        character:findclassName == "CharacterMesh"
        if character:findclassName == "CharacterMesh" then character:findclassName == "CharacterMesh":destroy()
    end)
end)

Here You forgot to put a d at the end of find. Test it out to see if it works

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