Advertisement
OnePunchMan

Gangnam style edited

May 15th, 2017
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.88 KB | None | 0 0
  1. --==Made by LuisPambid==--
  2. local sound = Instance.new("Sound")
  3. sound.SoundId = "http://www.roblox.com/asset/?id=130844430"
  4. sound.Parent = Character
  5. sound.Volume = 10
  6. sound.Pitch = 1
  7. sound:Play()
  8. sound.Looped=true
  9. wait(0.1)
  10. local player=game.Players.LocalPlayer
  11. local char=player.Character
  12. repeat wait() until player and char
  13. local torso=char.Torso
  14. local head=char.Head
  15. local human=char.Humanoid
  16. local arm={Left=char["Left Arm"], Right=char["Right Arm"]}
  17. local leg={Left=char["Left Leg"], Right=char["Right Leg"]}
  18. local c=function(f) coroutine.resume(coroutine.create(f)) end
  19. local p=function(f) pcall(f) end
  20. local add={
  21. Part=function(par, a, c, col, t, s, cf)
  22. local p=Instance.new("Part", par) pcall(function() p.TopSurface="Smooth" p.BottomSurface="Smooth" p.formFactor="Custom" p.Anchored=a p.CanCollide=c p.BrickColor=BrickColor.new(col) p.Transparency=t p.Size=s p.CFrame=cf or CFrame.new() end)
  23. return p
  24. end,
  25. Wedge=function(par, a, c, col, t, s, cf)
  26. local p=Instance.new("WedgePart", par) pcall(function() p.TopSurface="Smooth" p.BottomSurface="Smooth" p.formFactor="Custom" p.Anchored=a p.CanCollide=c p.BrickColor=BrickColor.new(col) p.Transparency=t p.Size=s p.CFrame=cf or CFrame.new() end)
  27. return p
  28. end,
  29. Gui=function(ins, par, bc, bg, tc, fs, text, t, s, pos)
  30. local g=Instance.new(ins, par) pcall(function() g.BorderColor=BrickColor.new(bc) g.BackgroundColor=BrickColor.new(bg) g.TextColor=BrickColor.new(tc) g.FontSize=fs g.Font="ArialBold" g.Text=text g.Transparency=t g.Size=s g.Position=pos end)
  31. return g
  32. end,
  33. Weld=function(par, p1, cf)
  34. local w=Instance.new("Weld", par) pcall(function() w.Part0=w.Parent or par w.Part1=p1 w.C1=cf or CFrame.new() end)
  35. return w
  36. end,
  37. Mesh=function(ins, par, s, of, t)
  38. local m=Instance.new(ins, par) pcall(function() m.Scale=s or Vector3.new() m.Offset=of or Vector3.new() m.MeshType=t end)
  39. return m
  40. end
  41. }
  42. local scriptname="GANGNAM STYLE" --Name here
  43. pcall(function() player.Backpack[scriptname]:remove() char[scriptname]:remove() char["Objects"]:remove() player.PlayerGui[scriptname]:remove() end)
  44. local model=Instance.new("Model", char) model.Name="Objects"
  45. local modelB=Instance.new("Model", char) modelB.Name=scriptname
  46. local gui=Instance.new("ScreenGui", player.PlayerGui) gui.Name=scriptname
  47. local bin=Instance.new("HopperBin", player.Backpack) bin.Name=scriptname
  48. local skincolor="Really black"
  49. local body={}
  50. local animate={}
  51. local obj={}
  52. function createParts()
  53. --==PARTS==--
  54. body.Head=add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil)
  55. body.Torso=add.Part(model, false, false, skincolor, 1, Vector3.new(2, 2, 1), nil)
  56. body.ArmLeft, body.ArmRight=add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil), add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil)
  57. body.LegLeft, body.LegRight=add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil), add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil)
  58. --==WELDS==--
  59. body.HeadW=add.Weld(body.Head, torso, CFrame.new(0, 1.5, 0))
  60. body.TorsoW=add.Weld(body.Torso, torso, nil)
  61. body.ArmLeftW, body.ArmRightW=add.Weld(body.ArmLeft, body.Torso, CFrame.new(-1.5, .5, 0)), add.Weld(body.ArmRight, body.Torso, CFrame.new(1.5, .5, 0))
  62. body.LegLeftW, body.LegRightW=add.Weld(body.LegLeft, body.Torso, CFrame.new(-.5, -1.5, 0)), add.Weld(body.LegRight, body.Torso, CFrame.new(.5, -1.5, 0))
  63. --==WELDS==--
  64. add.Weld(body.Head, head, nil)
  65. add.Weld(arm.Left, body.ArmLeft, CFrame.new(0, -.5, 0))
  66. add.Weld(arm.Right, body.ArmRight, CFrame.new(0, -.5, 0))
  67. add.Weld(leg.Left, body.LegLeft, CFrame.new(0, -.5, 0))
  68. add.Weld(leg.Right, body.LegRight, CFrame.new(0, -.5, 0))
  69. ---------------------------------------------------------------------------------------
  70. animate={
  71. ["Head"]=function(cf)
  72. body.HeadW.C1=CFrame.new(0, 1.5, 0)*cf
  73. end;
  74. ["Torso"]=function(cf) body.Torso.Transparency=0 torso.Transparency=1
  75. body.TorsoW.C1=cf
  76. end;
  77. ["ArmLeft"]=function(cf)
  78. body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*cf
  79. end;
  80. ["ArmRight"]=function(cf)
  81. body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*cf
  82. end;
  83. ["LegLeft"]=function(cf)
  84. body.LegLeftW.C1=CFrame.new(-.5, -1.5, 0)*cf
  85. end;
  86. ["LegRight"]=function(cf)
  87. body.LegRightW.C1=CFrame.new(.5, -1.5, 0)*cf
  88. end;
  89. }
  90. --==Objects==--
  91. end
  92. function removeParts()
  93. p(function()
  94. for i, v in pairs(model:children()) do v:remove() end for i, v in pairs(modelB:children()) do v:remove() end for i, v in pairs(char:children()) do v.Transparency=0 end
  95. end)
  96. end
  97. function play(id, pitch)
  98. c(function()
  99. local sound=Instance.new("Sound", torso)
  100. sound.Pitch=pitch
  101. sound.SoundId=id
  102. sound:play()
  103. wait(1)
  104. sound:remove()
  105. end)
  106. end
  107. local lyrics=0
  108. local dance=0
  109. local dancing=false
  110. local onDancing=false
  111. local startpos=false
  112. bin.Selected:connect(function(mouse) createParts() onDancing=true
  113. for i=0, 1, .1 do wait()
  114. animate.Head(CFrame.Angles(math.rad(45), 0, 0))
  115. animate.ArmLeft(CFrame.new(1*i, 0, -.5*i)*CFrame.Angles(math.rad(90)*i, 0, math.rad(45)*i))
  116. animate.ArmRight(CFrame.new(-1*i, 0, -.5*i)*CFrame.Angles(math.rad(90)*i, 0, -math.rad(45)*i))
  117. animate.LegLeft(CFrame.Angles(0, 0, -math.rad(15)*i))
  118. animate.LegRight(CFrame.Angles(0, 0, math.rad(15)*i))
  119. end
  120. while onDancing do wait() lyrics=lyrics+1 dance=dance+1
  121. if lyrics==1 then game:GetService("Chat"):Chat(head, "Op", "Blue") end
  122. if lyrics==2 then game:GetService("Chat"):Chat(head, "Op", "Blue") end
  123. if lyrics==4 then game:GetService("Chat"):Chat(head, "Oppa GANGNAM STYLE!", "Blue") end
  124. if dance<=2 and dancing==false then print(dance)
  125. dancing=true
  126. startpos=false
  127. for i=0, 1, .1 do wait()
  128. animate.Head(CFrame.Angles(math.rad(45*i), 0, 0))
  129. animate.Torso(CFrame.Angles(0, 0, math.rad(-5+10*i)))
  130. animate.ArmLeft(CFrame.new(1, .5*i, -.5)*CFrame.Angles(math.rad(90+45*i), 0, math.rad(45)))
  131. animate.ArmRight(CFrame.new(-1, .5*i, -.5)*CFrame.Angles(math.rad(90+45*i), 0, -math.rad(45)))
  132. animate.LegLeft(CFrame.new(0, .5-(.5*i), 0)*CFrame.Angles(0, 0, -math.rad(15)))
  133. animate.LegRight(CFrame.new(0, .5*i, 0)*CFrame.Angles(0, 0, math.rad(15)))
  134. end
  135. for i=0, 1, .1 do wait()
  136. animate.Head(CFrame.Angles(math.rad(45-45*i), 0, 0))
  137. animate.Torso(CFrame.Angles(0, 0, math.rad(5-10*i)))
  138. animate.ArmLeft(CFrame.new(1, .5-.5*i, -.5)*CFrame.Angles(math.rad(135-45*i), 0, math.rad(45)))
  139. animate.ArmRight(CFrame.new(-1, .5-.5*i, -.5)*CFrame.Angles(math.rad(135-45*i), 0, -math.rad(45)))
  140. animate.LegLeft(CFrame.new(0, .5*i, 0)*CFrame.Angles(0, 0, -math.rad(15)))
  141. animate.LegRight(CFrame.new(0, .5-(.5*i), 0)*CFrame.Angles(0, 0, math.rad(15)))
  142. end
  143. dancing=false
  144. elseif dance>=2 and dance<5 and dancing==false then print(dance)
  145. dancing=true
  146. startpos=false
  147. for i=0, 1, .1 do wait()
  148. animate.Head(CFrame.Angles(math.rad(45*i), 0, 0))
  149. animate.Torso(CFrame.Angles(0, 0, math.rad(-5+10*i)))
  150. animate.ArmLeft(CFrame.new(1, .5*i, -.5)*CFrame.Angles(math.rad(90+45*i), 0, math.rad(45)))
  151. animate.ArmRight(CFrame.Angles(math.rad(180+math.random(-45, 45)*i), 0, -math.rad(math.random(-45, 45)*i)))
  152. animate.LegLeft(CFrame.new(0, .5-(.5*i), 0)*CFrame.Angles(0, 0, -math.rad(15)))
  153. animate.LegRight(CFrame.new(0, .5*i, 0)*CFrame.Angles(0, 0, math.rad(15)))
  154. end
  155. for i=0, 1, .1 do wait()
  156. animate.Head(CFrame.Angles(math.rad(45-45*i), 0, 0))
  157. animate.Torso(CFrame.Angles(0, 0, math.rad(5-10*i)))
  158. animate.ArmLeft(CFrame.new(1, .5-.5*i, -.5)*CFrame.Angles(math.rad(135-45*i), 0, math.rad(45)))
  159. animate.ArmRight(CFrame.Angles(math.rad(180+math.random(-45, 45)*i), 0, -math.rad(math.random(-45, 45)*i)))
  160. animate.LegLeft(CFrame.new(0, .5*i, 0)*CFrame.Angles(0, 0, -math.rad(15)))
  161. animate.LegRight(CFrame.new(0, .5-(.5*i), 0)*CFrame.Angles(0, 0, math.rad(15)))
  162. end
  163. dancing=false
  164. elseif dance>=5 and dance<10 and dancing==false then print(dance)
  165. dancing=true
  166. if startpos==false then
  167. startpos=true
  168. game:GetService("Chat"):Chat(head, "EH SEXY LADY!", "Blue")
  169. for i=0, 1, .1 do wait()
  170. animate.Head(CFrame.Angles(math.rad(15), 0, 0))
  171. animate.Torso(CFrame.Angles(0, math.rad(90)*i, 0))
  172. animate.ArmLeft(CFrame.new(.2*i, 0, 0)*CFrame.Angles(0, 0, math.rad(15)*i))
  173. animate.ArmRight(CFrame.new(-.2*i, 0, 0)*CFrame.Angles(0, 0, -math.rad(15)*i))
  174. end
  175. end
  176. for i=0, 1, .2 do wait()
  177. torso.CFrame=torso.CFrame+torso.CFrame.lookVector*.2
  178. animate.Head(CFrame.Angles(math.rad(15), 0, 0))
  179. animate.Torso(CFrame.Angles(0, -math.rad(90), math.rad(-5+10*i)))
  180. animate.LegLeft(CFrame.new(0, .5-(.5*i), 0)*CFrame.Angles(0, 0, -math.rad(15)))
  181. animate.LegRight(CFrame.new(0, .5*i, 0)*CFrame.Angles(0, 0, math.rad(15)))
  182. end
  183. for i=0, 1, .2 do wait()
  184. torso.CFrame=torso.CFrame+torso.CFrame.lookVector*.2
  185. animate.Head(CFrame.Angles(math.rad(15), 0, 0))
  186. animate.Torso(CFrame.Angles(0, -math.rad(90), math.rad(5-10*i)))
  187. animate.LegLeft(CFrame.new(0, .5*i, 0)*CFrame.Angles(0, 0, -math.rad(15)))
  188. animate.LegRight(CFrame.new(0, .5-(.5*i), 0)*CFrame.Angles(0, 0, math.rad(15)))
  189. end
  190. dancing=false
  191. elseif dance<=10 then
  192. dance=0
  193. lyrics=0
  194. end
  195. end
  196. end)
  197. bin.Deselected:connect(function() onDancing=false body.Torso.Transparency=1 removeParts() torso.Transparency=0 end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement