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

Character Editing [closed]

Asked by 11 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.

1game.Players.PlayerAdded:connect(function(player)
2    player.CharacterAdded:connect(function(character)
3        character:finclassName == "CharacterMesh"
4        if character:finclassName == "CharacterMesh" then character:finclassName == "CharacterMesh":destroy()
5    end)
6end)

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
11 years ago
1    game.Players.PlayerAdded:connect(function(player)
2 
3player. CanLoadCharacterAppearance = false
4end)

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 — 11y
1
I don't know he didn't say that in the description. HexC3D 830 — 11y
2
Yeah I want everything to be gone. ConnorVIII 448 — 11y
Ad
Log in to vote
1
Answered by 11 years ago
1game.Players.PlayerAdded:connect(function(p)
2p.CharacterAdded:connected(function(c)
3for i, v in pairs(c:GetChildren()) do
4if v:IsA("CharacterMesh") or v:IsA("Hat") or v.Name == "Body Colors" then
5v:Destroy()
6end
7end
8end)

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

0
You don't need to do that. HexC3D 830 — 11y
Log in to vote
0
Answered by 11 years ago
1game.Players.PlayerAdded:connect(function(player)
2    player.CharacterAdded:connect(function(character)
3        character:findclassName == "CharacterMesh"
4        if character:findclassName == "CharacterMesh" then character:findclassName == "CharacterMesh":destroy()
5    end)
6end)

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