Advertisement
Kaemi

Gangnam Style Script

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