The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
Fe Krystal Dance script pastebin roblox
By Fe Krystal Dance on 2024-11-27 08:00 am | Syntax: LUA | Views: 14



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



  • Recent Roblox Scripts