Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
2

Character Editing [closed]

Asked by 10 years ago

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?

Locked by TheHospitalDev, koolkid8099, UserOnly20Characters, and Spongocardo

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?

3 answers

Log in to vote
5
Answered by
HexC3D 830 Moderation Voter
10 years ago
    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.

0
If u get rid of the character appearance then the shirt and everything else will be gone DragonSkyye 517 — 10y
1
I don't know he didn't say that in the description. HexC3D 830 — 10y
2
Yeah I want everything to be gone. ConnorVIII 448 — 10y
Ad
Log in to vote
1
Answered by 10 years ago
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

0
You don't need to do that. HexC3D 830 — 10y
Log in to vote
0
Answered by 10 years ago
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