Advertisement
Guest User

Untitled

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