ColorblindRBLX

Krystal Dance (FE'd)

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