Advertisement
icy-desudesu

kirby

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