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

Animations lost after making my character invisible, how do I avoid this?

Asked by 8 years ago

Why doesn't my Character have the default moving animations when I run this script? All I did was make the HumanoidRootPart transparent... Is there a more efficient way of making your character invisible?

tool = script.Parent
plr = script.Parent.Parent.Parent
char = plr.Character

script.Parent.Selected:connect(function()
        for i,v in pairs(char:GetChildren()) do
            if v:IsA("Part") and v.Name ~= "HumanoidRootPart" then
            v.Transparency = 1

            end
            if v:IsA("Hat") then
                v.Handle.Transparency = 1
            end
        end
end)

script.Parent.Deselected:connect(function()

        for i,v in pairs(char:GetChildren()) do
            if v:IsA("Part") and v.Name ~= "HumanoidRootPart" then
            v.Transparency = 0

            end
            if v:IsA("Hat") then
                v.Handle.Transparency = 0
            end
        end


        end)
1
When I test this in a blank place, the animations are fine (though you can still see my character's face - you might want to temporarily remove that for complete invisibility). chess123mate 5873 — 8y
0
That's odd. I'll retry the script then. zipper01 62 — 8y

Answer this question