Advertisement
pklo

Untitled

Mar 11th, 2016
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.29 KB | None | 0 0
  1.  
  2.  
  3. me="Your name"
  4. deb=false
  5. color,size,speed=BrickColor.new(1,1,1),Vector3.new(5,4,5),80
  6. hat,face,sparkles,fire,removehats,hatid,faceid=--[[hat]]false,--[[face]]true,--[[sparkles]]false,--[[fire]]false,--[[removehats]]true,--[[hatid]]57001119,--[[faceid]]38353936
  7. sparklecolor,firecolor,namecolor=Color3.new(0,1,0),Color3.new(1,0,0),Color3.new(0,0,1)
  8. digestcolor1,digestcolor2=Color3.new(1,1,1),Color3.new(1,0,0)
  9. d=0
  10. char=workspace:FindFirstChild(me)
  11. char.Humanoid.WalkSpeed=speed
  12. for _,v in pairs(char:GetChildren()) do
  13. if v:IsA("BasePart") and v.Name=="Left Leg" or v.Name=="Right Leg" or v.Name=="Right Arm" or v.Name=="Left Arm" then
  14. v:remove()
  15. elseif v:IsA("BasePart") and v.Name=="Torso" then
  16. v.Transparency=1
  17. v.CanCollide=false
  18. v.Neck.C0=CFrame.new(0,0,0)
  19. v.Neck.C1=CFrame.new(0,0,0)
  20. elseif v:IsA("BasePart") and v.Name=="Head" then
  21. v.Mesh.TextureId="roblox.com"
  22. v.Mesh.MeshId="roblox.com"
  23. v.Transparency=1
  24. if v:FindFirstChild("face") then
  25. v.face:remove()
  26. end
  27. v.CanCollide=false
  28. elseif v:IsA("Hat") then
  29. if removehats then
  30. v:remove()
  31. end
  32. end
  33. end
  34. p=Instance.new("Part",char)
  35. p.BrickColor=color
  36. if sparkles then
  37. Instance.new("Sparkles",p).Color=sparklecolor
  38. end
  39. if fire then
  40. Instance.new("Fire",p).Color=firecolor
  41. end
  42. if hat then
  43. hat=game:GetService("InsertService"):LoadAsset(hatid)
  44. for _,v in pairs(hat:GetChildren()) do
  45. if v:IsA("Hat") then
  46. newhat=v:clone()
  47. newhat.Parent=char
  48. hat:remove()
  49. end
  50. end
  51. end
  52. if face then
  53. f=Instance.new("Decal",p)
  54. f.Face="Front"
  55. f.Texture="http://www.roblox.com/asset/?id="..faceid-1
  56. end
  57. b=Instance.new("BodyForce",p)
  58. b.force=Vector3.new(0,50,0)
  59. g=Instance.new("BillboardGui",p)
  60. g.StudsOffset=Vector3.new(0,1,0)
  61. g.Size=UDim2.new(1,0,1,0)
  62. g.Active=true
  63. g.AlwaysOnTop=true
  64. g.Adornee=p
  65. t=Instance.new("TextLabel",g)
  66. t.Position=UDim2.new(.5,0,.6,0)
  67. t.Text="Digesting: 0 parts"
  68. t.FontSize="Size24"
  69. t.TextColor3=digestcolor1
  70. tn=Instance.new("TextLabel",g)
  71. tn.Position=UDim2.new(.5,0,0,0)
  72. tn.Text=me
  73. tn.FontSize="Size24"
  74. tn.TextColor3=namecolor
  75. p.Size=size
  76. p.CanCollide=false
  77. p.Position=char.Torso.Position
  78. w=Instance.new("Weld",p)
  79. w.Part0=p
  80. w.Part1=char.Torso
  81. w.C0=w.C0+Vector3.new(0,.4,0)
  82. p.Touched:connect(function(hit)
  83. if hit.Parent:FindFirstChild("Humanoid") or hit.Name=="Food" or hit:IsA("Hat") then
  84. if hit.Name~="Base" and hit~=p and hit.Name~="Torso" and hit.Name~="Head" and not deb then
  85. deb=true
  86. d=d+1
  87. if d~=1 then
  88. t.Text="Digesting: "..d.." parts"
  89. else
  90. t.Text="Digesting: "..d.." part"
  91. end
  92. t.TextColor3=digestcolor2
  93. Spawn(function()
  94. wait(2)
  95. d=d-1
  96. if d~=1 then
  97. t.Text="Digesting: "..d.." parts"
  98. else
  99. t.Text="Digesting: "..d.." part"
  100. end
  101. -- hit:remove()
  102. if d==0 then
  103. t.TextColor3=digestcolor1
  104. end
  105. end)
  106. hit.Anchored=false
  107. hit.CanCollide=false
  108. hit:BreakJoints()
  109. hit.Parent=p
  110. w2=Instance.new("Weld",hit)
  111. w2.Part0=hit
  112. w2.Part1=p
  113. w2.C0=w2.C0*CFrame.Angles(math.random(1,5),math.random(1,5),math.random(1,5))
  114. wait()
  115. deb=false
  116. end
  117. end
  118. end)
  119. --[[
  120. area=4 --2 = full
  121. amount=1000
  122. for i=1,amount do
  123. p=Instance.new("Part",workspace)
  124. p.Name="Food"
  125. p.Anchored=true
  126. p.BrickColor=BrickColor.random()
  127. p.Size=Vector3.new(1,1,1)
  128. p.CFrame=CFrame.new(math.random(-workspace.Base.Size.x/area,workspace.Base.Size.x/area),workspace.Base.Size.y+p.Size.y,math.random(-workspace.Base.Size.z/area,workspace.Base.Size.z/area))
  129. end
  130. ]]
  131. --[[ //Hat Ids
  132. Purple Sparkletime Fedora --63043890
  133. Alchemist's Apprentice (Wizard hat) --62252414
  134. Witch Hat --1165248
  135. Bejeweled Beanie --61903725
  136. Sheriff Wilson (Sheriff hat) --62332732
  137. Shortsighted Shapeshifter (Wizard hat) --62229189
  138. Cute Fox --61773267
  139. Triceratopper --31046422
  140. Gentleman of Leisure --57001119
  141. //Face Ids
  142. Troll face --38353936
  143. Epic face --62700116
  144. Epic face (just face) --62376788
  145. ]]
  146. area=2 --2 = full
  147. amount=1000
  148. for i=1,amount do
  149. p=Instance.new("Part",workspace)
  150. p.Name="Food"
  151. p.Anchored=true
  152. p.BrickColor=BrickColor.random()
  153. p.Size=Vector3.new(1,1,1)
  154. p.Position=Vector3.new(math.random(-workspace.Base.Size.x/area,workspace.Base.Size.x/area),1,math.random(-workspace.Base.Size.z/area,workspace.Base.Size.z/area))
  155. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement