Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I turn morphs invisible?

Okay, so bearpro told me this script would work (I don't know how to classify his post as a correct answer), but only for humans, so. I tried copying and pasting, but that didn't work. Then I typed the names of it, but i'm new to scripting, so it really hard and confusing me. Here's the person script:

local player = game.Players.LocalPlayer

script.Parent.MouseButton1Click:Connect(function()
     char = player.Character
 char.Head.Transparency = 1
   char.Torso.Transparency = 1
 char["Left Arm"].Transparency = 1
   char["Left Leg"].Transparency = 1
char["Right Arm"].Transparency = 1
 char["Right Leg"].Transparency = 1
char.Head.face.Transparency = 1
 for i,v in pairs(char:GetChildren()) do  -- This is to go through things like hair, wings, etc.
  if v.ClassName == "Accessory" then
   v.Handle.Transparency = 1

 end

  end

    end)

And I made another button but with 0's instead of 1's so that they could exit out of the invisibility (slimmer). Here's the link to the model: https://www.roblox.com/library/559465945/Fox-Morphs I'm showing you guys these so that if you wanted to help you could have a better understanding of what I'm stating here. I recommend copying and pasting the link

1 comment

0

ahh I think its impossible

1 answer

--LocalScript

local plr = game:GetService("Players").LocalPlayer

script.Parent.MouseButton1Click:Connect(function()
    for _, v in pairs(plr.Character:GetChildren()) do
        if v:IsA"BasePart" then 
            v.Transparency = 1
        end
        
        for _, x in pairs(plr.Character:GetChildren()) do
            if x:IsA"Accoutrement" then
                x:Destroy()
            end
        end
    end
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.