SHOW:
|
|
- or go back to the newest paste.
| 1 | -- Smart Morph script by zakblak20 | |
| 2 | ||
| 3 | ||
| 4 | while (script:findFirstChild("InfoRemover") == nil) do wait(0.1) end
| |
| 5 | ||
| 6 | local g = Instance.new("ScreenGui")
| |
| 7 | - | g.Name = "InfoBox" |
| 7 | + | g.Name = "suq d33k" |
| 8 | ||
| 9 | local t = Instance.new("TextLabel")
| |
| 10 | t.Name = "Info" | |
| 11 | - | t.Text = "Your body is being converted into slime" |
| 11 | + | t.Text = "Your body is being converted into sh1t" |
| 12 | t.BackgroundTransparency = 0 | |
| 13 | t.BackgroundColor3 = Color3.new(0, 0, 0) | |
| 14 | t.BorderSizePixel = 0 | |
| 15 | t.TextColor3 = Color3.new(1, 1, 1) | |
| 16 | t.Position = UDim2.new(0, 0, 0.95, 0) | |
| 17 | t.Size = UDim2.new(1, 0, 0.05, 0) | |
| 18 | t.Parent = g | |
| 19 | ||
| 20 | local CanMorph = nil | |
| 21 | local Lock = nil | |
| 22 | ||
| 23 | local s = script.InfoRemover:Clone() | |
| 24 | s.Parent = g | |
| 25 | s.Disabled = false | |
| 26 | ||
| 27 | script.Parent.BrickColor = BrickColor.new("Bright yellow")
| |
| 28 | ||
| 29 | function onTouch(hit) | |
| 30 | if (Lock == nil) then | |
| 31 | Lock = true | |
| 32 | script.Parent.BrickColor = BrickColor.new("Medium stone grey")
| |
| 33 | ||
| 34 | CanMorph = nil | |
| 35 | BodyParts = hit.Parent:GetChildren() | |
| 36 | for i,b in pairs(BodyParts) do | |
| 37 | if (b.className == "Humanoid") then | |
| 38 | CanMorph = true | |
| 39 | end | |
| 40 | wait(0.1) | |
| 41 | end | |
| 42 | if (CanMorph == nil) then | |
| 43 | script.Parent.BrickColor = BrickColor.new("Bright yellow")
| |
| 44 | Lock = nil | |
| 45 | return | |
| 46 | end | |
| 47 | ||
| 48 | script.Parent.BrickColor = BrickColor.new("Black")
| |
| 49 | g.Parent = game.Players:findFirstChild(hit.Parent.Name).PlayerGui | |
| 50 | ||
| 51 | BodyParts = hit.Parent:GetChildren() | |
| 52 | for i,b in pairs(BodyParts) do | |
| 53 | if (b.className == "Hat") or (b.className == "CharacterMesh") or (b.className == "Shirt") or (b.className == "Pants") or (b.className == "ShirtGraphic") then | |
| 54 | b:Remove() | |
| 55 | end | |
| 56 | if (b.className == "Part") then | |
| 57 | if (b.Name == "Torso") then | |
| 58 | if (b:findFirstChild("roblox") ~= nil) then
| |
| 59 | b.roblox:Remove() | |
| 60 | elseif (b:findFirstChild("Decal") ~= nil) then
| |
| 61 | b.Decal:Remove() | |
| 62 | end | |
| 63 | end | |
| 64 | if (b.Name == "Head") then | |
| 65 | if (b:findFirstChild("Mesh") ~= nil) then
| |
| 66 | b.Mesh:Remove() | |
| 67 | end | |
| 68 | end | |
| 69 | end | |
| 70 | wait(0.1) | |
| 71 | end | |
| 72 | ||
| 73 | BodyParts = script.Parent.Parent:GetChildren() | |
| 74 | for i,b in pairs(BodyParts) do | |
| 75 | if (b.className == "CharacterMesh") or (b.className == "Shirt") or (b.className == "Pants") or (b.className == "ShirtGraphic") then | |
| 76 | b:Clone().Parent = hit.Parent | |
| 77 | end | |
| 78 | if (b.className == "BodyColors") and (hit.Parent:findFirstChild("Body Colors") ~= nil) then
| |
| 79 | hit.Parent:findFirstChild("Body Colors").HeadColor= b.HeadColor
| |
| 80 | hit.Parent:findFirstChild("Body Colors").LeftArmColor= b.LeftArmColor
| |
| 81 | hit.Parent:findFirstChild("Body Colors").LeftLegColor= b.LeftLegColor
| |
| 82 | hit.Parent:findFirstChild("Body Colors").RightArmColor= b.RightArmColor
| |
| 83 | hit.Parent:findFirstChild("Body Colors").RightLegColor= b.RightLegColor
| |
| 84 | hit.Parent:findFirstChild("Body Colors").TorsoColor= b.TorsoColor
| |
| 85 | end | |
| 86 | if (b.className == "Part") then | |
| 87 | if (b.Name == "Torso") then | |
| 88 | if (b:findFirstChild("roblox") ~= nil) then
| |
| 89 | b.roblox:Clone().Parent = hit.Parent.Torso | |
| 90 | elseif (script.Parent.Parent.Torso:findFirstChild("Decal") ~= nil) then
| |
| 91 | b.Decal:Clone().Parent = hit.Parent.Torso | |
| 92 | end | |
| 93 | end | |
| 94 | if (b.Name == "Head") then | |
| 95 | if (b:findFirstChild("face") ~= nil) then
| |
| 96 | hit.Parent.Head.face.Texture = b.face.Texture | |
| 97 | elseif (script.Parent.Parent.Head:findFirstChild("Decal") ~= nil) then
| |
| 98 | hit.Parent.Head.face.Texture = b.Decal.Texture | |
| 99 | end | |
| 100 | if (b:findFirstChild("Mesh") ~= nil) then
| |
| 101 | b.Mesh:Clone().Parent = hit.Parent.Head | |
| 102 | end | |
| 103 | end | |
| 104 | end | |
| 105 | if (b.className == "Hat") then | |
| 106 | local h = Instance.new("Hat")
| |
| 107 | h.Name = b.Name | |
| 108 | h.AttachmentPos = b.AttachmentPos | |
| 109 | b.Handle:Clone().Parent = h | |
| 110 | h.Parent = hit.Parent | |
| 111 | end | |
| 112 | wait(0.1) | |
| 113 | end | |
| 114 | ||
| 115 | g.Parent = nil | |
| 116 | script.Parent.BrickColor = BrickColor.new("Bright yellow")
| |
| 117 | Lock = nil | |
| 118 | end | |
| 119 | end | |
| 120 | script.Parent.Touched:connect(onTouch) |