Advertisement
ZacBozer

KrystalDance v2 FE

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