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

How do I turn morphs invisible?

Asked by 6 years ago
Edited 6 years ago

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

0
ahh I think its impossible NnIgHtMaRe0 0 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago
--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)
Ad

Answer this question