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?
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.
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
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
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?