Advertisement
Dark_EccentricYT

Untitled

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