Advertisement
Prephy

Dance serversided

Nov 8th, 2020 (edited)
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 46.56 KB | None | 0 0
  1. --[[epico here, just leaking MY dancer.
  2. most of what you have been told about this script is likely a lie,
  3. as it was leaked by deadly3652/scaoth22 for revenge on me ignoring him when i was GROUNDED AND DIDNT HAVE SKYPE
  4. so he stole it and leaked it
  5. no matter what u are told, this dancer was made by epico and epico alone!
  6. ]]-- --dancer
  7.  
  8. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  9. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  10. local RealPlayer = Player
  11. do print("never gonna give you up")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer end
  12.  
  13. wait(0.3)
  14.  
  15.  
  16. local plr=owner
  17. local chr=plr.Character
  18. local asin = math.asin
  19. local atan2 = math.atan2
  20. local rad = math.rad
  21. local sin = math.sin
  22. local abs = math.abs
  23. local ceil = math.ceil
  24.  
  25. local function getAngles(cf)
  26. local sx,sy,sz,m00,m01,m02,m10,m11,m12,m20,m21,m22 = cf:components()
  27. return atan2(-m12,m22),asin(m02),atan2(-m01,m00)
  28. end
  29. Lerp = {
  30. Number = function(C1,C2,inc)
  31. return C1 + (C2 - C1) * inc
  32. end;
  33. CFrame = function(a,b,m)
  34. local c,d={a:components()},{b:components()}
  35. table.foreach(c,function(a,b)c[a]=c[a]+(d[a]-c[a])*m end)
  36. return CFrame.new(unpack(c))
  37. end;
  38. }
  39. local function genWeld(a,b)
  40. local w = Instance.new("Weld",a)
  41. w.Part0 = a
  42. w.Part1 = b
  43. return w
  44. end
  45. local Song = function(id,pitch)
  46. for i,v in pairs(chr:GetChildren()) do
  47. if v:IsA("Sound") then
  48. v:Destroy()
  49. end
  50. end
  51. if id ~='252166378' then
  52. sound = Instance.new("Sound",chr)
  53. sound.Volume = math.huge
  54. sound.Looped = true
  55. sound.SoundId="rbxassetid://"..id
  56. if pitch~=nil then
  57. sound.Pitch=pitch
  58. end
  59. sound:Play()
  60. elseif id == '252166378' then
  61. for i = 1,100 do
  62. sound = Instance.new("Sound",chr)
  63. sound.Volume = math.huge
  64. sound.Looped = true
  65. sound.SoundId="rbxassetid://"..id
  66. if pitch~=nil then
  67. sound.Pitch=pitch
  68. end
  69. sound:Play()
  70. end
  71. end
  72. end
  73. Part = function(x,y,z,color,tr,cc,an,parent)
  74. local p = Instance.new('Part',parent or Weapon)
  75. p.formFactor = 'Custom'
  76. p.Size = Vector3.new(x,y,z)
  77. p.BrickColor = BrickColor.new(color)
  78. p.CanCollide = cc
  79. p.Transparency = tr
  80. p.Anchored = an
  81. p.TopSurface,p.BottomSurface = 0,0
  82. p:BreakJoints()
  83. return p
  84. end
  85. Weld = function(p0,p1,x,y,z,rx,ry,rz,par)
  86. local w = Instance.new('Motor',par or p0)
  87. w.Part0 = p0
  88. w.Part1 = p1
  89. w.C1 = CFrame.new(x,y,z)*CFrame.Angles(rx,ry,rz)
  90. return w
  91. end
  92. Mesh = function(par,num,x,y,z)
  93. local msh = nil
  94. if num == 1 then
  95. msh = Instance.new("CylinderMesh",par)
  96. elseif num == 2 then
  97. msh = Instance.new("SpecialMesh",par)
  98. msh.MeshType = 'Wedge'
  99. elseif num == 3 then
  100. msh = Instance.new("BlockMesh",par)
  101. elseif type(num) == 'string' then
  102. msh = Instance.new("SpecialMesh",par)
  103. msh.MeshId = num
  104. end
  105. msh.Scale = Vector3.new(x,y,z)
  106. return msh
  107. end
  108. anglespeed = 1
  109. yeet = 0
  110. count = 0
  111. angle = 0
  112. local dance = 0
  113. speed = 1
  114. local plr=owner
  115. local chr=plr.Character
  116. local torso=chr.Torso
  117. local mouse=plr:GetMouse()
  118. local Neck = genWeld(chr.Torso,chr.Head)
  119. Neck.C0 = CFrame.new(0,1,0)
  120. Neck.C1 = CFrame.new(0,-0.5,0)
  121. local LeftShoulder = genWeld(chr.Torso,chr['Left Arm'])
  122. LeftShoulder.C0 = CFrame.new(-1,0.5,0)
  123. LeftShoulder.C1 = CFrame.new(0.5,0.5,0)
  124. RightShoulder = genWeld(chr.Torso,chr['Right Arm'])
  125. RightShoulder.C0 = CFrame.new(1,0.5,0)
  126. RightShoulder.C1 = CFrame.new(-0.5,0.5,0)
  127. local LeftHip = genWeld(chr.Torso,chr['Left Leg'])
  128. LeftHip.C0 = CFrame.new(-1,-1,0)
  129. LeftHip.C1 = CFrame.new(-0.5,1,0)
  130. local RightHip = genWeld(chr.Torso,chr['Right Leg'])
  131. RightHip.C0 = CFrame.new(1,-1,0)
  132. RightHip.C1 = CFrame.new(0.5,1,0)
  133. local RootJoint = genWeld(chr.HumanoidRootPart,chr.Torso)
  134. RootJoint.C0 = CFrame.new(0,0,0) * CFrame.Angles(-math.pi/2,0,math.pi)
  135. RootJoint.C1 = CFrame.new(0,0,0) * CFrame.Angles(-math.pi/2,0,math.pi)
  136. local function newLerpTo(weld)
  137. return {
  138. Weld = weld; -- The weld that will lerp
  139. To = weld.C0; -- Where it will lerp to; a CFrame
  140. Cache = weld.C0; -- Cache of original position; it helps when making anim keyframes
  141. Speed = 0.1; -- Speed of lerp. 0.1 or 0.2 is best
  142. }
  143. end
  144.  
  145. LerpTo = {
  146. Neck = newLerpTo(Neck);
  147. LeftArm = newLerpTo(LeftShoulder);
  148. RightArm = newLerpTo(RightShoulder);
  149. LeftLeg = newLerpTo(LeftHip);
  150. RightLeg = newLerpTo(RightHip);
  151. RootJoint = newLerpTo(RootJoint);
  152. }
  153. local anim = true
  154. local function updateanims()
  155. if anim==true then
  156. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 2 and dance == 0 then
  157. anglespeed = 1/3
  158. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(sin(angle)*0.05,0,0)
  159. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(abs(sin(angle))*.2,rad(0),rad(0))
  160. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(-abs(sin(angle))*.2,0,0)
  161. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(0,0,abs(sin(angle))*0.2)
  162. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(0,0,-abs(sin(angle))*0.2)
  163. LerpTo.RootJoint.To=LerpTo.RootJoint.Cache * CFrame.new(0,0,0)*CFrame.Angles(0,0,0)
  164. end
  165. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude > 2 and dance == 0 then
  166. anglespeed = 1.5
  167. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,0,math.sin(angle)*0.05)
  168. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(sin(angle)*.8,0,0)
  169. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(-sin(angle)*.8,0,0)
  170. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(-sin(angle)*.8,0,0)
  171. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(sin(angle)*.8,0,0)
  172. LerpTo.RootJoint.To=LerpTo.RootJoint.Cache * CFrame.new(0,0,0)*CFrame.Angles(0,0,0)
  173. end
  174. end
  175. if anim == false then
  176. if dance == 1 then
  177. anglespeed = 3
  178. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(rad(10),0,sin(yeet)*0.1)
  179. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(rad(20),sin(angle)*0.2,sin(angle)*0.5) * CFrame.new(0,-abs(sin(angle))*0.5,0)
  180. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90)-sin(angle)*1,0,-rad(10))
  181. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90)-sin(angle)*1,0,rad(10))
  182. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(rad(20),0,abs(sin(yeet))*0.1)
  183. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(rad(20),0,-abs(sin(yeet))*0.1)
  184. end
  185. if dance == 2 then
  186. anglespeed = 3
  187. LerpTo.Neck.To = LerpTo.Neck.Cache*CFrame.Angles(0,0,sin(angle)*.1)
  188. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.new(0,0,2+sin(angle)*.25)
  189. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90)+sin(angle)*1,0,rad(5)+sin(angle)*-.5)
  190. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90)+sin(angle)*1,0,rad(5)-sin(angle)*-.5)
  191. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(rad(0),rad(0),sin(angle)*.25)
  192. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(rad(0),rad(0),sin(angle)*-.25)
  193. end
  194. if dance == 3 then
  195. anglespeed = 1.5
  196. LerpTo.Neck.To = LerpTo.Neck.Cache*CFrame.Angles(0,0,0)
  197. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,0)*CFrame.new(sin(angle)*5,0,0)
  198. LerpTo.RightArm.To=LerpTo.RightArm.Cache*CFrame.Angles(rad(90)-sin(angle)*1,0,rad(0)-sin(angle)*.25)
  199. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache*CFrame.Angles(rad(0),rad(0),sin(angle)*.25)
  200. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache*CFrame.Angles(0,0,sin(angle)*.1)
  201. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache*CFrame.Angles(0,0,-sin(angle)*.1)
  202. end
  203. if dance == 4 then
  204. anglespeed = 1.5
  205. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,0,0)
  206. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.new(0,sin(angle)*5,0)
  207. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(0),rad(0),sin(angle)*.25)
  208. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(0),rad(0),sin(angle)*.25)
  209. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(sin(angle)*.25,0,0)
  210. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(sin(angle)*-.25,0,0)
  211. end
  212. if dance == 5 then
  213. anglespeed = 3
  214. LerpTo.Neck.To=LerpTo.Neck.Cache*CFrame.Angles(-rad(25),0,0)
  215. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.new(0,0,0) * CFrame.Angles(-rad(25)+sin(angle)*.1,0,0)
  216. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,-rad(55))
  217. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90),0,rad(55))
  218. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(-rad(25)+sin(angle)*.1,0,0)
  219. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(-rad(25)+sin(angle)*.1,0,0)
  220. end
  221. if dance == 6 then
  222. anglespeed = 2
  223. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(math.pi/10-math.abs(math.sin(angle))*0.3,0, 0)
  224. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0,math.sin(angle)*.2)
  225. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(math.pi/3+math.abs(math.sin(angle)*1), 0, math.sin(angle*1)*.5)
  226. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(math.pi/3+math.abs(math.sin(angle)*1), 0, math.sin(angle*1)*.5)
  227. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(0, math.sin(angle)*.2, math.rad(2.5))
  228. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(0, -math.sin(angle)*.2, -math.rad(2.5))
  229. end
  230. if dance == 7 then -- insane spaz out l0l
  231. anglespeed = 1
  232. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  233. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.new(math.random(-5,5),math.random(-5,5),0)*CFrame.Angles(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  234. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  235. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  236. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  237. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  238. end
  239. if dance == 8 then -- roleo dance :D
  240. anglespeed = 4
  241. LerpTo.RightArm.To = LerpTo.RightArm.Cache*CFrame.Angles(rad(180),0,sin(angle)*.3)
  242. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache*CFrame.Angles(rad(180),0,sin(angle)*.3)
  243. end
  244. if dance == 9 then -- XD lol mast3r ba!t!ng dance :)
  245. anglespeed = 6
  246. LerpTo.RightArm.To = LerpTo.RightArm.Cache*CFrame.Angles(rad(90)+sin(angle)*1,0,rad(-45))
  247. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache*CFrame.Angles(rad(90)+sin(angle)*1,0,rad(45))
  248. end
  249. if dance == 10 then --but scratch :D
  250. anglespeed = 5
  251. LerpTo.RightArm.To = LerpTo.RightArm.Cache*CFrame.Angles(rad(-25),0,rad(-25))*CFrame.new(0,sin(angle)*.5,0)
  252. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache*CFrame.Angles(rad(-25),0,rad(25))*CFrame.new(0,sin(angle)*.5,0)
  253. end
  254. if dance == 11 then -- CARTWHEELS LOLW0T!?
  255. anglespeed = 2
  256. LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(sin(angle)*2,0,0)*CFrame.new(0,sin(angle)*2,0)
  257. end
  258. if dance == 12 then -- EPICO :)
  259. anglespeed = 5
  260. LerpTo.Neck.To=LerpTo.Neck.Cache*CFrame.Angles(0,0,sin(angle)*2)
  261. LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(0,0,sin(angle)*2)
  262. LerpTo.RightArm.To=LerpTo.RightArm.Cache*CFrame.Angles(rad(90),rad(0),sin(angle)*2)
  263. LerpTo.LeftArm.To=LerpTo.LeftArm.Cache*CFrame.Angles(rad(90),rad(0),sin(angle)*2)
  264. end
  265. if dance == 13 then -- EPICO2 :)
  266. anglespeed = 5
  267. LerpTo.Neck.To=LerpTo.Neck.Cache*CFrame.Angles(rad(-25)+sin(angle)*.5,0,0)
  268. LerpTo.RightArm.To=LerpTo.RightArm.Cache*CFrame.Angles(rad(90)+sin(angle)*.2,rad(0),rad(-15))
  269. LerpTo.LeftArm.To=LerpTo.LeftArm.Cache*CFrame.Angles(rad(90)+sin(angle)*.2,rad(0),rad(15))
  270. elseif dance == 14 then -- FLIPS :)
  271. anglespeed = 6
  272. LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(math.cos(0,360)*angle,0,0)
  273. LerpTo.RightArm.To=LerpTo.RightArm.Cache*CFrame.Angles(rad(45),rad(0),rad(0))
  274. LerpTo.LeftArm.To=LerpTo.LeftArm.Cache*CFrame.Angles(rad(45),rad(0),rad(0))
  275. LerpTo.RightLeg.To=LerpTo.RightLeg.Cache*CFrame.new(0,1,-.75)
  276. LerpTo.LeftLeg.To=LerpTo.LeftLeg.Cache*CFrame.new(0,1,-.75)
  277. end
  278. if dance == 15 then
  279. anglespeed = 3
  280. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(rad(10),0,sin(yeet)*0.1)
  281. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(rad(20),sin(angle)*0.2,sin(angle)*0.5) * CFrame.new(0,-abs(sin(angle))*2,0)
  282. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90)-sin(angle)*1,0,-rad(10))
  283. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90)-sin(angle)*1,0,rad(10))
  284. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(rad(20),0,abs(sin(yeet))*0.1)
  285. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(rad(20),0,-abs(sin(yeet))*0.1)
  286. end
  287. if dance == 16 then
  288. anglespeed = 3
  289. LerpTo.Neck.To=LerpTo.Neck.Cache*CFrame.Angles(rad(0),rad(90),rad(0))
  290. LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(rad(90),rad(0),rad(0))*CFrame.new(0,-2.5,0)
  291. LerpTo.RightArm.To=LerpTo.RightArm.Cache*CFrame.Angles(rad(170),rad(0),rad(15))
  292. LerpTo.LeftArm.To=LerpTo.LeftArm.Cache*CFrame.Angles(rad(0),rad(0),rad(-75))
  293. LerpTo.RightLeg.To=LerpTo.RightLeg.Cache*CFrame.Angles(rad(0),rad(0),rad(0))
  294. LerpTo.LeftLeg.To=LerpTo.LeftLeg.Cache*CFrame.Angles(rad(0),rad(0),rad(0))
  295. end
  296. if dance == 17 then
  297. anglespeed = 2
  298. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(math.pi/10-math.abs(math.sin(angle))*0.3,0, 0)
  299. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache*CFrame.new(math.sin(angle)*2,0,0) * CFrame.Angles(math.pi/20,0,-math.sin(angle)*.5)
  300. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(math.pi/3+math.abs(math.sin(angle)*.5), math.pi/20, -math.pi/20)
  301. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(math.pi/3+math.abs(math.sin(angle)*.5), -math.pi/20, math.pi/20)
  302. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(math.pi/20+math.sin(angle)*0.2, math.sin(angle)*0.08, math.rad(2.5))
  303. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(math.pi/20-math.sin(angle)*0.2, -math.sin(angle)*0.08, -math.rad(2.5))
  304. end
  305. if dance == 18 then
  306. anglespeed = 4
  307. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,sin(angle)*2,0)
  308. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(0, 0, math.rad(90)-sin(angle)*1)
  309. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0, math.rad(-90)+sin(angle)*1)
  310. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(rad(0),rad(0),rad(0))
  311. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(rad(0),rad(0),rad(0))
  312. end
  313. if dance == 19 then
  314. anglespeed = 4
  315. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(rad(30),0,0)
  316. LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(math.pi/5,0,0)
  317. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(math.rad(180)-sin(angle)*1,0,0)
  318. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(math.rad(180)-sin(angle)*1,0,0)
  319. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(rad(30),rad(0),rad(0))
  320. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(rad(30),rad(0),rad(0))
  321. end
  322. if dance == 20 then
  323. anglespeed = 5
  324. LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(math.cos(0,360)*angle,0,0)
  325. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(math.rad(180),0,0)
  326. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(math.rad(180),0,0)
  327. end
  328. if dance == 21 then
  329. anglespeed = 5
  330. LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(0,0,sin(angle)*1)
  331. LerpTo.RightArm.To=LerpTo.RightArm.Cache*CFrame.Angles(-sin(angle)*1,0,0)
  332. LerpTo.LeftArm.To=LerpTo.LeftArm.Cache*CFrame.Angles(sin(angle)*1,0,0)
  333. LerpTo.RightLeg.To=LerpTo.RightLeg.Cache*CFrame.Angles(sin(angle)*1,0,0)
  334. LerpTo.LeftLeg.To=LerpTo.LeftLeg.Cache*CFrame.Angles(-sin(angle)*1,0,0)
  335. end
  336. if dance == 22 then
  337. anglespeed = 5
  338. LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(0,math.cos(0,360)*angle,0)
  339. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(math.rad(180),0,0)
  340. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(math.rad(180),0,0)
  341. end
  342. if dance == 23 then
  343. anglespeed = 3
  344. LerpTo.Neck.To=LerpTo.Neck.Cache*CFrame.Angles(rad(25),0,0)
  345. LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(0,0,sin(angle)*1)
  346. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(0,0,rad(90)+sin(angle)*2)
  347. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,-rad(90)-sin(angle)*2)
  348. end
  349. if dance == 24 then
  350. anglespeed = 2
  351. LerpTo.Neck.To=LerpTo.Neck.Cache*CFrame.Angles(sin(angle)*.75,rad(45),0)
  352. LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(0,0,0)
  353. LerpTo.RightArm.To=LerpTo.RightArm.Cache*CFrame.Angles(0,0,0)
  354. LerpTo.LeftArm.To=LerpTo.LeftArm.Cache*CFrame.Angles(0,0,0)
  355. LerpTo.RightLeg.To=LerpTo.RightLeg.Cache*CFrame.Angles(0,0,0)
  356. LerpTo.LeftLeg.To=LerpTo.LeftLeg.Cache*CFrame.Angles(0,0,0)
  357. end
  358. if dance == 25 then
  359. anglespeed = 3
  360. LerpTo.Neck.To=LerpTo.Neck.Cache*CFrame.Angles(rad(25),0,0)
  361. LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(rad(25),0,sin(angle)*.2)
  362. LerpTo.RightArm.To=LerpTo.RightArm.Cache*CFrame.Angles(rad(90)-sin(angle)*.2,rad(0),rad(0))
  363. LerpTo.LeftArm.To=LerpTo.LeftArm.Cache*CFrame.Angles(rad(90)+sin(angle)*.2,rad(0),rad(0))
  364. LerpTo.RightLeg.To=LerpTo.RightLeg.Cache*CFrame.Angles(rad(25),0,0)
  365. LerpTo.LeftLeg.To=LerpTo.LeftLeg.Cache*CFrame.Angles(rad(25),0,0)
  366. end
  367. if dance == 26 then
  368. anglespeed = 5
  369. LerpTo.Neck.To=LerpTo.Neck.Cache*CFrame.Angles(-abs(sin(angle))*.5,0,0)
  370. LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(0,0,0)*CFrame.new(0,sin(angle)*2,0)
  371. LerpTo.RightArm.To=LerpTo.RightArm.Cache*CFrame.Angles(rad(135)+sin(angle)*.4,0,-rad(15))
  372. LerpTo.LeftArm.To=LerpTo.LeftArm.Cache*CFrame.Angles(rad(135)+sin(angle)*.4,rad(0),rad(15))
  373. LerpTo.RightLeg.To=LerpTo.RightLeg.Cache*CFrame.Angles(sin(angle)*.4,0,0)
  374. LerpTo.LeftLeg.To=LerpTo.LeftLeg.Cache*CFrame.Angles(-sin(angle)*.4,0,0)
  375. end
  376. if dance == 27 then
  377. anglespeed = 2
  378. LerpTo.Neck.To=LerpTo.Neck.Cache*CFrame.Angles(0,0,0)
  379. LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.new(sin(angle)*3,0,0)*CFrame.Angles(rad(90),0,sin(angle)*3)
  380. LerpTo.RightArm.To=LerpTo.RightArm.Cache*CFrame.Angles(sin(angle)*1.5,0,0)
  381. LerpTo.LeftArm.To=LerpTo.LeftArm.Cache*CFrame.Angles(-sin(angle)*1.5,0,0)
  382. LerpTo.RightLeg.To=LerpTo.RightLeg.Cache*CFrame.Angles(-sin(angle)*1.5,0,0)
  383. LerpTo.LeftLeg.To=LerpTo.LeftLeg.Cache*CFrame.Angles(sin(angle)*1.5,0,0)
  384. end
  385. if dance == 28 then
  386. anglespeed = 2
  387. LerpTo.Neck.To=LerpTo.Neck.Cache*CFrame.Angles(0,0,0)
  388. LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.new(0,0,abs(sin(angle))*3)
  389. LerpTo.RightArm.To=LerpTo.RightArm.Cache*CFrame.Angles(rad(180),0,rad(25))
  390. LerpTo.LeftArm.To=LerpTo.LeftArm.Cache*CFrame.Angles(rad(180),0,-rad(25))
  391. LerpTo.RightLeg.To=LerpTo.RightLeg.Cache*CFrame.Angles(0,0,0)*CFrame.new(0,abs(sin(angle))*1,0)
  392. LerpTo.LeftLeg.To=LerpTo.LeftLeg.Cache*CFrame.Angles(0,0,0)*CFrame.new(0,abs(sin(angle))*1,0)
  393. end
  394. if dance == 29 then
  395. anglespeed = 5
  396. LerpTo.Neck.To=LerpTo.Neck.Cache*CFrame.Angles(0,0,0)
  397. LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(0,0,0)
  398. LerpTo.RightArm.To=LerpTo.RightArm.Cache*CFrame.Angles(sin(angle)*2,0,0)
  399. LerpTo.LeftArm.To=LerpTo.LeftArm.Cache*CFrame.Angles(-sin(angle)*2,0,0)
  400. LerpTo.RightLeg.To=LerpTo.RightLeg.Cache*CFrame.Angles(0,0,0)
  401. LerpTo.LeftLeg.To=LerpTo.LeftLeg.Cache*CFrame.Angles(0,0,0)
  402. end
  403. if dance == 30 then
  404. anglespeed = 3
  405. LerpTo.Neck.To=LerpTo.Neck.Cache*CFrame.Angles(0,0,0)
  406. LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(0,0,0)
  407. LerpTo.RightArm.To=LerpTo.RightArm.Cache*CFrame.Angles(sin(angle)*2,0,0)
  408. LerpTo.LeftArm.To=LerpTo.LeftArm.Cache*CFrame.Angles(-sin(angle)*2,0,0)
  409. LerpTo.RightLeg.To=LerpTo.RightLeg.Cache*CFrame.new(0,abs(sin(angle))*1,-abs(sin(angle))*1)*CFrame.Angles(-rad(25),0,0)
  410. LerpTo.LeftLeg.To=LerpTo.LeftLeg.Cache*CFrame.new(0,abs(sin(angle))*1,-abs(sin(angle))*1)*CFrame.Angles(-rad(45),0,0)
  411. end
  412. if dance == 31 then
  413. anglespeed = 1
  414. LerpTo.Neck.To=LerpTo.Neck.Cache*CFrame.Angles(0,0,0)
  415. LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(0,0,0)
  416. LerpTo.RightArm.To=LerpTo.RightArm.Cache*CFrame.Angles(abs(sin(angle))*2.5,0,-abs(sin(angle))*1)
  417. LerpTo.LeftArm.To=LerpTo.LeftArm.Cache*CFrame.Angles(0,0,0)
  418. LerpTo.RightLeg.To=LerpTo.RightLeg.Cache*CFrame.Angles(0,0,0)
  419. LerpTo.LeftLeg.To=LerpTo.LeftLeg.Cache*CFrame.Angles(0,0,0)
  420. end
  421. if dance == 32 then
  422. anglespeed = 4
  423. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-sin(angle)*0.2,0)
  424. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,sin(angle)*0.2)
  425. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(80)+sin(angle)*0.2,0,-rad(50)) *CFrame.new(0,-.5,0)
  426. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90)+sin(angle)*0.2,0,rad(50))*CFrame.new(0,-.5,0)
  427. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(0,0,rad(20)+sin(angle)*0.5) *CFrame.new(0,abs(sin(angle))*0.3,0)
  428. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(0,0,-rad(20)+sin(angle)*0.5) *CFrame.new(0,abs(sin(angle))*0.3,0)
  429. end
  430. if dance == 33 then
  431. anglespeed = 4
  432. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-sin(angle)*0.2,0)
  433. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,sin(angle)*0.2) * CFrame.new(0,0,-abs(sin(angle))*0.4)
  434. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(180)+sin(angle)*1,0,sin(angle)*1)
  435. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90)+sin(angle)*0.2,0,rad(50))*CFrame.new(0,-.5,0)
  436. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(0,0,rad(20)+sin(angle)*0.5) *CFrame.new(0,abs(sin(angle))*0.3,0)
  437. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(0,0,-rad(20)+sin(angle)*0.5) *CFrame.new(0,abs(sin(angle))*0.3,0)
  438. end
  439. if dance == 34 then
  440. anglespeed = 3
  441. LerpTo.Neck.To=LerpTo.Neck.Cache*CFrame.Angles(rad(25),0,0)
  442. LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(rad(25),0,sin(angle)*.2)
  443. LerpTo.RightArm.To=LerpTo.RightArm.Cache*CFrame.Angles(rad(90)-sin(angle)*.2,rad(0),rad(0))
  444. LerpTo.LeftArm.To=LerpTo.LeftArm.Cache*CFrame.Angles(rad(90)+sin(angle)*.2,rad(0),rad(0))
  445. LerpTo.RightLeg.To=LerpTo.RightLeg.Cache*CFrame.Angles(rad(25),0,0)
  446. LerpTo.LeftLeg.To=LerpTo.LeftLeg.Cache*CFrame.Angles(rad(25),0,0)
  447. end
  448. if dance == 35 then
  449. anglespeed = 3
  450. LerpTo.Neck.To=LerpTo.Neck.Cache*CFrame.Angles(0,0,0)
  451. LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(0,0,0)
  452. LerpTo.RightArm.To=LerpTo.RightArm.Cache*CFrame.Angles(rad(100),rad(35),rad(75))
  453. LerpTo.LeftArm.To=LerpTo.LeftArm.Cache*CFrame.Angles(rad(75)+sin(angle)*.5,0,rad(75))*CFrame.new(0,-.75+sin(angle)*.2,0)
  454. LerpTo.RightLeg.To=LerpTo.RightLeg.Cache*CFrame.Angles(0,0,0)
  455. LerpTo.LeftLeg.To=LerpTo.LeftLeg.Cache*CFrame.Angles(0,0,0)
  456. end
  457. if dance == 36 then
  458. anglespeed = 3
  459. LerpTo.Neck.To=LerpTo.Neck.Cache*CFrame.Angles(-rad(25),0,0)
  460. LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(0,0,0)
  461. LerpTo.RightArm.To=LerpTo.RightArm.Cache*CFrame.Angles(rad(90)-abs(sin(angle))*.5,0,sin(angle)*1.75)
  462. LerpTo.LeftArm.To=LerpTo.LeftArm.Cache*CFrame.Angles(rad(90)-abs(sin(angle)) * .25,0,sin(angle)*1.5)
  463. LerpTo.RightLeg.To=LerpTo.RightLeg.Cache*CFrame.Angles(0,0,0)
  464. LerpTo.LeftLeg.To=LerpTo.LeftLeg.Cache*CFrame.Angles(0,0,0)
  465. end
  466. if dance == 37 then
  467. anglespeed = 2
  468. LerpTo.Neck.To=LerpTo.Neck.Cache*CFrame.Angles(rad(15),sin(angle)*.75,0)
  469. LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(0,0,0)
  470. LerpTo.RightArm.To=LerpTo.RightArm.Cache*CFrame.Angles(rad(90)+abs(sin(angle))*1,rad(15),-rad(15))
  471. LerpTo.LeftArm.To=LerpTo.LeftArm.Cache*CFrame.Angles(rad(90)+abs(sin(angle))*1,-rad(15),rad(15))
  472. LerpTo.RightLeg.To=LerpTo.RightLeg.Cache*CFrame.Angles(0,-abs(sin(angle))*.2,0)
  473. LerpTo.LeftLeg.To=LerpTo.LeftLeg.Cache*CFrame.Angles(0,abs(sin(angle))*.2,0)
  474. end
  475. if dance == 38 then
  476. anglespeed = 2
  477. LerpTo.Neck.To=LerpTo.Neck.Cache*CFrame.Angles(rad(15),0,0)
  478. LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(0,0,sin(angle)*1)
  479. LerpTo.RightArm.To=LerpTo.RightArm.Cache*CFrame.Angles(0,0,rad(90)+sin(angle)*1)
  480. LerpTo.LeftArm.To=LerpTo.LeftArm.Cache*CFrame.Angles(0,0,-rad(90)-sin(angle)*1)
  481. LerpTo.RightLeg.To=LerpTo.RightLeg.Cache*CFrame.Angles(0,0,0)
  482. LerpTo.LeftLeg.To=LerpTo.LeftLeg.Cache*CFrame.Angles(0,0,0)
  483. end
  484. if dance == 39 then
  485. anglespeed = 2
  486. LerpTo.Neck.To=LerpTo.Neck.Cache*CFrame.Angles(0,0,0)
  487. LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(0,0,0)
  488. LerpTo.RightArm.To=LerpTo.RightArm.Cache*CFrame.Angles(rad(180),0,sin(angle)*.25)
  489. LerpTo.LeftArm.To=LerpTo.LeftArm.Cache*CFrame.Angles(rad(180),0,sin(angle)*.25)
  490. LerpTo.RightLeg.To=LerpTo.RightLeg.Cache*CFrame.Angles(0,0,0)
  491. LerpTo.LeftLeg.To=LerpTo.LeftLeg.Cache*CFrame.Angles(0,0,0)
  492. end
  493. if dance == 40 then
  494. anglespeed = 2
  495. LerpTo.Neck.To=LerpTo.Neck.Cache*CFrame.Angles(0,-abs(sin(angle))*.75,0)
  496. LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(0,0,abs(sin(angle))*.75)
  497. LerpTo.RightArm.To=LerpTo.RightArm.Cache*CFrame.Angles(rad(90),0,abs(sin(angle))*.75)
  498. LerpTo.LeftArm.To=LerpTo.LeftArm.Cache*CFrame.Angles(0,0,-abs(sin(angle))*.25)
  499. LerpTo.RightLeg.To=LerpTo.RightLeg.Cache*CFrame.Angles(0,0,0)
  500. LerpTo.LeftLeg.To=LerpTo.LeftLeg.Cache*CFrame.Angles(0,0,0)
  501. end
  502. if dance == 41 then
  503. anglespeed = 1
  504. LerpTo.Neck.To=LerpTo.Neck.Cache*CFrame.Angles(0,0,0)
  505. LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(0,0,0)
  506. LerpTo.RightArm.To=LerpTo.RightArm.Cache*CFrame.Angles(rad(135)-abs(sin(angle))*2.75,0,rad(25)-abs(sin(angle))*.5)
  507. LerpTo.LeftArm.To=LerpTo.LeftArm.Cache*CFrame.Angles(rad(135)-abs(sin(angle))*2.75,0,-rad(25)+abs(sin(angle))*.5)
  508. LerpTo.RightLeg.To=LerpTo.RightLeg.Cache*CFrame.Angles(0,0,0)
  509. LerpTo.LeftLeg.To=LerpTo.LeftLeg.Cache*CFrame.Angles(0,0,0)
  510. end
  511. if dance == 42 then
  512. anglespeed = 4
  513. LerpTo.Neck.To=LerpTo.Neck.Cache*CFrame.Angles(rad(45)+sin(angle)*.5,0,0)
  514. LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(rad(45)+sin(angle)*.5,0,0)
  515. LerpTo.RightArm.To=LerpTo.RightArm.Cache*CFrame.Angles(rad(45)+sin(angle)*.5,0,-rad(15))
  516. LerpTo.LeftArm.To=LerpTo.LeftArm.Cache*CFrame.Angles(rad(45)+sin(angle)*.5,0,rad(15))
  517. LerpTo.RightLeg.To=LerpTo.RightLeg.Cache*CFrame.Angles(rad(45)+sin(angle)*.5,0,rad(5))
  518. LerpTo.LeftLeg.To=LerpTo.LeftLeg.Cache*CFrame.Angles(rad(45)+sin(angle)*.5,0, -rad(5))
  519. end
  520. if dance == 43 then
  521. anglespeed = 3
  522. LerpTo.Neck.To=LerpTo.Neck.Cache*CFrame.Angles(0,-math.cos(0,360)*angle,0)
  523. LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(0,0,math.cos(0,360)*angle)
  524. LerpTo.RightArm.To=LerpTo.RightArm.Cache*CFrame.Angles(0,0,rad(135))
  525. LerpTo.LeftArm.To=LerpTo.LeftArm.Cache*CFrame.Angles(0,0,-rad(135))
  526. LerpTo.RightLeg.To=LerpTo.RightLeg.Cache*CFrame.Angles(0,0,-rad(15))
  527. LerpTo.LeftLeg.To=LerpTo.LeftLeg.Cache*CFrame.Angles(0,0,rad(15))
  528. end
  529. if dance == 44 then
  530. anglespeed = 2
  531. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(math.pi/10-math.abs(math.sin(angle))*0.3,0, 0)
  532. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache*CFrame.new(math.sin(angle)*2,0,0) * CFrame.Angles(math.pi/20,0,-math.sin(angle)*.5)
  533. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(math.pi/3+math.abs(math.sin(angle)*.5), math.pi/20, -math.pi/20)
  534. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(math.pi/3+math.abs(math.sin(angle)*.5), -math.pi/20, math.pi/20)
  535. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(math.pi/20+math.sin(angle)*0.2, math.sin(angle)*0.08, math.rad(2.5))
  536. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(math.pi/20-math.sin(angle)*0.2, -math.sin(angle)*0.08, -math.rad(2.5))
  537. end
  538. if dance == 45 then
  539. LerpTo.Neck.To=LerpTo.Neck.Cache*CFrame.Angles(0,rad(75),rad(0))
  540. LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(0,0,-rad(75))
  541. LerpTo.RightArm.To=LerpTo.RightArm.Cache*CFrame.Angles(rad(45),0,-rad(25))
  542. LerpTo.LeftArm.To=LerpTo.LeftArm.Cache*CFrame.Angles(rad(50),0,rad(75))
  543. LerpTo.RightLeg.To=LerpTo.RightLeg.Cache*CFrame.Angles(-rad(15),0,rad(5))*CFrame.new(0,.5,0)
  544. LerpTo.LeftLeg.To=LerpTo.LeftLeg.Cache*CFrame.Angles(-rad(10),0,-rad(6))*CFrame.new(0,.5,0)
  545. end
  546. if dance == 46 then
  547. LerpTo.Neck.To=LerpTo.Neck.Cache*CFrame.Angles(0,0,rad(0))
  548. LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(0,0,0)
  549. LerpTo.RightArm.To=LerpTo.RightArm.Cache*CFrame.Angles(rad(135),0,-rad(45))
  550. LerpTo.LeftArm.To=LerpTo.LeftArm.Cache*CFrame.Angles(-rad(15),0,rad(15))
  551. LerpTo.RightLeg.To=LerpTo.RightLeg.Cache*CFrame.Angles(0,0,0)
  552. LerpTo.LeftLeg.To=LerpTo.LeftLeg.Cache*CFrame.Angles(0,0,0)
  553. end
  554. if dance == 47 then
  555. anglespeed = 4
  556. LerpTo.Neck.To=LerpTo.Neck.Cache*CFrame.Angles(0,0,rad(0))
  557. LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(0,0,sin(angle)*.4)
  558. LerpTo.RightArm.To=LerpTo.RightArm.Cache*CFrame.Angles(sin(angle)*.4,0,0)
  559. LerpTo.LeftArm.To=LerpTo.LeftArm.Cache*CFrame.Angles(-sin(angle)*.4,0,0)
  560. LerpTo.RightLeg.To=LerpTo.RightLeg.Cache*CFrame.Angles(-sin(angle)*.4,0,0)
  561. LerpTo.LeftLeg.To=LerpTo.LeftLeg.Cache*CFrame.Angles(sin(angle)*.4,0,0)
  562. end
  563. end
  564. end
  565. local pgui = plr.PlayerGui
  566. local scg = Instance.new("ScreenGui",pgui)
  567. local scf = Instance.new("ScrollingFrame",scg)
  568. scf.Size=UDim2.new(0,200,0,1000)
  569. scf.Position=UDim2.new(.6,0,0,0)
  570. scf.CanvasSize=UDim2.new(0,200,0,10000)
  571. addbutton = function(x,y,text,songid,pitch,newdance)
  572. if pitch ~= nil then
  573. local gui = Instance.new("TextButton",scf)
  574. gui.Size=UDim2.new(0,200,0,25)
  575. gui.Position=UDim2.new(0,x,0,y)
  576. gui.BackgroundTransparency=1
  577. gui.Text=text
  578. gui.FontSize="Size12"
  579. gui.MouseButton1Click:connect(function()
  580. if dance > 0 then
  581. dance = 0
  582. Song('0')
  583. anim = true
  584. elseif dance == 0 then
  585. Song(songid,pitch)
  586. anim = false
  587. wait()
  588. dance = newdance
  589. end
  590. end)
  591. end
  592. end
  593.  
  594.  
  595.  
  596. addbutton(0,0,'Dance1','340069097',1,1)
  597. addbutton(0,25,'Dance2','218530627',1,2)
  598. addbutton(0,50,'Dance3','539275200',1,3)
  599. addbutton(0,75,'Dance4','325559646',1,4)
  600. addbutton(0,100,'Dance5','234695144',1,5)
  601. addbutton(0,125,'Dance6','559022031',1,25)
  602. addbutton(0,150,'Dance7','530568836',1,26)
  603. addbutton(0,175,'Dance8','528358538',1,6)
  604. addbutton(0,200,'Dance9','516825930',1,2)
  605. addbutton(0,225,'Dance10','150455860',1,7)
  606. addbutton(0,250,'Dance11','274044040',1,8)
  607. addbutton(0,275,'Dance12','224905199',1,9)
  608. addbutton(0,300,'Dance13','130795320',1,10)
  609. addbutton(0,325,'Dance14','220951545',1,11)
  610. addbutton(0,350,'Dance15','229845528',1,12)
  611. addbutton(0,375,'Dance16','130775431',1,5)
  612. addbutton(0,400,'Dance17','130791919',1,27)
  613. addbutton(0,425,'Dance18','142798479',1,28)
  614. addbutton(0,450,'Dance19','510664203',1,29)
  615. addbutton(0,475,'Dance20','131496076',1,30)
  616. addbutton(0,500,'Dance21','160404345',1,31)
  617. addbutton(0,525,'Dance22','154479412',1,32)
  618. addbutton(0,550,'Dance23','130844430',1,32)
  619. addbutton(0,575,'Dance24','165334666',1,33)
  620. addbutton(0,600,'Dance25','235467051',1,33)
  621. addbutton(0,625,'Dance26','192089439',1,34)
  622. addbutton(0,650,'Dance27','146366469',1,35)
  623. addbutton(0,675,'Dance28','174091492',1,36)
  624. addbutton(0,700,'Dance29','173120541',1,36)
  625. addbutton(0,725,'Dance30','249430669',1,35)
  626. addbutton(0,750,'Dance31','143620887',1,37)
  627. addbutton(0,775,'Dance32','149446826',1,25)
  628. addbutton(0,800,'Dance33','335427761',1,7)
  629. addbutton(0,825,'Dance34','434403768',1,7)
  630. addbutton(0,850,'Dance35','439906192',1,7)
  631. addbutton(0,875,'Dance36','177080835',1,7)
  632. addbutton(0,900,'Dance37','178297940',1,7)
  633. addbutton(0,925,'Dance38','246333259',1,1)
  634. addbutton(0,950,'Dance39','142314739',1,1)
  635. addbutton(0,975,'Dance40','160525520',1,4)
  636. addbutton(0,1000,'Dance41','178129014',1,37)
  637. addbutton(0,1025,'Dance42','130776150',1,1)
  638. addbutton(0,1050,'Dance43','247346728',1,35)
  639. addbutton(0,1075,'Dance44','273323565',1,33)
  640. addbutton(0,1100,'Dance45','157460849',1,38)
  641. addbutton(0,1125,'Dance46','149069781',1,38)
  642. addbutton(0,1150,'Dance47','175939350',1,37)
  643. addbutton(0,1175,'Dance48','142761485',1,39)
  644. addbutton(0,1200,'Dance49','232544821',1,40)
  645. addbutton(0,1225,'Dance50','151696876',1,41)
  646. addbutton(0,1250,'Dance51','173694098',1,7)
  647. addbutton(0,1275,'Dance52','263165090',1,36)
  648. addbutton(0,1300,'Dance53','142657040',1,25)
  649. addbutton(0,1325,'Dance54','176914323',1,42)
  650. addbutton(0,1350,'Dance55','142401311',.53,43)
  651. addbutton(0,1375,'Dance56','133061687',1,6)
  652. addbutton(0,1400,'Dance57','156055345',1,6)
  653. addbutton(0,1425,'Dance58','146048136',1,44)
  654. addbutton(0,1450,'Dance59','252754586',1,7)
  655. addbutton(0,1475,'Dance60','153406097',1,2)
  656. addbutton(0,1500,'Dance61','181767298',1,45)
  657. addbutton(0,1525,'Dance62','316014309',1,6)
  658. addbutton(0,1550,'Dance63','276829306',1,36)
  659. addbutton(0,1575,'Dance64','143632950',1,33)
  660. addbutton(0,1600,'Dance65','600993406',1,5)
  661. addbutton(0,1625,'Dance66','511936993',1,46)
  662. addbutton(0,1650,'Dance67','142633540',1,47)
  663. addbutton(0,1675,'Dance68','219789082',1,6)
  664. addbutton(0,1700,'Dance69','325712747',1,35)
  665.  
  666.  
  667. local hue = 0
  668.  
  669. function HSV(H,S,V)
  670. H = H % 360
  671. local C = V * S
  672. local H2 = H/60
  673. local X = C * (1 - math.abs((H2 %2) -1))
  674. local color = Color3.new(0,0,0)
  675. if H2 <= 0 then
  676. color = Color3.new(C,0,0)
  677. elseif 0 <= H2 and H2 <= 1 then
  678. color = Color3.new(C,X,0)
  679. elseif 1 <= H2 and H2 <= 2 then
  680. color = Color3.new(X,C,0)
  681. elseif 2 <= H2 and H2 <= 3 then
  682. color = Color3.new(0,C,X)
  683. elseif 3 <= H2 and H2 <= 4 then
  684. color = Color3.new(0,X,C)
  685. elseif 4 <= H2 and H2 <= 5 then
  686. color = Color3.new(X,0,C)
  687. elseif 5 <= H2 and H2 <= 6 then
  688. color = Color3.new(C,0,X)
  689. end
  690. local m = V - C
  691. return Color3.new(color.r + m, color.g + m, color.b + m)
  692. end
  693.  
  694. for i,v in pairs(chr:GetChildren()) do if v:IsA("Shirt") then v:Destroy() end end
  695. Spawn(function()
  696. while wait()do
  697. angle = (angle % 100) + anglespeed/10 -- no matter whut it has to be in a loop or its on exticy
  698. end
  699. end)
  700. meo=0
  701. sdeb=false
  702. game:service'RunService'.RenderStepped:connect(function()
  703. meo=meo+1
  704. for _,v in pairs(LerpTo) do
  705. v.Weld.C0 = Lerp.CFrame(v.Weld.C0,v.To,v.Speed)end
  706. hue = hue + 3
  707. hue = hue % 360
  708. local clr = HSV(hue,.7,1)
  709. for i,v in pairs(scf:GetChildren()) do
  710. v.TextColor3=Color3.new(clr.r,clr.g,clr.b)
  711. end
  712. updateanims()
  713. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement