Coolskidooowhd

Untitled

Mar 13th, 2026
10,378
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 42.07 KB | None | 0 0
  1. -----------//KRYSTAL DANCE V2 (in pastebin)\\-----------
  2. --[[Movelist
  3. Q = The Swoosher
  4. E = The nutty
  5. R = Spin me right round!
  6. T = Plum juice dance
  7. Y = Moonwalk
  8. U = Slav dance
  9. P = Barrel roll
  10. F = The Jerky
  11. G = The Shuffle
  12. H = The Spongebob
  13. J = Here comes the money!
  14. K = Runnin' in the 90's
  15. ---------]]
  16.  
  17. Player=game:GetService("Players").LocalPlayer
  18. Character=Player.Character
  19. hum = Character.Humanoid
  20. LeftArm=Character["Left Arm"]
  21. LeftLeg=Character["Left Leg"]
  22. RightArm=Character["Right Arm"]
  23. RightLeg=Character["Right Leg"]
  24. Root=Character["HumanoidRootPart"]
  25. Head=Character["Head"]
  26. Torso=Character["Torso"]
  27. Neck=Torso["Neck"]
  28. mouse = Player:GetMouse()
  29. walking = false
  30. jumping = false
  31. attacking = false
  32. firsttime = false
  33. tauntdebounce = false
  34. position = nil
  35. MseGuide = true
  36. running = false
  37. settime = 0
  38. sine = 0
  39. t = 0
  40. ws = 14
  41. change = 1
  42. combo1 = true
  43. dancing = false
  44. equip = false
  45. dgs = 75
  46. combo2 = false
  47. switch1 = true
  48. switch2 = false
  49. firsttime2 = false
  50. combo3 = false
  51. gunallowance = false
  52. shooting = false
  53. RunSrv = game:GetService("RunService")
  54. RenderStepped = game:GetService("RunService").RenderStepped
  55. removeuseless = game:GetService("Debris")
  56.  
  57. screenGui = Instance.new("ScreenGui")
  58. screenGui.Parent = script.Parent
  59.  
  60. local HEADLERP = Instance.new("ManualWeld")
  61. HEADLERP.Parent = Head
  62. HEADLERP.Part0 = Head
  63. HEADLERP.Part1 = Head
  64. HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  65.  
  66. local TORSOLERP = Instance.new("ManualWeld")
  67. TORSOLERP.Parent = Root
  68. TORSOLERP.Part0 = Torso
  69. TORSOLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  70.  
  71. local ROOTLERP = Instance.new("ManualWeld")
  72. ROOTLERP.Parent = Root
  73. ROOTLERP.Part0 = Root
  74. ROOTLERP.Part1 = Torso
  75. ROOTLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  76.  
  77. local RIGHTARMLERP = Instance.new("ManualWeld")
  78. RIGHTARMLERP.Parent = RightArm
  79. RIGHTARMLERP.Part0 = RightArm
  80. RIGHTARMLERP.Part1 = Torso
  81. RIGHTARMLERP.C0 = CFrame.new(-1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  82.  
  83. local LEFTARMLERP = Instance.new("ManualWeld")
  84. LEFTARMLERP.Parent = LeftArm
  85. LEFTARMLERP.Part0 = LeftArm
  86. LEFTARMLERP.Part1 = Torso
  87. LEFTARMLERP.C0 = CFrame.new(1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  88.  
  89. local RIGHTLEGLERP = Instance.new("ManualWeld")
  90. RIGHTLEGLERP.Parent = RightLeg
  91. RIGHTLEGLERP.Part0 = RightLeg
  92. RIGHTLEGLERP.Part1 = Torso
  93. RIGHTLEGLERP.C0 = CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  94.  
  95. local LEFTLEGLERP = Instance.new("ManualWeld")
  96. LEFTLEGLERP.Parent = LeftLeg
  97. LEFTLEGLERP.Part0 = LeftLeg
  98. LEFTLEGLERP.Part1 = Torso
  99. LEFTLEGLERP.C0 = CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  100.  
  101. local function weldBetween(a, b)
  102.     local weld = Instance.new("ManualWeld", a)
  103.     weld.Part0 = a
  104.     weld.Part1 = b
  105.     weld.C0 = a.CFrame:inverse() * b.CFrame
  106.     return weld
  107. end
  108.  
  109. function MAKETRAIL(PARENT,POSITION1,POSITION2,LIFETIME,COLOR)
  110.     A = Instance.new("Attachment", PARENT)
  111.     A.Position = POSITION1
  112.     A.Name = "A"
  113.     B = Instance.new("Attachment", PARENT)
  114.     B.Position = POSITION2
  115.     B.Name = "B"
  116.     tr1 = Instance.new("Trail", PARENT)
  117.     tr1.Attachment0 = A
  118.     tr1.Attachment1 = B
  119.     tr1.Enabled = true
  120.     tr1.Lifetime = LIFETIME
  121.     tr1.TextureMode = "Static"
  122.     tr1.LightInfluence = 0
  123.     tr1.Color = COLOR
  124.     tr1.Transparency = NumberSequence.new(0, 1)
  125. end
  126.  
  127. introsound = Instance.new("Sound",Head)
  128. introsound.SoundId = "rbxassetid://236146895"
  129. introsound.Volume = 8
  130. introsound:Play()
  131.  
  132.  
  133. fedora = Instance.new("Part",Character)
  134. fedora.Size = Vector3.new(2,2,2)
  135. fedora.CFrame = Head.CFrame
  136. fedora.CanCollide = false
  137. fedora.Transparency = 1
  138. fedoraweld = Instance.new("Weld",fedora)
  139. fedoraweld.Part0 = fedora
  140. fedoraweld.Part1 = Head
  141. fedoraweld.C0 = fedora.CFrame:inverse() * Head.CFrame * CFrame.new(0,-.75,0)
  142.  
  143.  
  144. for i,v in pairs(Character:GetChildren()) do
  145.     if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "Hat" or v.ClassName == "CharacterMesh" or v.ClassName == "Shirt Graphic" then
  146.         v:Remove()
  147.     end
  148. end
  149.  
  150. coroutine.wrap(function()
  151.     while wait() do
  152.         hum.WalkSpeed = ws
  153.     end
  154. end)()
  155. godmode = coroutine.wrap(function()
  156.     for i,v in pairs(Character:GetChildren()) do
  157.         if v:IsA("BasePart") and v ~= Root then
  158.             v.Anchored = false
  159.         end
  160.     end
  161. end)
  162. godmode()
  163.  
  164. coroutine.wrap(function()
  165.     for i,v in pairs(Character:GetChildren()) do
  166.         if v.Name == "Animate" then v:Remove()
  167.         end
  168.     end
  169. end)()
  170.  
  171. ArtificialHB = Instance.new("BindableEvent", script)
  172. ArtificialHB.Name = "Heartbeat"
  173. script:WaitForChild("Heartbeat")
  174.  
  175. frame = 1 / 60
  176. tf = 0
  177. allowframeloss = false
  178. tossremainder = false
  179.  
  180.  
  181. lastframe = tick()
  182. script.Heartbeat:Fire()
  183.  
  184.  
  185. game:GetService("RunService").Heartbeat:connect(function(s, p)
  186.     tf = tf + s
  187.     if tf >= frame then
  188.         if allowframeloss then
  189.             script.Heartbeat:Fire()
  190.             lastframe = tick()
  191.         else
  192.             for i = 1, math.floor(tf / frame) do
  193.                 script.Heartbeat:Fire()
  194.             end
  195.             lastframe = tick()
  196.         end
  197.         if tossremainder then
  198.             tf = 0
  199.         else
  200.             tf = tf - frame * math.floor(tf / frame)
  201.         end
  202.     end
  203. end)
  204.  
  205. function swait(num)
  206.     if num == 0 or num == nil then
  207.         game:service("RunService").Stepped:wait(0)
  208.     else
  209.         for i = 0, num do
  210.             game:service("RunService").Stepped:wait(0)
  211.         end
  212.     end
  213. end
  214.  
  215. for _,n in pairs(Character:GetChildren()) do
  216.     if n:IsA("Accessory") then end
  217. end
  218. for _,x in pairs(Character:GetChildren()) do
  219.     if x:IsA("Decal") then x:Remove() end
  220. end
  221.  
  222. intro = true
  223. ws = 0
  224.  
  225. bigfedora = Instance.new("Part",Character)
  226. bigfedora.Size = Vector3.new(2,2,2)
  227. bigfedora.CFrame = bigfedora.CFrame:inverse() * Root.CFrame * CFrame.new(math.random(-60,60),-.2,math.random(-60,60)) * CFrame.Angles(0,math.rad(math.random(-180,180)),0)
  228. bigfedora.CanCollide = false
  229. bigfedora.Anchored = true
  230. bigfedora.Transparency = 1
  231. bigfedora.Name = "mbigf"
  232. mbigfedora = Instance.new("SpecialMesh", bigfedora)
  233. mbigfedora.MeshType = "FileMesh"
  234. mbigfedora.Scale = Vector3.new(6, 7, 7)
  235. mbigfedora.MeshId,mbigfedora.TextureId = 'http://www.roblox.com/asset/?id=13640868','http://www.roblox.com/asset/?id=18987684'
  236. for i = 1, 60 do
  237.     bigfedora.CFrame = bigfedora.CFrame:lerp(CFrame.new(Root.Position) * CFrame.new(0,-.1,0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.09)
  238.     swait()
  239. end
  240. wait(.25)
  241. for i = 1, 50 do
  242.     bigfedora.CFrame = bigfedora.CFrame:lerp(CFrame.new(fedora.Position),.05)
  243.     swait()
  244. end
  245. zmc = 0
  246. for i = 1, 29 do
  247.     zmc = zmc + 2
  248.     mbigfedora.Scale = mbigfedora.Scale - Vector3.new(.25,.25,.25)
  249.     bigfedora.CFrame = bigfedora.CFrame * CFrame.Angles(math.rad(0),math.rad(zmc),0)
  250.     swait()
  251. end
  252. bigfedora:Remove()
  253.  
  254. ws = 14
  255.  
  256. function SOUND(PARENT,ID,VOL,LOOP,REMOVE)
  257.     so = Instance.new("Sound")
  258.     so.Parent = PARENT
  259.     so.SoundId = "rbxassetid://"..ID
  260.     so.Volume = VOL
  261.     so.Looped = LOOP
  262.  
  263.     so:Play()
  264.     removeuseless:AddItem(so,REMOVE)
  265. end
  266.  
  267. mouse.KeyDown:connect(function(Press)
  268.     Press=Press:lower()
  269.     if Press=='k' then
  270.         if dancing then
  271.             dancing = false
  272.         else
  273.             dancing = true
  274.             ws = 0
  275.             change = .5
  276.             attacking = true
  277.             jam = Instance.new("Sound",Torso)
  278.             jam.SoundId = "rbxassetid://665751753"
  279.             jam.Volume = 8
  280.             jam.Looped = true
  281.             jam.TimePosition = 22.3
  282.             jam:Play()
  283.             lol90 = 0
  284.             coroutine.wrap(function()
  285.                 while dancing do
  286.                     lol90 = lol90 + 11
  287.                     ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(1 * math.sin(sine/10),.1 + .8 * math.sin(sine/3),0) * CFrame.Angles(math.rad(0),math.rad(0 * math.sin(sine/8)),math.rad(8 * math.sin(sine/7))),.25)
  288.                     ROOTLERP.C1 = ROOTLERP.C1:lerp(CFrame.new(0 * math.sin(sine/14),0,0) * CFrame.Angles(math.rad(0),math.rad(lol90),0),.25)
  289.                     LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.4,1.45,0) * CFrame.Angles(math.rad(180),math.rad(-5 * math.sin(sine/3)),math.rad(-6 * math.sin(sine/3))),0.25)
  290.                     RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.4,1.45,0) * CFrame.Angles(math.rad(180),math.rad(5 * math.sin(sine/3)),math.rad(6 * math.sin(sine/3))), 0.25)
  291.                     RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 , 0) * CFrame.Angles(0, math.rad(0), math.rad(-10 + 5 * math.sin(sine/3))), 0.25)
  292.                     LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0, 0) * CFrame.Angles(0, math.rad(0), math.rad(10 - 5 * math.sin(sine/3))), 0.25)
  293.                     swait()
  294.                 end
  295.                 ws = 14
  296.                 jam:Remove()
  297.                 ROOTLERP.C1 = CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  298.                 attacking = false
  299.             end)()
  300.         end
  301.     end
  302. end)
  303.  
  304. mouse.KeyDown:connect(function(Press)
  305.     Press=Press:lower()
  306.     if Press=='j' then
  307.         if dancing then
  308.             dancing = false
  309.         else
  310.             dancing = true
  311.             ws = 3
  312.             change = .5
  313.             attacking = true
  314.             g1 = Instance.new("BodyGyro", Root)
  315.             g1.D = 175
  316.             g1.P = 20000
  317.             g1.MaxTorque = Vector3.new(0,9000,0)
  318.             herecomesthemoney = Instance.new("Sound",Torso)
  319.             herecomesthemoney.Pitch = 1
  320.             herecomesthemoney.SoundId = "rbxassetid://2426693638"
  321.             herecomesthemoney.Volume = 8
  322.             herecomesthemoney.Looped = true
  323.             herecomesthemoney:Play()
  324.             robuxpile = Instance.new("Part",Torso)
  325.             robuxpile.Transparency = 1
  326.             robuxpile.Size = Vector3.new(1,1,1)
  327.             robuxpile.CFrame = LeftArm.CFrame
  328.             robuxpile.CanCollide = false
  329.             robuxpileweld = Instance.new("Weld",robuxpile)
  330.             robuxpileweld.Part0 = robuxpile
  331.             robuxpileweld.Part1 = Torso
  332.             robuxpileweld.C0 = robuxpile.CFrame:inverse() * LeftArm.CFrame * CFrame.new(1,-.7,1.4)
  333.             mrobuxpile = Instance.new("SpecialMesh", robuxpile)
  334.             mrobuxpile.MeshType = "FileMesh"
  335.             mrobuxpile.Scale = Vector3.new(0.85, .85, .85)
  336.             mrobuxpile.MeshId,mrobuxpile.TextureId = 'http://www.roblox.com/asset/?id=1285245','http://www.roblox.com/asset/?id=8587344'
  337.             coroutine.wrap(function()
  338.                 coroutine.wrap(function()
  339.                     while wait(.35) do
  340.                         if not dancing then break end
  341.                         local robux = Instance.new("Part",Torso)
  342.                         robux.CFrame = robuxpile.CFrame * CFrame.Angles(math.rad(0),math.rad(90),math.rad(90))
  343.                         robux.Anchored = false
  344.                         robux.Transparency = 1
  345.                         robux.CanCollide = false
  346.                         robux.Size = Vector3.new(1,1,1)
  347.                         removeuseless:AddItem(robux,4)
  348.                         mrobux = Instance.new("SpecialMesh", robux)
  349.                         mrobux.MeshType = "FileMesh"
  350.                         mrobux.Scale = Vector3.new(1.25, 1.25, 1.25)
  351.                         mrobux.MeshId,mrobux.TextureId = 'http://www.roblox.com/asset/?id=667285348','http://www.roblox.com/asset/?id=665939136'
  352.                         bov = Instance.new("BodyVelocity",robux)
  353.                         bov.maxForce = Vector3.new(99999,99999,99999)
  354.                         robux.CFrame = CFrame.new(robux.Position,mouse.Hit.p)
  355.                         bov.velocity = robux.CFrame.lookVector*45
  356.                         removeuseless:AddItem(bov,.1)
  357.                     end
  358.                 end)()
  359.                 while dancing do
  360.                     g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.4)
  361.                     ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(0,-.3,0) * CFrame.Angles(math.rad(20),math.rad(0 * math.sin(sine/8)),math.rad(0)),.25)
  362.                     LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,.5 + .5 * math.sin(sine/2),.5) * CFrame.Angles(math.rad(-97),math.rad(40 - 20 * math.sin(sine/2)),math.rad(0)), 0.25)
  363.                     RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1,.5,.5) * CFrame.Angles(math.rad(-87),math.rad(-20),math.rad(0)), 0.25)
  364.                     RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 , .5) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(-10)), 0.25)
  365.                     LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0, .5) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(10)), 0.25)
  366.                     swait()
  367.                 end
  368.                 ws = 14
  369.                 removeuseless:AddItem(g1,.001)
  370.                 robuxpile:Remove()
  371.                 attacking = false
  372.             end)()
  373.         end
  374.     end
  375. end)
  376.  
  377. mouse.KeyDown:connect(function(Press)
  378.     Press=Press:lower()
  379.     if Press=='h' then
  380.         if dancing then
  381.             dancing = false
  382.         else
  383.             dancing = true
  384.             ws = 0
  385.             change = .5
  386.             attacking = true
  387.             jellyfishjam = Instance.new("Sound",Torso)
  388.             jellyfishjam.SoundId = "rbxassetid://840189092"
  389.             jellyfishjam.Volume = 8
  390.             jellyfishjam.Looped = true
  391.             jellyfishjam.TimePosition = 14.8
  392.             jellyfishjam:Play()
  393.             coroutine.wrap(function()
  394.                 while dancing do
  395.                     for i = 1, 15 do
  396.                         if not dancing then break end
  397.                         ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(.5,-.4 + .1 * math.sin(sine/4),0) * CFrame.Angles(math.rad(0),math.rad(20 * math.sin(sine/8)),math.rad(20)),.25)
  398.                         RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(50 + 3 * math.sin(sine/12)),math.rad(3 - 1 * math.sin(sine/12))),.3)
  399.                         LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(-50 - 3 * math.sin(sine/12)),math.rad(-3 + 1 * math.sin(sine/12))), .3)
  400.                         RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(0.25, 2.05,-0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-35)), 0.25)
  401.                         LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.31, 2.05,-0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(14)), 0.25)
  402.                         swait()
  403.                     end
  404.                     for i = 1, 15 do
  405.                         if not dancing then break end
  406.                         ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(0,-.1 * math.sin(sine/4),0) * CFrame.Angles(math.rad(0),math.rad(20 * math.sin(sine/8)),math.rad(0)),.25)
  407.                         RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(50 + 3 * math.sin(sine/12)),math.rad(3 - 1 * math.sin(sine/12))),.3)
  408.                         LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(-50 - 3 * math.sin(sine/12)),math.rad(-3 + 1 * math.sin(sine/12))), .3)
  409.                         RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.25, .7,1.5) * CFrame.Angles(math.rad(72), math.rad(25), math.rad(-2)), 0.25)
  410.                         LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0, 0) * CFrame.Angles(0, math.rad(0), math.rad(10)), 0.25)
  411.                         swait()
  412.                     end
  413.                     for i = 1, 15 do
  414.                         if not dancing then break end
  415.                         ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(-.5,-.4 + .1 * math.sin(sine/4),0) * CFrame.Angles(math.rad(0),math.rad(20 * math.sin(sine/8)),math.rad(-20)),.25)
  416.                         RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(50 + 3 * math.sin(sine/12)),math.rad(3 - 1 * math.sin(sine/12))),.3)
  417.                         LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(-50 - 3 * math.sin(sine/12)),math.rad(-3 + 1 * math.sin(sine/12))), .3)
  418.                         RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 , 0) * CFrame.Angles(0, math.rad(0), math.rad(-10)), 0.25)
  419.                         LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(-0.25, 2.05,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(35)), 0.25)
  420.                         swait()
  421.                     end
  422.                     for i = 1, 15 do
  423.                         if not dancing then break end
  424.                         ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(-.5,-.1,0) * CFrame.Angles(math.rad(0),math.rad(20 * math.sin(sine/8)),math.rad(0)),.25)
  425.                         RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(50 + 3 * math.sin(sine/12)),math.rad(3 - 1 * math.sin(sine/12))),.3)
  426.                         LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(-50 - 3 * math.sin(sine/12)),math.rad(-3 + 1 * math.sin(sine/12))), .3)
  427.                         RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.31, 2.05,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-14)), 0.3)
  428.                         LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.25, .7,1.5) * CFrame.Angles(math.rad(72), math.rad(-25), math.rad(-2)), 0.25)
  429.                         swait()
  430.                     end
  431.                     swait()
  432.                 end
  433.                 ws = 14
  434.                 attacking = false
  435.             end)()
  436.         end
  437.     end
  438. end)
  439.  
  440. mouse.KeyDown:connect(function(Press)
  441.     Press=Press:lower()
  442.     if Press=='g' then
  443.         if dancing then
  444.             dancing = false
  445.         else
  446.             dancing = true
  447.             ws = 0
  448.             change = .5
  449.             attacking = true
  450.             deadmau7 = Instance.new("Sound",Torso)
  451.             deadmau7.SoundId = "rbxassetid://168166611"
  452.             deadmau7.Volume = 8
  453.             deadmau7.Looped = true
  454.             deadmau7:Play()
  455.             coroutine.wrap(function()
  456.                 coroutine.wrap(function()
  457.                     while dancing do
  458.                         ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(2 * math.sin(sine/9),-.4 + .1 * math.sin(sine/3),0) * CFrame.Angles(math.rad(0),math.rad(20 * math.sin(sine/9)),0),.25)
  459.                         swait()
  460.                     end
  461.                 end)()
  462.                 while dancing do
  463.                     for i = 1, 28 do
  464.                         if not dancing then break end
  465.                         RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(50 + 3 * math.sin(sine/12)),math.rad(3 - 1 * math.sin(sine/12))),.2)
  466.                         LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.2,1.5,0) * CFrame.Angles(math.rad(180 - 7 * math.sin(sine/3)),math.rad(7 * math.sin(sine/3)),math.rad(7*math.sin(sine/3))), 0.2)
  467.                         RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, .7,1) * CFrame.Angles(math.rad(75 - 10 * math.sin(sine/2)), math.rad(0), math.rad(0)), 0.25)
  468.                         LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.31, 2.05,-.1) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-2)), 0.3)
  469.                         swait()
  470.                     end
  471.                     for i = 1, 28 do
  472.                         if not dancing then break end
  473.                         RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(50 + 3 * math.sin(sine/12)),math.rad(3 - 1 * math.sin(sine/12))),.2)
  474.                         LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.2,1.5,0) * CFrame.Angles(math.rad(180 - 7 * math.sin(sine/3)),math.rad(7 * math.sin(sine/3)),math.rad(7*math.sin(sine/3))), 0.2)
  475.                         RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.31, 2.05,.1) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-8)), 0.25)
  476.                         LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, .7,1.1) * CFrame.Angles(math.rad(75 - 10 * math.sin(sine/2)), math.rad(0), math.rad(-2)), 0.25)
  477.                         swait()
  478.                     end
  479.                     swait()
  480.                 end
  481.                 ws = 14
  482.                 deadmau7:Remove()
  483.                 attacking = false
  484.             end)()
  485.         end
  486.     end
  487. end)
  488.  
  489. mouse.KeyDown:connect(function(Press)
  490.     Press=Press:lower()
  491.     if Press=='f' then
  492.         if dancing then
  493.             dancing = false
  494.         else
  495.             dancing = true
  496.             ws = 6
  497.             change = .5
  498.             attacking = true
  499.             bennyhill = Instance.new("Sound",Torso)
  500.             bennyhill.SoundId = "rbxassetid://138211362"
  501.             bennyhill.Volume = 8
  502.             bennyhill.Looped = true
  503.             bennyhill:Play()
  504.             coroutine.wrap(function()
  505.                 while dancing do
  506.                     ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(0,-.4,0) * CFrame.Angles(math.rad(20 + 5 * math.sin(sine/2)),math.rad(10 * math.sin(sine/4)),0),.25)
  507.                     RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.89 - .4 * -math.sin(sine/2),.49) * CFrame.Angles(math.rad(-70 + 20 * -math.sin(sine/2)),0,math.rad(0)),.25)
  508.                     LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.89 - .4 * math.sin(sine/2),.49) * CFrame.Angles(math.rad(-70  + 20 * math.sin(sine/2)),0,math.rad(0)),.25)
  509.                     RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.33, 2, -.2 + .3 * math.sin(sine/2)) * CFrame.Angles(math.rad(-20 - 20 * -math.sin(sine/2)), math.rad(0), math.rad(-8)), 0.25)
  510.                     LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.33, 2.0,-.2 - .3 * math.sin(sine/2)) * CFrame.Angles(math.rad(-20 - 20 * math.sin(sine/2)), math.rad(0), math.rad(8)), 0.25)
  511.                     swait()
  512.                 end
  513.                 ws = 14
  514.                 bennyhill:Remove()
  515.                 attacking = false
  516.             end)()
  517.         end
  518.     end
  519. end)
  520.  
  521. mouse.KeyDown:connect(function(Press)
  522.     Press=Press:lower()
  523.     if Press=='p' then
  524.         if dancing then
  525.             dancing = false
  526.         else
  527.             dancing = true
  528.             ws = 0
  529.             change = .5
  530.             attacking = true
  531.             barrelspin = 0
  532.             barrelrollsound = Instance.new("Sound",Torso)
  533.             barrelrollsound.SoundId = "rbxassetid://505320170"
  534.             barrelrollsound.Volume = 8
  535.             barrelrollsound.Looped = true
  536.             barrelrollsound:Play()
  537.             barrol = Instance.new("Part",Torso)
  538.             barrol.Transparency = 1
  539.             barrol.Size = Vector3.new(1,1,1)
  540.             barrol.CFrame = Torso.CFrame
  541.             barrol.CanCollide = false
  542.             barrolweld = Instance.new("Weld",barrol)
  543.             barrolweld.Part0 = barrol
  544.             barrolweld.Part1 = Torso
  545.             barrolweld.C0 = barrol.CFrame:inverse() * Torso.CFrame * CFrame.new(0,0,0)
  546.             mbarrol = Instance.new("SpecialMesh", barrol)
  547.             mbarrol.MeshType = "FileMesh"
  548.             mbarrol.Scale = Vector3.new(1.05, .95, 1.05)
  549.             mbarrol.MeshId,mbarrol.TextureId = 'http://www.roblox.com/asset/?id=29873142','http://www.roblox.com/asset/?id=31082268'
  550.             coroutine.wrap(function()
  551.                 while dancing do
  552.                     ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(5 * math.sin(sine/8),-1.8,0) * CFrame.Angles(math.rad(-90),math.rad(180 * math.sin(sine/8)),0),.25)
  553.                     RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,1.5,0) * CFrame.Angles(math.rad(180),0,math.rad(0)),.25)
  554.                     LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,1.5,0) * CFrame.Angles(math.rad(180),0,math.rad(0)),.25)
  555.                     LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(.5,2,0) * CFrame.Angles(0,0,0),.25)
  556.                     RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.5,2,0) * CFrame.Angles(0,0,0),.25)
  557.                     swait()
  558.                 end
  559.                 ws = 14
  560.                 barrol:Remove()
  561.                 attacking = false
  562.             end)()
  563.         end
  564.     end
  565. end)
  566.  
  567. mouse.KeyDown:connect(function(Press)
  568.     Press=Press:lower()
  569.     if Press=='q' then
  570.         if dancing then
  571.             dancing = false
  572.         else
  573.             dancing = true
  574.             ws = 0
  575.             change = .5
  576.             spinningmove = 0
  577.             dbwouldlovethis = Instance.new("Sound",Torso)
  578.             dbwouldlovethis.SoundId = "rbxassetid://1532157598"
  579.             dbwouldlovethis.Volume = 8
  580.             dbwouldlovethis.Looped = true
  581.             dbwouldlovethis:Play()
  582.             attacking = true
  583.             coroutine.wrap(function()
  584.                 while dancing do
  585.                     spinningmove = spinningmove + 10
  586.                     RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.52, 1.9, -.35) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)),.2)
  587.                     LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.52, 1.9, .35) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)),.2)
  588.                     ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(.2 * math.sin(sine/3), -.52, .2 * math.sin(sine/4)) * CFrame.Angles(math.rad(180),math.rad(spinningmove),math.rad(15 * math.sin(sine/9))),.2)
  589.                     LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.4,1.45,0) * CFrame.Angles(math.rad(180),math.rad(-1),math.rad(-3 * math.sin(sine/2))),0.3)
  590.                     RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.4,1.45,0) * CFrame.Angles(math.rad(180),math.rad(1),math.rad(3 * math.sin(sine/2))), 0.3)
  591.                     swait()
  592.                 end
  593.                 ws = 14
  594.                 dbwouldlovethis:Remove()
  595.                 attacking = false
  596.             end)()
  597.         end
  598.     end
  599. end)
  600.  
  601.  
  602. mouse.KeyDown:connect(function(Press)
  603.     Press=Press:lower()
  604.     if Press=='u' then
  605.         if dancing then
  606.             dancing = false
  607.         else
  608.             dancing = true
  609.             ws = 6
  610.             change = .5
  611.             attacking = true
  612.             slavdance = Instance.new("Sound",Torso)
  613.             slavdance.SoundId = "rbxassetid://2341226836"
  614.             slavdance.Volume = 6
  615.             slavdance.Looped = true
  616.             slavdance:Play()
  617.             coroutine.wrap(function()
  618.                 while dancing do
  619.                     for i = 1, 17 do
  620.                         if not dancing then break end
  621.                         RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.52, 1.5, -.5) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)),.2)
  622.                         LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.52, 1.2, .55) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)),.2)
  623.                         ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.8 + .1 * math.sin(sine/3), 0) * CFrame.Angles(math.rad(22 - 2 * math.sin(sine/3)),math.rad(0),math.rad(0)),.2)
  624.                         LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,-.2,.4) * CFrame.Angles(math.rad(-87 + .01 * math.sin(sine/9)),math.rad(80 - 3 * math.sin(sine/9)),math.rad(0)), 0.3)
  625.                         RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.7,-.2,.4) * CFrame.Angles(math.rad(-87 - .01 * math.sin(sine/9)),math.rad(-88 + .7 * math.sin(sine/9)),math.rad(0)), 0.3)
  626.                         swait()
  627.                     end
  628.                     for i = 1, 17 do
  629.                         if not dancing then break end
  630.                         RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.52, 1.2, .55) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)),.2)
  631.                         LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.52, 1.5, -.5) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)),.2)
  632.                         ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.8 + .1 * math.sin(sine/3), 0) * CFrame.Angles(math.rad(22 - 2 * math.sin(sine/3)),math.rad(0),math.rad(0)),.2)
  633.                         LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,-.2,.4) * CFrame.Angles(math.rad(-87 + .01 * math.sin(sine/9)),math.rad(80 - 3 * math.sin(sine/9)),math.rad(0)), 0.3)
  634.                         RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.7,-.2,.4) * CFrame.Angles(math.rad(-87 - .01 * math.sin(sine/9)),math.rad(-88 + .7 * math.sin(sine/9)),math.rad(0)), 0.3)
  635.                         swait()
  636.                     end
  637.                     swait()
  638.                 end
  639.                 ws = 14
  640.                 slavdance:Remove()
  641.                 attacking = false
  642.             end)()
  643.         end
  644.     end
  645. end)
  646.  
  647. mouse.KeyDown:connect(function(Press)
  648.     Press=Press:lower()
  649.     if Press=='y' then
  650.         if dancing then
  651.             dancing = false
  652.         else
  653.             dancing = true
  654.             ws = 0
  655.             change = .5
  656.             walkforward = 0
  657.             walkrotation = 0
  658.             attacking = true
  659.             truelegend = Instance.new("Sound",Torso)
  660.             truelegend.SoundId = "rbxassetid://487872908"
  661.             truelegend.TimePosition = 13.98
  662.             truelegend.Volume = 8
  663.             truelegend.Looped = true
  664.             truelegend:Play()
  665.             coroutine.wrap(function()
  666.                 while dancing do
  667.                     for i = 1, 100 do
  668.                         if not dancing then break end
  669.                         walkforward = walkforward + .1
  670.                         RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.31, 2.05 , .1 * math.sin(sine/4)) * CFrame.Angles(math.rad(10 * math.sin(sine/4)), math.rad(0), math.rad(-8)), 0.3)
  671.                         LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.31, 2.05, -.15 * math.sin(sine/4)) * CFrame.Angles(math.rad(-10 * math.sin(sine/4)), math.rad(0), math.rad(8)), 0.3)
  672.                         ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, walkforward) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  673.                         RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,0,0) * CFrame.Angles(0,0,math.rad(0)),.3)
  674.                         LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,0,0) * CFrame.Angles(0,0,math.rad(0)),.3)
  675.                         swait()
  676.                     end
  677.                     for i = 1, 50 do
  678.                         if not dancing then break end
  679.                         walkrotation = walkrotation + 15
  680.                         ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, walkforward) * CFrame.Angles(math.rad(0),math.rad(walkrotation),math.rad(-0)),.2)
  681.                         swait()
  682.                     end
  683.                     walkrotation = 0
  684.                     for i = 1, 100 do
  685.                         if not dancing then break end
  686.                         walkforward = walkforward - .1
  687.                         RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.31, 2 , .1 * math.sin(sine/4)) * CFrame.Angles(math.rad(10 * math.sin(sine/4)), math.rad(0), math.rad(-8)), 0.3)
  688.                         LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.31, 2, -.15 * math.sin(sine/4)) * CFrame.Angles(math.rad(-10 * math.sin(sine/4)), math.rad(0), math.rad(8)), 0.3)
  689.                         ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, walkforward) * CFrame.Angles(math.rad(0),math.rad(-180),math.rad(-0)),.2)
  690.                         RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.3,.7,.2) * CFrame.Angles(math.rad(220),math.rad(0),math.rad(-30)), 0.4)
  691.                         LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,0,0) * CFrame.Angles(0,0,math.rad(0)),.3)
  692.                         swait()
  693.                     end
  694.                     for i = 1, 50 do
  695.                         if not dancing then break end
  696.                         walkrotation = walkrotation + 15
  697.                         RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,0,0) * CFrame.Angles(0,0,math.rad(0)),.1)
  698.                         ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, walkforward) * CFrame.Angles(math.rad(0),math.rad(walkrotation),math.rad(-0)),.2)
  699.                         swait()
  700.                     end
  701.                     walkrotation = 0
  702.                     swait()
  703.                 end
  704.                 ws = 14
  705.                 truelegend:Remove()
  706.                 attacking = false
  707.             end)()
  708.         end
  709.     end
  710. end)
  711.  
  712. mouse.KeyDown:connect(function(Press)
  713.     Press=Press:lower()
  714.     if Press=='t' then
  715.         if dancing then
  716.             dancing = false
  717.         else
  718.             dancing = true
  719.             ws = 0
  720.             change = .5
  721.             attacking = true
  722.             plummusic = Instance.new("Sound",Torso)
  723.             plummusic.Volume = 8
  724.             plummusic.Looped = true
  725.             plummusic.SoundId = "rbxassetid://2526093213"
  726.             plummusic:Play()
  727.             coroutine.wrap(function()
  728.                 while dancing do
  729.                     for i = 1, 20 do
  730.                         if not dancing then break end
  731.                         RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.33, 2 , .05) * CFrame.Angles(math.rad(3), math.rad(0), math.rad(-8)), 0.2)
  732.                         LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.33, 2.0, -.05) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(8)), 0.2)
  733.                         ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(0),math.rad(0*math.sin(sine/4)),math.rad(15)),.2)
  734.                         RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(.5,1.98,.05) * CFrame.Angles(0,0,math.rad(-140)),.2)
  735.                         LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,1.3,.05) * CFrame.Angles(0,0,math.rad(50)),.2)
  736.                         swait()
  737.                     end
  738.                     for i = 1, 20 do
  739.                         if not dancing then break end
  740.                         RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.33, 2, .05) * CFrame.Angles(math.rad(3), math.rad(0), math.rad(-8)), 0.2)
  741.                         LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.33, 2.0, -.05) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(8)), 0.2)
  742.                         ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(0),math.rad(0*math.sin(sine/4)),math.rad(-15)),.2)
  743.                         RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1,1.4,.05) * CFrame.Angles(0,0,math.rad(-50)),.2)
  744.                         LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(-.6,2,.05) * CFrame.Angles(0,0,math.rad(140)),.2)
  745.                         swait()
  746.                     end
  747.                     swait()
  748.                 end
  749.                 ws = 14
  750.                 plummusic:Remove()
  751.                 attacking = false
  752.             end)()
  753.         end
  754.     end
  755. end)
  756.  
  757. mouse.KeyDown:connect(function(Press)
  758.     Press=Press:lower()
  759.     if Press=='e' then
  760.         if dancing then
  761.             dancing = false
  762.         else
  763.             dancing = true
  764.             ws = 0
  765.             change = .5
  766.             attacking = true
  767.             mrozo = Instance.new("Sound",Torso)
  768.             mrozo.Volume = 8
  769.             mrozo.SoundId = "rbxassetid://335701357"
  770.             mrozo.Looped = true
  771.             mrozo.TimePosition = 10
  772.             mrozo:Play()
  773.             coroutine.wrap(function()
  774.                 while dancing do
  775.                     RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 , 0) * CFrame.Angles(0, math.rad(0), math.rad(-10)), 0.1)
  776.                     LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0, 0) * CFrame.Angles(0, math.rad(0), math.rad(10)), 0.1)
  777.                     ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(0),math.rad(0*math.sin(sine/4)),math.rad(15*math.sin(sine/4))),.2)
  778.                     RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.3 + .3 * math.sin(sine/3.5),.5 * -math.sin(sine/3.5),.1) * CFrame.Angles(math.rad(0 * math.sin(sine/2)),0,math.rad(30 * math.sin(sine/3.5))),.2)
  779.                     LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.3 + .3 * math.sin(sine/3.5),.5 * math.sin(sine/3.5),.1) * CFrame.Angles(math.rad(0 * math.sin(sine/2)),0,math.rad(30 * math.sin(sine/3.5))),.2)
  780.                     swait()
  781.                 end
  782.                 mrozo:Remove()
  783.                 ws = 14
  784.                 attacking = false
  785.             end)()
  786.         end
  787.     end
  788. end)
  789.  
  790. mouse.KeyDown:connect(function(Press)
  791.     Press=Press:lower()
  792.     if Press=='r' then
  793.         if dancing then
  794.             dancing = false
  795.         else
  796.             ws = 6
  797.             recordbaby = 0
  798.             dancing = true
  799.             change = .5
  800.             attacking = true
  801.             spinme = Instance.new("Sound",Torso)
  802.             spinme.Volume = 8
  803.             spinme.SoundId = "rbxassetid://145799973"
  804.             spinme.Looped = true
  805.             spinme:Play()
  806.             coroutine.wrap(function()
  807.                 while dancing do
  808.                     recordbaby = recordbaby + 10
  809.                     RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.27, 2 , .1 * math.sin(sine/4)) * CFrame.Angles(math.rad(10 * math.sin(sine/4)), math.rad(0), math.rad(-8)), 0.3)
  810.                     LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.27, 2.0, -.1 * math.sin(sine/4)) * CFrame.Angles(math.rad(-10 * math.sin(sine/4)), math.rad(0), math.rad(8)), 0.3)
  811.                     ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(.5 * math.sin(sine/5), -.2, .5 * math.sin(sine/4)) * CFrame.Angles(math.rad(0),math.rad(recordbaby),math.rad(0)),.3)
  812.                     RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.5,1.98,0) * CFrame.Angles(0,0,math.rad(-90)),.3)
  813.                     LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.5,1.98,0) * CFrame.Angles(0,0,math.rad(90)),.3)
  814.                     swait()
  815.                 end
  816.                 spinme:Remove()
  817.                 ws = 14
  818.                 attacking = false
  819.             end)()
  820.         end
  821.     end
  822. end)
  823.  
  824. function ray(pos, dir, rang, ignoredesc)
  825.     return workspace:FindPartOnRay(Ray.new(pos, dir.unit * rang), ignoredesc)
  826. end
  827.  
  828. function ray2(startpos, endpos, distance, ignore)
  829.     local dir = CFrame.new(startpos,endpos).lookVector
  830.     return ray(startpos, dir, distance, ignore)
  831. end
  832.  
  833. checks1 = coroutine.wrap(function() -------Checks
  834.     while true do
  835.         hf = ray(Root.Position,(CFrame.new(Root.Position,Root.Position+Vector3.new(0,-1,0))).lookVector,3*3,Character)
  836.         if Root.Velocity.y > 1 then
  837.             position = "Jump"
  838.         elseif Root.Velocity.y < -1 then
  839.             position = "Falling"
  840.         elseif Root.Velocity.Magnitude < 2 then
  841.             position = "Idle"
  842.         elseif Root.Velocity.Magnitude > 2 then
  843.             position = "Walking"
  844.         elseif Root.Velocity.Magnitude > 20 then
  845.             position = "Running"
  846.         else
  847.         end
  848.         wait()
  849.     end
  850. end)
  851. checks1()
  852.  
  853. function ray(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  854.     return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  855. end
  856.  
  857. function ray2(StartPos, EndPos, Distance, Ignore)
  858.     local DIRECTION = CFrame.new(StartPos,EndPos).lookVector
  859.     return ray(StartPos, DIRECTION, Distance, Ignore)
  860. end
  861.  
  862. OrgnC0 = Neck.C0
  863. local movelimbs = coroutine.wrap(function()
  864.     while RunSrv.RenderStepped:wait() do
  865.         TrsoLV = Torso.CFrame.lookVector
  866.         Dist = nil
  867.         Diff = nil
  868.         if not MseGuide then
  869.             print("Failed to recognize")
  870.         else
  871.             local _, Point = Workspace:FindPartOnRay(Ray.new(Head.CFrame.p, mouse.Hit.lookVector), Workspace, false, true)
  872.             Dist = (Head.CFrame.p-Point).magnitude
  873.             Diff = Head.CFrame.Y-Point.Y
  874.             local _, Point2 = Workspace:FindPartOnRay(Ray.new(LeftArm.CFrame.p, mouse.Hit.lookVector), Workspace, false, true)
  875.             Dist2 = (LeftArm.CFrame.p-Point).magnitude
  876.             Diff2 = LeftArm.CFrame.Y-Point.Y
  877.             HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  878.             Neck.C0 = Neck.C0:lerp(OrgnC0*CFrame.Angles((math.tan(Diff/Dist)*1), 0, (((Head.CFrame.p-Point).Unit):Cross(Torso.CFrame.lookVector)).Y*1), .1)
  879.         end
  880.     end
  881. end)
  882. movelimbs()
  883. immortal = {}
  884. for i,v in pairs(Character:GetDescendants()) do
  885.     if v:IsA("BasePart") and v.Name ~= "lmagic" and v.Name ~= "rmagic" then
  886.         if v ~= Root and v ~= Torso and v ~= Head and v ~= RightArm and v ~= LeftArm and v ~= RightLeg and v.Name ~= "lmagic" and v.Name ~= "rmagic" and v ~= LeftLeg then
  887.             v.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  888.         end
  889.         table.insert(immortal,{v,v.Parent,v.Material,v.Color,v.Transparency})
  890.     elseif v:IsA("JointInstance") then
  891.         table.insert(immortal,{v,v.Parent,nil,nil,nil})
  892.     end
  893. end
  894. for e = 1, #immortal do
  895.     if immortal[e] ~= nil then
  896.         local STUFF = immortal[e]
  897.         local PART = STUFF[1]
  898.         local PARENT = STUFF[2]
  899.         local MATERIAL = STUFF[3]
  900.         local COLOR = STUFF[4]
  901.         local TRANSPARENCY = STUFF[5]
  902.         if levitate then
  903.             if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= eyo1 and PART.Name ~= eyo2 and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then
  904.                 PART.Material = MATERIAL
  905.                 PART.Color = COLOR
  906.                 --PART.Transparency = TRANSPARENCY
  907.             end
  908.             PART.AncestryChanged:connect(function()
  909.                 PART.Parent = PARENT
  910.             end)
  911.         else
  912.             if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then
  913.                 PART.Material = MATERIAL
  914.                 PART.Color = COLOR
  915.                 --PART.Transparency = TRANSPARENCY
  916.             end
  917.             PART.AncestryChanged:connect(function()
  918.                 PART.Parent = PARENT
  919.             end)
  920.         end
  921.     end
  922. end
  923. function immortality()
  924.     for e = 1, #immortal do
  925.         if immortal[e] ~= nil then
  926.             local STUFF = immortal[e]
  927.             local PART = STUFF[1]
  928.             local PARENT = STUFF[2]
  929.             local MATERIAL = STUFF[3]
  930.             local COLOR = STUFF[4]
  931.             local TRANSPARENCY = STUFF[5]
  932.             if PART.ClassName == "Part" and PART == Root then
  933.                 PART.Material = MATERIAL
  934.                 PART.Color = COLOR
  935.                 --PART.Transparency = TRANSPARENCY
  936.             end
  937.             if PART.Parent ~= PARENT then
  938.                 hum:Remove()
  939.                 PART.Parent = PARENT
  940.                 hum = Instance.new("Humanoid",Character)
  941.             end
  942.         end
  943.     end
  944. end
  945.  
  946. local anims = coroutine.wrap(function()
  947.     while true do
  948.         settime = 0.05
  949.         sine = sine + change
  950.         if position == "Jump" and attacking == false then
  951.             change = 1
  952.             spin = false
  953.             for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
  954.             LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  955.             RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  956.             LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4)
  957.             ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  958.             LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.4,.1,-.2) * CFrame.Angles(math.rad(20),math.rad(-3),math.rad(-4)), 0.2)
  959.             RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.2)
  960.             LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.2)
  961.         elseif position == "Falling" and attacking == false then
  962.             change = 1
  963.             spin = false
  964.             for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
  965.             ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)), 0.15)
  966.             LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  967.             RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  968.             LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4)
  969.             RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(4), math.rad(0)), 0.2)
  970.             LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(-4), math.rad(0)), 0.2)
  971.             LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.94 + .02 * math.sin(sine/12),-0) * CFrame.Angles(math.rad(28 + 5 * math.sin(sine/12)),math.rad(0),math.rad(45)), 0.2)
  972.             RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.94 + .02 * math.sin(sine/12),-0) * CFrame.Angles(math.rad(28 + 5 * math.sin(sine/12)),math.rad(0),math.rad(-45)), 0.2)
  973.         elseif position == "Walking" and attacking == false and running == false then
  974.             change = 1.2
  975.             walking = true
  976.             spin = false
  977.             for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
  978.             RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5 + Root.RotVelocity.Y / 85,.35,-.5*math.sin(sine/11)) * CFrame.Angles(math.rad(35*math.sin(sine/11)),math.rad(0*math.sin(sine/11)),math.rad(-10 + Root.RotVelocity.Y / 10, math.sin(-20 * math.sin(sine/4)))),.3)
  979.             LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5 + Root.RotVelocity.Y / 85,.45,.5*math.sin(sine/11)) * CFrame.Angles(math.rad(-55*math.sin(sine/11)),math.rad(-5*math.sin(sine/8)),math.rad(10 + Root.RotVelocity.Y / 10, math.sin(20 * math.sin(sine/4)))),.3)
  980.             ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.15 * 0.6*-math.sin(sine/5.5), 0) * CFrame.Angles(math.rad(10), math.rad(12 * -math.sin(sine/11)), math.rad(0) + Root.RotVelocity.Y / 30, math.cos(25 * math.cos(sine/10))), 0.3)
  981.             RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.92 - 0.35 * math.cos(sine/11)/2.8, -.2  + 0.2 - math.sin(sine/11)/3.4) * CFrame.Angles(math.rad(25 - 25) + -math.sin(sine/11)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0), math.cos(-15 * 25 * math.cos(sine/11))), 0.3)
  982.             LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.92 + 0.35 * math.cos(sine/11)/2.8, -.2 + 0.2 + math.sin(sine/11)/3.4) * CFrame.Angles(math.rad(25 - 25) - -math.sin(sine/11)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0) , math.cos(-15 * 25 * math.cos(sine/11))), 0.3)
  983.         elseif position == "Idle" and attacking == false and running == false then
  984.             change = .5
  985.             spin = true
  986.             for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
  987.             ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(6 * -math.sin(sine/12)),math.rad(0),math.rad(0)),.1)
  988.             LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.27 + .02 * math.sin(sine/12),.20 * -math.sin(sine/12)) * CFrame.Angles(math.rad(20 * math.sin(sine/12)),math.rad(0),math.rad(10)), 0.1)
  989.             RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.27 + .02 * math.sin(sine/12),.20 * -math.sin(sine/12)) * CFrame.Angles(math.rad(20 * math.sin(sine/12)),math.rad(0),math.rad(-10)), 0.1)
  990.             RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(6 * -math.sin(sine/12)), math.rad(0), math.rad(-10)), 0.1)
  991.             LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(6 * -math.sin(sine/12)), math.rad(0), math.rad(10)), 0.1)
  992.         elseif position == "Running" and attacking == false then
  993.             change = 1
  994.             for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
  995.             RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(0, .5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.3)
  996.             LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(-1.24+.6*math.sin(sine/4)/1.4, 0.54, 0-0.8*math.sin(sine/4))*CFrame.Angles(math.rad(6+140*math.sin(sine/4)/1.2), math.rad(0), math.rad(20+70*math.sin(sine/4))), 0.3)
  997.             LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  998.             ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(-20 - 0 * math.sin(sine/4)), math.rad(0 + 6 * math.sin(sine/4)), math.rad(0) + Root.RotVelocity.Y / 30, math.sin(10 * math.sin(sine/4))), 0.3)
  999.             RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*-math.sin(sine/4)),.3)
  1000.             RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.6+0.1*math.sin(sine/4),.7*-math.sin(sine/4)) * CFrame.Angles(math.rad(15+ -50 * math.sin(sine/4)),0,0),.3)
  1001.             LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*math.sin(sine/4)),.3)
  1002.             LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.6-0.1*math.sin(sine/4),.7*math.sin(sine/4)) * CFrame.Angles(math.rad(15 + 50 * math.sin(sine/4)),0,0),.3)
  1003.         end
  1004.         swait()
  1005.     end
  1006. end)
  1007. anims()
Advertisement
Add Comment
Please, Sign In to add comment