Advertisement
UniverseisCool

laser punches

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