zza

krystal

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