Advertisement
mememasterYT

Untitled

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