How I can make a morph script change packages?
Asked by
6 years ago Edited 6 years ago
How I can make this script change my character packages?, It changes the morph character but when I press the button, just change clothes body colors, etc, except the package
Is a script from a free model, Oof
01 | script.Parent.BrickColor = BrickColor.new( "Bright yellow" ) |
06 | script.Parent.BrickColor = BrickColor.new( "Medium stone grey" ) |
09 | BodyParts = hit.Parent:GetChildren() |
10 | for i,b in pairs (BodyParts) do |
11 | if (b.className = = "Humanoid" ) then |
16 | if (CanMorph = = nil ) then |
17 | script.Parent.BrickColor = BrickColor.new( "Bright yellow" ) |
22 | script.Parent.BrickColor = BrickColor.new( "Black" ) |
23 | g.Parent = game.Players:findFirstChild(hit.Parent.Name).PlayerGui |
25 | BodyParts = hit.Parent:GetChildren() |
26 | for i,b in pairs (BodyParts) do |
27 | if (b.className = = "Hat" ) or (b.className = = "CharacterMesh" ) or (b.className = = "Shirt" ) or (b.className = = "Pants" ) or (b.className = = "ShirtGraphic" ) then |
30 | if (b.className = = "Part" ) then |
31 | if (b.Name = = "Torso" ) then |
32 | if (b:findFirstChild( "roblox" ) ~ = nil ) then |
34 | elseif (b:findFirstChild( "Decal" ) ~ = nil ) then |
38 | if (b.Name = = "Head" ) then |
39 | if (b:findFirstChild( "Mesh" ) ~ = nil ) then |
47 | BodyParts = script.Parent.Parent:GetChildren() |
48 | for i,b in pairs (BodyParts) do |
49 | if (b.className = = "CharacterMesh" ) or (b.className = = "Shirt" ) or (b.className = = "Pants" ) or (b.className = = "ShirtGraphic" ) then |
50 | b:Clone().Parent = hit.Parent |
52 | if (b.className = = "BodyColors" ) and (hit.Parent:findFirstChild( "Body Colors" ) ~ = nil ) then |
53 | hit.Parent:findFirstChild( "Body Colors" ).HeadColor = b.HeadColor |
54 | hit.Parent:findFirstChild( "Body Colors" ).LeftArmColor = b.LeftArmColor |
55 | hit.Parent:findFirstChild( "Body Colors" ).LeftLegColor = b.LeftLegColor |
56 | hit.Parent:findFirstChild( "Body Colors" ).RightArmColor = b.RightArmColor |
57 | hit.Parent:findFirstChild( "Body Colors" ).RightLegColor = b.RightLegColor |
58 | hit.Parent:findFirstChild( "Body Colors" ).TorsoColor = b.TorsoColor |
60 | if (b.className = = "Part" ) then |
61 | if (b.Name = = "Torso" ) then |
62 | if (b:findFirstChild( "roblox" ) ~ = nil ) then |
63 | b.roblox:Clone().Parent = hit.Parent.Torso |
64 | elseif (script.Parent.Parent.Torso:findFirstChild( "Decal" ) ~ = nil ) then |
65 | b.Decal:Clone().Parent = hit.Parent.Torso |
68 | if (b.Name = = "Head" ) then |
69 | if (b:findFirstChild( "face" ) ~ = nil ) then |
70 | hit.Parent.Head.face.Texture = b.face.Texture |
71 | elseif (script.Parent.Parent.Head:findFirstChild( "Decal" ) ~ = nil ) then |
72 | hit.Parent.Head.face.Texture = b.Decal.Texture |
74 | if (b:findFirstChild( "Mesh" ) ~ = nil ) then |
75 | b.Mesh:Clone().Parent = hit.Parent.Head |
79 | if (b.className = = "Accessory" ) then |
80 | local h = Instance.new( "Accessory" ) |
82 | h.AttachmentPos = b.AttachmentPos |
83 | b.Handle:Clone().Parent = h |
90 | script.Parent.BrickColor = BrickColor.new( "Bright yellow" ) |
95 | script.Parent.Touched:connect(onTouch) |