Advertisement
Toastymctoast

yyy

May 10th, 2018
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 61.52 KB | None | 0 0
  1. --[[NIGHTOWLACE_WEAPONRY]]--
  2. maincolor = game.Players.LocalPlayer.Character.Torso.BrickColor.Name
  3. secondcolor = "Cyan"
  4.  
  5. wait(1 / 60)
  6. Effects = { }
  7. local Player = game.Players.localPlayer
  8. local Character = Player.Character
  9. local Humanoid = Character.Humanoid
  10. local mouse = Player:GetMouse()
  11. local LeftArm = Character["Left Arm"]
  12. local RightArm = Character["Right Arm"]
  13. local LeftLeg = Character["Left Leg"]
  14. local RightLeg = Character["Right Leg"]
  15. local Head = Character.Head
  16. local Torso = Character.Torso
  17. local cam = game.Workspace.CurrentCamera
  18. local RootPart = Character.HumanoidRootPart
  19. local RootJoint = RootPart.RootJoint
  20. local equipped = true
  21. local attack = false
  22. local Anim = 'Idle'
  23. local idle = 0
  24. local attacktype = 1
  25. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  26. local velocity = RootPart.Velocity.y
  27. local sine = 0
  28. local change = 1
  29. local grabbed = false
  30. local cn = CFrame.new
  31. local mr = math.rad
  32. local angles = CFrame.Angles
  33. local ud = UDim2.new
  34. local c3 = Color3.new
  35. local dir = {w = 0, s = 0, a = 0, d = 0}
  36. Runkey=false
  37. firemode = false
  38. local Services = {
  39.  
  40.  
  41. SoundService = game:GetService("SoundService");
  42. Players = game:GetService("Players");
  43. Debris = game:GetService("Debris");
  44. Workspace = game:GetService("Workspace");
  45. Lighting = game:GetService("Lighting");
  46. HttpService = game:GetService("HttpService");
  47. InsertService = game:GetService("InsertService");
  48.  
  49. }
  50.  
  51. local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  52. Humanoid.Animator:Destroy()
  53. Character.Animate:Destroy()
  54.  
  55. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  56. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  57. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  58.  
  59. RSH, LSH = nil, nil
  60.  
  61. RW = Instance.new("Weld")
  62. LW = Instance.new("Weld")
  63.  
  64. RH = Torso["Right Hip"]
  65. LH = Torso["Left Hip"]
  66.  
  67. RSH = Torso["Right Shoulder"]
  68. LSH = Torso["Left Shoulder"]
  69.  
  70. RSH.Parent = nil
  71. LSH.Parent = nil
  72.  
  73. RW.Name = "RW"
  74. RW.Part0 = Torso
  75. RW.C0 = cn(1.5, 0.5, 0)
  76. RW.C1 = cn(0, 0.5, 0)
  77. RW.Part1 = RightArm
  78. RW.Parent = Torso
  79.  
  80. LW.Name = "LW"
  81. LW.Part0 = Torso
  82. LW.C0 = cn(-1.5, 0.5, 0)
  83. LW.C1 = cn(0, 0.5, 0)
  84. LW.Part1 = LeftArm
  85. LW.Parent = Torso
  86.  
  87. function clerp(a, b, t)
  88. local qa = {
  89. QuaternionFromCFrame(a)
  90. }
  91. local qb = {
  92. QuaternionFromCFrame(b)
  93. }
  94. local ax, ay, az = a.x, a.y, a.z
  95. local bx, by, bz = b.x, b.y, b.z
  96. local _t = 1 - t
  97. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  98. end
  99.  
  100. function QuaternionFromCFrame(cf)
  101. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  102. local trace = m00 + m11 + m22
  103. if trace > 0 then
  104. local s = math.sqrt(1 + trace)
  105. local recip = 0.5 / s
  106. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  107. else
  108. local i = 0
  109. if m11 > m00 then
  110. i = 1
  111. end
  112. if m22 > (i == 0 and m00 or m11) then
  113. i = 2
  114. end
  115. if i == 0 then
  116. local s = math.sqrt(m00 - m11 - m22 + 1)
  117. local recip = 0.5 / s
  118. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  119. elseif i == 1 then
  120. local s = math.sqrt(m11 - m22 - m00 + 1)
  121. local recip = 0.5 / s
  122. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  123. elseif i == 2 then
  124. local s = math.sqrt(m22 - m00 - m11 + 1)
  125. local recip = 0.5 / s
  126. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  127. end
  128. end
  129. end
  130.  
  131. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  132. local xs, ys, zs = x + x, y + y, z + z
  133. local wx, wy, wz = w * xs, w * ys, w * zs
  134. local xx = x * xs
  135. local xy = x * ys
  136. local xz = x * zs
  137. local yy = y * ys
  138. local yz = y * zs
  139. local zz = z * zs
  140. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  141. end
  142.  
  143. function QuaternionSlerp(a, b, t)
  144. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  145. local startInterp, finishInterp;
  146. if cosTheta >= 0.0001 then
  147. if (1 - cosTheta) > 0.0001 then
  148. local theta = math.acos(cosTheta)
  149. local invSinTheta = 1 / math.sin(theta)
  150. startInterp = math.sin((1 - t) * theta) * invSinTheta
  151. finishInterp = math.sin(t * theta) * invSinTheta
  152. else
  153. startInterp = 1 - t
  154. finishInterp = t
  155. end
  156. else
  157. if (1 + cosTheta) > 0.0001 then
  158. local theta = math.acos(-cosTheta)
  159. local invSinTheta = 1 / math.sin(theta)
  160. startInterp = math.sin((t - 1) * theta) * invSinTheta
  161. finishInterp = math.sin(t * theta) * invSinTheta
  162. else
  163. startInterp = t - 1
  164. finishInterp = t
  165. end
  166. end
  167. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  168. end
  169.  
  170. function swait(num)
  171. if num == 0 or num == nil then
  172. game:service'RunService'.RenderStepped:wait(0)
  173. else
  174. for i = 0, num do
  175. game:service'RunService'.RenderStepped:wait(0)
  176. end
  177. end
  178. end
  179.  
  180. local RbxUtility = LoadLibrary("RbxUtility")
  181. local Create = RbxUtility.Create
  182.  
  183. function RemoveOutlines(part)
  184. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  185. end
  186.  
  187. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  188. local Part = Create("Part"){
  189. formFactor = FormFactor,
  190. Parent = Parent,
  191. Reflectance = Reflectance,
  192. Transparency = Transparency,
  193. CanCollide = false,
  194. Locked = true,
  195. BrickColor = BrickColor.new(tostring(BColor)),
  196. Name = Name,
  197. Size = Size,
  198. Material = Material,
  199. }
  200. RemoveOutlines(Part)
  201. return Part
  202. end
  203.  
  204. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  205. local Msh = Create(Mesh){
  206. Parent = Part,
  207. Offset = OffSet,
  208. Scale = Scale,
  209. }
  210. if Mesh == "SpecialMesh" then
  211. Msh.MeshType = MeshType
  212. Msh.MeshId = MeshId
  213. end
  214. return Msh
  215. end
  216.  
  217. function CreateWeld(Parent, Part0, Part1, C0, C1)
  218. local Weld = Create("Weld"){
  219. Parent = Parent,
  220. Part0 = Part0,
  221. Part1 = Part1,
  222. C0 = C0,
  223. C1 = C1,
  224. }
  225. return Weld
  226. end
  227.  
  228. function rayCast(Position, Direction, Range, Ignore)
  229. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  230. end
  231.  
  232. function CreateSound(id, par, vol, pit)
  233. coroutine.resume(coroutine.create(function()
  234. local sou = Instance.new("Sound", par or workspace)
  235. sou.Volume = vol
  236. sou.Pitch = pit or 1
  237. sou.SoundId = id
  238. wait()
  239. sou:play()
  240. game:GetService("Debris"):AddItem(sou, 6)
  241. end))
  242. end
  243. function CreateSong(id, par, vol, pit)
  244. coroutine.resume(coroutine.create(function()
  245. sou2 = Instance.new("Sound", par or workspace)
  246. sou2.Volume = vol
  247. sou2.Pitch = 1
  248. sou2.SoundId = id
  249. wait()
  250. sou2:play()
  251. sou2.Looped = true
  252. end))
  253. end
  254. CreateSong("http://www.roblox.com/asset/?id=1651440712", Character, 2) -- 907812025 -- 871929646 -- 887451428 -- 532798812 --
  255. local function getclosest(obj, distance)
  256. local last, lastx = distance + 1
  257. for i, v in pairs(workspace:GetChildren()) do
  258. if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
  259. local t = v.Torso
  260. local dist = (t.Position - obj.Position).magnitude
  261. if dist <= distance then
  262. if dist < last then
  263. last = dist
  264. lastx = v
  265. end
  266. end
  267. end
  268. end
  269. return lastx
  270. end
  271.  
  272. function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
  273. for i, v in pairs(hit:GetChildren()) do
  274. if v:IsA("Humanoid") and hit.Name ~= Character.Name then
  275. local find = v:FindFirstChild("Hitz")
  276. if not find then
  277. if v.Parent:findFirstChild("Head") then
  278. local BillG = Create("BillboardGui"){
  279. Parent = v.Parent.Head,
  280. Size = UDim2.new(1, 0, 1, 0),
  281. Adornee = v.Parent.Head,
  282. StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
  283. }
  284. local TL = Create("TextLabel"){
  285. Parent = BillG,
  286. Size = UDim2.new(3, 3, 3, 3),
  287. BackgroundTransparency = 1,
  288. Text = tostring(damage).."-",
  289. TextColor3 = Color1.Color,
  290. TextStrokeColor3 = Color2.Color,
  291. TextStrokeTransparency = 0,
  292. TextXAlignment = Enum.TextXAlignment.Center,
  293. TextYAlignment = Enum.TextYAlignment.Center,
  294. FontSize = Enum.FontSize.Size18,
  295. Font = "ArialBold",
  296. }
  297. coroutine.resume(coroutine.create(function()
  298. wait(1)
  299. for i = 0, 1, .1 do
  300. wait(.1)
  301. BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
  302. end
  303. BillG:Destroy()
  304. end))
  305. end
  306. v.Health = v.Health - damage
  307. local bool = Create("BoolValue"){
  308. Parent = v,
  309. Name = 'Hitz',
  310. }
  311. if HSound ~= nil and HPitch ~= nil then
  312. CreateSound(HSound, hit, 1, HPitch)
  313. end
  314. game:GetService("Debris"):AddItem(bool, cooldown)
  315. end
  316. end
  317. end
  318. end
  319.  
  320.  
  321. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  322. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  323. prt.Anchored = true
  324. prt.CFrame = cframe
  325. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  326. game:GetService("Debris"):AddItem(prt, 10)
  327. if Type == 1 or Type == nil then
  328. table.insert(Effects, {
  329. prt,
  330. "Block1",
  331. delay,
  332. x3,
  333. y3,
  334. z3,
  335. msh
  336. })
  337. elseif Type == 2 then
  338. table.insert(Effects, {
  339. prt,
  340. "Block2",
  341. delay,
  342. x3,
  343. y3,
  344. z3,
  345. msh
  346. })
  347. elseif Type == 3 then
  348. table.insert(Effects, {
  349. prt,
  350. "Block3",
  351. delay,
  352. x3,
  353. y3,
  354. z3,
  355. msh
  356. })
  357. end
  358. end
  359.  
  360. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  361. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  362. prt.Anchored = true
  363. prt.CFrame = cframe
  364. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  365. game:GetService("Debris"):AddItem(prt, 10)
  366. table.insert(Effects, {
  367. prt,
  368. "Cylinder",
  369. delay,
  370. x3,
  371. y3,
  372. z3,
  373. msh
  374. })
  375. end
  376.  
  377. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  378. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  379. prt.Anchored = true
  380. prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  381. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  382. game:GetService("Debris"):AddItem(prt, 10)
  383. table.insert(Effects, {
  384. prt,
  385. "Cylinder",
  386. delay,
  387. x3,
  388. y3,
  389. z3,
  390. msh
  391. })
  392. end
  393.  
  394. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  395. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  396. prt.Anchored = true
  397. prt.CFrame = cframe
  398. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  399. game:GetService("Debris"):AddItem(prt, 10)
  400. table.insert(Effects, {
  401. prt,
  402. "Cylinder",
  403. delay,
  404. x3,
  405. y3,
  406. z3,
  407. msh
  408. })
  409. end
  410.  
  411. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  412. local prt = CreatePart(3, workspace,"", 0, 0, brickcolor, "Effect", Vector3.new())
  413. prt.Anchored = true
  414. prt.CFrame = cframe
  415. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  416. game:GetService("Debris"):AddItem(prt, 10)
  417. table.insert(Effects, {
  418. prt,
  419. "Cylinder",
  420. delay,
  421. x3,
  422. y3,
  423. z3,
  424. msh
  425. })
  426. end
  427.  
  428. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  429. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  430. prt.Anchored = true
  431. prt.CFrame = cframe
  432. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  433. game:GetService("Debris"):AddItem(prt, 10)
  434. table.insert(Effects, {
  435. prt,
  436. "Cylinder",
  437. delay,
  438. x3,
  439. y3,
  440. z3,
  441. msh
  442. })
  443. end
  444.  
  445. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  446. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  447. prt.Anchored = true
  448. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  449. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  450. local num = math.random(10, 50) / 1000
  451. game:GetService("Debris"):AddItem(prt, 10)
  452. table.insert(Effects, {
  453. prt,
  454. "Shatter",
  455. num,
  456. prt.CFrame,
  457. math.random() - math.random(),
  458. 0,
  459. math.random(50, 100) / 100
  460. })
  461. end
  462.  
  463.  
  464.  
  465.  
  466. for i = 0, 1, 0.05 do
  467. swait()
  468. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  469. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1)
  470. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  471. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3)
  472. if Torsovelocity > 2 then
  473. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), .2)
  474. RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 5), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3)
  475. LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 5), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3)
  476. elseif Torsovelocity < 1 then
  477. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  478. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  479. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  480. end
  481. end
  482. attack = false
  483.  
  484.  
  485.  
  486. game:GetService'RunService'.Stepped:connect(function()
  487. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  488. velocity = RootPart.Velocity.y
  489. sine = sine + change
  490. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  491. if equipped == true or equipped == false then
  492. if RootPart.Velocity.y > 1 and hit == nil then
  493. Anim = "Jump"
  494. if attack == false then
  495. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-9), math.rad(0), math.rad(0)), .1)
  496. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
  497. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.4, -.1) * angles(math.rad(45), math.rad(0), math.rad(70)), .1)
  498. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.4, -.1) * angles(math.rad(45), math.rad(0), math.rad(-70)), .1)
  499. RH.C0 = clerp(RH.C0, cn(1, -0.5, -.5) * RHCF * angles(math.rad(3), math.rad(0), math.rad(0)), .3)
  500. LH.C0 = clerp(LH.C0, cn(-1, -1, -.1) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  501. if change == 1.4 then
  502.  
  503. BlockEffect(BrickColor.new("Really blue"), RightArm.CFrame, 21, 21, 21, -2, -2, -2, 0.09,2)
  504. BlockEffect(BrickColor.new("Really blue"), LeftArm.CFrame, 21, 21, 21, -2, -2, -2, 0.09,2)
  505. end
  506. end
  507.  
  508. elseif RootPart.Velocity.y < -1 and hit == nil then
  509. Anim = "Fall"
  510. if attack == false then
  511. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
  512. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
  513. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), .1)
  514. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), .1)
  515. RH.C0 = clerp(RH.C0, cn(1, -1, -.3) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  516. LH.C0 = clerp(LH.C0, cn(-1, -.8, -.3) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  517. if change == 1.4 then
  518. BlockEffect(BrickColor.new("Really blue"), RightArm.CFrame, 21, 21, 21, -2, -2, -2, 0.09,2)
  519. BlockEffect(BrickColor.new("Really blue"), LeftArm.CFrame, 21, 21, 21, -2, -2, -2, 0.09,2)
  520. end
  521. end
  522. elseif Torsovelocity < 1 and hit ~= nil then
  523. Anim = "Idle"
  524. if attack == false then
  525. change = 0.8
  526. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05 * math.cos(sine / 7), 0, -0.1 + 0.1 * math.cos(sine / 8)) * angles(math.rad(9), math.rad(1), math.rad(15)), .1)
  527. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-9 - 1 * math.cos(sine / 25)), math.rad(0), math.rad(-15)), .1)
  528. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.4, -.2) * angles(math.rad(110 - 8 * math.cos(sine / 8)), math.rad(0), math.rad(-26 + 4 * math.cos(sine / 12))), 0.1)
  529. LW.C0 = clerp(LW.C0, CFrame.new(-1.1, 0.4, -.15) * angles(math.rad(60 - 8 * math.cos(sine / 8)), math.rad(0), math.rad(30 - 4 * math.cos(sine / 12))), 0.1)
  530. RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6-2.5 * math.cos(sine / 7)), math.rad(-15), math.rad(19 + .1 * math.cos(sine / 25))), .1)
  531. LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.1) * LHCF * angles(math.rad(-4+2.5 * math.cos(sine / 7)), math.rad(-15), math.rad(9 + .1 * math.cos(sine / 25))), .1)
  532. end
  533.  
  534. elseif Torsovelocity > 1 and hit ~= nil then
  535. Anim = "Walk"
  536. if attack == false and Runkey == true then
  537.  
  538. change = 1.4
  539. Humanoid.WalkSpeed = 33
  540. Humanoid.JumpPower = 70
  541. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1 + 0.15 * math.cos(sine / 3)) * angles(math.rad(15), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(10 * math.cos(sine / 4))), .5)
  542. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(-8.5 * math.cos(sine / 4)) + RootPart.RotVelocity.Y / 9), .4)
  543. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10+-75*math.cos(sine / 4)), math.rad(5+-35*math.cos(sine / 4)), math.rad(2+10*math.cos(sine / 4))), .4)
  544. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10+75*math.cos(sine / 4)), math.rad(5+-35*math.cos(sine / 4)), math.rad(-2+10*math.cos(sine / 4))), .4)
  545. RH.C0 = clerp(RH.C0, cn(1, -1.0 - -0.3 * math.cos(sine / 4), -.1 - 0.1 * math.cos(sine / 4)) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(-10 + 50 * math.cos(sine / 4))), .5)
  546. LH.C0 = clerp(LH.C0, cn(-1, -1.0 + -0.3 * math.cos(sine / 4), -.1 + 0.1 * math.cos(sine / 4)) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(10 +50 * math.cos(sine / 4))), .5)
  547.  
  548. end
  549. if attack == false and Runkey == false then
  550. change = 0.7
  551. Humanoid.WalkSpeed = 14
  552. Humanoid.JumpPower = 60
  553. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0 + 0.05 * math.cos(sine / 3)) * angles(math.rad(6.5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(5 * math.cos(sine / 5))), .3)
  554. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(-5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 9), .2)
  555. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-65*math.cos(sine / 4)), math.rad(0), math.rad(10*math.cos(sine / 4))), .2)
  556. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(65*math.cos(sine / 4)), math.rad(0), math.rad(10*math.cos(sine / 4))), .2)
  557. RH.C0 = clerp(RH.C0, cn(1, -1 + .2 * math.cos(sine / 4), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(50 * math.cos(sine / 4))), .3)
  558. LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 4), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(50 * math.cos(sine / 4))), .3)
  559. end
  560.  
  561.  
  562.  
  563.  
  564.  
  565.  
  566.  
  567.  
  568.  
  569. end
  570. end
  571.  
  572.  
  573. if #Effects > 0 then
  574. for e = 1, #Effects do
  575. if Effects[e] ~= nil then
  576. local Thing = Effects[e]
  577. if Thing ~= nil then
  578. local Part = Thing[1]
  579. local Mode = Thing[2]
  580. local Delay = Thing[3]
  581. local IncX = Thing[4]
  582. local IncY = Thing[5]
  583. local IncZ = Thing[6]
  584. if Thing[1].Transparency <= 1 then
  585. if Thing[2] == "Block1" then
  586. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  587. local Mesh = Thing[1].Mesh
  588. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  589. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  590. elseif Thing[2] == "Block2" then
  591. Thing[1].CFrame = Thing[1].CFrame+Vector3.new(0,-.1,0)
  592. local Mesh = Thing[7]
  593. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  594. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  595. elseif Thing[2] == "Block3" then
  596. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))+Vector3.new(0,.2,0)
  597. local Mesh = Thing[7]
  598. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  599. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  600. elseif Thing[2] == "Cylinder" then
  601. local Mesh = Thing[1].Mesh
  602. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  603. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  604. elseif Thing[2] == "Blood" then
  605. local Mesh = Thing[7]
  606. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0)
  607. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  608. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  609. elseif Thing[2] == "Elec" then
  610. local Mesh = Thing[1].Mesh
  611. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  612. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  613. elseif Thing[2] == "Disappear" then
  614. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  615. elseif Thing[2] == "Shatter" then
  616. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  617. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  618. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  619. Thing[6] = Thing[6] + Thing[5]
  620. end
  621. else
  622. Part.Parent = nil
  623. table.remove(Effects, e)
  624. end
  625. end
  626. end
  627. end
  628. end
  629. end)
  630. Humanoid.JumpPower = 60
  631.  
  632.  
  633.  
  634.  
  635. RemoveOutlines = function(part)
  636.  
  637. part.TopSurface = 10
  638. end
  639.  
  640. CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  641.  
  642. local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
  643. RemoveOutlines(Part)
  644. return Part
  645. end
  646.  
  647. CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  648.  
  649. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  650. if Mesh == "SpecialMesh" then
  651. Msh.MeshType = MeshType
  652. Msh.MeshId = MeshId
  653. end
  654. return Msh
  655. end
  656.  
  657. CreateWeld = function(Parent, Part0, Part1, C0, C1)
  658.  
  659. local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  660. return Weld
  661. end
  662.  
  663.  
  664.  
  665.  
  666. WSHM = {'White',"Pastel light blue"}
  667. WSH = WSHM[math.random(1,#WSHM)]
  668.  
  669.  
  670. IcePartFunk = function(HPart,aria,Min,Max)
  671.  
  672. IcePart = Instance.new("Part",HPart)
  673. IcePart.Size = Vector3.new(math.random(Min, Max),math.random(Min, Max),math.random(Min, Max))
  674. IcePart.CanCollide = false
  675. IuW = Instance.new("Weld")
  676. IuW.Name = "GuW"
  677. IuW.Part0 = HPart
  678. IuW.C0 = cn(math.random(-aria, aria),math.random(-aria, aria),math.random(-aria, aria))*angles( math.random(-180, 180),math.random(-180, 180),math.random(-180, 180))
  679. IuW.C1 = cn(0, math.random(-aria/2, aria/2), 0)
  680. IuW.Part1 = IcePart
  681. IuW.Parent = HPart
  682. IcePart.Transparency = .85
  683. IcePart.Material= "Neon"
  684. WSH = WSHM[math.random(1,#WSHM)]
  685. IcePart.BrickColor = BrickColor.new(""..WSH)
  686.  
  687. RemoveOutlines(IcePart)
  688. game:GetService("Debris"):AddItem(IuW, 4)
  689. game:GetService("Debris"):AddItem(IcePart, 6)
  690.  
  691.  
  692. end
  693.  
  694. SpikeMeshId = 1033714
  695. local CreateSpike = function(Parent, Name, Color, Size, Material, Transparency, Scale)
  696.  
  697.  
  698. local Part = Instance.new("Part", Parent)
  699. Part.Name = Name
  700. Part.BrickColor = BrickColor.new(Color)
  701. Part.Size = Size
  702. Part.Material = Material
  703. Part.Transparency = Transparency
  704. Part.CanCollide = false
  705. RemoveOutlines(Part)
  706.  
  707. local Mesh = Instance.new("SpecialMesh", Part)
  708. Mesh.MeshType = "Sphere"
  709. Mesh.Scale = Scale
  710.  
  711. return Mesh and Part
  712.  
  713. end
  714.  
  715.  
  716.  
  717.  
  718.  
  719.  
  720.  
  721.  
  722. CFuncs = {
  723. Part = {Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  724.  
  725. local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
  726. RemoveOutlines(Part)
  727. return Part
  728. end
  729. }
  730. ,
  731. Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  732.  
  733. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  734. if Mesh == "SpecialMesh" then
  735. Msh.MeshType = MeshType
  736. Msh.MeshId = MeshId
  737. end
  738. return Msh
  739. end
  740. }
  741. ,
  742. Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  743.  
  744. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  745. if Mesh == "SpecialMesh" then
  746. Msh.MeshType = MeshType
  747. Msh.MeshId = MeshId
  748. end
  749. return Msh
  750. end
  751. }
  752. ,
  753. Weld = {Create = function(Parent, Part0, Part1, C0, C1)
  754.  
  755. local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  756. return Weld
  757. end
  758. }
  759. ,
  760. Sound = {Create = function(id, par, vol, pit)
  761.  
  762. coroutine.resume(coroutine.create(function()
  763.  
  764. local S = Create("Sound")({Volume = vol, Pitch = pit or 1, SoundId = id, Parent = par or workspace})
  765. wait()
  766. S:play()
  767. game:GetService("Debris"):AddItem(S, 6)
  768. end
  769. ))
  770. end
  771. }
  772. ,
  773. ParticleEmitter = {Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  774.  
  775. local fp = Create("ParticleEmitter")({Parent = Parent, Color = ColorSequence.new(Color1, Color2), LightEmission = LightEmission, Size = Size, Texture = Texture, Transparency = Transparency, ZOffset = ZOffset, Acceleration = Accel, Drag = Drag, LockedToPart = LockedToPart, VelocityInheritance = VelocityInheritance, EmissionDirection = EmissionDirection, Enabled = Enabled, Lifetime = LifeTime, Rate = Rate, Rotation = Rotation, RotSpeed = RotSpeed, Speed = Speed, VelocitySpread = VelocitySpread})
  776. return fp
  777. end
  778. }
  779. }
  780.  
  781.  
  782.  
  783.  
  784.  
  785. Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  786.  
  787. if hit.Parent == nil then
  788. return
  789. end
  790. local h = hit.Parent:FindFirstChild("Humanoid")
  791. for _,v in pairs(hit.Parent:children()) do
  792. if v:IsA("Humanoid") then
  793. h = v
  794. end
  795. end
  796. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  797. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  798. return
  799. end
  800. local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").LocalPlayer, Parent = h})
  801. game:GetService("Debris"):AddItem(c, 0.5)
  802. if HitSound ~= nil and HitPitch ~= nil then
  803. CreateSound(HitSound, hit, 1, HitPitch)
  804. end
  805. local Damage = math.random(minim, maxim)
  806. local blocked = false
  807. local block = hit.Parent:findFirstChild("Block")
  808. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  809. blocked = true
  810. block.Value = block.Value - 1
  811. print(block.Value)
  812. end
  813. if blocked == false then
  814. h.Health = h.Health - Damage
  815. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  816. else
  817. h.Health = h.Health - Damage / 2
  818. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  819. end
  820. if Type == "Knockdown" then
  821. local hum = hit.Parent.Humanoid
  822. hum.PlatformStand = true
  823. coroutine.resume(coroutine.create(function(HHumanoid)
  824.  
  825. swait(1)
  826. HHumanoid.PlatformStand = false
  827. end
  828. ), hum)
  829. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  830. local bodvol = Create("BodyVelocity")({velocity = angle * knockback, P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  831. local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit})
  832. game:GetService("Debris"):AddItem(bodvol, 0.5)
  833. game:GetService("Debris"):AddItem(rl, 0.5)
  834. elseif Type == "Normal" then
  835. local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05})
  836. if knockback > 0 then
  837. vp.Parent = hit.Parent.Torso
  838. end
  839. game:GetService("Debris"):AddItem(vp, 0.5)
  840. elseif Type == "Impale" then
  841.  
  842. local Spike = CreateSpike(Services.Workspace, "Ice Spike", "Pastel light blue", Vector3.new(1,1,1), "Neon", .7, Vector3.new(1,25,1))
  843. Spike.Anchored = true
  844. Spike.Rotation = Vector3.new(math.random(-10,10), 0 , math.random(-10,10))
  845. Spike.Position = hit.Parent.Torso.Position
  846. for i = 1,5 do
  847.  
  848. IcePartFunk(hit.Parent.Torso,.55,0.1,1)
  849. end
  850. Services.Debris:AddItem(Spike, 4)
  851.  
  852.  
  853.  
  854.  
  855.  
  856.  
  857. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=268249319", Spike, .8, 2)
  858. hit.Parent.Humanoid.PlatformStand = true
  859.  
  860.  
  861. swait(1)
  862. hit.Parent.Humanoid.PlatformStand = false
  863. elseif Type == "Up" then
  864. local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  865. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  866. local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  867. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  868. elseif Type == "Snare" then
  869. local bp = Create("BodyPosition")({P = 900, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
  870. game:GetService("Debris"):AddItem(bp, 1)
  871. elseif Type == "Slowness" then
  872. local SpeedSave=hit.Parent.Humanoid.WalkSpeed
  873.  
  874. for i = 1,25 do
  875. hit.Parent.Humanoid.WalkSpeed = 4
  876. IcePartFunk(hit.Parent.Torso,.55,0.1,1)
  877. end
  878. wait(4)
  879. hit.Parent.Humanoid.WalkSpeed = SpeedSave
  880. elseif Type == "FireDmg" then
  881.  
  882. for i = 1,math.random(1, 10) do
  883.  
  884. BlockEffect(BrickColor.new("Really blue"), hit.Parent.Torso.CFrame, 20, 20, 20, 1.5, 1.5, 1.5, 0.05,3)
  885. BlockEffect(BrickColor.new("Really blue"), hit.Parent.Torso.CFrame, 20, 20, 20, 2, 2, 2, 0.05,3)
  886. BlockEffect(BrickColor.new("Really black"), hit.Parent.Torso.CFrame, 0, 0, 0, 2, 2, 2, 0.035,3)
  887.  
  888. wait()
  889. MagniKILL(hit.Parent.Torso, 15, 1, 80, 0, "Normal")
  890. end
  891.  
  892. elseif Type == "Freeze" then
  893. local bp = Create("BodyPosition")({P = 900, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
  894. game:GetService("Debris"):AddItem(bp, 4)
  895. for i=1,25 do
  896. IcePartFunk(hit.Parent.Torso,1,1.5,2)
  897. end
  898. elseif Type == "Freeze2" then
  899. local BodPos = Create("BodyPosition")({P = 50000, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
  900. local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.Torso, cframe = hit.Parent.Torso.CFrame})
  901. hit.Parent.Torso.Anchored = true
  902. coroutine.resume(coroutine.create(function(Part)
  903.  
  904. swait(1.5)
  905. Part.Anchored = false
  906. end
  907. ), hit.Parent.Torso)
  908. game:GetService("Debris"):AddItem(BodPos, 3)
  909. game:GetService("Debris"):AddItem(BodGy, 3)
  910. end
  911. local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true})
  912. game:GetService("Debris"):AddItem(debounce, Delay)
  913. c = Instance.new("ObjectValue")
  914. c.Name = "creator"
  915. c.Value = Player
  916. c.Parent = h
  917. game:GetService("Debris"):AddItem(c, 0.5)
  918. end
  919. end
  920.  
  921. ShowDamage = function(Pos, Text, Time, Color)
  922.  
  923. local Rate = 0.033333333333333
  924. if not Pos then
  925. local Pos = Vector3.new(0, 0, 0)
  926. end
  927. local Text = Text or ""
  928. local Time = Time or 2
  929. if not Color then
  930. local Color = Color3.new(1, 0, 1)
  931. end
  932. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  933. EffectPart.Anchored = true
  934. local BillboardGui = Create("BillboardGui")({Size = UDim2.new(3, 0, 3, 0), Adornee = EffectPart, Parent = EffectPart})
  935. local TextLabel = Create("TextLabel")({BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), Text = Text, TextColor3 = Color, TextScaled = true, Font = Enum.Font.ArialBold, Parent = BillboardGui})
  936. game.Debris:AddItem(EffectPart, Time + 0.1)
  937. EffectPart.Parent = game:GetService("Workspace")
  938. delay(0, function()
  939.  
  940. local Frames = Time / Rate
  941. for Frame = 1, Frames do
  942. wait(Rate)
  943. local Percent = Frame / Frames
  944. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  945. TextLabel.TextTransparency = Percent
  946. end
  947. if EffectPart and EffectPart.Parent then
  948. EffectPart:Destroy()
  949. end
  950. end
  951. )
  952. end
  953.  
  954. MagniDamage = function(Part, magni, mindam, maxdam, knock, Type)
  955.  
  956. for _,c in pairs(workspace:children()) do
  957. local hum = c:findFirstChild("Humanoid")
  958. if hum ~= nil then
  959. local head = c:findFirstChild("Head")
  960. if head ~= nil then
  961. local targ = head.Position - Part.Position
  962. local mag = targ.magnitude
  963. if mag <= magni and c.Name ~= Player.Name then
  964. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "http://www.roblox.com/asset/?id=231917784", 1)
  965. end
  966. end
  967. end
  968. end
  969. end
  970. MagniKILL = function(Part, magni, knock, Type)
  971.  
  972. for _,c in pairs(workspace:children()) do
  973. local hum = c:findFirstChild("Humanoid")
  974. if hum ~= nil then
  975. local head = c:findFirstChild("Head")
  976. if head ~= nil then
  977. local targ = head.Position - Part.Position
  978. local mag = targ.magnitude
  979. if mag <= magni and c.Name ~= Player.Name then
  980. hum.Health = 0
  981. end
  982. end
  983. end
  984. end
  985. end
  986. EffectModel = Instance.new("Model", Character)
  987. EffectModel.Name = "Effects"
  988. Effects = {
  989. Block = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  990.  
  991. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  992. prt.Anchored = true
  993. prt.CFrame = cframe
  994. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  995. game:GetService("Debris"):AddItem(prt, 10)
  996. if Type == 1 or Type == nil then
  997. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  998. else
  999. if Type == 2 then
  1000. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  1001. else
  1002. table.insert(Effects, {prt, "Block3", delay, x3, y3, z3, msh})
  1003. end
  1004. end
  1005. end
  1006. }
  1007. ,
  1008. Sphere = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1009.  
  1010. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1011. prt.Anchored = true
  1012. prt.CFrame = cframe
  1013. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1014. game:GetService("Debris"):AddItem(prt, 10)
  1015. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1016. end
  1017. }
  1018. ,
  1019. Cylinder = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1020.  
  1021. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1022. prt.Anchored = true
  1023. prt.CFrame = cframe
  1024. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1025. game:GetService("Debris"):AddItem(prt, 10)
  1026. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1027. end
  1028. }
  1029. ,
  1030. Wave = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1031.  
  1032. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1033. prt.Anchored = true
  1034. prt.CFrame = cframe
  1035. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1036. game:GetService("Debris"):AddItem(prt, 10)
  1037. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1038. end
  1039. }
  1040. ,
  1041. Ring = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1042.  
  1043. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1044. prt.Anchored = true
  1045. prt.CFrame = cframe
  1046. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1047. game:GetService("Debris"):AddItem(prt, 10)
  1048. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1049. end
  1050. }
  1051. ,
  1052. Break = {Create = function(brickcolor, cframe, x1, y1, z1)
  1053.  
  1054. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1055. prt.Anchored = true
  1056. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1057. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1058. local num = math.random(10, 50) / 1000
  1059. game:GetService("Debris"):AddItem(prt, 10)
  1060. table.insert(Effects, {prt, "Shatter", num, prt.CFrame, math.random() - math.random(), 0, math.random(50, 100) / 100})
  1061. end
  1062. }
  1063. }
  1064. BlockEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  1065.  
  1066. local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1067. prt.Anchored = true
  1068. prt.CFrame = cframe
  1069. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1070. game:GetService("Debris"):AddItem(prt, 10)
  1071. if Type == 1 or Type == nil then
  1072. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  1073. else
  1074. if Type == 2 then
  1075. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  1076. else
  1077. if Type == 3 then
  1078. table.insert(Effects, {prt, "Block3", delay, x3, y3, z3, msh})
  1079. end
  1080. end
  1081. end
  1082. end
  1083. CreateSound = function(id, par, vol, pit)
  1084.  
  1085. coroutine.resume(coroutine.create(function()
  1086.  
  1087. local sou = Instance.new("Sound", par or workspace)
  1088. sou.Volume = vol
  1089. sou.Pitch = pit or 1
  1090. sou.SoundId = id
  1091. swait()
  1092. sou:play()
  1093. game:GetService("Debris"):AddItem(sou, 6)
  1094. end
  1095. ))
  1096. end
  1097.  
  1098. Laser = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1099.  
  1100. local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1101. prt.Anchored = true
  1102. prt.CFrame = cframe
  1103. prt.Material = "Neon"
  1104. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1105. game:GetService("Debris"):AddItem(prt, 10)
  1106. coroutine.resume(coroutine.create(function(Part, Mesh)
  1107.  
  1108. for i = 0, 6, delay do
  1109. swait()
  1110. Part.Transparency = i
  1111. Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
  1112. end
  1113. Part.Parent = nil
  1114. end
  1115. ), prt, msh)
  1116. end
  1117.  
  1118. shoottraildd = function(mouse, partt, SpreadAmount, dmg)
  1119.  
  1120. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  1121. local MainPos = partt.Position
  1122. local MainPos2 = mouse + SpreadVectors
  1123. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  1124. local speed = 1000
  1125. local num = 1
  1126. coroutine.resume(coroutine.create(function()
  1127.  
  1128. repeat
  1129. swait()
  1130. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  1131. local mag = (MainPos - pos).magnitude
  1132. Laser(BrickColor.new("Really blue"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 0, -1.5, 0, -1.5, 0.15)
  1133. MainPos = MainPos + MouseLook.lookVector * speed
  1134. num = num - 1
  1135. MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
  1136. if hit ~= nil then
  1137. num = 0
  1138. local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1139. refpart.Anchored = true
  1140. refpart.CFrame = CFrame.new(pos)
  1141. game:GetService("Debris"):AddItem(refpart, 2)
  1142. end
  1143. do
  1144. if num <= 0 then
  1145. local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1146. refpart.Anchored = true
  1147. refpart.CFrame = CFrame.new(pos)
  1148. if hit ~= nil then
  1149. CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 2, 1)
  1150. BlockEffect(BrickColor.new("Really black"), refpart.CFrame, 1, 1, 1, 6.5, 6.5, 6.5, 0.05)
  1151. BlockEffect(BrickColor.new("Really blue"), refpart.CFrame, 1, 1, 1, 27, 27, 27, 0.05)
  1152. BlockEffect(BrickColor.new("Really blue"), refpart.CFrame, 1, 1, 1, 27, 27, 27, 0.05)
  1153. MagniDamage(refpart, 26, dmg, dmg, 0, "FireDmg")
  1154. end
  1155. game:GetService("Debris"):AddItem(refpart, 0)
  1156. end
  1157. end
  1158. until num <= 0
  1159. end
  1160. ))
  1161. end
  1162.  
  1163. shoottraildd2 = function(mouse, partt, SpreadAmount)
  1164.  
  1165. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  1166. local MainPos = partt.Position
  1167. local MainPos2 = mouse + SpreadVectors
  1168. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  1169. local speed = 1000
  1170. local num = 1
  1171. coroutine.resume(coroutine.create(function()
  1172.  
  1173. repeat
  1174. swait()
  1175. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  1176. local mag = (MainPos - pos).magnitude
  1177. Laser(BrickColor.new("Gold"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -8.175, 0, -8.175, 0.15)
  1178. MainPos = MainPos + MouseLook.lookVector * speed
  1179. num = num - 1
  1180. MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
  1181. if hit ~= nil then
  1182. num = 0
  1183. local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1184. refpart.Anchored = true
  1185. refpart.CFrame = CFrame.new(pos)
  1186. game:GetService("Debris"):AddItem(refpart, 2)
  1187. end
  1188. do
  1189. if num <= 0 then
  1190. local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1191. refpart.Anchored = true
  1192. refpart.CFrame = CFrame.new(pos)
  1193. if hit ~= nil then
  1194. CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 2, 1)
  1195. BlockEffect(BrickColor.new("Really red"), refpart.CFrame, 1, 1, 1, 86.5, 86.5, 86.5, 0.05)
  1196. BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 87, 87, 87, 0.05)
  1197. BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 87, 87, 87, 0.05)
  1198. MagniKILL(refpart, 80, 0, "Normal")
  1199. end
  1200. game:GetService("Debris"):AddItem(refpart, 0)
  1201. end
  1202. end
  1203. until num <= 0
  1204. end
  1205. ))
  1206. end
  1207.  
  1208. shoottraildd3 = function(mouse, partt, SpreadAmount, dmg)
  1209.  
  1210. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  1211. local MainPos = partt.Position
  1212. local MainPos2 = mouse + SpreadVectors
  1213. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  1214. local speed = 200
  1215. local num = 0
  1216. coroutine.resume(coroutine.create(function()
  1217.  
  1218. repeat
  1219. swait()
  1220. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  1221. local mag = (MainPos - pos).magnitude
  1222. Laser(BrickColor.new("White"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -0.375, 0, -0.375, 0.05)
  1223. MainPos = MainPos + MouseLook.lookVector * speed
  1224. num = num - 1
  1225. MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
  1226. if hit ~= nil then
  1227. num = 0
  1228. local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1229. refpart.Anchored = true
  1230. refpart.CFrame = CFrame.new(pos)
  1231. BlockEffect(BrickColor.new("Pastel light blue"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
  1232. game:GetService("Debris"):AddItem(refpart, 2)
  1233. end
  1234. do
  1235. if num <= 0 then
  1236. local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1237. refpart.Anchored = true
  1238. refpart.CFrame = CFrame.new(pos)
  1239. if hit ~= nil then
  1240. CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 2, 1)
  1241. BlockEffect(BrickColor.new("White"), refpart.CFrame, 1, 1, 1, 6.5, 6.5, 6.5, 0.05)
  1242. BlockEffect(BrickColor.new("Pastel light blue"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
  1243.  
  1244.  
  1245. MagniDamage(refpart, 6, dmg, dmg, 0, "Slowness")
  1246.  
  1247. end
  1248. game:GetService("Debris"):AddItem(refpart, 0)
  1249. end
  1250. end
  1251. until num <= 0
  1252. end
  1253. ))
  1254. end
  1255.  
  1256. shoottraildd4 = function(mouse, partt, SpreadAmount, dmg)
  1257.  
  1258. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  1259. local MainPos = partt.Position
  1260. local MainPos2 = mouse + SpreadVectors
  1261. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  1262. local speed = 150
  1263. local num = 1
  1264. coroutine.resume(coroutine.create(function()
  1265.  
  1266. repeat
  1267. swait()
  1268. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  1269. local mag = (MainPos - pos).magnitude
  1270. Laser(BrickColor.new("Gold"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -1.175, 0, -1.175, 0.15)
  1271. MainPos = MainPos + MouseLook.lookVector * speed
  1272. num = num - 1
  1273. MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
  1274. if hit ~= nil then
  1275. num = 0
  1276. local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1277. refpart.Anchored = true
  1278. refpart.CFrame = CFrame.new(pos)
  1279. game:GetService("Debris"):AddItem(refpart, 2)
  1280. end
  1281. do
  1282. if num <= 0 then
  1283. local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1284. refpart.Anchored = true
  1285. refpart.CFrame = CFrame.new(pos)
  1286. if hit ~= nil then
  1287. CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 2, 1)
  1288. BlockEffect(BrickColor.new("Really red"), refpart.CFrame, 1, 1, 1, 6.5, 6.5, 6.5, 0.05)
  1289. BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
  1290. BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
  1291. MagniDamage(refpart, 6, dmg, dmg, 0, "Normal")
  1292. end
  1293. game:GetService("Debris"):AddItem(refpart, 0)
  1294. end
  1295. end
  1296. until num <= 0
  1297. end
  1298. ))
  1299. end
  1300.  
  1301.  
  1302.  
  1303.  
  1304.  
  1305.  
  1306.  
  1307. HitpartFunk3 = function(HPart3,Xv,Yv,Zv)
  1308.  
  1309. Hitpart3 = Instance.new("Part",HPart3)
  1310. Hitpart3.Size = Vector3.new(1,1,1)
  1311. Hitpart3.CanCollide = false
  1312. HuW3 = Instance.new("Weld")
  1313. HuW3.Name = "GuW"
  1314. HuW3.Part0 = HPart3
  1315. HuW3.C0 = cn(Xv, Yv, Zv)
  1316. HuW3.C1 = cn(0, 0, 0)
  1317. HuW3.Part1 = Hitpart3
  1318. HuW3.Parent = HPart3
  1319. Hitpart3.Transparency = 1
  1320. game:GetService("Debris"):AddItem(Hitpart3, 20)
  1321. end
  1322.  
  1323. HitpartFunk2 = function(HPart2,Xv,Yv,Zv)
  1324.  
  1325. Hitpart2 = Instance.new("Part",HPart2)
  1326. Hitpart2.Size = Vector3.new(1,1,1)
  1327. Hitpart2.CanCollide = false
  1328. HuW2 = Instance.new("Weld")
  1329. HuW2.Name = "GuW"
  1330. HuW2.Part0 = HPart2
  1331. HuW2.C0 = cn(Xv, Yv, Zv)
  1332. HuW2.C1 = cn(0, 0, 0)
  1333. HuW2.Part1 = Hitpart2
  1334. HuW2.Parent = HPart2
  1335. Hitpart2.Transparency = 1
  1336. game:GetService("Debris"):AddItem(Hitpart2, 20)
  1337. end
  1338.  
  1339.  
  1340. HitpartFunk = function(HPart,Min,Max,Xv,Yv,Zv)
  1341.  
  1342. Hitpart = Instance.new("Part",HPart)
  1343. Hitpart.Size = Vector3.new(1,1,1)
  1344. Hitpart.CanCollide = false
  1345. HuW = Instance.new("Weld")
  1346. HuW.Name = "GuW"
  1347. HuW.Part0 = HPart
  1348. HuW.C0 = cn(Xv, Yv, Zv)
  1349. HuW.C1 = cn(0, 0, 0)
  1350. HuW.Part1 = Hitpart
  1351. HuW.Parent = HPart
  1352. Hitpart.Transparency = 1
  1353. MagniDamage(Hitpart, 2, 1, 1, 0, "FireDmg")
  1354. MagniDamage(Hitpart, 5.5, 10, 50, 30, "Up")
  1355. MagniDamage(Hitpart, 15.5, 10, 50, 30, "Normal")
  1356.  
  1357. end
  1358.  
  1359.  
  1360.  
  1361.  
  1362.  
  1363.  
  1364.  
  1365. wait2 = false
  1366.  
  1367.  
  1368. combo = 1
  1369.  
  1370. mouse.Button1Down:connect(function(key)
  1371. if attack == false then
  1372. attack = true
  1373. Humanoid.WalkSpeed = 4.01
  1374. if combo == 1 and wait2 == false then
  1375. wait2 = true
  1376. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=287142895", LeftArm, 1, 2.2)
  1377. for i = 0, 1, 0.1 do
  1378. swait()
  1379.  
  1380. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(-5), math.rad(-90)), .3)
  1381. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(90)), .2)
  1382. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(0), math.rad(0* math.cos(sine / 25)), math.rad(0* math.cos(sine / 25))), .2)
  1383. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.3,.0) * angles(math.rad(90), math.rad(0), math.rad(0)), .3)
  1384. RH.C0 = clerp(RH.C0, cn(.9, -1 - 0.1 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 2 * math.cos(sine / 25))), .2)
  1385. LH.C0 = clerp(LH.C0, cn(-.9, -1 - 0.1 * math.cos(sine / 25), .4) * LHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(20 + 2 * math.cos(sine / 25))), .2)
  1386.  
  1387.  
  1388.  
  1389. end
  1390. HitpartFunk(LeftArm,15,50, 0,-.5,0)
  1391.  
  1392. for i = 0, .5, 0.1 do
  1393. swait()
  1394. BlockEffect(BrickColor.new("Really blue"), Hitpart.CFrame, 21, 21, 21, -2, -2, -2, 0.1,3)
  1395. BlockEffect(BrickColor.new("Really black"), Hitpart.CFrame, 21, 41, 21, -2, -2, -2, 0.07,2)
  1396. BlockEffect(BrickColor.new("Really blue"), Hitpart.CFrame, 21, 41, 21, -2.5, -2.5, -2.5, 0.1,2)
  1397. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(-5), math.rad(-90)), .4)
  1398. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(90)), .2)
  1399. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(0), math.rad(0* math.cos(sine / 25)), math.rad(0* math.cos(sine / 25))), .2)
  1400. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.3,-.2) * angles(math.rad(0+1* math.cos(sine / 25)), math.rad(0), math.rad(-90+1* math.cos(sine / 25))), .4)
  1401. RH.C0 = clerp(RH.C0, cn(.9, -1 - 0.1 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 2 * math.cos(sine / 25))), .4)
  1402. LH.C0 = clerp(LH.C0, cn(-.9, -1 - 0.1 * math.cos(sine / 25), .4) * LHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(20 + 2 * math.cos(sine / 25))), .4)
  1403.  
  1404.  
  1405.  
  1406. end
  1407. combo = 2
  1408.  
  1409. end
  1410.  
  1411. if combo == 2 and wait2 == false then
  1412. wait2 = true
  1413.  
  1414.  
  1415. for i = 0, .5, 0.1 do
  1416. swait()
  1417.  
  1418. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, -.5, -1) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1419. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-10), math.rad(0), math.rad(0)), .3)
  1420. RW.C0 = clerp(RW.C0, CFrame.new(1.5, .3, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.1)
  1421. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, .5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.1)
  1422. RH.C0 = clerp(RH.C0, cn(1, 0, -.5) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1423. LH.C0 = clerp(LH.C0, cn(-1, -1.5, -.6) * LHCF * angles(math.rad(0), math.rad(0), math.rad(90)), .3)
  1424. end
  1425.  
  1426. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=287142895", RightArm, 1, 2.2)
  1427. for i = 0, .5, 0.1 do
  1428. swait()
  1429. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, -.5, -1) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1430. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-10), math.rad(0), math.rad(0)), .3)
  1431. RW.C0 = clerp(RW.C0, CFrame.new(1.5, .3, 0) * angles(math.rad(35), math.rad(0), math.rad(0)), 0.3)
  1432. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, .5, 0) * angles(math.rad(25), math.rad(0), math.rad(0)), 0.1)
  1433. RH.C0 = clerp(RH.C0, cn(1, 0, -.5) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1434. LH.C0 = clerp(LH.C0, cn(-1, -1.5, -.6) * LHCF * angles(math.rad(0), math.rad(0), math.rad(90)), .3)
  1435. end
  1436. HitpartFunk(RightArm,15,50, 0,-.5,0)
  1437.  
  1438. for i = 0, 1, 0.1 do
  1439. swait()
  1440. BlockEffect(BrickColor.new("Really blue"), Hitpart.CFrame, 21, 21, 21, -2, -2, -2, 0.1,3)
  1441. BlockEffect(BrickColor.new("Really black"), Hitpart.CFrame, 21, 41, 21, -2, -2, -2, 0.07,2)
  1442. BlockEffect(BrickColor.new("Really blue"), Hitpart.CFrame, 21, 41, 21, -2.5, -2.5, -2.5, 0.1,2)
  1443. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, -.5, 0) * angles(math.rad(0), math.rad(0), math.rad(45)), .4)
  1444. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-25)), .4)
  1445. RW.C0 = clerp(RW.C0, CFrame.new(1.2, .7, -.8) * angles(math.rad(120), math.rad(0), math.rad(-35)), 0.4)
  1446. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, .5, 0) * angles(math.rad(-25), math.rad(0), math.rad(0)), 0.4)
  1447. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-45), math.rad(0)), .4)
  1448. LH.C0 = clerp(LH.C0, cn(-1, -1, -.2) * LHCF * angles(math.rad(0), math.rad(-25), math.rad(10)), .4)
  1449. end
  1450. combo = 3
  1451.  
  1452. end
  1453.  
  1454. if combo == 3 and wait2 == false then
  1455. wait2 = true
  1456. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=287142895", LeftArm, 1, 2.2)
  1457. for i = 0, 1, 0.1 do
  1458. swait()
  1459.  
  1460. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(5), math.rad(-90)), .3)
  1461. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(90)), .2)
  1462. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, 0) * angles(math.rad(90+1* math.cos(sine / 25)), math.rad(0* math.cos(sine / 25)), math.rad(0+1* math.cos(sine / 25))), .3)
  1463. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.3,-.2) * angles(math.rad(90), math.rad(0), math.rad(45+1* math.cos(sine / 25))), .2)
  1464. RH.C0 = clerp(RH.C0, cn(.9, -1 - 0.1 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 2 * math.cos(sine / 25))), .2)
  1465. LH.C0 = clerp(LH.C0, cn(-.9, -1 - 0.1 * math.cos(sine / 25), .4) * LHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(20 + 2 * math.cos(sine / 25))), .2)
  1466.  
  1467.  
  1468.  
  1469. end
  1470. HitpartFunk(RightArm,15,50, 0,-.5,0)
  1471.  
  1472.  
  1473. for i = 0, 1, 0.1 do
  1474. swait()
  1475. BlockEffect(BrickColor.new("Really blue"), Hitpart.CFrame, 21, 21, 21, -2, -2, -2, 0.1,3)
  1476. BlockEffect(BrickColor.new("Really black"), Hitpart.CFrame, 21, 41, 21, -2, -2, -2, 0.07,2)
  1477. BlockEffect(BrickColor.new("Really blue"), Hitpart.CFrame, 21, 41, 21, -2.5, -2.5, -2.5, 0.1,2)
  1478. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(5), math.rad(45)), .3)
  1479. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-45)), .2)
  1480. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, -.2) * angles(math.rad(0+1* math.cos(sine / 25)), math.rad(45+0* math.cos(sine / 25)), math.rad(90+1* math.cos(sine / 25))), .4)
  1481. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.3,0) * angles(math.rad(45), math.rad(0), math.rad(20+1* math.cos(sine / 25))), .3)
  1482. RH.C0 = clerp(RH.C0, cn(.9, -1 - 0.1 * math.cos(sine / 25), .4) * RHCF * angles(math.rad(5 + 1 * math.cos(sine / 25)), math.rad(-50), math.rad(8 + 1 * math.cos(sine / 25))), .2)
  1483. LH.C0 = clerp(LH.C0, cn(-.9, -1 - 0.1 * math.cos(sine / 25), -.6) * LHCF * angles(math.rad(-5 + 1 * math.cos(sine / 25)), math.rad(-50), math.rad(20 + 1 * math.cos(sine / 25))), .2)
  1484.  
  1485.  
  1486.  
  1487. end
  1488. combo = 1
  1489.  
  1490.  
  1491. end
  1492.  
  1493.  
  1494.  
  1495.  
  1496.  
  1497. Humanoid.WalkSpeed = 16
  1498. Hitpart:Destroy()
  1499. wait2 = false
  1500. attack = false
  1501. end
  1502. end)
  1503.  
  1504.  
  1505.  
  1506.  
  1507.  
  1508.  
  1509.  
  1510.  
  1511. mouse.KeyDown:connect(function(k)
  1512. if k == "0" and attack == false then
  1513.  
  1514. Runkey = true
  1515.  
  1516. end
  1517.  
  1518.  
  1519.  
  1520.  
  1521. if k == "z" and attack == false then
  1522.  
  1523. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=379225925", RightArm, 5, 1.5)
  1524. for i = 0, .5, 0.1 do
  1525. swait()
  1526.  
  1527. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(5), math.rad(-90)), .5)
  1528. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(90)), .5)
  1529. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, 0) * angles(math.rad(140+1* math.cos(sine / 25)), math.rad(0* math.cos(sine / 25)), math.rad(0+1* math.cos(sine / 25))), .5)
  1530. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.3,-.2) * angles(math.rad(90), math.rad(0), math.rad(45+1* math.cos(sine / 25))), .5)
  1531. RH.C0 = clerp(RH.C0, cn(.9, -1 - 0.1 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 2 * math.cos(sine / 25))), .5)
  1532. LH.C0 = clerp(LH.C0, cn(-.9, -1 - 0.1 * math.cos(sine / 25), .4) * LHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(20 + 2 * math.cos(sine / 25))), .5)
  1533.  
  1534.  
  1535.  
  1536. end
  1537.  
  1538. HitpartFunk(RightArm,5,10, 0,-.5,0)
  1539. for i = 0, .2, 0.1 do
  1540. swait()
  1541. BlockEffect(BrickColor.new("Really blue"), Hitpart.CFrame, 41, 41, 41, -4, -4, -4, 0.1,3)
  1542. BlockEffect(BrickColor.new("Really black"), Hitpart.CFrame, 71, 71, 71, -4, -4, -4, 0.17,2)
  1543. BlockEffect(BrickColor.new("Really blue"), Hitpart.CFrame, 71, 71, 71, -4.5, -4.5, -4.5, 0.2,2)
  1544. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(5), math.rad(45)), .5)
  1545. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-45)), .5)
  1546. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, -.2) * angles(math.rad(0+1* math.cos(sine / 25)), math.rad(45+0* math.cos(sine / 25)), math.rad(40+1* math.cos(sine / 25))), .5)
  1547. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.3,0) * angles(math.rad(45), math.rad(0), math.rad(20+1* math.cos(sine / 25))), .5)
  1548. RH.C0 = clerp(RH.C0, cn(.9, -1 - 0.1 * math.cos(sine / 25), .4) * RHCF * angles(math.rad(5 + 1 * math.cos(sine / 25)), math.rad(-50), math.rad(8 + 1 * math.cos(sine / 25))), .5)
  1549. LH.C0 = clerp(LH.C0, cn(-.9, -1 - 0.1 * math.cos(sine / 25), -.6) * LHCF * angles(math.rad(-5 + 1 * math.cos(sine / 25)), math.rad(-50), math.rad(20 + 1 * math.cos(sine / 25))), .5)
  1550.  
  1551.  
  1552.  
  1553. end
  1554.  
  1555. shoottraildd(mouse.Hit.p, RightArm, 0, 10)
  1556. BlockEffect(BrickColor.new("Really blue"), Hitpart.CFrame, 41, 41, 41, -4, -4, -4, 0.1,3)
  1557. BlockEffect(BrickColor.new("Really black"), Hitpart.CFrame, 71, 111, 71, -4, -4, -4, 0.07,2)
  1558. BlockEffect(BrickColor.new("Really blue"), Hitpart.CFrame, 71, 111, 71, -4.5, -4.5, -4.5, 0.1,2)
  1559. for i = 0, .5, 0.1 do
  1560. swait()
  1561.  
  1562.  
  1563.  
  1564. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(5), math.rad(45)), .3)
  1565. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-45)), .2)
  1566. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, -.2) * angles(math.rad(0+1* math.cos(sine / 25)), math.rad(45+0* math.cos(sine / 25)), math.rad(40+1* math.cos(sine / 25))), .4)
  1567. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.3,0) * angles(math.rad(45), math.rad(0), math.rad(20+1* math.cos(sine / 25))), .3)
  1568. RH.C0 = clerp(RH.C0, cn(.9, -1 - 0.1 * math.cos(sine / 25), .4) * RHCF * angles(math.rad(5 + 1 * math.cos(sine / 25)), math.rad(-50), math.rad(8 + 1 * math.cos(sine / 25))), .2)
  1569. LH.C0 = clerp(LH.C0, cn(-.9, -1 - 0.1 * math.cos(sine / 25), -.6) * LHCF * angles(math.rad(-5 + 1 * math.cos(sine / 25)), math.rad(-50), math.rad(20 + 1 * math.cos(sine / 25))), .2)
  1570.  
  1571.  
  1572.  
  1573. end
  1574.  
  1575.  
  1576.  
  1577.  
  1578.  
  1579.  
  1580.  
  1581.  
  1582.  
  1583.  
  1584.  
  1585. attack = false
  1586. end
  1587.  
  1588.  
  1589.  
  1590.  
  1591.  
  1592.  
  1593.  
  1594.  
  1595.  
  1596. end)
  1597. mouse.KeyUp:connect(function(k)
  1598. if k == "0" and attack == false then
  1599. Runkey = false
  1600.  
  1601. end end)
  1602.  
  1603.  
  1604.  
  1605.  
  1606.  
  1607. ff = Instance.new("ForceField", game.Players.LocalPlayer.Character)
  1608. ff.Visible = false
  1609.  
  1610.  
  1611.  
  1612. Character.Humanoid.MaxHealth = 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
  1613. Character.Humanoid.Health = 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
  1614. game:GetService("RunService"):BindToRenderStep("ew", 0, function()
  1615. if Character.Humanoid.Health <=9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 then
  1616. Character.Humanoid.MaxHealth = 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
  1617. Character.Humanoid.Health = 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
  1618. end
  1619. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement