SHARE
TWEET

krystal dance v2 with hats

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