Upscalefanatic3

(Roblox) [FE] Krystal Dance v2

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