Advertisement
Guest User

Untitled

a guest
May 28th, 2015
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.35 KB | None | 0 0
  1.  
  2. Rainbow = {"Light stone grey", "Mid grey", "Medium stone grey", "Dark stone grey", "Black", "Really black"}
  3. me = game.Players.R2D2BC
  4. function Part(P, Anch, Coll, Tran, Ref, Col, Size, Name)
  5. local p = Instance.new("Part")
  6. p.TopSurface = 0
  7. p.BottomSurface = 0
  8. p.Transparency = Tran
  9. p.Reflectance = Ref
  10. p.CanCollide = Coll
  11. p.Anchored = Anch
  12. p.BrickColor = BrickColor.new(Col)
  13. p.formFactor = "Custom"
  14. p.Size = Size
  15. if Name then p.Name = Name end
  16. p.Parent = P
  17. p.Locked = true
  18. p:BreakJoints()
  19. return p
  20. end
  21. V3 = Vector3.new
  22. CN = CFrame.new
  23. CA = CFrame.Angles
  24. MR = math.rad
  25. MRA = math.random
  26. function Weld(P0, P1, CF1, CF2, Name)
  27. local w = Instance.new("Motor6D")
  28. w.Part0 = P0
  29. w.Part1 = P1
  30. w.C0 = CF1
  31. w.C1 = CF2
  32. if Name then w.Name = Name end
  33. w.Parent = P0
  34. return w
  35. end
  36. function MakeNyan(Player, S)
  37. local Naim = "Nayn "..Player.Name:sub(1,5)
  38. if S >= 5 then Naim = "Giant Nayn "..Player.Name:sub(1,5) end
  39. local Model = Instance.new("Model")
  40. Model.Name = Naim
  41. local Torso = Part(Model, false, false, 0, 0, "Bright yellow", V3(0.5*S, 1.5*S, 2*S), "Torso")
  42. local Head = Part(Model, false, false, 0, 0, "Really black", V3(0.6*S, 0.8*S, 1.2*S), "Head")
  43. Instance.new("BlockMesh",Head)
  44. local Tart = Part(Model, false, false, 0, 0, "Br. yellowish orange", V3(0.5*S+0.05, 0.4*S, 0.5*S), "Torso")
  45. Instance.new("BlockMesh",Tart)
  46. Weld(Torso, Tart, CN(0, 0.45*S, -0.6*S), CN())
  47. local Tart2 = Part(Model, false, false, 0, 0, "Br. yellowish orange", V3(0.5*S+0.05, 0.4*S, 0.5*S), "Torso")
  48. Instance.new("BlockMesh",Tart2)
  49. Weld(Torso, Tart2, CN(0, 0.45*S, 0*S), CN())
  50. local Tart3 = Part(Model, false, false, 0, 0, "Br. yellowish orange", V3(0.5*S+0.05, 0.4*S, 0.5*S), "Torso")
  51. Instance.new("BlockMesh",Tart3)
  52. Weld(Torso, Tart3, CN(0, 0.45*S, 0.6*S), CN())
  53. local Tart4 = Part(Model, false, false, 0, 0, "Br. yellowish orange", V3(0.5*S+0.05, 0.4*S, 0.5*S), "Torso")
  54. Instance.new("BlockMesh",Tart4)
  55. Weld(Torso, Tart4, CN(0, 0*S, 0*S), CN())
  56. local Tart5 = Part(Model, false, false, 0, 0, "Br. yellowish orange", V3(0.5*S+0.05, 0.4*S, 0.5*S), "Torso")
  57. Instance.new("BlockMesh",Tart5)
  58. Weld(Torso, Tart5, CN(0, 0*S, 0.6*S), CN())
  59. local Tart55 = Part(Model, false, false, 0, 0, "Br. yellowish orange", V3(0.5*S+0.05, 0.4*S, 0.5*S), "Torso")
  60. Instance.new("BlockMesh",Tart55)
  61. Weld(Torso, Tart55, CN(0, 0*S, -0.6*S), CN())
  62. local Tart6 = Part(Model, false, false, 0, 0, "Br. yellowish orange", V3(0.5*S+0.05, 0.4*S, 0.5*S), "Torso")
  63. Instance.new("BlockMesh",Tart6)
  64. Weld(Torso, Tart6, CN(0, -0.45*S, 0*S), CN())
  65. local Tart7 = Part(Model, false, false, 0, 0, "Br. yellowish orange", V3(0.5*S+0.05, 0.4*S, 0.5*S), "Torso")
  66. Instance.new("BlockMesh",Tart7)
  67. Weld(Torso, Tart7, CN(0, -0.45*S, 0.6*S), CN())
  68. local Neck = Weld(Torso, Head, CN(0, -0.35*S, -0.9*S), CN(), "Neck")
  69. local RFL = Part(Model, false, false, 0, 0, "Really black", V3(0.4*S, 0.6*S, 0.4*S), "Right Arm")
  70. Instance.new("SpecialMesh",RFL).MeshType = "Sphere"
  71. local LFL = Part(Model, false, false, 0, 0, "Really black", V3(0.4*S, 0.6*S, 0.4*S), "Left Arm")
  72. Instance.new("SpecialMesh",LFL).MeshType = "Sphere"
  73. local RBL = Part(Model, false, false, 0, 0, "Really black", V3(0.4*S, 0.6*S, 0.4*S), "Right Leg")
  74. Instance.new("SpecialMesh",RBL).MeshType = "Sphere"
  75. local LBL = Part(Model, false, false, 0, 0, "Really black", V3(0.4*S, 0.6*S, 0.4*S), "Left Leg")
  76. Instance.new("SpecialMesh",LBL).MeshType = "Sphere"
  77. local RSH = Weld(Torso, RFL, CN(), CN(-0.1*S, 0.8*S, 0.8*S), "Right Shoulder")
  78. local LSH = Weld(Torso, LFL, CN(), CN(0.1*S, 0.8*S, 0.6*S), "Left Shoulder")
  79. local RH = Weld(Torso, RBL, CN(), CN(-0.1*S, 0.8*S, -0.8*S), "Right Hip")
  80. local LH = Weld(Torso, LBL, CN(), CN(0.1*S, 0.8*S, -1*S), "Left Hip")
  81. local Mouth = Part(Model, false, false, 0, 0, "White", V3(0.6*S+0.05, 0.2*S, 0.6*S))
  82. Weld(Head, Mouth, CN(0, -0.15*S, -0.1), CN())
  83. Instance.new("BlockMesh",Mouth).Scale = V3(1, 0.6, 0.8)
  84. for i = -0.25, 0.25, 0.25 do
  85. local Mouth2 = Part(Model, false, false, 0, 0, "White", V3(0.6*S+0.05, 0.3*S, 0.2*S))
  86. Weld(Mouth, Mouth2, CN(0, -0.1*S, i*S), CN())
  87. Instance.new("BlockMesh",Mouth2).Scale = V3(1, 0.6, 0.6)
  88. end
  89. local Nose = Part(Model, false, false, 0, 0, "Dark stone grey", V3(0.6*S+0.05, 0.2*S, 0.2*S))
  90. Weld(Head, Nose, CN(0, 0.05*S, -0.1*S), CN())
  91. Instance.new("BlockMesh",Nose).Scale = V3(1, 0.6, 0.6)
  92.  
  93.  
  94.  
  95.  
  96. local Eyebrow1 = Part(Model, false, false, 0, 0, "Really red", V3(0.6*S+0.05, 0.2*S, 0.2*S))
  97. Weld(Head, Eyebrow1, CN(0, 0.26*S, -0.28*S), CN())
  98. Instance.new("BlockMesh",Eyebrow1).Scale = V3(1, 0.4, 0.4)
  99.  
  100.  
  101. local Eyebrow12 = Part(Model, false, false, 0, 0, "Really red", V3(0.6*S+0.05, 0.2*S, 0.2*S))
  102. Weld(Head, Eyebrow12, CN(0, 0.26*S, 0.1*S), CN())
  103. Instance.new("BlockMesh",Eyebrow12).Scale = V3(1, 0.4, 0.4)
  104.  
  105.  
  106. local Eyebrow2 = Part(Model, false, false, 0, 0, "Really red", V3(0.6*S+0.05, 0.2*S, 0.3*S))
  107. Weld(Head, Eyebrow2, CN(0, 0.34*S, -0.4*S), CN())
  108. Instance.new("BlockMesh",Eyebrow2).Scale = V3(1, 0.4, 0.6)
  109.  
  110. local Eyebrow22 = Part(Model, false, false, 0, 0, "Really red", V3(0.6*S+0.05, 0.2*S, 0.3*S))
  111. Weld(Head, Eyebrow22, CN(0, 0.34*S, 0.23*S), CN())
  112. Instance.new("BlockMesh",Eyebrow22).Scale = V3(1, 0.4, 0.6)
  113.  
  114.  
  115.  
  116. for i = -0.3, 0.31, 0.6 do
  117. local Eye = Part(Model, false, false, 0, 0, "Really red", V3(0.6*S+0.05, 0.3*S, 0.3*S))
  118. Weld(Head, Eye, CN(0, 0.15*S, (i-0.1)*S), CN())
  119. local Eye2 = Part(Model, false, false, 0, 0, "Institutional white", V3(0.6*S+0.1, 0.2*S, 0.2*S))
  120. Weld(Eye, Eye2, CN(0, 0.04*S, 0.04*S), CN())
  121. Instance.new("BlockMesh",Eye).Scale = V3(1, 0.6, 0.6)
  122. Instance.new("BlockMesh",Eye2).Scale = V3(1, 0.4, 0.4)
  123. end
  124. for i = -0.4, 0.5, 0.9 do
  125. local Cheek = Part(Model, false, false, 0, 0, "Hot pink", V3(0.6*S+0.05, 0.2*S, 0.2*S))
  126. Instance.new("BlockMesh",Cheek).Scale = V3(1, 0.8, 0.8)
  127. Weld(Head, Cheek, CN(0, -0.05*S, (i-0.1)*S), CN())
  128. end
  129. for i = -80, -140, -20 do
  130. local tail = Part(Model, false, false, 0, 0, "Really black", V3(0.4*S, 0.25*S, 0.3*S))
  131. Weld(Torso, tail, CN(0, 0.2*S, 1.15*S) * CA(MR(i), 0, 0), CN(0, 0, 0.5*S))
  132. Instance.new("BlockMesh",tail)
  133. end
  134. for i = 0, 180, 180 do
  135. local ear = Part(Model, false, false, 0, 0, "Really black", V3(0.6*S, 0.4*S, 0.5*S))
  136. Instance.new("SpecialMesh",ear).MeshType = "Wedge"
  137. Weld(Head, ear, CN(0, 0.45*S, 0) * CA(0, MR(i), 0), CN(0, 0, -0.32*S) * CA(MR(15), 0, 0))
  138. end
  139. local Hum = Instance.new("Humanoid")
  140. Hum.Name = "Humanoid"
  141. Hum.MaxHealth = 100
  142. Hum.Health = 100
  143. Hum.WalkSpeed = 11+(5*S)
  144. Hum.Parent = Model
  145. Model.Parent = workspace
  146. Model:MakeJoints()
  147. Model:MoveTo(V3(0, 2*S, 0))
  148. Player.Character = Model
  149. local lastP = (Torso.CFrame * CN(0, 0, 0.9*S)).p
  150. local function runn()
  151. for i = 0.5, 1, 0.5 do
  152. RSH.C0 = CN(0, -(0.2*S)*i, 0)
  153. LSH.C0 = CN(0, -(0.2*S)*i, 0)
  154. RH.C0 = CN(0, -(0.2*S)*i, 0)
  155. LH.C0 = CN(0, -(0.2*S)*i, 0)
  156. wait()
  157. end
  158. for i = 0.5, 1, 0.5 do
  159. RSH.C0 = CN(0, -(0.2*S), (0.2*S)*i)
  160. LSH.C0 = CN(0, -(0.2*S), (0.2*S)*i)
  161. RH.C0 = CN(0, -(0.2*S), (0.2*S)*i)
  162. LH.C0 = CN(0, -(0.2*S), (0.2*S)*i)
  163. wait()
  164. end
  165. for i = 0.5, 1, 0.5 do
  166. RSH.C0 = CN(0, -(0.2*S)+(0.2*S)*i, (0.2*S))
  167. LSH.C0 = CN(0, -(0.2*S)+(0.2*S)*i, (0.2*S))
  168. RH.C0 = CN(0, -(0.2*S)+(0.2*S)*i, (0.2*S))
  169. LH.C0 = CN(0, -(0.2*S)+(0.2*S)*i, (0.2*S))
  170. wait()
  171. end
  172. for i = 0.5, 1, 0.5 do
  173. RSH.C0 = CN(0, 0, (0.2*S)-(0.2*S)*i)
  174. LSH.C0 = CN(0, 0, (0.2*S)-(0.2*S)*i)
  175. RH.C0 = CN(0, 0, (0.2*S)-(0.2*S)*i)
  176. LH.C0 = CN(0, 0, (0.2*S)-(0.2*S)*i)
  177. wait()
  178. end
  179. end
  180. local poss = "Standing"
  181. coroutine.resume(coroutine.create(function()
  182. while Player.Character == Model do
  183. wait(0.1)
  184. if poss == "Running" then
  185. runn()
  186. end
  187. end
  188. end))
  189. coroutine.resume(coroutine.create(function()
  190. while Player.Character == Model do
  191. wait(0.1)
  192. local speed = Torso.Velocity.magnitude
  193. local posnow = (Torso.CFrame * CN(0, 0, 0.9*S)).p
  194. coroutine.resume(coroutine.create(function()
  195. if speed > 2 then
  196. poss = "Running"
  197. local ps = {}
  198. for i,v in pairs(Rainbow) do
  199. local a = (#Rainbow-i)
  200. a = ((a-(a/2))/2.5)*S
  201. local pp = Part(Model, true, false, 0, 0, v, V3(0.2, 0.2, 0.2), "Rainbow")
  202. local dist = (posnow - lastP).magnitude
  203. Instance.new("BlockMesh",pp).Scale = V3(1, ((1.4*S)/#Rainbow)*5, dist*5)
  204. pp.CFrame = CN(lastP, posnow) * CN(0, a, -dist/2)
  205. table.insert(ps, pp)
  206. end
  207. coroutine.resume(coroutine.create(function()
  208. wait(10)
  209. for i = 0, 1, 0.2 do
  210. wait()
  211. for _,v in pairs(ps) do
  212. v.Transparency = i
  213. end
  214. end
  215. for _,v in pairs(ps) do
  216. v:remove()
  217. end
  218. end))
  219. else poss = "Standing" end
  220. end))
  221. lastP = posnow
  222. end
  223. end))
  224. end
  225. --for i,v in pairs(game.Players:GetPlayers()) do
  226. -- MakeNyan(v, MRA(10,120)/10)
  227. --end
  228. MakeNyan(me, 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement