DaScrepter

GangnamStyleScript

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