Advertisement
Guest User

Untitled

a guest
Nov 19th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 40.00 KB | None | 0 0
  1. Player=game:GetService("Players").LocalPlayer
  2. Character=Player.Character
  3. PlayerGui=Player.PlayerGui
  4. Backpack=Player.Backpack
  5. Torso=Character.Torso
  6. Head=Character.Head
  7. Humanoid=Character.Humanoid
  8. m=Instance.new('Model',Character)
  9. LeftArm=Character["Left Arm"]
  10. LeftLeg=Character["Left Leg"]
  11. RightArm=Character["Right Arm"]
  12. RightLeg=Character["Right Leg"]
  13. LS=Torso["Left Shoulder"]
  14. LH=Torso["Left Hip"]
  15. RS=Torso["Right Shoulder"]
  16. RH=Torso["Right Hip"]
  17. Face = Head.face
  18. Neck=Torso.Neck
  19. it=Instance.new
  20. attacktype=1
  21. vt=Vector3.new
  22. cf=CFrame.new
  23. euler=CFrame.fromEulerAnglesXYZ
  24. angles=CFrame.Angles
  25. cloaked=false
  26. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  27. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  28. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  29. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  30. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  31. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  32. RootPart=Character.HumanoidRootPart
  33. RootJoint=RootPart.RootJoint
  34. RootCF=euler(-1.57,0,3.14)
  35. attack = false
  36. attackdebounce = false
  37. deb=false
  38. equipped=true
  39. hand=false
  40. MMouse=nil
  41. combo=0
  42. mana=0
  43. trispeed=.2
  44. attackmode='none'
  45. local idle=0
  46. local Anim="Idle"
  47. local Effects={}
  48. local gun=false
  49. local shoot=false
  50. player=nil
  51. mana=0
  52. Humanoid.MaxHealth = "inf"
  53. Humanoid.Health = Humanoid.MaxHealth
  54. Humanoid.WalkSpeed = 20
  55. kkk = Instance.new("Sound",Character)
  56. kkk.Volume = 1.7
  57. kkk.PlaybackSpeed = 1
  58. kkk.Pitch = 0.8
  59. kkk.SoundId = "rbxassetid://700037991"
  60. kkk:Play()
  61. kkk.Name = "a"
  62. kkk.Looped = true
  63. Humanoid.MaxHealth = "inf"
  64. Humanoid.Health = "inf"
  65. Humanoid.JumpPower = 75
  66.  
  67. local function weldBetween(a, b)
  68. local weldd = Instance.new("ManualWeld")
  69. weldd.Part0 = a
  70. weldd.Part1 = b
  71. weldd.C0 = CFrame.new()
  72. weldd.C1 = b.CFrame:inverse() * a.CFrame
  73. weldd.Parent = a
  74. return weldd
  75. end
  76.  
  77. function reap(t)
  78. local torm = nil
  79. if t.Name ~= "Corpse" then
  80. local s = Instance.new("Model")
  81. s.Name = "Corpse"
  82. s.Parent = workspace
  83. if t:FindFirstChild("Torso") then
  84. local tors = Instance.new("Part")
  85. tors.Name = "Torso"
  86. tors.Size = t.Torso.Size
  87. tors.Parent = s
  88. tors.CFrame = t.Torso.CFrame
  89. torm = tors
  90. local tor = Instance.new("SpecialMesh")
  91. tor.Scale = Vector3.new(tors.Size.Z,tors.Size.Z,tors.Size.Z)
  92. tor.MeshType = "FileMesh"
  93. tor.MeshId = "http://www.roblox.com/asset/?id=36780113"
  94. tor.TextureId = "rbxassetid://494636944"
  95. tor.Parent = tors
  96. end
  97. if t:FindFirstChild("Left Leg") then
  98. local lleg = t:FindFirstChild("Left Leg")
  99. local LL = Instance.new("Part")
  100. LL.Name = "Left Leg"
  101. LL.Size = lleg.Size
  102. LL.Parent = s
  103. LL.CFrame = lleg.CFrame
  104. LL.CanCollide = true
  105. local tor = Instance.new("SpecialMesh")
  106. tor.Scale = Vector3.new(LL.Size.Z,LL.Size.Z,LL.Size.Z)
  107. tor.MeshType = "FileMesh"
  108. tor.MeshId = "http://www.roblox.com/asset/?id=36780079"
  109. tor.TextureId = "rbxassetid://494636944"
  110. tor.Parent = LL
  111. if torm ~= nil then
  112. weldBetween(torm,LL)
  113. end
  114. end
  115. if t:FindFirstChild("Right Leg") then
  116. local rleg = t:FindFirstChild("Right Leg")
  117. local RL = Instance.new("Part")
  118. RL.Name = "Right Leg"
  119. RL.Size = rleg.Size
  120. RL.Parent = s
  121. RL.CFrame = rleg.CFrame
  122. RL.CanCollide = true
  123. local tor = Instance.new("SpecialMesh")
  124. tor.Scale = Vector3.new(RL.Size.Z,RL.Size.Z,RL.Size.Z)
  125. tor.MeshType = "FileMesh"
  126. tor.MeshId = "http://www.roblox.com/asset/?id=36780195"
  127. tor.TextureId = "rbxassetid://494636944"
  128. tor.Parent = RL
  129. if torm ~= nil then
  130. weldBetween(torm,RL)
  131. end
  132. end
  133. if t:FindFirstChild("Right Arm") then
  134. local rarm = t:FindFirstChild("Right Arm")
  135. local RA = Instance.new("Part")
  136. RA.Name = "Right Arm"
  137. RA.Size = rarm.Size
  138. RA.Parent = s
  139. RA.CFrame = rarm.CFrame
  140. RA.CanCollide = true
  141. local tor = Instance.new("SpecialMesh")
  142. tor.Scale = Vector3.new(RA.Size.Z,RA.Size.Z,RA.Size.Z)
  143. tor.MeshType = "FileMesh"
  144. tor.MeshId = "http://www.roblox.com/asset/?id=36780156"
  145. tor.TextureId = "rbxassetid://494636944"
  146. tor.Parent = RA
  147. if torm ~= nil then
  148. weldBetween(torm,RA)
  149. end
  150. end
  151. if t:FindFirstChild("Left Arm") then
  152. local larm = t:FindFirstChild("Left Arm")
  153. local LA = Instance.new("Part")
  154. LA.Name = "Left Arm"
  155. LA.Size = larm.Size
  156. LA.Parent = s
  157. LA.CFrame = larm.CFrame
  158. LA.CanCollide = true
  159. local tor = Instance.new("SpecialMesh")
  160. tor.Scale = Vector3.new(LA.Size.Z,LA.Size.Z,LA.Size.Z)
  161. tor.MeshType = "FileMesh"
  162. tor.MeshId = "http://www.roblox.com/asset/?id=36780032"
  163. tor.TextureId = "rbxassetid://494636944"
  164. tor.Parent = LA
  165. if torm ~= nil then
  166. weldBetween(torm,LA)
  167. end
  168. end
  169. if t:FindFirstChild("Head") then
  170. local head = Instance.new("Part")
  171. head.Name = "Head"
  172. head.Size = t.Head.Size
  173. head.Parent = s
  174. head.CFrame = t.Head.CFrame
  175. local tor = Instance.new("SpecialMesh")
  176. tor.Scale = Vector3.new(t.Head.Size.Z,t.Head.Size.Z,t.Head.Size.Z)
  177. tor.MeshType = "FileMesh"
  178. tor.MeshId = "http://www.roblox.com/asset/?id=181343290"
  179. tor.TextureId = "rbxassetid://494637850"
  180. tor.Parent = head
  181. if torm ~= nil then
  182. weldBetween(torm,head)
  183. end
  184. end
  185. t:Destroy()
  186. end
  187. end
  188.  
  189. mouse=Player:GetMouse()
  190. --save shoulders
  191. RSH, LSH=nil, nil
  192. --welds
  193. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  194. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  195. LH=Torso["Left Hip"]
  196. RH=Torso["Right Hip"]
  197. TorsoColor=Torso.BrickColor
  198. function NoOutline(Part)
  199. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  200. end
  201. player=Player
  202. ch=Character
  203. RSH=ch.Torso["Right Shoulder"]
  204. LSH=ch.Torso["Left Shoulder"]
  205. --
  206. RSH.Parent=nil
  207. LSH.Parent=nil
  208. --
  209. RW.Name="Right Shoulder"
  210. RW.Part0=ch.Torso
  211. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  212. RW.C1=cf(0, 0.5, 0)
  213. RW.Part1=ch["Right Arm"]
  214. RW.Parent=ch.Torso
  215. --
  216. LW.Name="Left Shoulder"
  217. LW.Part0=ch.Torso
  218. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  219. LW.C1=cf(0, 0.5, 0)
  220. LW.Part1=ch["Left Arm"]
  221. LW.Parent=ch.Torso
  222.  
  223.  
  224. local function weldBetween(a, b)
  225. local weldd = Instance.new("ManualWeld")
  226. weldd.Part0 = a
  227. weldd.Part1 = b
  228. weldd.C0 = CFrame.new()
  229. weldd.C1 = b.CFrame:inverse() * a.CFrame
  230. weldd.Parent = a
  231. return weldd
  232. end
  233.  
  234. function swait(num)
  235. if num==0 or num==nil then
  236. game:service'RunService'.Heartbeat:wait(0)
  237. else
  238. for i=0,num do
  239. game:service'RunService'.Heartbeat:wait(0)
  240. end
  241. end
  242. end
  243.  
  244. function nooutline(part)
  245. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  246. end
  247.  
  248. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  249. local fp=it("Part")
  250. fp.formFactor=formfactor
  251. fp.Parent=parent
  252. fp.Reflectance=reflectance
  253. fp.Transparency=transparency
  254. fp.CanCollide=false
  255. fp.Locked=true
  256. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  257. fp.Name=name
  258. fp.Size=size
  259. fp.Position=Character.Torso.Position
  260. nooutline(fp)
  261. fp.Material=material
  262. fp:BreakJoints()
  263. return fp
  264. end
  265.  
  266. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  267. local mesh=it(Mesh)
  268. mesh.Parent=part
  269. if Mesh=="SpecialMesh" then
  270. mesh.MeshType=meshtype
  271. mesh.MeshId=meshid
  272. end
  273. mesh.Offset=offset
  274. mesh.Scale=scale
  275. return mesh
  276. end
  277.  
  278. function weld(parent,part0,part1,c0,c1)
  279. local weld=it("Weld")
  280. weld.Parent=parent
  281. weld.Part0=part0
  282. weld.Part1=part1
  283. weld.C0=c0
  284. weld.C1=c1
  285. return weld
  286. end
  287.  
  288.  
  289. local function CFrameFromTopBack(at, top, back)
  290. local right = top:Cross(back)
  291. return CFrame.new(at.x, at.y, at.z,
  292. right.x, top.x, back.x,
  293. right.y, top.y, back.y,
  294. right.z, top.z, back.z)
  295. end
  296.  
  297. function Triangle(a, b, c)
  298. local edg1 = (c-a):Dot((b-a).unit)
  299. local edg2 = (a-b):Dot((c-b).unit)
  300. local edg3 = (b-c):Dot((a-c).unit)
  301. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  302. a, b, c = a, b, c
  303. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  304. a, b, c = b, c, a
  305. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  306. a, b, c = c, a, b
  307. else
  308. assert(false, "unreachable")
  309. end
  310.  
  311. local len1 = (c-a):Dot((b-a).unit)
  312. local len2 = (b-a).magnitude - len1
  313. local width = (a + (b-a).unit*len1 - c).magnitude
  314.  
  315. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  316.  
  317. local list = {}
  318.  
  319. if len1 > 0.01 then
  320. local w1 = Instance.new('WedgePart', m)
  321. game:GetService("Debris"):AddItem(w1,5)
  322. w1.Material = "SmoothPlastic"
  323. w1.FormFactor = 'Custom'
  324. w1.BrickColor = BrickColor.new("Really black")
  325. w1.Transparency = 0
  326. w1.Reflectance = 0
  327. w1.Material = "Neon"
  328. w1.CanCollide = false
  329. NoOutline(w1)
  330. local sz = Vector3.new(0.2, width, len1)
  331. w1.Size = sz
  332. local sp = Instance.new("SpecialMesh",w1)
  333. sp.MeshType = "Wedge"
  334. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  335. w1:BreakJoints()
  336. w1.Anchored = true
  337. w1.Parent = workspace
  338. w1.Transparency = 0.7
  339. table.insert(Effects,{w1,"Disappear",.01})
  340. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  341. table.insert(list,w1)
  342. end
  343.  
  344. if len2 > 0.01 then
  345. local w2 = Instance.new('WedgePart', m)
  346. game:GetService("Debris"):AddItem(w2,5)
  347. w2.Material = "SmoothPlastic"
  348. w2.FormFactor = 'Custom'
  349. w2.BrickColor = BrickColor.new("Really black")
  350. w2.Transparency = 0
  351. w2.Reflectance = 0
  352. w2.Material = "Neon"
  353. w2.CanCollide = false
  354. NoOutline(w2)
  355. local sz = Vector3.new(0.2, width, len2)
  356. w2.Size = sz
  357. local sp = Instance.new("SpecialMesh",w2)
  358. sp.MeshType = "Wedge"
  359. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  360. w2:BreakJoints()
  361. w2.Anchored = true
  362. w2.Parent = workspace
  363. w2.Transparency = 0.7
  364. table.insert(Effects,{w2,"Disappear",.01})
  365. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  366. table.insert(list,w2)
  367. end
  368. return unpack(list)
  369. end
  370.  
  371.  
  372. so = function(id,par,vol,pit)
  373. coroutine.resume(coroutine.create(function()
  374. local sou = Instance.new("Sound",par or workspace)
  375. sou.Volume=vol
  376. sou.Pitch=pit or 1
  377. sou.SoundId=id
  378. swait()
  379. sou:play()
  380. game:GetService("Debris"):AddItem(sou,6)
  381. end))
  382. end
  383.  
  384. function clerp(a,b,t)
  385. local qa = {QuaternionFromCFrame(a)}
  386. local qb = {QuaternionFromCFrame(b)}
  387. local ax, ay, az = a.x, a.y, a.z
  388. local bx, by, bz = b.x, b.y, b.z
  389. local _t = 1-t
  390. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  391. end
  392.  
  393. function QuaternionFromCFrame(cf)
  394. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  395. local trace = m00 + m11 + m22
  396. if trace > 0 then
  397. local s = math.sqrt(1 + trace)
  398. local recip = 0.5/s
  399. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  400. else
  401. local i = 0
  402. if m11 > m00 then
  403. i = 1
  404. end
  405. if m22 > (i == 0 and m00 or m11) then
  406. i = 2
  407. end
  408. if i == 0 then
  409. local s = math.sqrt(m00-m11-m22+1)
  410. local recip = 0.5/s
  411. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  412. elseif i == 1 then
  413. local s = math.sqrt(m11-m22-m00+1)
  414. local recip = 0.5/s
  415. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  416. elseif i == 2 then
  417. local s = math.sqrt(m22-m00-m11+1)
  418. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  419. end
  420. end
  421. end
  422.  
  423. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  424. local xs, ys, zs = x + x, y + y, z + z
  425. local wx, wy, wz = w*xs, w*ys, w*zs
  426. local xx = x*xs
  427. local xy = x*ys
  428. local xz = x*zs
  429. local yy = y*ys
  430. local yz = y*zs
  431. local zz = z*zs
  432. 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))
  433. end
  434.  
  435. function QuaternionSlerp(a, b, t)
  436. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  437. local startInterp, finishInterp;
  438. if cosTheta >= 0.0001 then
  439. if (1 - cosTheta) > 0.0001 then
  440. local theta = math.acos(cosTheta)
  441. local invSinTheta = 1/math.sin(theta)
  442. startInterp = math.sin((1-t)*theta)*invSinTheta
  443. finishInterp = math.sin(t*theta)*invSinTheta
  444. else
  445. startInterp = 1-t
  446. finishInterp = t
  447. end
  448. else
  449. if (1+cosTheta) > 0.0001 then
  450. local theta = math.acos(-cosTheta)
  451. local invSinTheta = 1/math.sin(theta)
  452. startInterp = math.sin((t-1)*theta)*invSinTheta
  453. finishInterp = math.sin(t*theta)*invSinTheta
  454. else
  455. startInterp = t-1
  456. finishInterp = t
  457. end
  458. end
  459. 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
  460. end
  461.  
  462. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  463. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  464. end
  465.  
  466. local function CFrameFromTopBack(at, top, back)
  467. local right = top:Cross(back)
  468. return CFrame.new(at.x, at.y, at.z,
  469. right.x, top.x, back.x,
  470. right.y, top.y, back.y,
  471. right.z, top.z, back.z)
  472. end
  473.  
  474. --Example: Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  475.  
  476.  
  477. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  478. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  479. end
  480.  
  481. Damagefunc=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  482. if hit.Parent==nil then
  483. return
  484. end
  485. local h=hit.Parent:FindFirstChild("Humanoid")
  486. for _,v in pairs(hit.Parent:children()) do
  487. if v:IsA("Humanoid") then
  488. h=v
  489. end
  490. end
  491. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  492. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  493. end
  494. if hit.Parent.className=="Hat" then
  495. hit=hit.Parent.Parent:findFirstChild("Head")
  496. end
  497. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  498. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  499. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  500. return
  501. end]]
  502. -- hs(hit,1.2)
  503. local c=Instance.new("ObjectValue")
  504. c.Name="creator"
  505. c.Value=game:service("Players").LocalPlayer
  506. c.Parent=h
  507. game:GetService("Debris"):AddItem(c,.5)
  508. local Damage=math.random(minim,maxim)
  509. -- h:TakeDamage(Damage)
  510. local blocked=false
  511. local block=hit.Parent:findFirstChild("Block")
  512. if block~=nil then
  513. print(block.className)
  514. if block.className=="NumberValue" then
  515. if block.Value>0 then
  516. blocked=true
  517. if decreaseblock==nil then
  518. block.Value=block.Value-1
  519. end
  520. end
  521. end
  522. if block.className=="IntValue" then
  523. if block.Value>0 then
  524. blocked=true
  525. if decreaseblock~=nil then
  526. block.Value=block.Value-1
  527. end
  528. end
  529. end
  530. end
  531. if blocked==false then
  532. -- h:TakeDamage(Damage)
  533. h.MaxHealth = 100
  534. h.Health=h.Health-Damage
  535. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
  536. else
  537. h.MaxHealth = 100
  538. h.Health=h.Health-(Damage/2)
  539. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Bright blue").Color)
  540. end
  541. if Type=="Knockdown" then
  542. local hum=hit.Parent.Humanoid
  543. hum.PlatformStand=true
  544. coroutine.resume(coroutine.create(function(HHumanoid)
  545. swait(1)
  546. HHumanoid.PlatformStand=false
  547. end),hum)
  548. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  549. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  550. local bodvol=Instance.new("BodyVelocity")
  551. bodvol.velocity=angle*knockback
  552. bodvol.P=5000
  553. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  554. bodvol.Parent=hit
  555. local rl=Instance.new("BodyAngularVelocity")
  556. rl.P=3000
  557. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  558. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  559. rl.Parent=hit
  560. game:GetService("Debris"):AddItem(bodvol,.5)
  561. game:GetService("Debris"):AddItem(rl,.5)
  562. elseif Type=="Normal" then
  563. local vp=Instance.new("BodyVelocity")
  564. vp.P=500
  565. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  566. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  567. if KnockbackType==1 then
  568. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  569. elseif KnockbackType==2 then
  570. vp.velocity=Property.CFrame.lookVector*knockback
  571. end
  572. if knockback>0 then
  573. vp.Parent=hit.Parent.Torso
  574. end
  575. game:GetService("Debris"):AddItem(vp,.5)
  576. elseif Type=="Up" then
  577. local bodyVelocity=Instance.new("BodyVelocity")
  578. bodyVelocity.velocity=vt(0,60,0)
  579. bodyVelocity.P=5000
  580. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  581. bodyVelocity.Parent=hit
  582. game:GetService("Debris"):AddItem(bodyVelocity,1)
  583. local rl=Instance.new("BodyAngularVelocity")
  584. rl.P=3000
  585. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  586. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  587. rl.Parent=hit
  588. game:GetService("Debris"):AddItem(rl,.5)
  589. elseif Type=="Snare" then
  590. local bp=Instance.new("BodyPosition")
  591. bp.P=2000
  592. bp.D=100
  593. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  594. bp.position=hit.Parent.Torso.Position
  595. bp.Parent=hit.Parent.Torso
  596. game:GetService("Debris"):AddItem(bp,1)
  597. elseif Type=="Target" then
  598. local Targetting = false
  599. if Targetting==false then
  600. ZTarget=hit.Parent.Torso
  601. coroutine.resume(coroutine.create(function(Part)
  602. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  603. swait(5)
  604. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  605. end),ZTarget)
  606. local TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  607. local targetgui=Instance.new("BillboardGui")
  608. targetgui.Parent=ZTarget
  609. targetgui.Size=UDim2.new(10,100,10,100)
  610. local targ=Instance.new("ImageLabel")
  611. targ.Parent=targetgui
  612. targ.BackgroundTransparency=1
  613. targ.Image="rbxassetid://4834067"
  614. targ.Size=UDim2.new(1,0,1,0)
  615. cam.CameraType="Scriptable"
  616. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  617. local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  618. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  619. Targetting=true
  620. RocketTarget=ZTarget
  621. for i=1,Property do
  622. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  623. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  624. swait()
  625. end
  626. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  627. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  628. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  629. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  630. end
  631. Targetting=false
  632. RocketTarget=nil
  633. targetgui.Parent=nil
  634. cam.CameraType="Custom"
  635. end
  636. end
  637. local debounce=Instance.new("BoolValue")
  638. debounce.Name="DebounceHit"
  639. debounce.Parent=hit.Parent
  640. debounce.Value=true
  641. game:GetService("Debris"):AddItem(debounce,Delay)
  642. c=Instance.new("ObjectValue")
  643. c.Name="creator"
  644. c.Value=Player
  645. c.Parent=h
  646. game:GetService("Debris"):AddItem(c,.5)
  647. end
  648. end
  649.  
  650.  
  651. function ShowDamage(Pos, Text, Time, Color)
  652. local Rate = (1 / 30)
  653. local Pos = (Pos or Vector3.new(0, 0, 0))
  654. local Text = (Text or "")
  655. local Time = (Time or 2)
  656. local Color = (Color or Color3.new(1, 0, 0))
  657. local EffectPart = part("Custom",workspace,"SmoothPlastic",0,1,BrickColor.new(Color),"Effect",vt(0,0,0))
  658. EffectPart.Anchored = true
  659. local BillboardGui = Instance.new("BillboardGui")
  660. BillboardGui.Size = UDim2.new(3, 0, 3, 0)
  661. BillboardGui.Adornee = EffectPart
  662. local TextLabel = Instance.new("TextLabel")
  663. TextLabel.BackgroundTransparency = 1
  664. TextLabel.Size = UDim2.new(1, 0, 1, 0)
  665. TextLabel.Text = Text
  666. TextLabel.TextColor3 = Color
  667. TextLabel.TextScaled = true
  668. TextLabel.Font = Enum.Font.ArialBold
  669. TextLabel.Parent = BillboardGui
  670. BillboardGui.Parent = EffectPart
  671. game.Debris:AddItem(EffectPart, (Time + 0.1))
  672. EffectPart.Parent = game:GetService("Workspace")
  673. Delay(0, function()
  674. local Frames = (Time / Rate)
  675. for Frame = 1, Frames do
  676. wait(Rate)
  677. local Percent = (Frame / Frames)
  678. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  679. TextLabel.TextTransparency = Percent
  680. end
  681. if EffectPart and EffectPart.Parent then
  682. EffectPart:Destroy()
  683. end
  684. end)
  685. end
  686.  
  687. Handle=part(Enum.FormFactor.Custom,m,Enum.Material.Granite,0,0,"Black","Handle",Vector3.new(0.296501815, 5.18878126, 0.296499223))
  688. Handleweld=weld(m,Character["Right Arm"],Handle,CFrame.new(0.5, 0.5, 0.5, 0.4, 0.5, 0.5, 0.5, 0, 0.5, 0.5, 0.5, 0),CFrame.new(1.2, -1.25, -0.6, -1, 0, 0, 0, 0, -1, -1.8, -0.999999881, -0))
  689. local scythe = Instance.new("SpecialMesh")
  690. scythe.MeshId = "rbxassetid://95891318"
  691. scythe.Offset = Vector3.new(-1, 4, 0)
  692. scythe.Scale = Vector3.new(1, 1, 1)
  693. scythe.TextureId = "rbxassetid://133863187"
  694. scythe.Parent = Handle
  695. Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,1,"Really black","Hitbox",Vector3.new(5, 6.98600721, 1))
  696. Hitboxweld=weld(m,Handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1, -1.4, 0, 0.999993443, 1.43051147e-006, 7.45057918e-008, 4.47034836e-008, 1.49011612e-007, 0.999998868, 1.43051147e-006, 0, 2.08616129e-007))
  697. mesh("BlockMesh",Hitbox,"","",Vector3.new(0, 0, 0),Vector3.new(0.741254449, 1, 1))
  698.  
  699. abss = Instance.new("BillboardGui",Character)
  700. abss.Size = UDim2.new(10,0,10,0)
  701. abss.Enabled = true
  702. abss.Parent = Torso
  703. imgl = Instance.new("ImageLabel",abss)
  704. imgl.Position = UDim2.new(0,0,0,0)
  705. imgl.Size = UDim2.new(1,0,1,0)
  706. imgl.Image = "rbxassetid://28031967"
  707. imgl.BackgroundTransparency = 1
  708. imgl.ImageColor3 = Color3.new(0, 0, 0)
  709. imgl.Parent = abss
  710.  
  711. function attackone()
  712. attack=true
  713. con1=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,40,60,math.random(10,20),"Normal",RootPart,.2,1) end)
  714. for i=0,1,0.1 do
  715. swait()
  716. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(80)),.3)
  717. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-5),math.rad(10),math.rad(-70)),.3)
  718. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.3)
  719. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(80), math.rad(-70), math.rad(0)), 0.3)
  720. RH.C0=clerp(RH.C0,cf(1,-1,0.2)*angles(math.rad(0),math.rad(40),math.rad(20)),.3)
  721. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(0)),.3)
  722. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(-5),math.rad(0)),.3)
  723. end
  724. so("http://roblox.com/asset/?id=92597369",Hitbox,1,0.6)
  725. so("http://roblox.com/asset/?id=231917871",Hitbox,1,0.8)
  726. for i=0,1,0.1 do
  727. swait()
  728. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  729. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  730. local h = 5
  731. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  732. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  733. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  734. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  735. scfr = blcf
  736. elseif not scfr then
  737. scfr = blcf
  738. end
  739. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(-80)),.3)
  740. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-5),math.rad(5),math.rad(70)),.3)
  741. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.5) * angles(math.rad(0), math.rad(-70), math.rad(90)), 0.3)
  742. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(70), math.rad(-70), math.rad(0)), 0.3)
  743. RH.C0=clerp(RH.C0,cf(1,-1,0.2)*angles(math.rad(0),math.rad(40),math.rad(20)),.3)
  744. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(0)),.3)
  745. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(-5),math.rad(0)),.3)
  746. end
  747. attack=false
  748. con1:disconnect()
  749. scfr = nil
  750. end
  751.  
  752. function attacktwo()
  753. attack=true
  754. con1=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,40,60,math.random(10,20),"Normal",RootPart,.2,1) end)
  755. for i=0,1,0.1 do
  756. swait()
  757. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(90)),.2)
  758. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(-5),math.rad(-80)),.3)
  759. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(90),math.rad(90)),.1)
  760. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(70), math.rad(-70), math.rad(0)), 0.3)
  761.  
  762. end
  763.  
  764. for i=0,1,1 do
  765. swait()
  766. so("http://roblox.com/asset/?id=92597369",Hitbox,1,0.7)
  767. so("http://www.roblox.com/asset/?id=234365573",Hitbox,1,0.7)
  768. for i=0,1,0.1 do
  769. swait()
  770. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  771. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  772. local h = 5
  773. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  774. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  775. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  776. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  777. scfr = blcf
  778. elseif not scfr then
  779. scfr = blcf
  780. end
  781. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,-6*i),.3)
  782. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(-5),math.rad(-50)),.3)
  783. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(-10),math.rad(90)),.1)
  784. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.3)
  785. Handleweld.C0=clerp(Handleweld.C0,cf(0,-0,0)*angles(math.rad(-50),math.rad(0),math.rad(0)),.3)
  786. end
  787. end
  788. con1:disconnect()
  789. attack=false
  790. scfr = nil
  791. end
  792.  
  793. function attackthree()
  794. attack=true
  795. con1=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,70,80,math.random(10,20),"Normal",RootPart,.2,1) end)
  796. for i=0,1,0.1 do
  797. swait()
  798. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(00)),.3)
  799. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(-5),math.rad(00)),.3)
  800. RW.C0=clerp(RW.C0,cf(1,0.8,-1)*angles(math.rad(150),math.rad(0),math.rad(-50)),.3)
  801. LW.C0=clerp(LW.C0,cf(-1,0.8,-1)*angles(math.rad(150),math.rad(0),math.rad(50)),.3)
  802. RH.C0=clerp(RH.C0,cf(1,-1,.2)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  803. LH.C0=clerp(LH.C0,cf(-1,-1,-.2)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  804. Handleweld.C0=clerp(Handleweld.C0,cf(-1,0,-.2)*angles(math.rad(-20),math.rad(-20),math.rad(50)),.3)
  805. end
  806. so("http://roblox.com/asset/?id=92597369",Hitbox,1,0.4)
  807. so("http://www.roblox.com/asset/?id=234365549",Hitbox,1,0.6)
  808. for i=0,1,.1 do
  809. swait()
  810. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  811. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  812. local h = 5
  813. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  814. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  815. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  816. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  817. scfr = blcf
  818. elseif not scfr then
  819. scfr = blcf
  820. end
  821. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  822. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(-5),math.rad(00)),.3)
  823. RW.C0=clerp(RW.C0,cf(1,0.2,-.5)*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  824. LW.C0=clerp(LW.C0,cf(-1,0.2,-.5)*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  825. RH.C0=clerp(RH.C0,cf(1,-1,.2)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  826. LH.C0=clerp(LH.C0,cf(-1,-1,-.2)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  827. Handleweld.C0=clerp(Handleweld.C0,cf(-1,0,-.2)*angles(math.rad(-20),math.rad(-20),math.rad(50)),.3)
  828. end
  829. attack=false
  830. con1:disconnect()
  831. scfr = nil
  832. end
  833.  
  834. function CyanMoon()
  835. attack=true
  836. con1=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,10,30,math.random(10,20),"Normal",RootPart,.2,1) end)
  837. for i=0,1,0.1 do
  838. swait()
  839. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(120),math.rad(80)),.3)
  840. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-10),math.rad(0),math.rad(-10)),.3)
  841. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(-30),math.rad(-5),math.rad(0)),.3)
  842. end
  843. for i=1,4 do
  844. so("http://roblox.com/asset/?id=92597369",Hitbox,1,0.5)
  845. so("http://roblox.com/asset/?id=28144425",Torso,1,0.8)
  846. swait()
  847. for i=0,1,0.1 do
  848. swait()
  849. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  850. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  851. local h = 5
  852. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  853. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  854. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  855. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  856. scfr = blcf
  857. elseif not scfr then
  858. scfr = blcf
  859. end
  860. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(-40),math.rad(90)),.3)
  861. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-60)),.3)
  862. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,5)*euler(0,-1.5,-6*i),.3)
  863. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(-30),math.rad(-5),math.rad(0)),.3)
  864. end
  865. end
  866. attack=false
  867. con1:disconnect()
  868. scfr = nil
  869. end
  870.  
  871. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  872. local prt=part("Custom",workspace,"SmoothPlastic",0,0,"Black","Effect",vt(0.5,0.5,0.5))
  873. prt.Anchored=true
  874. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  875. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  876. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  877. CF=Part.CFrame
  878. Numbb=0
  879. randnumb=math.random()-math.random()
  880. for i=0,1,0.05 do
  881. wait()
  882. CF=CF*cf(0,1,0)
  883. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  884. Part.CFrame=CF*euler(Numbb,0,0)
  885. Part.Transparency=i
  886. Numbb=Numbb+randnumb
  887. end
  888. Part.Parent=nil
  889. end),prt)
  890. end
  891.  
  892. function Execution() --HEUAHUEHAUEHAUHUEAHUAEHUAHEUAHEUH
  893. attack=true
  894. con1=Hitbox.Touched:connect(function(hit) end)
  895. for i=0,1,0.03 do
  896. swait()
  897. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(60)),.1)
  898. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-60)),.1)
  899. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(90),math.rad(120)),.1)
  900. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(100), math.rad(0), math.rad(0)), 0.1)
  901. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-10)),.1)
  902. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.2)
  903. Handleweld.C0=clerp(Handleweld.C0,cf(0,-0,.4)*angles(math.rad(0),math.rad(10),math.rad(0)),.1)
  904. end
  905. so("http://roblox.com/asset/?id=92597369",Hitbox,1,0.5)
  906. so("http://roblox.com/asset/?id=28144425",Torso,1,0.5)
  907. hitconasdf = Hitbox.Touched:connect(function(hit)
  908. local hum12 = hit.Parent:FindFirstChild("Humanoid")
  909. if hum12 and not hum12:IsDescendantOf(Character) then
  910. so('http://roblox.com/asset/?id=154965973',Hitbox,1,0.8)
  911. hum12.Health = 0
  912. for i = 1,20 do
  913. BreakEffect(BrickColor.new("Black"),hit.Parent.Torso.CFrame,0.5,math.random(5,20),0.5)
  914. end
  915. reap(hit.Parent)
  916. hitconasdf:disconnect()
  917. end
  918. end)
  919. for i=0,1,0.03 do
  920. swait()
  921. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  922. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  923. local h = 5
  924. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  925. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  926. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  927. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  928. scfr = blcf
  929. elseif not scfr then
  930. scfr = blcf
  931. end
  932. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  933. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(60)),.2)
  934. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(-20),math.rad(70)),.2)
  935. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.2)
  936. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-10)),.2)
  937. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.2)
  938. Handleweld.C0=clerp(Handleweld.C0,cf(0,-0,.4)*angles(math.rad(0),math.rad(10),math.rad(0)),.2)
  939. end
  940. attack=false
  941. con1:disconnect()
  942. scfr = nil
  943. pcall(function()
  944. hitconasdf:disconnect()
  945. end)
  946. end
  947.  
  948. mouse.Button1Down:connect(function()
  949. if attack==false then
  950. if attacktype==1 then
  951. attack=true
  952. attacktype=2
  953. attackone()
  954. elseif attacktype==2 then
  955. attack=true
  956. attacktype=3
  957. attacktwo()
  958. elseif attacktype==3 then
  959. attack=true
  960. attacktype=1
  961. attackthree()
  962. end
  963. end
  964. end)
  965.  
  966. mouse.KeyDown:connect(function(k)
  967. k=k:lower()
  968. if k=='q' then
  969. if attack==false then
  970. CyanMoon()
  971. end
  972. elseif k=='e' then
  973. if attack==false then
  974. Execution()
  975. end
  976. end
  977. end)
  978.  
  979.  
  980. local sine = 0
  981. local change = 1
  982. local val = 0
  983.  
  984. while true do
  985. swait()
  986. sine = sine + change
  987. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  988. local velderp=RootPart.Velocity.y
  989. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  990. if equipped==true or equipped==false then
  991. if attack==false then
  992. idle=idle+1
  993. else
  994. idle=0
  995. end
  996. if idle>=500 then
  997. if attack==false then
  998. --Sheath()
  999. end
  1000. end
  1001. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1002. Anim="Jump"
  1003. if attack==false then
  1004. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1005. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1006. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(10)), 0.3)
  1007. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
  1008. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-20)),.3)
  1009. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(0)),.3)
  1010. Handleweld.C0=clerp(Handleweld.C0,cf(0,-0,.4)*angles(math.rad(85),math.rad(10),math.rad(0)),.3)
  1011. end
  1012. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1013. Anim="Fall"
  1014. if attack==false then
  1015. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  1016. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1017. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(20)), 0.3)
  1018. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-40)), 0.3)
  1019. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-20)),.3)
  1020. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(0)),.3)
  1021. Handleweld.C0=clerp(Handleweld.C0,cf(0,-0,.4)*angles(math.rad(85),math.rad(10),math.rad(0)),.3)
  1022. end
  1023. elseif torvel<1 and hitfloor~=nil then
  1024. Anim="Idle"
  1025. if attack==false then
  1026. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(60)),.3)
  1027. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-5),math.rad(5),math.rad(-50)),.3)
  1028. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(70), math.rad(100), math.rad(0)), 0.3)
  1029. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50), math.rad(-70), math.rad(0)), 0.3)
  1030. RH.C0=clerp(RH.C0,cf(1,-1,0.2)*angles(math.rad(0),math.rad(40),math.rad(20)),.3)
  1031. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(0)),.3)
  1032. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(-5),math.rad(0)),.3)
  1033. end
  1034. elseif torvel>2 and hitfloor~=nil then
  1035. Anim="Walk"
  1036. if attack==false then
  1037. change=3
  1038. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(60)),.3)
  1039. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(10),math.rad(-50)),.3)
  1040. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(70), math.rad(100), math.rad(0)), 0.3)
  1041. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50), math.rad(-70), math.rad(0)), 0.3)
  1042. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(20)),.3)
  1043. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(0)),.3)
  1044. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(-5),math.rad(0)),.3)
  1045. end
  1046. end
  1047. end
  1048. if #Effects>0 then
  1049. for e=1,#Effects do
  1050. if Effects[e]~=nil then
  1051. local Thing=Effects[e]
  1052. if Thing~=nil then
  1053. local Part=Thing[1]
  1054. local Mode=Thing[2]
  1055. local Delay=Thing[3]
  1056. local IncX=Thing[4]
  1057. local IncY=Thing[5]
  1058. local IncZ=Thing[6]
  1059. if Thing[1].Transparency<=1 then
  1060. if Thing[2]=="Block1" then
  1061. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1062. Mesh=Thing[1].Mesh
  1063. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1064. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1065. elseif Thing[2]=="Cylinder" then
  1066. Mesh=Thing[1].Mesh
  1067. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1068. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1069. elseif Thing[2]=="Blood" then
  1070. Mesh=Thing[7]
  1071. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  1072. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1073. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1074. elseif Thing[2]=="Elec" then
  1075. Mesh=Thing[1].Mesh
  1076. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  1077. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1078. elseif Thing[2]=="Disappear" then
  1079. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1080. end
  1081. else
  1082. Part.Parent=nil
  1083. table.remove(Effects,e)
  1084. end
  1085. end
  1086. end
  1087. end
  1088. end
  1089. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement