Guest User

Untitled

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