#trying to make player transparent

7 messages · Page 1 of 1 (latest)

vestal sedge
#

I'm trying to make the player transparent with this code :

it doesn't return any errors but the accessories are still visible
probably an easy fix

hot sinew
#
game.Players.PlayerAdded:Connect(function(plr)
    plr.CharacterAppearanceLoaded:Connect(function()
        local children = plr.Character:GetChildren()
        for _, instance in pairs(children) do
            if instance:IsA("Accessory") then
                instance.Visible = false
            end
        end
    end)
end)```
vestal sedge
#

thanks!

hot sinew
#

sorry, I should mention that only hides Accessories

#

I misread the title

#

actually im not even sure that script would work hold on lol

#
game.Players.PlayerAdded:Connect(function(plr)
    plr.CharacterAppearanceLoaded:Connect(function()
        local children = plr.Character:GetDescendants()
        for _, instance in pairs(children) do
            if instance:IsA('BasePart') or instance:IsA('MeshPart') then
                instance.Transparency = 1
            end
        end
    end)
end)```
Here you go, this should do what you asked for.