Advertisement
yonidrori

Untitled

Sep 13th, 2015
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.46 KB | None | 0 0
  1. pl=game.Players.LocalPlayer
  2. char=pl.Character
  3.  
  4. torso=char.Torso
  5. head=char.head
  6. neck=torso.Neck
  7. rootpart=char['HumanoidRootPart']
  8. la=char['Left Arm']
  9. ra=char['Right Arm']
  10. ll=char['Left Leg']
  11. rl=char['Right Leg']
  12. ll.CanCollide=true
  13. rl.CanCollide=true
  14. ls=torso['Left Shoulder']
  15. rs=torso['Right Shoulder']
  16. lh=torso['Left Hip']
  17. rh=torso['Right Hip']
  18. rj=rootpart.RootJoint
  19. sit=false
  20. anim=false
  21. busy=false
  22.  
  23. leg_colors={'Institutional white','Really black','Bright blue','Camo'}
  24. shirt_colors={'Bright red','Bright blue','Royal purple'}
  25. skin_colors={'Institutional white','Light orange','Brown','Pastel brown'}
  26.  
  27. c_sc=1
  28.  
  29. function weld(p1,p2)
  30. local w1=Instance.new("Weld")
  31. w1.Part0=p1
  32. w1.Part1=p2
  33. w1.C1=p2.CFrame:inverse()*p1.CFrame
  34. w1.Parent=p1
  35. return w1
  36. end
  37.  
  38. local fls,frs,fla,fra
  39.  
  40. function resizechar(sc)
  41. if fls then
  42. fls:Destroy()
  43. end
  44. if frs then
  45. frs:Destroy()
  46. end
  47. torso.Anchored=true
  48. wait()
  49. torso.CFrame=torso.CFrame*CFrame.new(0,sc,0)
  50. rh.Parent,lh.Parent,rs.Parent,ls.Parent,neck.Parent,rj.Parent=nil
  51. rl.FormFactor="Custom"
  52. rl.CanCollide=true
  53. ll.FormFactor="Custom"
  54. ll.CanCollide=true
  55. ra.FormFactor="Custom"
  56. la.FormFactor="Custom"
  57. torso.FormFactor="Custom"
  58. head.FormFactor="Custom"
  59. rootpart.FormFactor="Custom"
  60. rootpart.Size=Vector3.new(4*sc,4*sc,2*sc)
  61. rl.Size=Vector3.new(2*sc,4*sc,2*sc)
  62. ll.Size=Vector3.new(2*sc,4*sc,2*sc)
  63. ra.Size=Vector3.new(2*sc,2*sc,2*sc) --4
  64. la.Size=Vector3.new(2*sc,2*sc,2*sc) --4
  65. torso.Size=Vector3.new(4*sc,4*sc,2*sc)
  66. head.Size=Vector3.new(4*sc,2*sc,2*sc)
  67. fla=la:Clone()
  68. fla.Parent=char
  69. fra=ra:Clone()
  70. fra.Parent=char
  71. rh.Parent=torso
  72. lh.Parent=torso
  73. rs.Parent=torso
  74. ls.Parent=torso
  75. neck.Parent=torso
  76. rj.Parent=rootpart
  77. pcall(function()
  78. if torso.roblox then
  79. local p=Instance.new("Part",char)
  80. p.FormFactor="Custom"
  81. p.Size=torso.Size
  82. p.Transparency=1
  83. p:BreakJoints()
  84. local w=Instance.new("Weld", char)
  85. w.Part0=p
  86. w.Part1=torso
  87. torso.roblox.Parent=p
  88. end
  89. end)
  90. url = "rbxasset://fonts/"
  91. local ms1=Instance.new("SpecialMesh",torso)
  92. ms1.Scale=torso.Size-Vector3.new(torso.Size.x/2,torso.Size.y/2,0)
  93. ms1.MeshId=url.."torso.mesh"
  94.  
  95. local ms2=Instance.new("SpecialMesh",la)
  96. ms2.Scale=la.Size-Vector3.new(0,la.Size.y/2,0)
  97. ms2.MeshId=url.."leftarm.mesh"
  98.  
  99. local ms3=Instance.new("SpecialMesh",ra)
  100. ms3.Scale=ra.Size-Vector3.new(0,ra.Size.y/2,0)
  101. ms3.MeshId=url.."rightarm.mesh"
  102.  
  103. local ms4=Instance.new("SpecialMesh",ll)
  104. ms4.Scale=ll.Size-Vector3.new(0,ll.Size.y/2,0)
  105. ms4.MeshId=url.."leftleg.mesh"
  106.  
  107. local ms5=Instance.new("SpecialMesh",rl)
  108. ms5.Scale=rl.Size-Vector3.new(0,rl.Size.y/2,0)
  109. ms5.MeshId=url.."rightleg.mesh"
  110.  
  111. local ms6=Instance.new("SpecialMesh",fra)
  112. ms6.Scale=ra.Size-Vector3.new(0,fra.Size.y/2,0)
  113. ms6.MeshId=url.."rightarm.mesh"
  114.  
  115. local ms7=Instance.new("SpecialMesh",fla)
  116. ms7.Scale=fla.Size-Vector3.new(0,fla.Size.y/2,0)
  117. ms7.MeshId=url.."leftarm.mesh"
  118.  
  119. ls.C0=CFrame.new(-(3*sc),2*sc,0)*CFrame.Angles(0,math.rad(270),0)
  120. ls.C1=CFrame.new(0,sc,0)
  121. rs.C0=CFrame.new(3*sc,2*sc,0)*CFrame.Angles(0,math.rad(90),0)
  122. rs.C1=CFrame.new(0,sc,0)
  123. rh.C0=CFrame.new(1*sc,-(2*sc),0)*CFrame.Angles(0,math.rad(90),0)
  124. rh.C1=CFrame.new(0,2*sc,0)
  125. lh.C0=CFrame.new(-(1*sc),-(2*sc),0)*CFrame.Angles(0,math.rad(270),0)
  126. lh.C1=CFrame.new(0,2*sc,0)
  127. fla.CFrame=la.CFrame*CFrame.new(0,-(2*sc),0)
  128. fls=weld(la,fla)
  129. fra.CFrame=ra.CFrame*CFrame.new(0,-(2*sc),0)
  130. frs=weld(ra,fra)
  131. neck.C0=CFrame.new(0,2*sc,0)
  132. neck.C1=CFrame.new(0,-(1*sc),0)
  133. torso.Anchored=false
  134. local c_skin=BrickColor.new(skin_colors[math.random(1,#skin_colors)])
  135. local c_shirt=BrickColor.new(shirt_colors[math.random(1,#shirt_colors)])
  136. local c_leg=BrickColor.new(leg_colors[math.random(1,#leg_colors)])
  137. for i,v in pairs(char:children()) do
  138. if v:IsA'BodyColors' then
  139. v:Destroy()
  140. end
  141. end
  142.  
  143. wait(1/25)
  144.  
  145. fla.BrickColor=c_skin
  146. fra.BrickColor=c_skin
  147. la.BrickColor=c_shirt
  148. ra.BrickColor=c_shirt
  149. head.BrickColor=c_skin
  150. ll.BrickColor=c_leg
  151. rl.BrickColor=c_leg
  152. torso.BrickColor=c_shirt
  153. olh=lh.C0
  154. orh=rh.C0
  155. ols=ls.C0
  156. ors=rs.C0
  157. onc=neck.C0
  158. return sc
  159. end
  160.  
  161. resizechar(c_sc)
  162. pl.Chatted:connect(function(msg)
  163. if string.sub(msg,0,6)=='scale/' then
  164. pcall(function()
  165. resizechar(tonumber(string.sub(msg,7)))
  166. end)
  167. elseif msg=='reset/' then
  168. resizechar(c_sc)
  169. end
  170. end)
  171.  
  172. mo=pl:GetMouse()
  173.  
  174. local lasttouched
  175. local currentweld
  176.  
  177. ll.Touched:connect(function(tc)
  178. lasttouched=tc
  179. end)
  180.  
  181. resizechar(15)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement