Advertisement
ManlyMemeScripter

Untitled

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