Advertisement
Toastymctoast

Lasaserer

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