Advertisement
GForcebit

Kirby Morph

Apr 4th, 2018
548
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.12 KB | None | 0 0
  1. --edited by GForcebot aka GForcebit--
  2. --Original pastebin by unknown(A Guest..):https://pastebin.com/TqYNaPFz--
  3. ------[[Kirby Morph made by: DoogleFox]]-------------------------------------------------------------------------------------------------------------------------------------------------
  4.  
  5. user = game.Players.LocalPlayer.Name
  6.  
  7. if script.Parent.className ~= "HopperBin" then
  8. bin = Instance.new("HopperBin")
  9. bin.Parent = game.Players[user].Backpack
  10. bin.Name = "Kirby"
  11. script.Parent = bin
  12. end
  13.  
  14. bin = script.Parent
  15.  
  16. m = Instance.new("Model")
  17. m.Parent = bin.Parent.Parent.Character
  18. m.Name = "KirbyMorph"
  19.  
  20. p = Instance.new("Part")
  21. p.Parent = m
  22. p.Name = "MainBody"
  23. p.formFactor = ("Symmetric")
  24. p.Size = Vector3.new(4,4,4)
  25. p.CFrame = bin.Parent.Parent.Character.Torso.CFrame
  26. p.BrickColor = BrickColor.new("Light reddish violet")
  27. p.Locked = true
  28. p.CanCollide = true
  29. p.Shape = ("Ball")
  30. p.TopSurface = ("Smooth")
  31. p.BottomSurface = ("Smooth")
  32.  
  33. d = Instance.new("Decal")
  34. d.Parent = p
  35. d.Face = ("Front")
  36. d.Texture = ("http://www.roblox.com/asset/?id=5732750")
  37.  
  38. w = Instance.new("Weld")
  39. w.Parent = p
  40. w.Name = "BodyWeld"
  41. w.Part0 = p
  42. w.Part1 = bin.Parent.Parent.Character.Torso
  43. w.C0 = CFrame.new(0,0.2,0)
  44.  
  45. a1 = Instance.new("Part")
  46. a1.Parent = m
  47. a1.Name = "Left Arm"
  48. a1.formFactor = ("Symmetric")
  49. a1.Size = Vector3.new(2,2,2)
  50. a1.CFrame = bin.Parent.Parent.Character["Left Arm"].CFrame
  51. a1.BrickColor = BrickColor.new("Light reddish violet")
  52. a1.Locked = true
  53. a1.CanCollide = true
  54. a1.Shape = ("Ball")
  55. a1.TopSurface = ("Smooth")
  56. a1.BottomSurface = ("Smooth")
  57.  
  58. a1w = Instance.new("Weld")
  59. a1w.Parent = a1
  60. a1w.Name = "ArmWeld1"
  61. a1w.Part0 = a1
  62. a1w.Part1 = bin.Parent.Parent.Character["Left Arm"]
  63. a1w.C0 = CFrame.new(0.2,0.2,0)
  64.  
  65. a2 = Instance.new("Part")
  66. a2.Parent = m
  67. a2.Name = "Right Arm"
  68. a2.formFactor = ("Symmetric")
  69. a2.Size = Vector3.new(2,2,2)
  70. a2.CFrame = bin.Parent.Parent.Character["Left Arm"].CFrame
  71. a2.BrickColor = BrickColor.new("Light reddish violet")
  72. a2.Locked = true
  73. a2.CanCollide = true
  74. a2.Shape = ("Ball")
  75. a2.TopSurface = ("Smooth")
  76. a2.BottomSurface = ("Smooth")
  77.  
  78. a2w = Instance.new("Weld")
  79. a2w.Parent = a2
  80. a2w.Name = "ArmWeld2"
  81. a2w.Part0 = a2
  82. a2w.Part1 = bin.Parent.Parent.Character["Right Arm"]
  83. a2w.C0 = CFrame.new(-0.2,0.2,0)
  84.  
  85. l = Instance.new("Part")
  86. l.Parent = m
  87. l.Name = "Left Leg"
  88. l.formFactor = ("Symmetric")
  89. l.Size = Vector3.new(2,2,2)
  90. l.CFrame = bin.Parent.Parent.Character["Left Leg"].CFrame
  91. l.BrickColor = BrickColor.new("Dusty Rose")
  92. l.Locked = true
  93. l.CanCollide = true
  94. l.Shape = ("Ball")
  95. l.TopSurface = ("Smooth")
  96. l.BottomSurface = ("Smooth")
  97.  
  98. lm = Instance.new("SpecialMesh")
  99. lm.Parent = l
  100. lm.Name = "LegMesh"
  101. lm.MeshType = ("Sphere")
  102. lm.Scale = Vector3.new(0.9,0.9,1.2)
  103.  
  104. lw = Instance.new("Weld")
  105. lw.Parent = l
  106. lw.Name = "LegWeld"
  107. lw.Part0 = l
  108. lw.Part1 = bin.Parent.Parent.Character["Left Leg"]
  109. lw.C0 = CFrame.new(0.25,0.2,0)
  110.  
  111. l2 = Instance.new("Part")
  112. l2.Parent = m
  113. l2.Name = "Right Leg"
  114. l2.formFactor = ("Symmetric")
  115. l2.Size = Vector3.new(2,2,2)
  116. l2.CFrame = bin.Parent.Parent.Character["Right Leg"].CFrame
  117. l2.BrickColor = BrickColor.new("Dusty Rose")
  118. l2.Locked = true
  119. l2.CanCollide = true
  120. l2.Shape = ("Ball")
  121. l2.TopSurface = ("Smooth")
  122. l2.BottomSurface = ("Smooth")
  123.  
  124. l2m = Instance.new("SpecialMesh")
  125. l2m.Parent = l2
  126. l2m.Name = "LegMesh"
  127. l2m.MeshType = ("Sphere")
  128. l2m.Scale = Vector3.new(0.9,0.9,1.2)
  129.  
  130. l2w = Instance.new("Weld")
  131. l2w.Parent = l2
  132. l2w.Name = "LegWeld2"
  133. l2w.Part0 = l2
  134. l2w.Part1 = bin.Parent.Parent.Character["Right Leg"]
  135. l2w.C0 = CFrame.new(-0.25,0.2,0)
  136.  
  137. c = bin.Parent.Parent.Character:GetChildren()
  138. for i = 1, #c do
  139. if c[i].className == "Part" then
  140. c[i].Transparency = 1
  141. end
  142. end
  143. for ii = 1, #c do
  144. if c[ii].className == "Hat" then
  145. c[ii]:remove()
  146. end
  147. end
  148. wait()
  149. if bin.Parent.Parent.Character.Head:findFirstChild("face") ~= nil then
  150. bin.Parent.Parent.Character.Head:findFirstChild("face"):remove()
  151. end
  152.  
  153.  
  154. ---------------------------------------------------------------------------------------------------------------------
  155.  
  156.  
  157.  
  158. bp = Instance.new("BodyPosition")
  159. bp.Parent = bin
  160. bp.maxForce = Vector3.new(2000,2000,2000)
  161.  
  162. enabled = true
  163. function onButton1Down(mouse)
  164. if mouse.Target ~= nil then
  165. if mouse.Target.Parent:findFirstChild("Humanoid") ~= nil then
  166. if enabled == true then
  167. enabled = false
  168. name = mouse.Target.Parent.Name
  169. bp.Parent = mouse.Target.Parent:findFirstChild("Torso")
  170. mouse.Target.Parent.Humanoid.PlatformStand = true
  171. bp.position = bin.Parent.Parent.Character.Torso.Position
  172. function touch(hit)
  173. if hit.Name == "MainBody" then
  174. parts = workspace[name]:GetChildren()
  175. for i = 1, #parts do
  176. if parts[i].className == "Part" then
  177. parts[i]:remove()
  178. end
  179. enabled = true
  180. end
  181. else
  182. wait()
  183. end
  184. end
  185. mouse.Target.Parent:findFirstChild("Torso").Touched:connect(touch)
  186. else
  187. wait()
  188. end
  189. end
  190. end
  191. end
  192.  
  193. bin.Selected:connect(function(mouse)
  194. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  195. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  196. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement