Advertisement
RyanDaCoder

Baby Morph

Jun 24th, 2018
986
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.73 KB | None | 0 0
  1. local boy = Instance.new("Model", workspace)
  2. boy.Name = "Baby"
  3. local oof = Instance.new("Model", boy)
  4. oof.Name = " "
  5. local head = Instance.new("Part", oof)
  6. local torso = Instance.new("Part", oof)
  7. local mash = Instance.new("SpecialMesh", head)
  8. mash.MeshType = "Head"
  9. mash.Scale = Vector3.new(1, 1, 1)
  10. local newmash = Instance.new("SpecialMesh", torso)
  11. newmash.Scale = Vector3.new(1.2, 1.5, 1.2)
  12. local nek = Instance.new("Snap", torso)
  13. nek.Name = "Neck"
  14. local face = Instance.new("Decal", head)
  15. face.Name = "face"
  16. head.Anchored = true
  17. torso.Anchored = true
  18. torso.Position = Vector3.new(61.211, 0.588, 8.669)
  19. torso.Size = Vector3.new(1, 1, 1)
  20. torso.Orientation = Vector3.new(0, -127.33, 0)
  21. head.Orientation = Vector3.new(0, -127.33, 0)
  22. head.Size = Vector3.new(2, 1, 1)
  23. head.Position = Vector3.new(61.211, 1.588, 8.669)
  24. head.BrickColor = BrickColor.new("Light orange")
  25. torso.BrickColor = BrickColor.new("White")
  26. local pickup = Instance.new("Part", boy)
  27. pickup.Name = "Pickup Infant Button"
  28. debounce=false
  29.  
  30. function onTouched(hit)
  31. if hit.Parent ~= nil then
  32. if (hit.Parent:findFirstChild("Humanoid") == nil) then return end
  33. if (hit.Parent:findFirstChild("IsaMorph") ~= nil) then return end
  34. local human = hit.Parent:findFirstChild("Humanoid")
  35. local player = game.Players:GetPlayerFromCharacter(hit.Parent)
  36. local char = human.Parent
  37. if (human ~= nil) and debounce == false then
  38. debounce = true
  39. if char:findFirstChild("Infant") == nil then
  40. local mesh = char.Head:findFirstChild("Mesh")
  41. mesh.Scale = Vector3.new(1, 1, 1)
  42. local torso = char.Torso
  43. torso.Transparency = 1
  44. torso.CanCollide = false
  45. if char:findFirstChild("FakeTorso") ~= nil then
  46. char:findFirstChild("FakeTorso"):remove()
  47. end
  48. local body = Instance.new("Part")
  49. body.BrickColor = BrickColor.new(1)
  50. body.Parent = char
  51. body.Position = torso.Position
  52. body.Name = "FakeTorso"
  53. body.formFactor = "Symmetric"
  54. body.Size = Vector3.new(1,1,1)
  55.  
  56. local w1 = Instance.new("Weld")
  57. w1.Parent = torso
  58. w1.Part0 = w1.Parent
  59. w1.Part1 = body
  60. w1.C1 = CFrame.new(0, 0.25, 0)
  61. local w2 = Instance.new("Weld")
  62. w2.Parent = torso
  63. w2.Part0 = w1.Parent
  64. w2.Part1 = char.Head
  65. w2.C1 = CFrame.new(0, -0.8, 0)
  66. local bodymesh = Instance.new("SpecialMesh")
  67. bodymesh.Scale = Vector3.new(1.2, 1.5, 1.2)
  68. bodymesh.Parent = body
  69. local rightarm = char:findFirstChild("Right Arm")
  70. if rightarm ~= nil then
  71. rightarm:remove()
  72. end
  73. local rightleg = char:findFirstChild("Right Leg")
  74. if rightleg~= nil then
  75. rightleg:remove()
  76. end
  77. local leftarm =char:findFirstChild("Left Arm")
  78. if leftarm~= nil then
  79. leftarm:remove()
  80. end
  81. local leftleg = char:findFirstChild("Left Leg")
  82. if leftleg ~= nil then
  83. leftleg:remove()
  84. end
  85. local marker = Instance.new("StringValue")
  86. marker.Parent = char
  87. marker.Name = "IsaMorph"
  88. characterparts = char:getChildren()
  89. for i=1,#characterparts do
  90. if characterparts[i].className == "Part" then
  91. characterparts[i].Locked = false
  92. end
  93. if characterparts[i].className == "Hat" then
  94. characterparts[i].Handle.Locked = false
  95. end
  96. end
  97. end
  98. end
  99. debounce = false
  100. end
  101. print ("scriptcomplete")
  102. end
  103.  
  104. pickup.Touched:connect(onTouched)
  105. pickup.Anchored = true
  106. pickup.BrickColor = BrickColor.new("Dark green")
  107. pickup.Size = Vector3.new(2, 0.4, 2)
  108. pickup.TopSurface = "SmoothNoOutlines"
  109. pickup.BottomSurface = "SmoothNoOutlines"
  110. pickup.LeftSurface = "SmoothNoOutlines"
  111. pickup.RightSurface = "SmoothNoOutlines"
  112. pickup.FrontSurface = "SmoothNoOutlines"
  113. pickup.BackSurface = "SmoothNoOutlines"
  114. pickup.Position = Vector3.new(64.104, 0.2, 9.171)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement