oatmeal2009

Krystal dance FE

Jun 29th, 2020
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 42.43 KB | None | 0 0
  1.  
  2. -----------//KRYSTAL DANCE V2\\-----------
  3. --[[Movelist
  4. Q = The Swoosher
  5. E = The nutty
  6. R = Spin me right round!
  7. T = Plum juice dance
  8. Y = Moonwalk
  9. U = Slav dance
  10. P = Barrel roll
  11. F = The Jerky
  12. G = The Shuffle
  13. H = The Spongebob
  14. J = Here comes the money!
  15. K = Runnin' in the 90's
  16. ---------]]
  17.  
  18. --Krystal dance! The old famous script that sadly has been broken(sorta), i've decided to rework this thing because... nostalgia.--
  19. --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.--
  20. --Credits to Krystalteam, they made the original krystal dance! Be sure to respect them or else...--
  21. --#makeoldscriptsgreatagain--
  22.  
  23. Player=game.Players.LocalPlayer
  24. Character=workspace.CloneCharacter
  25. hum = Character.Humanoid
  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 _,n in pairs(Character:GetChildren()) do
  272. if n:IsA("Accessory") then end
  273. end
  274. for _,x in pairs(Character:GetChildren()) do
  275. if x:IsA("Decal") then x:Remove() end
  276. end
  277.  
  278. intro = true
  279. ws = 0
  280.  
  281. bigfedora = Instance.new("Part",Character)
  282. bigfedora.Size = Vector3.new(2,2,2)
  283. 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)
  284. bigfedora.CanCollide = false
  285. bigfedora.Anchored = true
  286. bigfedora.Name = "mbigf"
  287. mbigfedora = Instance.new("SpecialMesh", bigfedora)
  288. mbigfedora.MeshType = "FileMesh"
  289. mbigfedora.Scale = Vector3.new(6, 7, 7)
  290. mbigfedora.MeshId,mbigfedora.TextureId = 'http://www.roblox.com/asset/?id=13640868','http://www.roblox.com/asset/?id=18987684'
  291. for i,v in pairs(Character:GetDescendants()) do
  292. if v:IsA("Part") and v.Name ~= "mbigf" then v.Transparency = 1
  293. end
  294. end
  295. for i = 1, 60 do
  296. 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)
  297. swait()
  298. end
  299. wait(.25)
  300. for i,v in pairs(Character:GetDescendants()) do
  301. if v:IsA("Part") and v.Name ~= "mbigf" and v.Name ~= "HumanoidRootPart" then v.Transparency = 0
  302. end
  303. end
  304. for i = 1, 50 do
  305. bigfedora.CFrame = bigfedora.CFrame:lerp(CFrame.new(fedora.Position),.05)
  306. swait()
  307. end
  308. zmc = 0
  309. for i = 1, 29 do
  310. zmc = zmc + 2
  311. mbigfedora.Scale = mbigfedora.Scale - Vector3.new(.25,.25,.25)
  312. bigfedora.CFrame = bigfedora.CFrame * CFrame.Angles(math.rad(0),math.rad(zmc),0)
  313. swait()
  314. end
  315. bigfedora:Remove()
  316.  
  317. ws = 14
  318.  
  319. function SOUND(PARENT,ID,VOL,LOOP,REMOVE)
  320. so = Instance.new("Sound")
  321. so.Parent = PARENT
  322. so.SoundId = "rbxassetid://"..ID
  323. so.Volume = VOL
  324. so.Looped = LOOP
  325.  
  326. so:Play()
  327. removeuseless:AddItem(so,REMOVE)
  328. end
  329.  
  330. mouse.KeyDown:connect(function(Press)
  331. Press=Press:lower()
  332. if Press=='k' then
  333. if dancing then
  334. dancing = false
  335. else
  336. dancing = true
  337. ws = 0
  338. change = .5
  339. attacking = true
  340. jam = Instance.new("Sound",Torso)
  341. jam.SoundId = "rbxassetid://665751753"
  342. jam.Volume = 8
  343. jam.Looped = true
  344. jam.TimePosition = 22.3
  345. jam:Play()
  346. lol90 = 0
  347. coroutine.wrap(function()
  348. while dancing do
  349. lol90 = lol90 + 11
  350. 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)
  351. ROOTLERP.C1 = ROOTLERP.C1:lerp(CFrame.new(0 * math.sin(sine/14),0,0) * CFrame.Angles(math.rad(0),math.rad(lol90),0),.25)
  352. 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)
  353. 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)
  354. 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)
  355. 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)
  356. swait()
  357. end
  358. ws = 14
  359. jam:Remove()
  360. ROOTLERP.C1 = CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  361. attacking = false
  362. end)()
  363. end
  364. end
  365. end)
  366.  
  367. mouse.KeyDown:connect(function(Press)
  368. Press=Press:lower()
  369. if Press=='j' then
  370. if dancing then
  371. dancing = false
  372. else
  373. dancing = true
  374. ws = 3
  375. change = .5
  376. attacking = true
  377. g1 = Instance.new("BodyGyro", Root)
  378. g1.D = 175
  379. g1.P = 20000
  380. g1.MaxTorque = Vector3.new(0,9000,0)
  381. herecomesthemoney = Instance.new("Sound",Torso)
  382. herecomesthemoney.Pitch = 1
  383. herecomesthemoney.SoundId = "rbxassetid://2426693638"
  384. herecomesthemoney.Volume = 8
  385. herecomesthemoney.Looped = true
  386. herecomesthemoney:Play()
  387. robuxpile = Instance.new("Part",Torso)
  388. robuxpile.Size = Vector3.new(1,1,1)
  389. robuxpile.CFrame = LeftArm.CFrame
  390. robuxpile.CanCollide = false
  391. robuxpileweld = Instance.new("Weld",robuxpile)
  392. robuxpileweld.Part0 = robuxpile
  393. robuxpileweld.Part1 = Torso
  394. robuxpileweld.C0 = robuxpile.CFrame:inverse() * LeftArm.CFrame * CFrame.new(1,-.7,1.4)
  395. mrobuxpile = Instance.new("SpecialMesh", robuxpile)
  396. mrobuxpile.MeshType = "FileMesh"
  397. mrobuxpile.Scale = Vector3.new(0.85, .85, .85)
  398. mrobuxpile.MeshId,mrobuxpile.TextureId = 'http://www.roblox.com/asset/?id=1285245','http://www.roblox.com/asset/?id=8587344'
  399. coroutine.wrap(function()
  400. coroutine.wrap(function()
  401. while wait(.35) do
  402. if not dancing then break end
  403. local robux = Instance.new("Part",Torso)
  404. robux.CFrame = robuxpile.CFrame * CFrame.Angles(math.rad(0),math.rad(90),math.rad(90))
  405. robux.Anchored = false
  406. robux.CanCollide = true
  407. robux.Size = Vector3.new(1,1,1)
  408. removeuseless:AddItem(robux,4)
  409. mrobux = Instance.new("SpecialMesh", robux)
  410. mrobux.MeshType = "FileMesh"
  411. mrobux.Scale = Vector3.new(1.25, 1.25, 1.25)
  412. mrobux.MeshId,mrobux.TextureId = 'http://www.roblox.com/asset/?id=667285348','http://www.roblox.com/asset/?id=665939136'
  413. bov = Instance.new("BodyVelocity",robux)
  414. bov.maxForce = Vector3.new(99999,99999,99999)
  415. robux.CFrame = CFrame.new(robux.Position,mouse.Hit.p)
  416. bov.velocity = robux.CFrame.lookVector*45
  417. removeuseless:AddItem(bov,.1)
  418. end
  419. end)()
  420. while dancing do
  421. g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.4)
  422. 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)
  423. 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)
  424. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1,.5,.5) * CFrame.Angles(math.rad(-87),math.rad(-20),math.rad(0)), 0.25)
  425. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 , .5) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(-10)), 0.25)
  426. 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)
  427. swait()
  428. end
  429. ws = 14
  430. removeuseless:AddItem(g1,.001)
  431. robuxpile:Remove()
  432. attacking = false
  433. end)()
  434. end
  435. end
  436. end)
  437.  
  438. mouse.KeyDown:connect(function(Press)
  439. Press=Press:lower()
  440. if Press=='h' then
  441. if dancing then
  442. dancing = false
  443. else
  444. dancing = true
  445. ws = 0
  446. change = .5
  447. attacking = true
  448. jellyfishjam = Instance.new("Sound",Torso)
  449. jellyfishjam.SoundId = "rbxassetid://840189092"
  450. jellyfishjam.Volume = 8
  451. jellyfishjam.Looped = true
  452. jellyfishjam.TimePosition = 14.8
  453. jellyfishjam:Play()
  454. coroutine.wrap(function()
  455. while dancing do
  456. for i = 1, 15 do
  457. if not dancing then break end
  458. 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)
  459. 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)
  460. 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)
  461. 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)
  462. 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)
  463. swait()
  464. end
  465. for i = 1, 15 do
  466. if not dancing then break end
  467. 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)
  468. 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)
  469. 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)
  470. 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)
  471. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0, 0) * CFrame.Angles(0, math.rad(0), math.rad(10)), 0.25)
  472. swait()
  473. end
  474. for i = 1, 15 do
  475. if not dancing then break end
  476. 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)
  477. 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)
  478. 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)
  479. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 , 0) * CFrame.Angles(0, math.rad(0), math.rad(-10)), 0.25)
  480. 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)
  481. swait()
  482. end
  483. for i = 1, 15 do
  484. if not dancing then break end
  485. 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)
  486. 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)
  487. 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)
  488. 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)
  489. 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)
  490. swait()
  491. end
  492. swait()
  493. end
  494. ws = 14
  495. attacking = false
  496. end)()
  497. end
  498. end
  499. end)
  500.  
  501. mouse.KeyDown:connect(function(Press)
  502. Press=Press:lower()
  503. if Press=='g' then
  504. if dancing then
  505. dancing = false
  506. else
  507. dancing = true
  508. ws = 0
  509. change = .5
  510. attacking = true
  511. deadmau7 = Instance.new("Sound",Torso)
  512. deadmau7.SoundId = "rbxassetid://168166611"
  513. deadmau7.Volume = 8
  514. deadmau7.Looped = true
  515. deadmau7:Play()
  516. coroutine.wrap(function()
  517. coroutine.wrap(function()
  518. while dancing do
  519. 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)
  520. swait()
  521. end
  522. end)()
  523. while dancing do
  524. for i = 1, 28 do
  525. if not dancing then break end
  526. 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)
  527. 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)
  528. 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)
  529. 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)
  530. swait()
  531. end
  532. for i = 1, 28 do
  533. if not dancing then break end
  534. 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)
  535. 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)
  536. 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)
  537. 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)
  538. swait()
  539. end
  540. swait()
  541. end
  542. ws = 14
  543. deadmau7:Remove()
  544. attacking = false
  545. end)()
  546. end
  547. end
  548. end)
  549.  
  550. mouse.KeyDown:connect(function(Press)
  551. Press=Press:lower()
  552. if Press=='f' then
  553. if dancing then
  554. dancing = false
  555. else
  556. dancing = true
  557. ws = 6
  558. change = .5
  559. attacking = true
  560. bennyhill = Instance.new("Sound",Torso)
  561. bennyhill.SoundId = "rbxassetid://138211362"
  562. bennyhill.Volume = 8
  563. bennyhill.Looped = true
  564. bennyhill:Play()
  565. coroutine.wrap(function()
  566. while dancing do
  567. 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)
  568. 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)
  569. 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)
  570. 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)
  571. 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)
  572. swait()
  573. end
  574. ws = 14
  575. bennyhill:Remove()
  576. attacking = false
  577. end)()
  578. end
  579. end
  580. end)
  581.  
  582. mouse.KeyDown:connect(function(Press)
  583. Press=Press:lower()
  584. if Press=='p' then
  585. if dancing then
  586. dancing = false
  587. else
  588. dancing = true
  589. ws = 0
  590. change = .5
  591. attacking = true
  592. barrelspin = 0
  593. barrelrollsound = Instance.new("Sound",Torso)
  594. barrelrollsound.SoundId = "rbxassetid://505320170"
  595. barrelrollsound.Volume = 8
  596. barrelrollsound.Looped = true
  597. barrelrollsound:Play()
  598. barrol = Instance.new("Part",Torso)
  599. barrol.Size = Vector3.new(1,1,1)
  600. barrol.CFrame = Torso.CFrame
  601. barrol.CanCollide = false
  602. barrolweld = Instance.new("Weld",barrol)
  603. barrolweld.Part0 = barrol
  604. barrolweld.Part1 = Torso
  605. barrolweld.C0 = barrol.CFrame:inverse() * Torso.CFrame * CFrame.new(0,0,0)
  606. mbarrol = Instance.new("SpecialMesh", barrol)
  607. mbarrol.MeshType = "FileMesh"
  608. mbarrol.Scale = Vector3.new(1.05, .95, 1.05)
  609. mbarrol.MeshId,mbarrol.TextureId = 'http://www.roblox.com/asset/?id=29873142','http://www.roblox.com/asset/?id=31082268'
  610. coroutine.wrap(function()
  611. while dancing do
  612. 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)
  613. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,1.5,0) * CFrame.Angles(math.rad(180),0,math.rad(0)),.25)
  614. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,1.5,0) * CFrame.Angles(math.rad(180),0,math.rad(0)),.25)
  615. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(.5,2,0) * CFrame.Angles(0,0,0),.25)
  616. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.5,2,0) * CFrame.Angles(0,0,0),.25)
  617. swait()
  618. end
  619. ws = 14
  620. barrol:Remove()
  621. attacking = false
  622. end)()
  623. end
  624. end
  625. end)
  626.  
  627. mouse.KeyDown:connect(function(Press)
  628. Press=Press:lower()
  629. if Press=='q' then
  630. if dancing then
  631. dancing = false
  632. else
  633. dancing = true
  634. ws = 0
  635. change = .5
  636. spinningmove = 0
  637. dbwouldlovethis = Instance.new("Sound",Torso)
  638. dbwouldlovethis.SoundId = "rbxassetid://1532157598"
  639. dbwouldlovethis.Volume = 8
  640. dbwouldlovethis.Looped = true
  641. dbwouldlovethis:Play()
  642. attacking = true
  643. coroutine.wrap(function()
  644. while dancing do
  645. spinningmove = spinningmove + 10
  646. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.52, 1.9, -.35) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)),.2)
  647. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.52, 1.9, .35) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)),.2)
  648. 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)
  649. 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)
  650. 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)
  651. swait()
  652. end
  653. ws = 14
  654. dbwouldlovethis:Remove()
  655. attacking = false
  656. end)()
  657. end
  658. end
  659. end)
  660.  
  661.  
  662. mouse.KeyDown:connect(function(Press)
  663. Press=Press:lower()
  664. if Press=='u' then
  665. if dancing then
  666. dancing = false
  667. else
  668. dancing = true
  669. ws = 6
  670. change = .5
  671. attacking = true
  672. slavdance = Instance.new("Sound",Torso)
  673. slavdance.SoundId = "rbxassetid://2341226836"
  674. slavdance.Volume = 6
  675. slavdance.Looped = true
  676. slavdance:Play()
  677. coroutine.wrap(function()
  678. while dancing do
  679. for i = 1, 17 do
  680. if not dancing then break end
  681. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.52, 1.5, -.5) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)),.2)
  682. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.52, 1.2, .55) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)),.2)
  683. 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)
  684. 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)
  685. 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)
  686. swait()
  687. end
  688. for i = 1, 17 do
  689. if not dancing then break end
  690. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.52, 1.2, .55) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)),.2)
  691. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.52, 1.5, -.5) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)),.2)
  692. 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)
  693. 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)
  694. 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)
  695. swait()
  696. end
  697. swait()
  698. end
  699. ws = 14
  700. slavdance:Remove()
  701. attacking = false
  702. end)()
  703. end
  704. end
  705. end)
  706.  
  707. mouse.KeyDown:connect(function(Press)
  708. Press=Press:lower()
  709. if Press=='y' then
  710. if dancing then
  711. dancing = false
  712. else
  713. dancing = true
  714. ws = 0
  715. change = .5
  716. walkforward = 0
  717. walkrotation = 0
  718. attacking = true
  719. truelegend = Instance.new("Sound",Torso)
  720. truelegend.SoundId = "rbxassetid://487872908"
  721. truelegend.TimePosition = 13.98
  722. truelegend.Volume = 8
  723. truelegend.Looped = true
  724. truelegend:Play()
  725. coroutine.wrap(function()
  726. while dancing do
  727. for i = 1, 100 do
  728. if not dancing then break end
  729. walkforward = walkforward + .1
  730. 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)
  731. 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)
  732. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, walkforward) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  733. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,0,0) * CFrame.Angles(0,0,math.rad(0)),.3)
  734. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,0,0) * CFrame.Angles(0,0,math.rad(0)),.3)
  735. swait()
  736. end
  737. for i = 1, 50 do
  738. if not dancing then break end
  739. walkrotation = walkrotation + 15
  740. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, walkforward) * CFrame.Angles(math.rad(0),math.rad(walkrotation),math.rad(-0)),.2)
  741. swait()
  742. end
  743. walkrotation = 0
  744. for i = 1, 100 do
  745. if not dancing then break end
  746. walkforward = walkforward - .1
  747. 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)
  748. 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)
  749. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, walkforward) * CFrame.Angles(math.rad(0),math.rad(-180),math.rad(-0)),.2)
  750. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.3,.7,.2) * CFrame.Angles(math.rad(220),math.rad(0),math.rad(-30)), 0.4)
  751. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,0,0) * CFrame.Angles(0,0,math.rad(0)),.3)
  752. swait()
  753. end
  754. for i = 1, 50 do
  755. if not dancing then break end
  756. walkrotation = walkrotation + 15
  757. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,0,0) * CFrame.Angles(0,0,math.rad(0)),.1)
  758. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, walkforward) * CFrame.Angles(math.rad(0),math.rad(walkrotation),math.rad(-0)),.2)
  759. swait()
  760. end
  761. walkrotation = 0
  762. swait()
  763. end
  764. ws = 14
  765. truelegend:Remove()
  766. attacking = false
  767. end)()
  768. end
  769. end
  770. end)
  771.  
  772. mouse.KeyDown:connect(function(Press)
  773. Press=Press:lower()
  774. if Press=='t' then
  775. if dancing then
  776. dancing = false
  777. else
  778. dancing = true
  779. ws = 0
  780. change = .5
  781. attacking = true
  782. plummusic = Instance.new("Sound",Torso)
  783. plummusic.Volume = 8
  784. plummusic.Looped = true
  785. plummusic.SoundId = "rbxassetid://2526093213"
  786. plummusic:Play()
  787. coroutine.wrap(function()
  788. while dancing do
  789. for i = 1, 20 do
  790. if not dancing then break end
  791. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.33, 2 , .05) * CFrame.Angles(math.rad(3), math.rad(0), math.rad(-8)), 0.2)
  792. 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)
  793. 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)
  794. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(.5,1.98,.05) * CFrame.Angles(0,0,math.rad(-140)),.2)
  795. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,1.3,.05) * CFrame.Angles(0,0,math.rad(50)),.2)
  796. swait()
  797. end
  798. for i = 1, 20 do
  799. if not dancing then break end
  800. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.33, 2, .05) * CFrame.Angles(math.rad(3), math.rad(0), math.rad(-8)), 0.2)
  801. 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)
  802. 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)
  803. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1,1.4,.05) * CFrame.Angles(0,0,math.rad(-50)),.2)
  804. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(-.6,2,.05) * CFrame.Angles(0,0,math.rad(140)),.2)
  805. swait()
  806. end
  807. swait()
  808. end
  809. ws = 14
  810. plummusic:Remove()
  811. attacking = false
  812. end)()
  813. end
  814. end
  815. end)
  816.  
  817. mouse.KeyDown:connect(function(Press)
  818. Press=Press:lower()
  819. if Press=='e' then
  820. if dancing then
  821. dancing = false
  822. else
  823. dancing = true
  824. ws = 0
  825. change = .5
  826. attacking = true
  827. mrozo = Instance.new("Sound",Torso)
  828. mrozo.Volume = 8
  829. mrozo.SoundId = "rbxassetid://335701357"
  830. mrozo.Looped = true
  831. mrozo.TimePosition = 10
  832. mrozo:Play()
  833. coroutine.wrap(function()
  834. while dancing do
  835. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 , 0) * CFrame.Angles(0, math.rad(0), math.rad(-10)), 0.1)
  836. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0, 0) * CFrame.Angles(0, math.rad(0), math.rad(10)), 0.1)
  837. 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)
  838. 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)
  839. 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)
  840. swait()
  841. end
  842. mrozo:Remove()
  843. ws = 14
  844. attacking = false
  845. end)()
  846. end
  847. end
  848. end)
  849.  
  850. mouse.KeyDown:connect(function(Press)
  851. Press=Press:lower()
  852. if Press=='r' then
  853. if dancing then
  854. dancing = false
  855. else
  856. ws = 6
  857. recordbaby = 0
  858. dancing = true
  859. change = .5
  860. attacking = true
  861. spinme = Instance.new("Sound",Torso)
  862. spinme.Volume = 8
  863. spinme.SoundId = "rbxassetid://145799973"
  864. spinme.Looped = true
  865. spinme:Play()
  866. coroutine.wrap(function()
  867. while dancing do
  868. recordbaby = recordbaby + 10
  869. 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)
  870. 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)
  871. 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)
  872. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.5,1.98,0) * CFrame.Angles(0,0,math.rad(-90)),.3)
  873. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.5,1.98,0) * CFrame.Angles(0,0,math.rad(90)),.3)
  874. swait()
  875. end
  876. spinme:Remove()
  877. ws = 14
  878. attacking = false
  879. end)()
  880. end
  881. end
  882. end)
  883.  
  884. function ray(pos, dir, rang, ignoredesc)
  885. return workspace:FindPartOnRay(Ray.new(pos, dir.unit * rang), ignoredesc)
  886. end
  887.  
  888. function ray2(startpos, endpos, distance, ignore)
  889. local dir = CFrame.new(startpos,endpos).lookVector
  890. return ray(startpos, dir, distance, ignore)
  891. end
  892.  
  893. checks1 = coroutine.wrap(function() -------Checks
  894. while true do
  895. hf = ray(Root.Position,(CFrame.new(Root.Position,Root.Position+Vector3.new(0,-1,0))).lookVector,3*3,Character)
  896. if Root.Velocity.y > 1 then
  897. position = "Jump"
  898. elseif Root.Velocity.y < -1 then
  899. position = "Falling"
  900. elseif Root.Velocity.Magnitude < 2 then
  901. position = "Idle"
  902. elseif Root.Velocity.Magnitude > 2 then
  903. position = "Walking"
  904. elseif Root.Velocity.Magnitude > 20 then
  905. position = "Running"
  906. else
  907. end
  908. wait()
  909. end
  910. end)
  911. checks1()
  912.  
  913. function ray(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  914. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  915. end
  916.  
  917. function ray2(StartPos, EndPos, Distance, Ignore)
  918. local DIRECTION = CFrame.new(StartPos,EndPos).lookVector
  919. return ray(StartPos, DIRECTION, Distance, Ignore)
  920. end
  921.  
  922. OrgnC0 = Neck.C0
  923. local movelimbs = coroutine.wrap(function()
  924. while RunSrv.RenderStepped:wait() do
  925. TrsoLV = Torso.CFrame.lookVector
  926. Dist = nil
  927. Diff = nil
  928. if not MseGuide then
  929. print("Failed to recognize")
  930. else
  931. local _, Point = Workspace:FindPartOnRay(Ray.new(Head.CFrame.p, mouse.Hit.lookVector), Workspace, false, true)
  932. Dist = (Head.CFrame.p-Point).magnitude
  933. Diff = Head.CFrame.Y-Point.Y
  934. local _, Point2 = Workspace:FindPartOnRay(Ray.new(LeftArm.CFrame.p, mouse.Hit.lookVector), Workspace, false, true)
  935. Dist2 = (LeftArm.CFrame.p-Point).magnitude
  936. Diff2 = LeftArm.CFrame.Y-Point.Y
  937. HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  938. 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)
  939. end
  940. end
  941. end)
  942. movelimbs()
  943. immortal = {}
  944. for i,v in pairs(Character:GetDescendants()) do
  945. if v:IsA("BasePart") and v.Name ~= "lmagic" and v.Name ~= "rmagic" then
  946. 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
  947. v.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  948. end
  949. table.insert(immortal,{v,v.Parent,v.Material,v.Color,v.Transparency})
  950. elseif v:IsA("JointInstance") then
  951. table.insert(immortal,{v,v.Parent,nil,nil,nil})
  952. end
  953. end
  954. for e = 1, #immortal do
  955. if immortal[e] ~= nil then
  956. local STUFF = immortal[e]
  957. local PART = STUFF[1]
  958. local PARENT = STUFF[2]
  959. local MATERIAL = STUFF[3]
  960. local COLOR = STUFF[4]
  961. local TRANSPARENCY = STUFF[5]
  962. if levitate then
  963. if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= eyo1 and PART.Name ~= eyo2 and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then
  964. PART.Material = MATERIAL
  965. PART.Color = COLOR
  966. PART.Transparency = TRANSPARENCY
  967. end
  968. PART.AncestryChanged:connect(function()
  969. PART.Parent = PARENT
  970. end)
  971. else
  972. if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then
  973. PART.Material = MATERIAL
  974. PART.Color = COLOR
  975. PART.Transparency = TRANSPARENCY
  976. end
  977. PART.AncestryChanged:connect(function()
  978. PART.Parent = PARENT
  979. end)
  980. end
  981. end
  982. end
  983. function immortality()
  984. for e = 1, #immortal do
  985. if immortal[e] ~= nil then
  986. local STUFF = immortal[e]
  987. local PART = STUFF[1]
  988. local PARENT = STUFF[2]
  989. local MATERIAL = STUFF[3]
  990. local COLOR = STUFF[4]
  991. local TRANSPARENCY = STUFF[5]
  992. if PART.ClassName == "Part" and PART == Root then
  993. PART.Material = MATERIAL
  994. PART.Color = COLOR
  995. PART.Transparency = TRANSPARENCY
  996. end
  997. if PART.Parent ~= PARENT then
  998. hum:Remove()
  999. PART.Parent = PARENT
  1000. hum = Instance.new("Humanoid",Character)
  1001. end
  1002. end
  1003. end
  1004. end
  1005. coroutine.wrap(function()
  1006. while true do
  1007. if hum.Health < .1 then
  1008. deadsound = Instance.new("Sound", Torso)
  1009. deadsound.Volume = 6
  1010. deadsound.SoundId = "rbxassetid://1411352723"
  1011. deadsound:Play()
  1012. immortality()
  1013. end
  1014. wait()
  1015. end
  1016. end)()
  1017.  
  1018. local anims = coroutine.wrap(function()
  1019. while true do
  1020. settime = 0.05
  1021. sine = sine + change
  1022. if position == "Jump" and attacking == false then
  1023. change = 1
  1024. spin = false
  1025. for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
  1026. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  1027. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  1028. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4)
  1029. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  1030. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.4,.1,-.2) * CFrame.Angles(math.rad(20),math.rad(-3),math.rad(-4)), 0.2)
  1031. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.2)
  1032. 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)
  1033. elseif position == "Falling" and attacking == false then
  1034. change = 1
  1035. spin = false
  1036. for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
  1037. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)), 0.15)
  1038. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  1039. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  1040. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4)
  1041. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(4), math.rad(0)), 0.2)
  1042. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(-4), math.rad(0)), 0.2)
  1043. 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)
  1044. 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)
  1045. elseif position == "Walking" and attacking == false and running == false then
  1046. change = 1.2
  1047. walking = true
  1048. spin = false
  1049. for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
  1050. 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)
  1051. 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)
  1052. 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)
  1053. 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)
  1054. 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)
  1055. elseif position == "Idle" and attacking == false and running == false then
  1056. change = .5
  1057. spin = true
  1058. for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
  1059. 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)
  1060. 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)
  1061. 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)
  1062. 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)
  1063. 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)
  1064. elseif position == "Running" and attacking == false then
  1065. change = 1
  1066. for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
  1067. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(0, .5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.3)
  1068. 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)
  1069. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1070. 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)
  1071. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*-math.sin(sine/4)),.3)
  1072. 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)
  1073. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*math.sin(sine/4)),.3)
  1074. 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)
  1075. end
  1076. swait()
  1077. end
  1078. end)
  1079. anims()
Add Comment
Please, Sign In to add comment