Advertisement
AstroScripts

Untitled

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