Dark_EccentricYT

Untitled

Dec 7th, 2020
1,849
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.15 KB | None | 0 0
  1. Player = game.Players.LocalPlayer
  2. Char = Player.Character
  3.  
  4. DebMove = false
  5. DebTalk = false
  6.  
  7. Quotes = {
  8. "The end is near.",
  9. "Ignorant thralls.",
  10. "What do you want errand boy?",
  11. "Resistance is futile.",
  12. "See if I care."
  13. }
  14.  
  15. local State = "Idle"
  16. local RunNow = false
  17.  
  18. local SmoothPart = Instance.new("Part")
  19. SmoothPart.FormFactor = Enum.FormFactor.Symmetric
  20. SmoothPart.TopSurface = Enum.SurfaceType.Smooth
  21. SmoothPart.Size = Vector3.new(1, 1, 1)
  22. SmoothPart.Name = "SmoothPart"
  23. SmoothPart.BottomSurface = Enum.SurfaceType.Smooth
  24.  
  25. local MESHES = {
  26. Blast = "http://www.roblox.com/asset/?id=20329976",
  27. Scythe = "http://www.roblox.com/asset/?id=50880202",
  28. Ring = "http://www.roblox.com/asset/?id=3270017"
  29. }
  30.  
  31. local TEXTURES = {
  32. Scythe = "http://www.roblox.com/asset/?id=50880003"
  33. }
  34.  
  35. local OLD_WELDS = {
  36. LeftArm = Char.Torso["Left Shoulder"],
  37. RightArm = Char.Torso["Right Shoulder"]
  38. }
  39.  
  40. -- create replacement welds
  41.  
  42. local weld = Instance.new("ManualWeld", Char.Torso)
  43. weld.Name = "Left Shoulder New"
  44. weld.Part0 = Char.Torso
  45. weld.Part1 = Char["Left Arm"]
  46. weld.C0 = OLD_WELDS.LeftArm.C0
  47. weld.C1 = OLD_WELDS.LeftArm.C1
  48.  
  49. local FakeL = SmoothPart:clone()
  50. FakeL.Transparency = 1
  51. FakeL.Anchored = false
  52. FakeL.Parent = Char
  53. OLD_WELDS.LeftArm.Part1 = FakeL
  54.  
  55. local weld = Instance.new("ManualWeld", Char.Torso)
  56. weld.Name = "Right Shoulder New"
  57. weld.Part0 = Char.Torso
  58. weld.Part1 = Char["Right Arm"]
  59. weld.C0 = OLD_WELDS.RightArm.C0
  60. weld.C1 = OLD_WELDS.RightArm.C1
  61.  
  62. local FakeR = SmoothPart:clone()
  63. FakeR.Transparency = 1
  64. FakeR.Anchored = false
  65. FakeR.Parent = Char
  66. OLD_WELDS.RightArm.Part1 = FakeR
  67.  
  68. local W = {
  69. Neck = Char.Torso.Neck,
  70. Torso = Char.HumanoidRootPart["RootJoint"],
  71. LeftArm = Char.Torso["Left Shoulder New"],
  72. RightArm = Char.Torso["Right Shoulder New"],
  73. LeftLeg = Char.Torso["Left Hip"],
  74. RightLeg = Char.Torso["Right Hip"]
  75. }
  76.  
  77. function ChangeWelds(fake)
  78. if fake then
  79. --OLD_WELDS.RightArm.Part1 = FakeR
  80. OLD_WELDS.LeftArm.Part1 = FakeL
  81.  
  82. --WELDS.RightArmW.Part1 = Char["Right Arm"]
  83. W.LeftArm.Part1 = Char["Left Arm"]
  84. else
  85. --OLD_WELDS.RightArm.Part1 = Char["Right Arm"]
  86. OLD_WELDS.LeftArm.Part1 = Char["Left Arm"]
  87.  
  88. --WELDS.RightArmW.Part1 = FakeR
  89. W.LeftArm.Part1 = FakeL
  90. end
  91. end; --ChangeWelds(false)
  92.  
  93. OLD_C1 = {
  94. Neck = W.Neck.C1,
  95. Torso = W.Torso.C1,
  96. LeftArm = W.LeftArm.C1,
  97. RightArm = W.RightArm.C1,
  98. LeftLeg = W.LeftLeg.C1,
  99. RightLeg = W.RightLeg.C1
  100. }
  101. OLD_C0 = {
  102. Neck = W.Neck.C0,
  103. Torso = W.Torso.C0,
  104. LeftArm = W.LeftArm.C0,
  105. RightArm = W.RightArm.C0,
  106. LeftLeg = W.LeftLeg.C0,
  107. RightLeg = W.RightLeg.C0
  108. }
  109.  
  110. W.RightArm.C0 = W.RightArm.C0*CFrame.Angles(-math.rad(20), 0, -math.rad(10))
  111. W.LeftArm.C0 = W.LeftArm.C0*CFrame.Angles(-math.rad(10), 0, 0)
  112.  
  113. OLD_WELDS.RightArm.C0 = W.RightArm.C0*CFrame.Angles(-math.rad(20), 0, -math.rad(10))
  114. OLD_WELDS.LeftArm.C0 = W.LeftArm.C0*CFrame.Angles(-math.rad(10), 0, 0)
  115.  
  116. function WeldGroup(parts)
  117. local prev
  118. for i = 1,#parts do
  119. if (parts[i].className == "Part") or (parts[i].className == "VehicleSeat") or (parts[i].className == "UnionOperation") then
  120. if (prev ~= nil)then
  121. local weld = Instance.new("Weld")
  122. weld.Part0 = prev
  123. weld.Part1 = parts[i]
  124. weld.C0 = prev.CFrame:inverse()
  125. weld.C1 = parts[i].CFrame:inverse()
  126. weld.Parent = prev
  127. end
  128. prev = parts[i]
  129. end
  130. end
  131. end
  132.  
  133. function WeldBetween(a, b, C, name)
  134. --Make a new Weld and Parent it to a.
  135. local weld = Instance.new("ManualWeld", a)
  136. weld.Name = name or "Weld"
  137. weld.Part0 = a
  138. weld.Part1 = b
  139. --Get the CFrame of b relative to a.
  140. weld.C0 = C or a.CFrame:inverse() * b.CFrame
  141. --Return the reference to the weld so that you can change it later.
  142. return weld
  143. end
  144.  
  145. function CreateSword()
  146. lynn = Instance.new("Model", Char)
  147. lynn.Name = "Lynn"
  148.  
  149. local part = Instance.new("Part", lynn)
  150. part.FormFactor = Enum.FormFactor.Custom
  151. part.CanCollide = false
  152. part.TopSurface = Enum.SurfaceType.Smooth
  153. part.Material = Enum.Material.SmoothPlastic
  154. part.Size = Vector3.new(0.961, 0.2, 0.2)
  155. part.CFrame = CFrame.new(8.212, 0.7, 18.287) * CFrame.Angles(-3.0600867262365e-007, -0.52359843254089, -1.8473875229574e-007)
  156. part.BrickColor = BrickColor.new("Mid gray")
  157. part.Friction = 0.3
  158. part.BottomSurface = Enum.SurfaceType.Smooth
  159.  
  160. local mesh = Instance.new("BlockMesh", part)
  161. mesh.Scale = Vector3.new(1, 0.52, 1)
  162.  
  163. toppoint = Instance.new("Part", lynn)
  164. toppoint.FormFactor = Enum.FormFactor.Custom
  165. toppoint.CanCollide = false
  166. toppoint.TopSurface = Enum.SurfaceType.Smooth
  167. toppoint.Material = Enum.Material.SmoothPlastic
  168. toppoint.Size = Vector3.new(1.818, 0.2, 1)
  169. toppoint.Name = "TopPoint"
  170. toppoint.CFrame = CFrame.new(8.867, 0.7, 17.618) * CFrame.Angles(-3.141592502594, -0.78539752960205, -3.141592502594)
  171. toppoint.BrickColor = BrickColor.new("Mid gray")
  172. toppoint.Friction = 0.3
  173. toppoint.BottomSurface = Enum.SurfaceType.Smooth
  174.  
  175. local mesh_2 = Instance.new("BlockMesh", toppoint)
  176. mesh_2.Scale = Vector3.new(1, 0.54, 1)
  177.  
  178. local part_2 = Instance.new("Part", lynn)
  179. part_2.FormFactor = Enum.FormFactor.Custom
  180. part_2.CanCollide = false
  181. part_2.TopSurface = Enum.SurfaceType.Smooth
  182. part_2.Material = Enum.Material.SmoothPlastic
  183. part_2.Size = Vector3.new(1.923, 0.2, 0.8)
  184. part_2.CFrame = CFrame.new(8.381, 0.7, 17.308) * CFrame.Angles(-3.1415910720825, -1.3089945316315, -3.1415910720825)
  185. part_2.BrickColor = BrickColor.new("Mid gray")
  186. part_2.Friction = 0.3
  187. part_2.BottomSurface = Enum.SurfaceType.Smooth
  188.  
  189. local mesh_3 = Instance.new("BlockMesh", part_2)
  190. mesh_3.Scale = Vector3.new(1, 0.53, 1)
  191.  
  192. local part_3 = Instance.new("Part", lynn)
  193. part_3.FormFactor = Enum.FormFactor.Custom
  194. part_3.CanCollide = false
  195. part_3.TopSurface = Enum.SurfaceType.Smooth
  196. part_3.Material = Enum.Material.SmoothPlastic
  197. part_3.Size = Vector3.new(0.6, 0.2, 0.6)
  198. part_3.CFrame = CFrame.new(8.9, 0.7, 14.417) * CFrame.Angles(-5.9411124908593e-009, -0.78539770841599, -2.0384338483836e-007)
  199. part_3.BrickColor = BrickColor.new("Dark stone grey")
  200. part_3.Friction = 0.3
  201. part_3.BottomSurface = Enum.SurfaceType.Smooth
  202.  
  203. local mesh_4 = Instance.new("BlockMesh", part_3)
  204. mesh_4.Scale = Vector3.new(1, 0.99, 1)
  205.  
  206. local part_4 = Instance.new("Part", lynn)
  207. part_4.FormFactor = Enum.FormFactor.Custom
  208. part_4.CanCollide = false
  209. part_4.TopSurface = Enum.SurfaceType.Smooth
  210. part_4.Material = Enum.Material.SmoothPlastic
  211. part_4.Size = Vector3.new(1.4, 0.2, 4)
  212. part_4.CFrame = CFrame.new(8.9, 0.7, 15) * CFrame.Angles(-0, 0, -4.4703508450539e-008)
  213. part_4.BrickColor = BrickColor.new("Mid gray")
  214. part_4.Friction = 0.3
  215. part_4.BottomSurface = Enum.SurfaceType.Smooth
  216.  
  217. local mesh_5 = Instance.new("BlockMesh", part_4)
  218. mesh_5.Scale = Vector3.new(1, 0.55, 1)
  219.  
  220. local part_5 = Instance.new("Part", lynn)
  221. part_5.FormFactor = Enum.FormFactor.Custom
  222. part_5.CanCollide = false
  223. part_5.TopSurface = Enum.SurfaceType.Smooth
  224. part_5.Material = Enum.Material.SmoothPlastic
  225. part_5.Size = Vector3.new(0.8, 0.2, 0.8)
  226. part_5.CFrame = CFrame.new(8.9, 0.7, 13.959) * CFrame.Angles(-5.9411124908593e-009, -0.78539770841599, -2.0384338483836e-007)
  227. part_5.BrickColor = BrickColor.new("Dark stone grey")
  228. part_5.Friction = 0.3
  229. part_5.BottomSurface = Enum.SurfaceType.Smooth
  230.  
  231. local mesh_6 = Instance.new("BlockMesh", part_5)
  232.  
  233. core = Instance.new("Part", lynn)
  234. core.FormFactor = Enum.FormFactor.Custom
  235. core.CanCollide = false
  236. core.TopSurface = Enum.SurfaceType.Smooth
  237. core.Material = Enum.Material.Neon
  238. core.Size = Vector3.new(1.8, 1, 0.6)
  239. core.Name = "Core"
  240. core.CFrame = CFrame.new(8.9, 0.7, 13.1) * CFrame.Angles(-0, 0, -4.4703508450539e-008)
  241. core.BrickColor = BrickColor.new("Royal purple")
  242. core.Friction = 0.3
  243. core.BottomSurface = Enum.SurfaceType.Smooth
  244.  
  245. local mesh_7 = Instance.new("CylinderMesh", core)
  246. mesh_7.Scale = Vector3.new(1, 0.75, 1)
  247.  
  248. local part_6 = Instance.new("Part", lynn)
  249. part_6.FormFactor = Enum.FormFactor.Custom
  250. part_6.CanCollide = false
  251. part_6.TopSurface = Enum.SurfaceType.Smooth
  252. part_6.Material = Enum.Material.SmoothPlastic
  253. part_6.Size = Vector3.new(1.8, 0.6, 1.4)
  254. part_6.CFrame = CFrame.new(8.9, 0.7, 13.1) * CFrame.Angles(-0, 0, -4.4703508450539e-008)
  255. part_6.BrickColor = BrickColor.new("Really black")
  256. part_6.Friction = 0.3
  257. part_6.BottomSurface = Enum.SurfaceType.Smooth
  258.  
  259. local mesh_8 = Instance.new("CylinderMesh", part_6)
  260.  
  261. local part_7 = Instance.new("Part", lynn)
  262. part_7.FormFactor = Enum.FormFactor.Custom
  263. part_7.CanCollide = false
  264. part_7.TopSurface = Enum.SurfaceType.Smooth
  265. part_7.Material = Enum.Material.SmoothPlastic
  266. part_7.Size = Vector3.new(1.8, 1, 1)
  267. part_7.CFrame = CFrame.new(8.9, 0.7, 13.1) * CFrame.Angles(-0, 0, -4.4703508450539e-008)
  268. part_7.BrickColor = BrickColor.new("Black")
  269. part_7.Friction = 0.3
  270. part_7.BottomSurface = Enum.SurfaceType.Smooth
  271.  
  272. local mesh_9 = Instance.new("CylinderMesh", part_7)
  273. mesh_9.Scale = Vector3.new(1, 0.7, 1)
  274.  
  275. local part_8 = Instance.new("Part", lynn)
  276. part_8.FormFactor = Enum.FormFactor.Custom
  277. part_8.CanCollide = false
  278. part_8.TopSurface = Enum.SurfaceType.Smooth
  279. part_8.Material = Enum.Material.SmoothPlastic
  280. part_8.Size = Vector3.new(1.8, 0.6, 1.4)
  281. part_8.CFrame = CFrame.new(8.9, 0.7, 12.7) * CFrame.Angles(-0, 0, -4.4703508450539e-008)
  282. part_8.BrickColor = BrickColor.new("Black")
  283. part_8.Friction = 0.3
  284. part_8.BottomSurface = Enum.SurfaceType.Smooth
  285.  
  286. local mesh_10 = Instance.new("CylinderMesh", part_8)
  287. mesh_10.Scale = Vector3.new(1, 0.5, 1)
  288.  
  289. local part_9 = Instance.new("Part", lynn)
  290. part_9.FormFactor = Enum.FormFactor.Custom
  291. part_9.CanCollide = false
  292. part_9.TopSurface = Enum.SurfaceType.Smooth
  293. part_9.Material = Enum.Material.SmoothPlastic
  294. part_9.Size = Vector3.new(0.653, 0.2, 0.2)
  295. part_9.CFrame = CFrame.new(9.613, 0.7, 17.096) * CFrame.Angles(-0, -1.0471967458725, -1.2213226341373e-007)
  296. part_9.BrickColor = BrickColor.new("Mid gray")
  297. part_9.Friction = 0.3
  298. part_9.BottomSurface = Enum.SurfaceType.Smooth
  299.  
  300. local mesh_11 = Instance.new("BlockMesh", part_9)
  301. mesh_11.Scale = Vector3.new(1, 0.52, 1)
  302.  
  303. local part_10 = Instance.new("Part", lynn)
  304. part_10.FormFactor = Enum.FormFactor.Custom
  305. part_10.CanCollide = false
  306. part_10.TopSurface = Enum.SurfaceType.Smooth
  307. part_10.Material = Enum.Material.SmoothPlastic
  308. part_10.Size = Vector3.new(1.8, 0.2, 1.8)
  309. part_10.CFrame = CFrame.new(8.9, 0.7, 12.9) * CFrame.Angles(-0, 0, -4.4703508450539e-008)
  310. part_10.BrickColor = BrickColor.new("Dark stone grey")
  311. part_10.Friction = 0.3
  312. part_10.BottomSurface = Enum.SurfaceType.Smooth
  313.  
  314. local mesh_12 = Instance.new("CylinderMesh", part_10)
  315.  
  316. local part_11 = Instance.new("Part", lynn)
  317. part_11.FormFactor = Enum.FormFactor.Custom
  318. part_11.CanCollide = false
  319. part_11.TopSurface = Enum.SurfaceType.Smooth
  320. part_11.Material = Enum.Material.SmoothPlastic
  321. part_11.Size = Vector3.new(1.8, 0.6, 0.6)
  322. part_11.CFrame = CFrame.new(8.9, 0.7, 12.1) * CFrame.Angles(-0, 0, -4.4703508450539e-008)
  323. part_11.BrickColor = BrickColor.new("Dark stone grey")
  324. part_11.Friction = 0.3
  325. part_11.BottomSurface = Enum.SurfaceType.Smooth
  326.  
  327. local mesh_13 = Instance.new("CylinderMesh", part_11)
  328.  
  329. handle = Instance.new("Part", lynn)
  330. handle.FormFactor = Enum.FormFactor.Custom
  331. handle.CanCollide = false
  332. handle.TopSurface = Enum.SurfaceType.Smooth
  333. handle.Material = Enum.Material.SmoothPlastic
  334. handle.Size = Vector3.new(0.6, 1.8, 0.6)
  335. handle.Name = "Handle"
  336. handle.CFrame = CFrame.new(8.9, 0.7, 11.3) * CFrame.Angles(1.5707963705063, 0, -4.4703508450539e-008)
  337. handle.Friction = 0.3
  338. handle.BottomSurface = Enum.SurfaceType.Smooth
  339.  
  340. local mesh_14 = Instance.new("CylinderMesh", handle)
  341.  
  342. local part_12 = Instance.new("Part", lynn)
  343. part_12.FormFactor = Enum.FormFactor.Custom
  344. part_12.CanCollide = false
  345. part_12.TopSurface = Enum.SurfaceType.Smooth
  346. part_12.Material = Enum.Material.SmoothPlastic
  347. part_12.Size = Vector3.new(0.6, 0.8, 0.6)
  348. part_12.CFrame = CFrame.new(8.9, 0.7, 10.4) * CFrame.Angles(1.5707963705063, 0, -0)
  349. part_12.BrickColor = BrickColor.new("Dark stone grey")
  350. part_12.Friction = 0.3
  351. part_12.BottomSurface = Enum.SurfaceType.Smooth
  352.  
  353. local mesh_15 = Instance.new("SpecialMesh", part_12)
  354. mesh_15.MeshType = Enum.MeshType.Sphere
  355.  
  356. local part_13 = Instance.new("Part", lynn)
  357. part_13.FormFactor = Enum.FormFactor.Custom
  358. part_13.CanCollide = false
  359. part_13.TopSurface = Enum.SurfaceType.Smooth
  360. part_13.Material = Enum.Material.SmoothPlastic
  361. part_13.Size = Vector3.new(1, 1.2, 0.2)
  362. part_13.CFrame = CFrame.new(8.9, 0.7, 9.4) * CFrame.Angles(1.5707963705063, 0, -0)
  363. part_13.BrickColor = BrickColor.new("Dark stone grey")
  364. part_13.Friction = 0.3
  365. part_13.BottomSurface = Enum.SurfaceType.Smooth
  366.  
  367. local mesh_16 = Instance.new("SpecialMesh", part_13)
  368. mesh_16.Scale = Vector3.new(2, 2, 2)
  369. mesh_16.MeshId = "http://www.roblox.com/asset/?id=3270017"
  370. mesh_16.MeshType = Enum.MeshType.FileMesh
  371.  
  372. WeldGroup(lynn:GetChildren())
  373. WeldBetween(handle, Char["Right Arm"], CFrame.new(-1, 0, 0)*CFrame.Angles(math.rad(90), 0, math.rad(90)), "HandleWeld")
  374. W.Handle = handle.HandleWeld
  375. OLD_C1.Handle = W.Handle.C1
  376. OLD_C0.Handle = W.Handle.C0
  377. end; CreateSword()
  378.  
  379. local fromAxisAngle = CFrame.fromAxisAngle
  380. local components = CFrame.new().components
  381. local inverse = CFrame.new().inverse
  382. local v3 = Vector3.new
  383. local acos = math.acos
  384. local sqrt = math.sqrt
  385. local invroot2 = 1/math.sqrt(2)
  386.  
  387. function clerp(c0, c1, t) -- (CFrame from, CFrame to) -> (float theta, (float fraction -> CFrame between))
  388. -- The expanded matrix
  389. local _, _, _, xx, yx, zx,
  390. xy, yy, zy,
  391. xz, yz, zz = components(inverse(c0)*c1)
  392.  
  393. -- The cos-theta of the axisAngles from
  394. local cosTheta = (xx + yy + zz - 1)/2
  395.  
  396. -- Rotation axis
  397. local rotationAxis = v3(yz-zy, zx-xz, xy-yx)
  398.  
  399. -- The position to tween through
  400. local positionDelta = (c1.p - c0.p)
  401.  
  402. -- Theta
  403. local theta;
  404.  
  405. -- Catch degenerate cases
  406. if cosTheta == 0 then
  407. -- Case exact same rotation, just interpolator over the position
  408. return c0 + positionDelta*t
  409. elseif cosTheta >= 0.999 then
  410. -- Case very similar rotations, just lineraly interpolate, as it is a good
  411. -- approximation. At this small angle we can't reliably find a rotation axis
  412. -- for some values even if the rotation matrix would still be accurate.
  413. local startPos = c0.p
  414. local _, _, _, xx0, yx0, zx0,
  415. xy0, yy0, zy0,
  416. xz0, yz0, zz0 = components(c0)
  417. local _, _, _, xx1, yx1, zx1,
  418. xy1, yy1, zy1,
  419. xz1, yz1, zz1 = components(c1)
  420. local a = 1 - t
  421. return CFrame.new(0, 0, 0, xx0*a+xx1*t, yx0*a+yx1*t, zx0*a+zx1*t,
  422. xy0*a+xy1*t, yy0*a+yy1*t, zy0*a+zy1*t,
  423. xz0*a+xz1*t, yz0*a+yz1*t, zz0*a+zz1*t) +
  424. (startPos + positionDelta*t)
  425. elseif cosTheta <= -0.9999 then
  426. -- Case exactly opposite rotations, disambiguate
  427. theta = math.pi
  428. xx = (xx + 1) / 2
  429. yy = (yy + 1) / 2
  430. zz = (zz + 1) / 2
  431. if xx > yy and xx > zz then
  432. if xx < 0.0001 then
  433. rotationAxis = v3(0, invroot2, invroot2)
  434. else
  435. local x = sqrt(xx)
  436. xy = (xy + yx) / 4
  437. xz = (xz + zx) / 4
  438. rotationAxis = v3(x, xy/x, xz/x)
  439. end
  440. elseif yy > zz then
  441. if yy < 0.0001 then
  442. rotationAxis = v3(invroot2, 0, invroot2)
  443. else
  444. local y = sqrt(yy)
  445. xy = (xy + yx) / 4
  446. yz = (yz + zy) / 4
  447. rotationAxis = v3(xy/y, y, yz/y)
  448. end
  449. else
  450. if zz < 0.0001 then
  451. rotationAxis = v3(invroot2, invroot2, 0)
  452. else
  453. local z = sqrt(zz)
  454. xz = (xz + zx) / 4
  455. yz = (yz + zy) / 4
  456. rotationAxis = v3(xz/z, yz/z, z)
  457. end
  458. end
  459. else
  460. -- Normal case, get theta from cosTheta
  461. theta = acos(cosTheta)
  462. end
  463.  
  464. -- Return the interpolator
  465. -- return theta, function(t)
  466. -- return c0*fromAxisAngle(rotationAxis, theta*t) + positionDelta*t
  467. -- end
  468.  
  469. return c0*fromAxisAngle(rotationAxis, theta*t) + positionDelta*t
  470. end
  471.  
  472. function MagDamage(Pos, Damage, Rad, per)
  473. local Targeted = {}
  474. local Percent = per or false
  475. local Radius = Rad or 1
  476. local Players = game.Players:GetChildren()
  477. for _, v in pairs(Players) do
  478. if v.Character and v.Name ~= Player.Name then
  479. if v.Character:FindFirstChild("Humanoid") and v.Character:FindFirstChild("Torso") then
  480. local mag = (Pos - v.Character.Torso.Position).magnitude
  481. if mag <= Rad then
  482. if percent then
  483. v.Character.Humanoid:TakeDamage(v.Character.Humanoid.MaxHealth/100*Damage)
  484. else
  485. v.Character.Humanoid:TakeDamage(Damage)
  486. end
  487. table.insert(Targeted, v)
  488. end
  489. end
  490. end
  491. end
  492. return Targeted
  493. end
  494.  
  495. function SetSpeed(s, r)
  496. Char.Humanoid.WalkSpeed = s
  497. Char.Humanoid.AutoRotate = r
  498. end
  499.  
  500. Moves = {
  501. ["ClickAttack"] = function()
  502. State = "Move"; RunNow = false
  503. local Select = math.random(1,3)
  504. if Select == 1 then
  505. for i = 0, 1, .1 do wait()
  506. W.Torso.C1 = clerp(W.Torso.C1, OLD_C1.Torso, i)
  507. W.Torso.C0 = clerp(W.Torso.C0, OLD_C0.Torso*CFrame.new(0, 0, 10)*CFrame.Angles(-math.rad(10), 0, 0), i)
  508. W.LeftArm.C1 = clerp(W.LeftArm.C1, OLD_C1.LeftArm*CFrame.new(0, .5, 0)*CFrame.Angles(-math.rad(20), 0, math.rad(170)), i)
  509. W.RightArm.C1 = clerp(W.RightArm.C1, OLD_C1.RightArm*CFrame.new(0, .5, 0)*CFrame.Angles(-math.rad(20), 0, -math.rad(170)), i)
  510. W.Handle.C0 = clerp(W.Handle.C0, OLD_C0.Handle*CFrame.new(0, 0, .4)*CFrame.Angles(math.rad(60), math.rad(20), 0), i)
  511. W.Handle.C1 = clerp(W.Handle.C1, OLD_C1.Handle, i)
  512. end
  513. for i = 0, 1, .2 do wait()
  514. W.Torso.C1 = clerp(W.Torso.C1, OLD_C1.Torso, i)
  515. W.Torso.C0 = clerp(W.Torso.C0, OLD_C0.Torso, i)
  516. W.LeftArm.C1 = clerp(W.LeftArm.C1, OLD_C1.LeftArm*CFrame.new(0, .5, 0)*CFrame.Angles(-math.rad(50), 0, math.rad(40)), i)
  517. W.RightArm.C1 = clerp(W.RightArm.C1, OLD_C1.RightArm*CFrame.new(0, .5, 0)*CFrame.Angles(-math.rad(50), 0, -math.rad(40)), i)
  518. W.Handle.C0 = clerp(W.Handle.C0, OLD_C0.Handle*CFrame.Angles(math.rad(40), math.rad(20), 0), i)
  519. end
  520. MagDamage(toppoint.Position, 20, 15)
  521. for i = 1, 5 do
  522. local t = SmoothPart:clone()
  523. local bm = Instance.new("BlockMesh", t)
  524. bm.Scale = Vector3.new(0, 0, 0)
  525. t.Anchored = true
  526. t.CanCollide = false
  527. t.Size = Vector3.new(1,1,1)
  528. t.Rotation = Vector3.new(math.random(360), math.random(360), math.random(360))
  529. t.Transparency = .5
  530. t.Position = toppoint.Position
  531. t.Parent = Char
  532. coroutine.resume(coroutine.create(function()
  533. for i = 0, 1, .2 do wait()
  534. bm.Scale = Vector3.new(5*i, 5*i, 5*i)
  535. wait()
  536. end
  537. t:Destroy()
  538. end))
  539. end
  540. local t = SmoothPart:clone()
  541. local bm = Instance.new("SpecialMesh", t)
  542. bm.MeshId = MESHES.Ring
  543. bm.Scale = Vector3.new(0, 0, 0)
  544. t.Anchored = true
  545. t.CanCollide = false
  546. t.Size = Vector3.new(1,1,1)
  547. t.Rotation = Vector3.new(90, 0, 0)
  548. t.Transparency = .5
  549. t.Position = toppoint.Position - Vector3.new(0 , .5, 0)
  550. t.Parent = Char
  551. coroutine.resume(coroutine.create(function()
  552. for i = 0, 1, .2 do wait()
  553. bm.Scale = Vector3.new(15*i, 15*i, 15)
  554. wait()
  555. end
  556. t:Destroy()
  557. end))
  558. for i = 0, 1, .2 do wait()
  559. W.Torso.C1 = clerp(W.Torso.C1, OLD_C1.Torso, i)
  560. W.LeftArm.C1 = clerp(W.LeftArm.C1, OLD_C1.LeftArm, i)
  561. W.RightArm.C1 = clerp(W.RightArm.C1, OLD_C1.RightArm, i)
  562. W.Handle.C0 = clerp(W.Handle.C0, OLD_C0.Handle, i)
  563. W.Handle.C1 = clerp(W.Handle.C1, OLD_C1.Handle, i)
  564. end
  565.  
  566. elseif Select == 2 then
  567. for i = 0, 1, .2 do wait()
  568. W.Torso.C1 = clerp(W.Torso.C1, OLD_C1.Torso, i)
  569. W.LeftArm.C1 = clerp(W.LeftArm.C1, OLD_C1.LeftArm, i)
  570. W.RightArm.C1 = clerp(W.RightArm.C1, OLD_C1.RightArm*CFrame.Angles(math.rad(90), -math.rad(90), 0), i)
  571. W.Handle.C0 = clerp(W.Handle.C0, OLD_C0.Handle, i)
  572. W.Handle.C1 = clerp(W.Handle.C1, OLD_C1.Handle, i)
  573. end
  574. for i = 0, 1, .2 do wait()
  575. W.Torso.C1 = clerp(W.Torso.C1, OLD_C1.Torso, i)
  576. W.LeftArm.C1 = clerp(W.LeftArm.C1, OLD_C1.LeftArm, i)
  577. W.RightArm.C1 = clerp(W.RightArm.C1, OLD_C1.RightArm*CFrame.Angles(math.rad(90), math.rad(90), 0), i)
  578. W.Handle.C0 = clerp(W.Handle.C0, OLD_C0.Handle, i)
  579. W.Handle.C1 = clerp(W.Handle.C1, OLD_C1.Handle, i)
  580. MagDamage(core.Position, 5, 8)
  581. end
  582.  
  583. for i = 0, 1, .2 do wait()
  584. W.Torso.C1 = clerp(W.Torso.C1, OLD_C1.Torso, i)
  585. W.LeftArm.C1 = clerp(W.LeftArm.C1, OLD_C1.LeftArm, i)
  586. W.RightArm.C1 = clerp(W.RightArm.C1, OLD_C1.RightArm, i)
  587. W.Handle.C0 = clerp(W.Handle.C0, OLD_C0.Handle, i)
  588. W.Handle.C1 = clerp(W.Handle.C1, OLD_C1.Handle, i)
  589. end
  590. elseif Select == 3 then
  591. for i = 0, 1, .2 do wait()
  592. W.Torso.C1 = clerp(W.Torso.C1, OLD_C1.Torso, i)
  593. W.LeftArm.C1 = clerp(W.LeftArm.C1, OLD_C1.LeftArm, i)
  594. W.RightArm.C1 = clerp(W.RightArm.C1, OLD_C1.RightArm*CFrame.new(-.2, 0, .5)*CFrame.Angles(-math.rad(90), math.rad(120), 0), i)
  595. W.Handle.C0 = clerp(W.Handle.C0, OLD_C0.Handle, i)
  596. W.Handle.C1 = clerp(W.Handle.C1, OLD_C1.Handle, i)
  597. end
  598. for i = 0, 1, .2 do wait()
  599. W.Torso.C1 = clerp(W.Torso.C1, OLD_C1.Torso, i)
  600. W.LeftArm.C1 = clerp(W.LeftArm.C1, OLD_C1.LeftArm, i)
  601. W.RightArm.C1 = clerp(W.RightArm.C1, OLD_C1.RightArm*CFrame.new(-.2, 0, .5)*CFrame.Angles(-math.rad(90), -math.rad(30), 0), i)
  602. W.Handle.C0 = clerp(W.Handle.C0, OLD_C0.Handle, i)
  603. W.Handle.C1 = clerp(W.Handle.C1, OLD_C1.Handle, i)
  604. MagDamage(core.Position, 5, 8)
  605. end
  606.  
  607. for i = 0, 1, .2 do wait()
  608. W.Torso.C1 = clerp(W.Torso.C1, OLD_C1.Torso, i)
  609. W.LeftArm.C1 = clerp(W.LeftArm.C1, OLD_C1.LeftArm, i)
  610. W.RightArm.C1 = clerp(W.RightArm.C1, OLD_C1.RightArm, i)
  611. W.Handle.C0 = clerp(W.Handle.C0, OLD_C0.Handle, i)
  612. W.Handle.C1 = clerp(W.Handle.C1, OLD_C1.Handle, i)
  613. end
  614. end
  615. DebMove = false; State = "EndMove"
  616. end
  617. }
  618.  
  619. Movement = {
  620. ["Idle"] = function() --ChangeWelds(false)
  621. for i = 0, 1, .1 do wait(); RunNow = false
  622. if State ~= "Idle" then return end
  623. W.Neck.C1 = clerp(W.Neck.C1, OLD_C1.Neck, i)
  624. W.Torso.C1 = clerp(W.Torso.C1, OLD_C1.Torso, i)
  625. W.LeftArm.C1 = clerp(W.LeftArm.C1, OLD_C1.LeftArm, i)
  626. W.RightArm.C1 = clerp(W.RightArm.C1, OLD_C1.RightArm*CFrame.new(0, 0, .3)*CFrame.Angles(-math.rad(10), 0, -math.rad(70)), i)
  627. W.Handle.C1 = clerp(W.Handle.C1, OLD_C1.Handle*CFrame.new(-.3, -.5, .5)*CFrame.Angles(math.rad(70), math.rad(5), math.rad(20)), i)
  628. end
  629. end,
  630. ["Walking"] = function() --ChangeWelds(false)
  631. for i = 0, 1, .1 do wait(); RunNow = false
  632. if State ~= "Walking" then return end
  633. W.Neck.C1 = clerp(W.Neck.C1, OLD_C1.Neck, i)
  634. W.Torso.C1 = clerp(W.Torso.C1, OLD_C1.Torso, i)
  635. W.LeftArm.C1 = clerp(W.LeftArm.C1, OLD_C1.LeftArm, i)
  636. W.RightArm.C1 = clerp(W.RightArm.C1, OLD_C1.RightArm, i)
  637. W.Handle.C1 = clerp(W.Handle.C1, OLD_C1.Handle, i)
  638. end
  639. end ,
  640. ["Running"] = function() --ChangeWelds(true) wait()
  641. for i = 0, 1, .1 do wait(); RunNow = false
  642. if State ~= "Running" then return end
  643. W.Neck.C1 = clerp(W.Neck.C1, OLD_C1.Neck*CFrame.Angles(0, 0, -math.rad(55)), i)
  644. W.Torso.C1 = clerp(W.Torso.C1, OLD_C1.Torso*CFrame.Angles(0, 0, math.rad(55)), i)
  645. W.LeftArm.C1 = clerp(W.LeftArm.C1, OLD_C1.LeftArm*CFrame.new(0, .5, 0)*CFrame.Angles(-math.rad(60), 0, math.rad(90)), i)
  646. W.RightArm.C1 = clerp(W.RightArm.C1, OLD_C1.RightArm*CFrame.Angles(0, 0, -math.rad(50)), i)
  647. W.Handle.C1 = clerp(W.Handle.C1, OLD_C1.Handle*CFrame.Angles(0, math.rad(210), math.rad(20)), i)
  648. end
  649. RunNow = true
  650. end
  651. }
  652.  
  653. local Trail = coroutine.create(function()
  654. while wait() do
  655. if RunNow then
  656. local t = SmoothPart:clone()
  657. local bm = Instance.new("BlockMesh", t)
  658. bm.Scale = Vector3.new(2, 2, 2)
  659. t.Anchored = true
  660. t.CanCollide = false
  661. t.Size = Vector3.new(1,1,1)
  662. t.Rotation = Vector3.new(math.random(360), math.random(360), math.random(360))
  663. t.Transparency = .5
  664. t.Position = toppoint.Position
  665. t.Parent = Char
  666. coroutine.resume(coroutine.create(function()
  667. for i = 1, 0, -.1 do wait()
  668. bm.Scale = Vector3.new(2*i, 2*i, 2*i)
  669. end
  670. end))
  671. end
  672. end
  673. end)
  674. coroutine.resume(Trail)
  675.  
  676. function Quote()
  677. game:GetService("Chat"):Chat(Char.Head,Quotes[math.random(1,#Quotes)],"Green")
  678. wait(.1)
  679. DebTalk = false
  680. end
  681.  
  682. local bin=Instance.new("HopperBin", Player.Backpack)
  683. bin.Name= "Lynn"
  684.  
  685. bin.Selected:connect(function(mouse)
  686. game:GetService("UserInputService").InputBegan:connect(function(key)
  687. if key.KeyCode == Enum.KeyCode.LeftControl then
  688. SetSpeed(30, true)
  689. ChangeState(30)
  690. end
  691. if key.KeyCode == Enum.KeyCode.G and DebTalk == false then DebTalk = true
  692. Quote()
  693. end
  694. end)
  695. game:GetService("UserInputService").InputEnded:connect(function(key)
  696. if key.KeyCode == Enum.KeyCode.LeftControl then
  697. SetSpeed(16, true)
  698. ChangeState(16)
  699. end
  700. end)
  701. mouse.Button1Down:connect(function()
  702. if DebMove == false then DebMove = true
  703. Moves.ClickAttack()
  704. end
  705. end)
  706. end)
  707. local Hum = Char.Humanoid
  708.  
  709. function ChangeState(speed)
  710. print(State)
  711. if State == "Move" then
  712. return
  713. elseif State == "EndMove" then
  714. State = "Idle"
  715. end
  716. print("Running! "..speed)
  717. RunNow = false
  718. if speed == 0 then
  719. State = "Idle"
  720. Movement.Idle()
  721. elseif Hum.WalkSpeed <= 16 then
  722. State = "Walking"
  723. Movement.Walking()
  724. else
  725. State = "Running"
  726. Movement.Running()
  727. end
  728. end
  729. Hum.Running:connect(ChangeState)
Add Comment
Please, Sign In to add comment