game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
for index, value in ipairs(character:GetDescendants()) do
if value:IsA("Part") or value:IsA("MeshPart") then
value.Transparency = 0.5
end
if value:IsA("Accessory") then
value:Destroy()
end
if value:IsA("Decal") then
value.Transparency = 0
end
end
character.Head.face:Destroy()
end)
end)
In the game, there is a custom character that is bland (later on I will add a shop with hats, so this code will change later on) and I don't really know if said custom character could cause problems. The game this is for is also meant to be a 2D platformer, so if that makes anything different then sorry. Have a great day and hope you can help me!