Advertisement
Guest User

Untitled

a guest
Dec 2nd, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 182.91 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=1
  44. pathtrans=.7
  45. attackmode='none'
  46. local idle=0
  47. local Anim="Idle"
  48. local Effects={}
  49. local gun=false
  50. local shoot=false
  51. player=nil
  52. cloak=false
  53.  
  54. mouse=Player:GetMouse()
  55. --save shoulders
  56. RSH, LSH=nil, nil
  57. --welds
  58. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  59. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  60. LH=Torso["Left Hip"]
  61. RH=Torso["Right Hip"]
  62. function NoOutline(Part)
  63. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  64. end
  65. player=Player
  66. ch=Character
  67. RSH=ch.Torso["Right Shoulder"]
  68. LSH=ch.Torso["Left Shoulder"]
  69. --
  70. RSH.Parent=nil
  71. LSH.Parent=nil
  72. --
  73. RW.Name="Right Shoulder"
  74. RW.Part0=ch.Torso
  75. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  76. RW.C1=cf(0, 0.5, 0)
  77. RW.Part1=ch["Right Arm"]
  78. RW.Parent=ch.Torso
  79. --
  80. LW.Name="Left Shoulder"
  81. LW.Part0=ch.Torso
  82. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  83. LW.C1=cf(0, 0.5, 0)
  84. LW.Part1=ch["Left Arm"]
  85. LW.Parent=ch.Torso
  86.  
  87. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  88. local fp=it("Part")
  89. fp.formFactor=formfactor
  90. fp.Parent=parent
  91. fp.Reflectance=reflectance
  92. fp.Transparency=transparency
  93. fp.CanCollide=false
  94. fp.Locked=true
  95. fp.BrickColor=brickcolor
  96. fp.Name=name
  97. fp.Size=size
  98. fp.Position=Torso.Position
  99. NoOutline(fp)
  100. fp.Material="Neon"
  101. fp:BreakJoints()
  102. return fp
  103. end
  104.  
  105. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  106. local mesh=it(Mesh)
  107. mesh.Parent=part
  108. if Mesh=="SpecialMesh" then
  109. mesh.MeshType=meshtype
  110. if meshid~="nil" then
  111. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  112. end
  113. end
  114. mesh.Offset=offset
  115. mesh.Scale=scale
  116. return mesh
  117. end
  118.  
  119. function weld(parent,part0,part1,c0)
  120. local weld=it("Weld")
  121. weld.Parent=parent
  122. weld.Part0=part0
  123. weld.Part1=part1
  124. weld.C0=c0
  125. return weld
  126. end
  127.  
  128. local Color1=Torso.BrickColor
  129.  
  130. local bodvel=Instance.new("BodyVelocity")
  131. local bg=Instance.new("BodyGyro")
  132.  
  133. function swait(num)
  134. if num==0 or num==nil then
  135. game:service'RunService'.Stepped:wait(0)
  136. else
  137. for i=0,num do
  138. game:service'RunService'.Stepped:wait(0)
  139. end
  140. end
  141. end
  142.  
  143.  
  144. so = function(id,par,vol,pit)
  145. coroutine.resume(coroutine.create(function()
  146. local sou = Instance.new("Sound",par or workspace)
  147. sou.Volume=vol
  148. sou.Pitch=pit or 1
  149. sou.SoundId=id
  150. swait()
  151. sou:play()
  152. game:GetService("Debris"):AddItem(sou,6)
  153. end))
  154. end
  155.  
  156. function clerp(a,b,t)
  157. local qa = {QuaternionFromCFrame(a)}
  158. local qb = {QuaternionFromCFrame(b)}
  159. local ax, ay, az = a.x, a.y, a.z
  160. local bx, by, bz = b.x, b.y, b.z
  161. local _t = 1-t
  162. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  163. end
  164.  
  165. function QuaternionFromCFrame(cf)
  166. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  167. local trace = m00 + m11 + m22
  168. if trace > 0 then
  169. local s = math.sqrt(1 + trace)
  170. local recip = 0.5/s
  171. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  172. else
  173. local i = 0
  174. if m11 > m00 then
  175. i = 1
  176. end
  177. if m22 > (i == 0 and m00 or m11) then
  178. i = 2
  179. end
  180. if i == 0 then
  181. local s = math.sqrt(m00-m11-m22+1)
  182. local recip = 0.5/s
  183. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  184. elseif i == 1 then
  185. local s = math.sqrt(m11-m22-m00+1)
  186. local recip = 0.5/s
  187. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  188. elseif i == 2 then
  189. local s = math.sqrt(m22-m00-m11+1)
  190. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  191. end
  192. end
  193. end
  194.  
  195. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  196. local xs, ys, zs = x + x, y + y, z + z
  197. local wx, wy, wz = w*xs, w*ys, w*zs
  198. local xx = x*xs
  199. local xy = x*ys
  200. local xz = x*zs
  201. local yy = y*ys
  202. local yz = y*zs
  203. local zz = z*zs
  204. 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))
  205. end
  206.  
  207. function QuaternionSlerp(a, b, t)
  208. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  209. local startInterp, finishInterp;
  210. if cosTheta >= 0.0001 then
  211. if (1 - cosTheta) > 0.0001 then
  212. local theta = math.acos(cosTheta)
  213. local invSinTheta = 1/math.sin(theta)
  214. startInterp = math.sin((1-t)*theta)*invSinTheta
  215. finishInterp = math.sin(t*theta)*invSinTheta
  216. else
  217. startInterp = 1-t
  218. finishInterp = t
  219. end
  220. else
  221. if (1+cosTheta) > 0.0001 then
  222. local theta = math.acos(-cosTheta)
  223. local invSinTheta = 1/math.sin(theta)
  224. startInterp = math.sin((t-1)*theta)*invSinTheta
  225. finishInterp = math.sin(t*theta)*invSinTheta
  226. else
  227. startInterp = t-1
  228. finishInterp = t
  229. end
  230. end
  231. 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
  232. end
  233.  
  234. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  235. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  236. end
  237.  
  238. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  239. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  240. prt.Anchored=true
  241. prt.CFrame=cframe
  242. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  243. --http://www.roblox.com/asset/?id=4770560
  244. game:GetService("Debris"):AddItem(prt,2)
  245. CF=prt.CFrame
  246. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  247. for i=0,1,0.2 do
  248. wait()
  249. Part.CFrame=CF*cf(0,0,-0.4)
  250. end
  251. for i=0,1,delay do
  252. wait()
  253. --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
  254. Mesh.Scale=Mesh.Scale
  255. end
  256. for i=0,1,0.1 do
  257. wait()
  258. Part.Transparency=i
  259. end
  260. Part.Parent=nil
  261. end),prt,msh,CF)
  262. end
  263.  
  264. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  265. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  266. prt.Anchored=true
  267. prt.CFrame=cframe
  268. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  269. game:GetService("Debris"):AddItem(prt,5)
  270. coroutine.resume(coroutine.create(function(Part,Mesh)
  271. for i=0,1,delay do
  272. wait()
  273. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  274. Part.Transparency=i
  275. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  276. end
  277. Part.Parent=nil
  278. end),prt,msh)
  279. end
  280.  
  281. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  282. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  283. prt.Anchored=false
  284. prt.CFrame=cframe
  285. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  286. local wld=weld(prt,prt,Parent,cframe)
  287. game:GetService("Debris"):AddItem(prt,5)
  288. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  289. for i=0,1,delay do
  290. wait()
  291. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  292. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  293. Part.Transparency=i
  294. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  295. end
  296. Part.Parent=nil
  297. end),prt,msh,wld)
  298. end
  299.  
  300. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  301. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  302. prt.Anchored=false
  303. prt.CFrame=cframe
  304. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  305. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  306. game:GetService("Debris"):AddItem(prt,5)
  307. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  308. for i=0,1,delay do
  309. wait()
  310. Weld.C0=euler(i*20,0,0)
  311. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  312. Part.Transparency=i
  313. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  314. end
  315. Part.Parent=nil
  316. end),prt,msh,wld)
  317. end
  318.  
  319. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  320. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  321. prt.Anchored=true
  322. prt.CFrame=cframe
  323. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  324. game:GetService("Debris"):AddItem(prt,2)
  325. coroutine.resume(coroutine.create(function(Part,Mesh)
  326. for i=0,1,delay do
  327. wait()
  328. Part.CFrame=Part.CFrame
  329. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  330. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  331. prt2.Anchored=true
  332. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  333. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  334. game:GetService("Debris"):AddItem(prt2,2)
  335. coroutine.resume(coroutine.create(function(Part,Mesh)
  336. for i=0,1,0.1 do
  337. wait()
  338. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  339. end
  340. Part.Parent=nil
  341. end),prt2,msh2)
  342. end
  343. for i=0,1,delay*2 do
  344. wait()
  345. Part.CFrame=Part.CFrame
  346. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  347. end
  348. Part.Parent=nil
  349. end),prt,msh)
  350. end
  351.  
  352. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  353. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  354. prt.Anchored=true
  355. prt.CFrame=cframe
  356. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  357. game:GetService("Debris"):AddItem(prt,2)
  358. coroutine.resume(coroutine.create(function(Part,Mesh)
  359. for i=0,1,delay do
  360. wait()
  361. Part.CFrame=Part.CFrame
  362. Part.Transparency=i
  363. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  364. end
  365. Part.Parent=nil
  366. end),prt,msh)
  367. end
  368.  
  369. function MagicRing(brickcolor,cframe,x1,y1,z1,x2,y2,z2,x3,y3,z3)
  370. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  371. prt.Anchored=true
  372. prt.CFrame=cframe*euler(x2,y2,z2)
  373. --"http://www.roblox.com/asset/?id=168892465"
  374. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  375. game:GetService("Debris"):AddItem(prt,2)
  376. coroutine.resume(coroutine.create(function(Part,Mesh)
  377. for i=0,1,0.03 do
  378. wait()
  379. Part.CFrame=Part.CFrame
  380. Part.Transparency=i
  381. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  382. end
  383. Part.Parent=nil
  384. end),prt,msh)
  385. end
  386.  
  387. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  388. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  389. prt.Anchored=true
  390. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  391. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  392. game:GetService("Debris"):AddItem(prt,2)
  393. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  394. CF=Part.CFrame
  395. Numbb=0
  396. randnumb=math.random()/10
  397. rand1=math.random()/10
  398. for i=0,1,rand1 do
  399. wait()
  400. CF=CF*cf(0,math.random()/2,0)
  401. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  402. Part.CFrame=CF*euler(Numbb,0,0)
  403. Part.Transparency=i
  404. Numbb=Numbb+randnumb
  405. end
  406. Part.Parent=nil
  407. end),prt,CF,Numbb,randnumb)
  408. end
  409.  
  410. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  411. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  412. prt.Anchored=true
  413. prt.CFrame=cframe
  414. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  415. game:GetService("Debris"):AddItem(prt,5)
  416. coroutine.resume(coroutine.create(function(Part,Mesh)
  417. for i=0,1,delay do
  418. wait()
  419. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  420. Part.Transparency=i
  421. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  422. end
  423. Part.Parent=nil
  424. end),prt,msh)
  425. end
  426.  
  427. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  428. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  429. prt.Anchored=true
  430. prt.CFrame=cframe
  431. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  432. game:GetService("Debris"):AddItem(prt,2)
  433. coroutine.resume(coroutine.create(function(Part,Mesh)
  434. for i=0,1,delay do
  435. wait()
  436. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  437. Part.Transparency=i
  438. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  439. end
  440. Part.Parent=nil
  441. end),prt,msh)
  442. end
  443.  
  444. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  445. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  446. prt.Anchored=true
  447. prt.CFrame=cframe*cf(x,y,z)
  448. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  449. game:GetService("Debris"):AddItem(prt,5)
  450. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  451. local num=math.random()
  452. local num2=math.random(-3,2)+math.random()
  453. local numm=0
  454. for i=0,1,delay*2 do
  455. swait()
  456. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  457. Part.Transparency=i
  458. numm=numm+0.01
  459. end
  460. Part.Parent=nil
  461. Mesh.Parent=nil
  462. end),prt,msh,x,y,z)
  463. end
  464.  
  465. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  466. if hit.Parent==nil then
  467. return
  468. end
  469. h=hit.Parent:FindFirstChild("Humanoid")
  470. for _,v in pairs(hit.Parent:children()) do
  471. if v:IsA("Humanoid") then
  472. h=v
  473. end
  474. end
  475. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  476. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  477. end
  478. if hit.Parent.className=="Hat" then
  479. hit=hit.Parent.Parent:findFirstChild("Head")
  480. end
  481. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  482. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  483. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  484. return
  485. end]]
  486. -- hs(hit,1.2)
  487. c=Instance.new("ObjectValue")
  488. c.Name="creator"
  489. c.Value=game:service("Players").LocalPlayer
  490. c.Parent=h
  491. game:GetService("Debris"):AddItem(c,.5)
  492. Damage=math.random(minim,maxim)
  493. -- h:TakeDamage(Damage)
  494. blocked=false
  495. block=hit.Parent:findFirstChild("Block")
  496. if block~=nil then
  497. print(block.className)
  498. if block.className=="NumberValue" then
  499. if block.Value>0 then
  500. blocked=true
  501. if decreaseblock==nil then
  502. block.Value=block.Value-1
  503. end
  504. end
  505. end
  506. if block.className=="IntValue" then
  507. if block.Value>0 then
  508. blocked=true
  509. if decreaseblock~=nil then
  510. block.Value=block.Value-1
  511. end
  512. end
  513. end
  514. end
  515. if blocked==false then
  516. -- h:TakeDamage(Damage)
  517. h.Health=h.Health-Damage
  518. showDamage(hit.Parent,Damage,145689,"Bright blue")
  519. else
  520. h.Health=h.Health-(Damage/145689)
  521. showDamage(hit.Parent,Damage/145689,BrickColor.new("Bright blue"))
  522. end
  523. if Type=="Knockdown" then
  524. hum=hit.Parent.Humanoid
  525. hum.PlatformStand=true
  526. coroutine.resume(coroutine.create(function(HHumanoid)
  527. swait(1)
  528. HHumanoid.PlatformStand=false
  529. end),hum)
  530. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  531. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  532. local bodvol=Instance.new("BodyVelocity")
  533. bodvol.velocity=angle*knockback
  534. bodvol.P=5000
  535. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  536. bodvol.Parent=hit
  537. rl=Instance.new("BodyAngularVelocity")
  538. rl.P=3000
  539. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  540. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  541. rl.Parent=hit
  542. game:GetService("Debris"):AddItem(bodvol,.5)
  543. game:GetService("Debris"):AddItem(rl,.5)
  544. elseif Type=="Normal" then
  545. vp=Instance.new("BodyVelocity")
  546. vp.P=500
  547. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  548. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  549. if KnockbackType==1 then
  550. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  551. elseif KnockbackType==2 then
  552. vp.velocity=Property.CFrame.lookVector*knockback
  553. end
  554. if knockback>0 then
  555. vp.Parent=hit.Parent.Torso
  556. end
  557. game:GetService("Debris"):AddItem(vp,.5)
  558. elseif Type=="Up" then
  559. local bodyVelocity=Instance.new("BodyVelocity")
  560. bodyVelocity.velocity=vt(0,10,0)
  561. bodyVelocity.P=1000
  562. bodyVelocity.maxForce=Vector3.new(1e+009, 1e+009, 1e+009)
  563. bodyVelocity.Parent=hit
  564. game:GetService("Debris"):AddItem(bodyVelocity,1)
  565. rl=Instance.new("BodyAngularVelocity")
  566. rl.P=3000
  567. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  568. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  569. rl.Parent=hit
  570. game:GetService("Debris"):AddItem(rl,.5)
  571. elseif Type=="Snare" then
  572. bp=Instance.new("BodyPosition")
  573. bp.P=2000
  574. bp.D=100
  575. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  576. bp.position=hit.Parent.Torso.Position
  577. bp.Parent=hit.Parent.Torso
  578. game:GetService("Debris"):AddItem(bp,1)
  579. elseif Type=="Target" then
  580. if Targetting==false then
  581. ZTarget=hit.Parent.Torso
  582. coroutine.resume(coroutine.create(function(Part)
  583. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  584. swait(5)
  585. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  586. end),ZTarget)
  587. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  588. targetgui=Instance.new("BillboardGui")
  589. targetgui.Parent=ZTarget
  590. targetgui.Size=UDim2.new(10,100,10,100)
  591. targ=Instance.new("ImageLabel")
  592. targ.Parent=targetgui
  593. targ.BackgroundTransparency=1
  594. targ.Image="rbxassetid://4834067"
  595. targ.Size=UDim2.new(1,0,1,0)
  596. cam.CameraType="Scriptable"
  597. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  598. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  599. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  600. Targetting=true
  601. RocketTarget=ZTarget
  602. for i=1,Property do
  603. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  604. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  605. swait()
  606. end
  607. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  608. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  609. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  610. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  611. end
  612. Targetting=false
  613. RocketTarget=nil
  614. targetgui.Parent=nil
  615. cam.CameraType="Custom"
  616. end
  617. end
  618. debounce=Instance.new("BoolValue")
  619. debounce.Name="DebounceHit"
  620. debounce.Parent=hit.Parent
  621. debounce.Value=true
  622. game:GetService("Debris"):AddItem(debounce,Delay)
  623. c=Instance.new("ObjectValue")
  624. c.Name="creator"
  625. c.Value=Player
  626. c.Parent=h
  627. game:GetService("Debris"):AddItem(c,.5)
  628. CRIT=false
  629. hitDeb=true
  630. AttackPos=6
  631. end
  632. end
  633.  
  634. showDamage=function(Char,Dealt,du,Color)
  635. m=Instance.new("Model")
  636. m.Name=tostring(Dealt)
  637. h=Instance.new("Humanoid")
  638. h.Health=0
  639. h.MaxHealth=0
  640. h.Parent=m
  641. c=Instance.new("Part")
  642. c.Transparency=0
  643. c.BrickColor="Bright blue"
  644. c.Name="Head"
  645. c.TopSurface=0
  646. c.BottomSurface=0
  647. c.formFactor="Plate"
  648. c.Size=Vector3.new(1,.4,1)
  649. ms=Instance.new("CylinderMesh")
  650. ms.Scale=Vector3.new(.8,.8,.8)
  651. so("http://www.roblox.com/asset/?id=199149269",c,1,1)
  652. if CRIT==true then
  653. ms.Scale=Vector3.new(1,1.25,1)
  654. end
  655. ms.Parent=c
  656. c.Reflectance=0
  657. Instance.new("BodyGyro").Parent=c
  658. c.Parent=m
  659. if Char:findFirstChild("Head")~=nil then
  660. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  661. elseif Char.Parent:findFirstChild("Head")~=nil then
  662. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  663. end
  664. f=Instance.new("BodyPosition")
  665. f.P=2000
  666. f.D=100
  667. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  668. f.position=c.Position+Vector3.new(0,3,0)
  669. f.Parent=c
  670. game:GetService("Debris"):AddItem(m,.5+du)
  671. c.CanCollide=false
  672. m.Parent=workspace
  673. c.CanCollide=false
  674. end
  675.  
  676. Player=game:GetService('Players').LocalPlayer
  677. Character=Player.Character
  678. Mouse=Player:GetMouse()
  679. m=Instance.new('Model',Character)
  680.  
  681.  
  682. local function weldBetween(a, b)
  683. local weldd = Instance.new("ManualWeld")
  684. weldd.Part0 = a
  685. weldd.Part1 = b
  686. weldd.C0 = CFrame.new()
  687. weldd.C1 = b.CFrame:inverse() * a.CFrame
  688. weldd.Parent = a
  689. return weldd
  690. end
  691.  
  692. it=Instance.new
  693.  
  694. function nooutline(part)
  695. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  696. end
  697.  
  698. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  699. local fp=it("Part")
  700. fp.formFactor=formfactor
  701. fp.Parent=parent
  702. fp.Reflectance=reflectance
  703. fp.Transparency=transparency
  704. fp.CanCollide=false
  705. fp.Locked=true
  706. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  707. fp.Name=name
  708. fp.Size=size
  709. fp.Position=Character.Torso.Position
  710. nooutline(fp)
  711. fp.Material=material
  712. fp:BreakJoints()
  713. return fp
  714. end
  715.  
  716. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  717. local mesh=it(Mesh)
  718. mesh.Parent=part
  719. if Mesh=="SpecialMesh" then
  720. mesh.MeshType=meshtype
  721. mesh.MeshId=meshid
  722. end
  723. mesh.Offset=offset
  724. mesh.Scale=scale
  725. return mesh
  726. end
  727.  
  728. function weld(parent,part0,part1,c0,c1)
  729. local weld=it("Weld")
  730. weld.Parent=parent
  731. weld.Part0=part0
  732. weld.Part1=part1
  733. weld.C0=c0
  734. weld.C1=c1
  735. return weld
  736. end
  737. local modelzorz=Instance.new("Model")
  738. modelzorz.Parent=Character
  739. modelzorz.Name="Claw1"
  740.  
  741. Handle=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,1,"Bright blue","Handle",Vector3.new(1.20000005, 1.20000005, 1))
  742. Handleweld=weld(m,Character["Torso"],Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.74455023, 0.843135834, 3.31332064, 0.866820872, 0.000393055088, -0.498619556, 0.129048944, -0.966104209, 0.223582461, -0.481630623, -0.258152217, -0.837489963))
  743.  
  744.  
  745. local moosick = it("Sound",Torso)
  746. moosick.SoundId = "rbxassetid://142653441"
  747. --142653441, 175067863
  748. moosick.Looped = true
  749. moosick.Pitch = 1
  750. moosick.Volume = 1
  751. moosick:Play()
  752.  
  753.  
  754.  
  755. Player=game:GetService("Players").LocalPlayer
  756. Character=Player.Character
  757. PlayerGui=Player.PlayerGui
  758. Backpack=Player.Backpack
  759. Torso=Character.Torso
  760. Head=Character.Head
  761. Humanoid=Character.Humanoid
  762. LeftArm=Character["Left Arm"]
  763. LeftLeg=Character["Left Leg"]
  764. RightArm=Character["Right Arm"]
  765. RightLeg=Character["Right Leg"]
  766. LS=Torso["Left Shoulder"]
  767. LH=Torso["Left Hip"]
  768. RS=Torso["Right Shoulder"]
  769. RH=Torso["Right Hip"]
  770. Face = Head.face
  771. Neck=Torso.Neck
  772. it=Instance.new
  773. attacktype=1
  774. vt=Vector3.new
  775. cf=CFrame.new
  776. euler=CFrame.fromEulerAnglesXYZ
  777. angles=CFrame.Angles
  778. cloaked=false
  779. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  780. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  781. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  782. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  783. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  784. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  785. RootPart=Character.HumanoidRootPart
  786. RootJoint=RootPart.RootJoint
  787. RootCF=euler(-1.57,0,3.14)
  788. attack = false
  789. attackdebounce = false
  790. deb=false
  791. equipped=true
  792. hand=false
  793. MMouse=nil
  794. combo=0
  795. mana=0
  796. trispeed=.2
  797. attackmode='none'
  798. local idle=0
  799. local Anim="Idle"
  800. local Effects={}
  801. local gun=false
  802. local shoot=false
  803. player=nil
  804. mana=0
  805. cam = workspace.CurrentCamera
  806. ZTarget = nil
  807. RocketTarget = nil
  808. local m = Instance.new("Model",Character)
  809. m.Name = "WeaponModel"
  810.  
  811. mouse=Player:GetMouse()
  812. --save shoulders
  813. RSH, LSH=nil, nil
  814. --welds
  815. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  816. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  817. LH=Torso["Left Hip"]
  818. RH=Torso["Right Hip"]
  819. function NoOutline(Part)
  820. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  821. end
  822. player=Player
  823. ch=Character
  824. RSH=ch.Torso["Right Shoulder"]
  825. LSH=ch.Torso["Left Shoulder"]
  826. --
  827. RSH.Parent=nil
  828. LSH.Parent=nil
  829. --
  830. RW.Name="Right Shoulder"
  831. RW.Part0=ch.Torso
  832. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  833. RW.C1=cf(0, 0.5, 0)
  834. RW.Part1=ch["Right Arm"]
  835. RW.Parent=ch.Torso
  836. --
  837. LW.Name="Left Shoulder"
  838. LW.Part0=ch.Torso
  839. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  840. LW.C1=cf(0, 0.5, 0)
  841. LW.Part1=ch["Left Arm"]
  842. LW.Parent=ch.Torso
  843.  
  844. function swait(num)
  845. if num==0 or num==nil then
  846. game:service'RunService'.Heartbeat:wait(0)
  847. else
  848. for i=0,num do
  849. game:service'RunService'.Heartbeat:wait(0)
  850. end
  851. end
  852. end
  853.  
  854. function nooutline(part)
  855. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  856. end
  857.  
  858. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  859. local fp=it("Part")
  860. fp.formFactor=formfactor
  861. fp.Parent=parent
  862. fp.Reflectance=reflectance
  863. fp.Transparency=transparency
  864. fp.CanCollide=false
  865. fp.Locked=true
  866. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  867. fp.Name=name
  868. fp.Size=size
  869. fp.Position=Character.Torso.Position
  870. nooutline(fp)
  871. fp.Material=material
  872. fp:BreakJoints()
  873. return fp
  874. end
  875.  
  876. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  877. local mesh=it(Mesh)
  878. mesh.Parent=part
  879. if Mesh=="SpecialMesh" then
  880. mesh.MeshType=meshtype
  881. mesh.MeshId=meshid
  882. end
  883. mesh.Offset=offset
  884. mesh.Scale=scale
  885. return mesh
  886. end
  887.  
  888. function weld(parent,part0,part1,c0,c1)
  889. local weld=it("Weld")
  890. weld.Parent=parent
  891. weld.Part0=part0
  892. weld.Part1=part1
  893. weld.C0=c0
  894. weld.C1=c1
  895. return weld
  896. end
  897.  
  898.  
  899. local function CFrameFromTopBack(at, top, back)
  900. local right = top:Cross(back)
  901. return CFrame.new(at.x, at.y, at.z,
  902. right.x, top.x, back.x,
  903. right.y, top.y, back.y,
  904. right.z, top.z, back.z)
  905. end
  906.  
  907. function Triangle(a, b, c)
  908. local edg1 = (c-a):Dot((b-a).unit)
  909. local edg2 = (a-b):Dot((c-b).unit)
  910. local edg3 = (b-c):Dot((a-c).unit)
  911. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  912. a, b, c = a, b, c
  913. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  914. a, b, c = b, c, a
  915. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  916. a, b, c = c, a, b
  917. else
  918. assert(false, "unreachable")
  919. end
  920.  
  921. local len1 = (c-a):Dot((b-a).unit)
  922. local len2 = (b-a).magnitude - len1
  923. local width = (a + (b-a).unit*len1 - c).magnitude
  924.  
  925. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  926.  
  927. local list = {}
  928.  
  929. local TrailColor = ("Dark grey")
  930.  
  931. if len1 > 0.01 then
  932. local w1 = Instance.new('WedgePart', m)
  933. game:GetService("Debris"):AddItem(w1,5)
  934. w1.Material = "SmoothPlastic"
  935. w1.FormFactor = 'Custom'
  936. w1.BrickColor = BrickColor.new(TrailColor)
  937. w1.Transparency = 0
  938. w1.Reflectance = 0
  939. w1.Material = "SmoothPlastic"
  940. w1.CanCollide = false
  941. NoOutline(w1)
  942. local sz = Vector3.new(0.2, width, len1)
  943. w1.Size = sz
  944. local sp = Instance.new("SpecialMesh",w1)
  945. sp.MeshType = "Wedge"
  946. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  947. w1:BreakJoints()
  948. w1.Anchored = true
  949. w1.Parent = workspace
  950. w1.Transparency = 0.7
  951. table.insert(Effects,{w1,"Disappear",.01})
  952. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  953. table.insert(list,w1)
  954. end
  955.  
  956. if len2 > 0.01 then
  957. local w2 = Instance.new('WedgePart', m)
  958. game:GetService("Debris"):AddItem(w2,5)
  959. w2.Material = "SmoothPlastic"
  960. w2.FormFactor = 'Custom'
  961. w2.BrickColor = BrickColor.new(TrailColor)
  962. w2.Transparency = 0
  963. w2.Reflectance = 0
  964. w2.Material = "SmoothPlastic"
  965. w2.CanCollide = false
  966. NoOutline(w2)
  967. local sz = Vector3.new(0.2, width, len2)
  968. w2.Size = sz
  969. local sp = Instance.new("SpecialMesh",w2)
  970. sp.MeshType = "Wedge"
  971. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  972. w2:BreakJoints()
  973. w2.Anchored = true
  974. w2.Parent = workspace
  975. w2.Transparency = 0.7
  976. table.insert(Effects,{w2,"Disappear",.01})
  977. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  978. table.insert(list,w2)
  979. end
  980. return unpack(list)
  981. end
  982.  
  983.  
  984. so = function(id,par,vol,pit)
  985. coroutine.resume(coroutine.create(function()
  986. local sou = Instance.new("Sound",par or workspace)
  987. sou.Volume=vol
  988. sou.Pitch=pit or 1
  989. sou.SoundId=id
  990. swait()
  991. sou:play()
  992. game:GetService("Debris"):AddItem(sou,6)
  993. end))
  994. end
  995.  
  996. function clerp(a,b,t)
  997. local qa = {QuaternionFromCFrame(a)}
  998. local qb = {QuaternionFromCFrame(b)}
  999. local ax, ay, az = a.x, a.y, a.z
  1000. local bx, by, bz = b.x, b.y, b.z
  1001. local _t = 1-t
  1002. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1003. end
  1004.  
  1005. function QuaternionFromCFrame(cf)
  1006. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1007. local trace = m00 + m11 + m22
  1008. if trace > 0 then
  1009. local s = math.sqrt(1 + trace)
  1010. local recip = 0.5/s
  1011. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1012. else
  1013. local i = 0
  1014. if m11 > m00 then
  1015. i = 1
  1016. end
  1017. if m22 > (i == 0 and m00 or m11) then
  1018. i = 2
  1019. end
  1020. if i == 0 then
  1021. local s = math.sqrt(m00-m11-m22+1)
  1022. local recip = 0.5/s
  1023. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1024. elseif i == 1 then
  1025. local s = math.sqrt(m11-m22-m00+1)
  1026. local recip = 0.5/s
  1027. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1028. elseif i == 2 then
  1029. local s = math.sqrt(m22-m00-m11+1)
  1030. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1031. end
  1032. end
  1033. end
  1034.  
  1035. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1036. local xs, ys, zs = x + x, y + y, z + z
  1037. local wx, wy, wz = w*xs, w*ys, w*zs
  1038. local xx = x*xs
  1039. local xy = x*ys
  1040. local xz = x*zs
  1041. local yy = y*ys
  1042. local yz = y*zs
  1043. local zz = z*zs
  1044. 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))
  1045. end
  1046.  
  1047. function QuaternionSlerp(a, b, t)
  1048. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1049. local startInterp, finishInterp;
  1050. if cosTheta >= 0.0001 then
  1051. if (1 - cosTheta) > 0.0001 then
  1052. local theta = math.acos(cosTheta)
  1053. local invSinTheta = 1/math.sin(theta)
  1054. startInterp = math.sin((1-t)*theta)*invSinTheta
  1055. finishInterp = math.sin(t*theta)*invSinTheta
  1056. else
  1057. startInterp = 1-t
  1058. finishInterp = t
  1059. end
  1060. else
  1061. if (1+cosTheta) > 0.0001 then
  1062. local theta = math.acos(-cosTheta)
  1063. local invSinTheta = 1/math.sin(theta)
  1064. startInterp = math.sin((t-1)*theta)*invSinTheta
  1065. finishInterp = math.sin(t*theta)*invSinTheta
  1066. else
  1067. startInterp = t-1
  1068. finishInterp = t
  1069. end
  1070. end
  1071. 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
  1072. end
  1073.  
  1074. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1075. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1076. end
  1077.  
  1078. Damagefunc=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  1079. if hit.Parent==nil then
  1080. return
  1081. end
  1082. local h=hit.Parent:FindFirstChild("Humanoid")
  1083. for _,v in pairs(hit.Parent:children()) do
  1084. if v:IsA("Humanoid") then
  1085. h=v
  1086. end
  1087. end
  1088. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  1089. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  1090. end
  1091. if hit.Parent.className=="Hat" then
  1092. hit=hit.Parent.Parent:findFirstChild("Head")
  1093. end
  1094. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1095. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  1096. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1097. return
  1098. end]]
  1099. -- hs(hit,1.2)
  1100. local c=Instance.new("ObjectValue")
  1101. c.Name="creator"
  1102. c.Value=game:service("Players").LocalPlayer
  1103. c.Parent=h
  1104. game:GetService("Debris"):AddItem(c,.5)
  1105. local Damage=math.random(minim,maxim)
  1106. -- h:TakeDamage(Damage)
  1107. local blocked=false
  1108. local block=hit.Parent:findFirstChild("Block")
  1109. if block~=nil then
  1110. print(block.className)
  1111. if block.className=="NumberValue" then
  1112. if block.Value>0 then
  1113. blocked=true
  1114. if decreaseblock==nil then
  1115. block.Value=block.Value-1
  1116. end
  1117. end
  1118. end
  1119. if block.className=="IntValue" then
  1120. if block.Value>0 then
  1121. blocked=true
  1122. if decreaseblock~=nil then
  1123. block.Value=block.Value-1
  1124. end
  1125. end
  1126. end
  1127. end
  1128. if blocked==false then
  1129. -- h:TakeDamage(Damage)
  1130. h.Health=h.Health-Damage
  1131. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
  1132. else
  1133. h.Health=h.Health-(Damage/2)
  1134. 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)
  1135. end
  1136. if Type=="Knockdown" then
  1137. local hum=hit.Parent.Humanoid
  1138. hum.PlatformStand=true
  1139. coroutine.resume(coroutine.create(function(HHumanoid)
  1140. swait(1)
  1141. HHumanoid.PlatformStand=false
  1142. end),hum)
  1143. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  1144. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  1145. local bodvol=Instance.new("BodyVelocity")
  1146. bodvol.velocity=angle*knockback
  1147. bodvol.P=5000
  1148. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1149. bodvol.Parent=hit
  1150. local rl=Instance.new("BodyAngularVelocity")
  1151. rl.P=3000
  1152. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1153. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1154. rl.Parent=hit
  1155. game:GetService("Debris"):AddItem(bodvol,.5)
  1156. game:GetService("Debris"):AddItem(rl,.5)
  1157. elseif Type=="Normal" then
  1158. local vp=Instance.new("BodyVelocity")
  1159. vp.P=500
  1160. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1161. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1162. if KnockbackType==1 then
  1163. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  1164. elseif KnockbackType==2 then
  1165. vp.velocity=Property.CFrame.lookVector*knockback
  1166. end
  1167. if knockback>0 then
  1168. vp.Parent=hit.Parent.Torso
  1169. end
  1170. game:GetService("Debris"):AddItem(vp,.5)
  1171. elseif Type=="Up" then
  1172. local bodyVelocity=Instance.new("BodyVelocity")
  1173. bodyVelocity.velocity=vt(0,60,0)
  1174. bodyVelocity.P=5000
  1175. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1176. bodyVelocity.Parent=hit
  1177. game:GetService("Debris"):AddItem(bodyVelocity,1)
  1178. local rl=Instance.new("BodyAngularVelocity")
  1179. rl.P=3000
  1180. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1181. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  1182. rl.Parent=hit
  1183. game:GetService("Debris"):AddItem(rl,.5)
  1184. elseif Type=="Snare" then
  1185. local bp=Instance.new("BodyPosition")
  1186. bp.P=2000
  1187. bp.D=100
  1188. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1189. bp.position=hit.Parent.Torso.Position
  1190. bp.Parent=hit.Parent.Torso
  1191. game:GetService("Debris"):AddItem(bp,1)
  1192. elseif Type=="Target" then
  1193. local Targetting = false
  1194. if Targetting==false then
  1195. ZTarget=hit.Parent.Torso
  1196. coroutine.resume(coroutine.create(function(Part)
  1197. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  1198. swait(5)
  1199. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  1200. end),ZTarget)
  1201. local TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  1202. local targetgui=Instance.new("BillboardGui")
  1203. targetgui.Parent=ZTarget
  1204. targetgui.Size=UDim2.new(10,100,10,100)
  1205. local targ=Instance.new("ImageLabel")
  1206. targ.Parent=targetgui
  1207. targ.BackgroundTransparency=1
  1208. targ.Image="rbxassetid://4834067"
  1209. targ.Size=UDim2.new(1,0,1,0)
  1210. cam.CameraType="Scriptable"
  1211. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1212. local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  1213. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1214. Targetting=true
  1215. RocketTarget=ZTarget
  1216. for i=1,Property do
  1217. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  1218. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  1219. swait()
  1220. end
  1221. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  1222. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1223. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  1224. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  1225. end
  1226. Targetting=false
  1227. RocketTarget=nil
  1228. targetgui.Parent=nil
  1229. cam.CameraType="Custom"
  1230. end
  1231. end
  1232. local debounce=Instance.new("BoolValue")
  1233. debounce.Name="DebounceHit"
  1234. debounce.Parent=hit.Parent
  1235. debounce.Value=true
  1236. game:GetService("Debris"):AddItem(debounce,Delay)
  1237. c=Instance.new("ObjectValue")
  1238. c.Name="creator"
  1239. c.Value=Player
  1240. c.Parent=h
  1241. game:GetService("Debris"):AddItem(c,.5)
  1242. end
  1243. end
  1244.  
  1245. function ShowDamage(Pos, Text, Time, Color)
  1246. local Rate = (1 / 30)
  1247. local Pos = (Pos or Vector3.new(0, 0, 0))
  1248. local Text = (Text or "")
  1249. local Time = (Time or 2)
  1250. local Color = (Color or Color3.new(1, 0, 0))
  1251. local EffectPart = part("Custom",workspace,"SmoothPlastic",0,1,BrickColor.new(Color),"Effect",vt(0,0,0))
  1252. EffectPart.Anchored = true
  1253. local BillboardGui = Instance.new("BillboardGui")
  1254. BillboardGui.Size = UDim2.new(3, 0, 3, 0)
  1255. BillboardGui.Adornee = EffectPart
  1256. local TextLabel = Instance.new("TextLabel")
  1257. TextLabel.BackgroundTransparency = 1
  1258. TextLabel.Size = UDim2.new(1, 0, 1, 0)
  1259. TextLabel.Text = Text
  1260. TextLabel.TextColor3 = Color
  1261. TextLabel.TextScaled = true
  1262. TextLabel.Font = Enum.Font.ArialBold
  1263. TextLabel.Parent = BillboardGui
  1264. BillboardGui.Parent = EffectPart
  1265. game.Debris:AddItem(EffectPart, (Time + 0.1))
  1266. EffectPart.Parent = game:GetService("Workspace")
  1267. Delay(0, function()
  1268. local Frames = (Time / Rate)
  1269. for Frame = 1, Frames do
  1270. wait(Rate)
  1271. local Percent = (Frame / Frames)
  1272. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1273. TextLabel.TextTransparency = Percent
  1274. end
  1275. if EffectPart and EffectPart.Parent then
  1276. EffectPart:Destroy()
  1277. end
  1278. end)
  1279. end
  1280.  
  1281. --example: local con = HitboxB.Touched:connect(function(hit) Damagefunc(Hitbox,hit,Dmg,Dmg,math.random(Knockback,Knockback),"Normal",RootPart,.2,1) end)
  1282.  
  1283. Handle=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,1,"Really black","Handle",Vector3.new(1, 0.800000012, 1))
  1284. Handleweld=weld(m,Character["Right Arm"],Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-8.96453857e-005, 0.000481128693, -1.83582306e-005, 1, 1.92410751e-014, -4.42007258e-005, -1.93349195e-014, 0.999999881, -2.12312026e-012, 4.42007258e-005, 2.12312091e-012, 1))
  1285. Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,1,"Really black","Hitbox",Vector3.new(1.60000002, 3.4000001, 1))
  1286. Hitboxweld=weld(m,Handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.300050735, 0.100232601, 3.57627869e-007, 1, 1.06558363e-014, -4.67116479e-009, -1.06558363e-014, 1, -7.35089073e-017, 4.67116479e-009, 7.35089073e-017, 1))
  1287. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(1, 0.200000003, 1))
  1288. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(8.20159912e-005, 1.10002291, 1.57356262e-005, 1, -1.22308889e-014, 4.41999473e-005, 1.23254525e-014, 0.999996662, -2.14035647e-012, -4.41999473e-005, 2.14036427e-012, 1))
  1289. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(1.01999998, 0.200000003, 0.200000003))
  1290. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.82012939e-005, -0.699694633, 0.410015702, 1, -1.57821432e-014, 4.42007258e-005, 1.56883004e-014, 1, 2.12312091e-012, -4.42007258e-005, -2.12312026e-012, 1))
  1291. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(1.01999998, 0.200000003, 0.200000003))
  1292. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.82012939e-005, -0.699361324, -0.40998435, 1, -1.22308889e-014, 4.41999473e-005, 1.23254932e-014, 1, -2.14036362e-012, -4.41999473e-005, 2.14036427e-012, 1))
  1293. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(0.200000003, 0.800000012, 0.620000005))
  1294. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.409914017, 0.000346660614, 1.57356262e-005, 1, -1.57821432e-014, 4.42007258e-005, 1.56883004e-014, 1, 2.12312091e-012, -4.42007258e-005, -2.12312026e-012, 1))
  1295. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.620000005))
  1296. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.409914017, 0.700180769, 1.57356262e-005, 1, -1.57821432e-014, 4.42007258e-005, 1.56883004e-014, 1, 2.12312091e-012, -4.42007258e-005, -2.12312026e-012, 1))
  1297. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(1.01999998, 0.800000012, 0.200000003))
  1298. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.82012939e-005, 0.000400543213, 0.410015702, 1, -1.57821432e-014, 4.42007258e-005, 1.56883004e-014, 1, 2.12312091e-012, -4.42007258e-005, -2.12312026e-012, 1))
  1299. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(0.200000003, 0.800000012, 0.620000005))
  1300. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.410078049, 0.000326633453, 1.57356262e-005, 1, -1.57821432e-014, 4.42007258e-005, 1.56883004e-014, 1, 2.12312091e-012, -4.42007258e-005, -2.12312026e-012, 1))
  1301. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(1.01999998, 0.800000012, 0.200000003))
  1302. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.82012939e-005, 0.000392436981, -0.40998435, 1, -1.57821432e-014, 4.42007258e-005, 1.56883004e-014, 1, 2.12312091e-012, -4.42007258e-005, -2.12312026e-012, 1))
  1303. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(1.01999998, 0.200000003, 0.200000003))
  1304. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.82012939e-005, 0.700207949, 0.410015702, 1, -1.57821432e-014, 4.42007258e-005, 1.56883004e-014, 1, 2.12312091e-012, -4.42007258e-005, -2.12312026e-012, 1))
  1305. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.620000005))
  1306. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.410078049, -0.699380398, 1.56164169e-005, 1, -1.22308889e-014, 4.41999473e-005, 1.23254932e-014, 1, -2.14036362e-012, -4.41999473e-005, 2.14036427e-012, 1))
  1307. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.620000005))
  1308. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.4100914, 0.700154781, 1.57356262e-005, 1, -1.93349195e-014, 4.42007258e-005, 1.92409124e-014, 0.999991417, 2.12310291e-012, -4.42007258e-005, -2.12312026e-012, 1))
  1309. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(1.01999998, 0.200000003, 0.200000003))
  1310. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.82012939e-005, 0.700230837, -0.40998435, 1, -1.57821432e-014, 4.42007258e-005, 1.56883004e-014, 1, 2.12312091e-012, -4.42007258e-005, -2.12312026e-012, 1))
  1311. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(0.400000006, 2, 1))
  1312. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699924469, 4.14848328e-005, 2.16960907e-005, 1, -1.22308889e-014, 4.41999473e-005, 1.23254932e-014, 1, -2.14036362e-012, -4.41999473e-005, 2.14036427e-012, 1))
  1313. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(1, 1.39999998, 0.200000003))
  1314. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.57356262e-005, -0.299851894, 0.999885559, -4.41999473e-005, -5.95854743e-008, 1, -2.60350986e-012, 1, 5.95854743e-008, -1, 3.01648321e-014, -4.41999473e-005))
  1315. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1316. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(1, 0.600000024, 0.200000003))
  1317. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.57356262e-005, -0.700007677, 0.999902725, 4.41999473e-005, -2.13950775e-012, -1, -2.65373322e-014, -1, 2.13950667e-012, -1, 2.64427677e-014, -4.41999473e-005))
  1318. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1319. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(0.400000006, 1.39999998, 0.399999976))
  1320. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.848457336, -0.300411701, -0.141453743, 0.707042813, -1.50516166e-012, -0.707170904, 1.1783393e-014, 1, -2.11664583e-012, 0.707170904, 1.48822632e-012, 0.707042813))
  1321. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(0.400000006, 0.400000006, 0.400000006))
  1322. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.6998806, -0.499980569, -0.399654627, 0.999999881, 3.17161053e-008, 4.20847573e-005, -4.21145523e-005, -2.83570323e-009, 0.999999762, 3.17162403e-008, -0.999999762, -2.83438673e-009))
  1323. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.404000014, 0.400000006, 0.995999992))
  1324. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(0.400000006, 0.400000006, 0.400000006))
  1325. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699882507, 0.500019133, 1.00034523, 0.999999881, 3.17161053e-008, 4.20847573e-005, -4.21145523e-005, -2.83570323e-009, 0.999999762, 3.17162403e-008, -0.999999762, -2.83438673e-009))
  1326. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.404000014, 0.400000006, 0.560000002))
  1327. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(0.400000006, 0.400000006, 0.400000006))
  1328. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699882507, 0.500019133, -0.399654627, 0.999999881, 3.17161053e-008, 4.20847573e-005, -4.21145523e-005, -2.83570323e-009, 0.999999762, 3.17162403e-008, -0.999999762, -2.83438673e-009))
  1329. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.404000014, 0.400000006, 0.995999992))
  1330. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.620000005))
  1331. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.409921646, -0.699380398, 1.57356262e-005, 1, -1.22308889e-014, 4.41999473e-005, 1.23254932e-014, 1, -2.14036362e-012, -4.41999473e-005, 2.14036427e-012, 1))
  1332. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(1, 0.200000003, 0.400000006))
  1333. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.56164169e-005, -1.10002637, 0.699918747, 4.41999473e-005, -2.14036427e-012, -1, -1.23254932e-014, -1, 2.14036362e-012, -1, 1.22308889e-014, -4.41999473e-005))
  1334. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1335. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(1, 0.200000003, 0.200000003))
  1336. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.16960907e-005, -0.599924088, 1.49999762, 4.41999473e-005, -2.14036427e-012, -1, 1, -1.22308889e-014, 4.41999473e-005, -1.23254932e-014, -1, 2.14036362e-012))
  1337. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1338. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(0.400000006, 1.39999998, 0.399999976))
  1339. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.141283035, -0.300261259, -0.848459244, 0.707067847, -1.51049073e-012, -0.70714587, 1.20093924e-014, 1, -2.12403055e-012, 0.70714587, 1.49334115e-012, 0.707067847))
  1340. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(0.400000006, 0.400000006, 0.400000006))
  1341. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.6998806, -0.499980569, 1.00034523, 0.999999881, 3.17161053e-008, 4.20847573e-005, -4.21145523e-005, -2.83570323e-009, 0.999999762, 3.17162403e-008, -0.999999762, -2.83438673e-009))
  1342. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.403999984, 0.399999976, 0.560000002))
  1343. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(1, 0.200000003, 0.400000006))
  1344. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.16960907e-005, -0.79992485, 1.19999647, 4.41999473e-005, -2.14036427e-012, -1, 0.999999821, 2.980231e-008, 4.419994e-005, 2.980231e-008, -0.999999821, 3.45762416e-012))
  1345. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1346. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(0.200000003, 0.400000006, 1))
  1347. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599924088, -1.19995832, 2.16960907e-005, 1, -1.22308889e-014, 4.41999473e-005, 1.23254932e-014, 1, -2.14036362e-012, -4.41999473e-005, 2.14036427e-012, 1))
  1348. Finger1Connector=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,1,"Bright blue","Finger1Connector",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  1349. Finger1Connectorweld=weld(m,Handle,Finger1Connector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.399971008, 1.29990399, 0.200015664, 1, 1.78782017e-007, 4.41999473e-005, -1.7878321e-007, 0.999993324, -1.00110302e-011, -4.41999473e-005, 2.10883698e-012, 1))
  1350. Finger2Connector=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,1,"Bright blue","Finger2Connector",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  1351. Finger2Connectorweld=weld(m,Handle,Finger2Connector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.399934769, 1.29982674, 0.400015712, 1, 2.97982776e-008, 4.41999473e-005, -2.97984766e-008, 0.999993324, -3.43642345e-012, -4.41999473e-005, 2.11934723e-012, 1))
  1352. Finger3Connector=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,1,"Bright blue","Finger3Connector",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  1353. Finger3Connectorweld=weld(m,Handle,Finger3Connector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.399934769, 1.29971194, 0.140015721, 1, 8.93768473e-008, 4.421228e-005, -8.93774441e-008, 0.999993324, -1.82566007e-012, -4.421228e-005, -2.12587717e-012, 1))
  1354. Finger4Connector=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,1,"Bright blue","Finger4Connector",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  1355. Finger4Connectorweld=weld(m,Handle,Finger4Connector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.399930954, 1.29973722, -0.119984269, 1, 8.93806842e-008, 4.421228e-005, -8.9381281e-008, 0.999993324, -1.82601091e-012, -4.421228e-005, -2.12569589e-012, 1))
  1356. Finger5Connector=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,1,"Bright blue","Finger5Connector",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  1357. Finger5Connectorweld=weld(m,Handle,Finger5Connector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.399984121, -1.29981911, -0.399932861, -4.41701486e-005, 5.95858012e-008, 1, 4.58027785e-008, -0.999993324, 5.95882241e-008, 1, 4.58051019e-008, 4.41701486e-005))
  1358. Finger1=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Bright blue","Finger1",Vector3.new(0.200000003, 0.400000006, 0.200000003))
  1359. Finger1weld=weld(m,Finger1Connector,Finger1,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(6.10351563e-005, 0.100007057, 0, 1, 2.06483719e-011, -5.55111512e-017, -2.54232191e-011, 0.999986649, 4.50594423e-016, 5.55111512e-017, -4.49727061e-016, 1))
  1360. Finger2=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Bright blue","Finger2",Vector3.new(0.200000003, 0.600000024, 0.200000003))
  1361. Finger2weld=weld(m,Finger2Connector,Finger2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.81469727e-006, 0.199999213, 1.1920929e-007, 1, 8.77520279e-013, 0, -1.67332814e-012, 0.999986649, 1.50920942e-016, 0, -1.50053581e-016, 1))
  1362. Finger3=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Bright blue","Finger3",Vector3.new(0.200000003, 0.600000024, 0.200000003))
  1363. Finger3weld=weld(m,Finger3Connector,Finger3,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.81469727e-006, 0.200001121, 1.1920929e-007, 1, 2.64321898e-012, -4.35207426e-013, -5.03064257e-012, 0.999986649, -1.23739232e-016, 4.35207426e-013, 2.38535383e-016, 1))
  1364. Finger4=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Bright blue","Finger4",Vector3.new(0.200000003, 0.600000024, 0.200000003))
  1365. Finger4weld=weld(m,Finger4Connector,Finger4,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.81469727e-006, 0.199998736, 1.1920929e-007, 1, 2.64321898e-012, -4.35207426e-013, -5.03064257e-012, 0.999986649, -1.23732138e-016, 4.35207426e-013, 2.38539513e-016, 1))
  1366. Finger5=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Bright blue","Finger5",Vector3.new(0.200000003, 0.600000024, 0.200000003))
  1367. Finger5weld=weld(m,Finger5Connector,Finger5,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.38418579e-007, -0.199927688, 9.53674316e-006, 1, -3.86535248e-012, -7.77482967e-010, 5.45696821e-012, 0.999986649, -1.35540613e-012, 7.77477638e-010, 2.57749442e-012, 1))
  1368.  
  1369. function FuckYou()
  1370. attack = true
  1371. for i = 0,1,0.1 do
  1372. swait()
  1373. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(30)),.3)
  1374. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-30)),.3)
  1375. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-130), math.rad(-170)), 0.3)
  1376. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.3)
  1377. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1378. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1379. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(80)),.3)
  1380. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  1381. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  1382. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  1383. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(-80),math.rad(0),math.rad(0)),.3)
  1384. end
  1385. for i = 0,1,0.01 do
  1386. swait()
  1387. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(30)),.3)
  1388. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-30)),.3)
  1389. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-130), math.rad(-150)), 0.3)
  1390. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.3)
  1391. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1392. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1393. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(80)),.3)
  1394. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  1395. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  1396. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  1397. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(-80),math.rad(0),math.rad(0)),.3)
  1398. end
  1399. attack = false
  1400. end
  1401.  
  1402. function attackone()
  1403. attack = true
  1404. local con = Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,145689,math.random(145689,145689),"Normal",RootPart,.2,1) end)
  1405. for i = 0,1,0.1 do
  1406. swait()
  1407. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(70)),.3)
  1408. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  1409. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -.5) * angles(math.rad(90), math.rad(0), math.rad(-50)), 0.3)
  1410. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-15)), 0.3)
  1411. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(0))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3)
  1412. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-130),math.rad(10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1413. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(80)),.3)
  1414. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  1415. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  1416. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  1417. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(-80),math.rad(0),math.rad(0)),.3)
  1418. end
  1419. so("http://roblox.com/asset/?id=200632136",Hitbox,1,.9)
  1420. so("http://www.roblox.com/asset/?id=159972643",Torso,1,1)
  1421. for i = 0,1,0.1 do
  1422. swait()
  1423. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(-70)),.4)
  1424. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(60)),.4)
  1425. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, 0.5) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.4)
  1426. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-20)), 0.3)
  1427. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(130),math.rad(0))*angles(math.rad(-2),math.rad(0),math.rad(0)),.4)
  1428. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(-10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.4)
  1429. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(30),math.rad(0),math.rad(20)),.3)
  1430. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(20),math.rad(0),math.rad(-20)),.3)
  1431. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(10),math.rad(0),math.rad(-20)),.3)
  1432. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(-10),math.rad(0),math.rad(-20)),.3)
  1433. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(-20),math.rad(0),math.rad(-20)),.3)
  1434. end
  1435. attack = false
  1436. con:disconnect()
  1437. end
  1438.  
  1439. function attacktwo()
  1440. attack = true
  1441. local con = Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,145689,math.random(145689,145689),"Normal",RootPart,.2,1) end)
  1442. for i = 0,1,0.1 do
  1443. swait()
  1444. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(-70)),.3)
  1445. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  1446. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -.5) * angles(math.rad(0), math.rad(150), math.rad(90)), 0.3)
  1447. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-20), math.rad(-90)), 0.3)
  1448. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(130),math.rad(-10))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3)
  1449. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(-10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1450. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(30),math.rad(0),math.rad(-50)),.3)
  1451. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(20),math.rad(0),math.rad(50)),.3)
  1452. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  1453. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(-10),math.rad(0),math.rad(50)),.3)
  1454. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(50),math.rad(0),math.rad(-20)),.3)
  1455. end
  1456. so("http://roblox.com/asset/?id=200632211",Hitbox,1,.9)
  1457. so("http://www.roblox.com/asset/?id=159882477",Torso,1,1)
  1458. for i = 0,1,0.1 do
  1459. swait()
  1460. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(70)),.4)
  1461. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-60)),.5)
  1462. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(20), math.rad(90)), 0.4)
  1463. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-50)), 0.3)
  1464. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(10))*angles(math.rad(-2),math.rad(0),math.rad(0)),.4)
  1465. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-130),math.rad(10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.4)
  1466. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(30),math.rad(0),math.rad(-50)),.3)
  1467. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(20),math.rad(0),math.rad(50)),.3)
  1468. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  1469. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(-10),math.rad(0),math.rad(50)),.3)
  1470. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(50),math.rad(0),math.rad(-20)),.3)
  1471. end
  1472. attack = false
  1473. con:disconnect()
  1474. end
  1475.  
  1476. function attackthree()
  1477. attack = true
  1478. local con = Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,145689,math.random(145689,145689),"Normal",RootPart,.2,1) end)
  1479. for i = 0,1,0.1 do
  1480. swait()
  1481. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(-70)),.3)
  1482. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  1483. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-30)), 0.3)
  1484. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-20), math.rad(-90)), 0.3)
  1485. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(130),math.rad(-10))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3)
  1486. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(-10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1487. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(80)),.3)
  1488. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  1489. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  1490. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  1491. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(-80),math.rad(0),math.rad(0)),.3)
  1492. end
  1493. so("http://roblox.com/asset/?id=200632136",Hitbox,1,.8)
  1494. so("http://www.roblox.com/asset/?id=159882584",Torso,1,1)
  1495. for i = 0,1,0.1 do
  1496. swait()
  1497. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(90)),.4)
  1498. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-80)),.4)
  1499. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -.5) * angles(math.rad(90), math.rad(0), math.rad(-40*i)), 0.4)
  1500. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-50)), 0.3)
  1501. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.4)
  1502. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-130),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.4)
  1503. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(80)),.3)
  1504. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  1505. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  1506. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  1507. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(-80),math.rad(0),math.rad(0)),.3)
  1508. end
  1509. attack = false
  1510. con:disconnect()
  1511. end
  1512.  
  1513. function weld5(part0, part1, c0, c1)
  1514. local weeld=Instance.new("Weld", part0)
  1515. weeld.Part0=part0
  1516. weeld.Part1=part1
  1517.  
  1518. weeld.C0=c0
  1519. weeld.C1=c1
  1520. return weeld
  1521. end
  1522.  
  1523. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1524. local prt=part(3,workspace,"Neon",0.5,0,brickcolor,"Effect",vt())
  1525. prt.Anchored=true
  1526. prt.CFrame=cframe
  1527. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1528. game:GetService("Debris"):AddItem(prt,2)
  1529. coroutine.resume(coroutine.create(function(Part,Mesh)
  1530. local wld=nil
  1531. for i=0,1,delay do
  1532. wait()
  1533. Part.CFrame=Part.CFrame
  1534. Part.Transparency=i
  1535. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1536. end
  1537. Part.Parent=nil
  1538. end),prt,msh)
  1539. end
  1540.  
  1541. function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1542. local prt=part(3,workspace,"Neon",0.5,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1543. prt.Anchored=true
  1544. prt.CFrame=cframe
  1545. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  1546. game:GetService("Debris"):AddItem(prt,5)
  1547. coroutine.resume(coroutine.create(function(Part,Mesh)
  1548. for i=0,1,delay do
  1549. wait()
  1550. Part.CFrame=Part.CFrame
  1551. Part.Transparency=i
  1552. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1553. end
  1554. Part.Parent=nil
  1555. end),prt,msh)
  1556. end
  1557.  
  1558. local Grab = false
  1559.  
  1560. function MagniDamage(Hit,Part,magni,mindam,maxdam,knock,Type)
  1561. for _,c in pairs(workspace:children()) do
  1562. local hum=c:findFirstChild("Humanoid")
  1563. if hum~=nil then
  1564. local head=c:findFirstChild("Torso")
  1565. if head~=nil then
  1566. local targ=head.Position-Part.Position
  1567. local mag=targ.magnitude
  1568. if mag<=magni and c.Name~=Player.Name then
  1569. Damagefunc(Hit,head,mindam,maxdam,knock,Type,RootPart,.2,1,3)
  1570. end
  1571. end
  1572. end
  1573. end
  1574. end
  1575.  
  1576. function MagniDamage2(Hit,Part,magni,mindam,maxdam,knock,Type)
  1577. for _,c in pairs(workspace:children()) do
  1578. local hum=c:findFirstChild("Humanoid")
  1579. if hum~=nil then
  1580. local head=c:findFirstChild("Torso")
  1581. if head~=nil then
  1582. local targ=head.Position-Part.Position
  1583. local mag=targ.magnitude
  1584. if mag<=magni and c.Name~=Player.Name then
  1585. Damagefunc(Hit,head,mindam,maxdam,knock,Type,RootPart,.2,1,3)
  1586. for i,v in pairs (hum.Parent:GetChildren()) do
  1587. if v:IsA("Humanoid") then
  1588. v:remove()
  1589. end
  1590. if v:IsA("Part") then
  1591. v.BrickColor = BrickColor.new("Really black")
  1592. v.Reflectance = 0.5
  1593. v.Material = "SmoothPlastic"
  1594. v.CanCollide = true
  1595. end
  1596. end
  1597. end
  1598. end
  1599. end
  1600. end
  1601. end
  1602.  
  1603.  
  1604. function GrabNSlam()
  1605. attack = true
  1606. so("http://roblox.com/asset/?id=200632211",Hitbox,1,.9)
  1607. if Grab == false then
  1608. gp = nil
  1609. con1=Hitbox.Touched:connect(function(hit) -- credits to TheDarkRevenant for the grabbing
  1610. local ht = hit.Parent
  1611. local hum1=ht:FindFirstChild('Humanoid')
  1612. if hum1 ~= nil then
  1613. hum1.PlatformStand=true
  1614. gp = ht
  1615. Grab = true
  1616. local asd=weld5(RightArm,ht:FindFirstChild("Torso"),CFrame.new(0,-1.7,0),CFrame.new(0,0,0))
  1617. asd.Parent = RightArm
  1618. asd.Name = "asd"
  1619. asd.C0=asd.C0*CFrame.Angles(math.rad(-90),0,0)
  1620. so("http://roblox.com/asset/?id=200632821",Torso,1,.9)
  1621. for i,v in pairs (gp:GetChildren()) do
  1622. if v:IsA("Part") then
  1623. v.BrickColor = BrickColor.new("Really black")
  1624. v.Reflectance = 0.5
  1625. v.Material = "SmoothPlastic"
  1626. end
  1627. end
  1628. elseif hum1 == nil then
  1629. con1:disconnect()
  1630. wait() return
  1631. end
  1632. end)
  1633. end
  1634. for i = 0,1,0.1 do
  1635. swait()
  1636. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(50)),.4)
  1637. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-40)),.5)
  1638. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(90)), 0.4)
  1639. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-50)), 0.3)
  1640. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(10))*angles(math.rad(-2),math.rad(0),math.rad(0)),.4)
  1641. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-130),math.rad(10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.4)
  1642. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(30),math.rad(0),math.rad(-50)),.3)
  1643. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(20),math.rad(0),math.rad(50)),.3)
  1644. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  1645. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(-10),math.rad(0),math.rad(50)),.3)
  1646. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(50),math.rad(0),math.rad(-20)),.3)
  1647. end
  1648. if Grab == true then
  1649. for i = 0,1,0.1 do
  1650. swait()
  1651. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(-50)),.4)
  1652. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(40)),.5)
  1653. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(90)), 0.4)
  1654. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-50)), 0.3)
  1655. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(130),math.rad(10))*angles(math.rad(-2),math.rad(0),math.rad(0)),.4)
  1656. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.4)
  1657. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(30),math.rad(0),math.rad(-50)),.3)
  1658. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(20),math.rad(0),math.rad(50)),.3)
  1659. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  1660. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(-10),math.rad(0),math.rad(50)),.3)
  1661. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(50),math.rad(0),math.rad(-20)),.3)
  1662. end
  1663. so("http://roblox.com/asset/?id=200632875",Torso,1,.9)
  1664. so("http://www.roblox.com/asset/?id=231917758",RightArm,1,1)
  1665. MagicCircle(BrickColor.new("Really black"),Hitbox.CFrame,5,5,5,6,6,6,0.05)
  1666. MagicRing(BrickColor.new("Really black"),Hitbox.CFrame,5,5,5,6,6,6,0.05)
  1667. MagniDamage(Hitbox,Hitbox,10,30,50,0,"Normal")
  1668. for i = 0,1,0.1 do
  1669. swait()
  1670. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(50),math.rad(0),math.rad(70)),.4)
  1671. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-60)),.5)
  1672. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(20), math.rad(90)), 0.4)
  1673. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-70)), 0.3)
  1674. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.4)
  1675. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-130),math.rad(10))*angles(math.rad(-10),math.rad(0),math.rad(0)),.4)
  1676. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(30),math.rad(0),math.rad(-50)),.3)
  1677. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(20),math.rad(0),math.rad(50)),.3)
  1678. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  1679. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(-10),math.rad(0),math.rad(50)),.3)
  1680. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(50),math.rad(0),math.rad(-20)),.3)
  1681. end
  1682. end
  1683. con1:disconnect()
  1684. for i,v in pairs(RightArm:GetChildren()) do
  1685. if v.Name == "asd" and v:IsA("Weld") then
  1686. v:Remove()
  1687.  
  1688. end
  1689. end
  1690. Grab = false
  1691. attack = false
  1692. end
  1693.  
  1694. function BlastEffect(brickcolor,cframe,x1,y1,z1,x2,y2,z2)
  1695. local prt=part(3,workspace,"Neon",0.5,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1696. prt.Anchored=true
  1697. prt.CFrame = cframe
  1698. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  1699. coroutine.resume(coroutine.create(function()
  1700. for i=0,1,0.05 do
  1701. wait()
  1702. prt.Transparency=i
  1703. msh.Scale=msh.Scale+vt(x2,y2,z2)
  1704. end
  1705. prt.Parent=nil
  1706. end))
  1707. end
  1708.  
  1709. function HammerFist()
  1710. attack = true
  1711. Humanoid.WalkSpeed = 0
  1712. for i = 0,1,0.1 do
  1713. swait()
  1714. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1715. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-30)),.3)
  1716. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(150), math.rad(0), math.rad(0)), 0.3)
  1717. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-50)), 0.3)
  1718. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(-5))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3)
  1719. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-80),math.rad(-5))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1720. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.08,0)*angles(math.rad(0),math.rad(0),math.rad(80)),.3)
  1721. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.07,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  1722. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  1723. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  1724. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(-80),math.rad(0),math.rad(0)),.3)
  1725. end
  1726. so("http://roblox.com/asset/?id=200632875",Torso,1,.9)
  1727. so("http://roblox.com/asset/?id=263610131",Torso,1,1)
  1728. so("http://roblox.com/asset/?id=263610111",Torso,1,1)
  1729. so("http://www.roblox.com/asset/?id=159882598",Torso,1,1)
  1730. MagniDamage(Hitbox,Hitbox,20,20,30,0,"Knockdown")
  1731. local hit,pos=rayCast(Hitbox.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,100,Character)
  1732. if hit~=nil then
  1733. local ref=part(3,workspace,"Neon",0,1,BrickColor.new("Bright blue"),"Effect",vt())
  1734. ref.Anchored=true
  1735. ref.CFrame=cf(pos)
  1736. game:GetService("Debris"):AddItem(ref,3)
  1737. for i=1,10 do
  1738. local Col=BrickColor.new("Really black")
  1739. local groundpart=part(3,workspace,"SmoothPlastic",0.5,0,Col,"Ground",vt(math.random(50,200)/100,math.random(50,200)/100,math.random(50,200)/100))
  1740. groundpart.Anchored=true
  1741. groundpart.CanCollide=false
  1742. groundpart.CFrame=cf(pos)*cf(math.random(-500,500)/100,0,math.random(-500,500)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1743. game:GetService("Debris"):AddItem(groundpart,5)
  1744. end
  1745. BlastEffect(BrickColor.new("Bright orange"),cf(pos),1,1,1,.7,.7,.7)
  1746. MagicCircle(BrickColor.new("Really black"),cf(pos),3,3,3,5,5,5,0.05)
  1747. MagniDamage(ref,ref,10,10,20,math.random(10,20),"Knockdown")
  1748. end
  1749. for i = 0,1,0.1 do
  1750. swait()
  1751. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)* angles(math.rad(40),math.rad(0),math.rad(0)),.5)
  1752. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(30),math.rad(0),math.rad(0)),.3)
  1753. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(40), math.rad(0), math.rad(0)), 0.5)
  1754. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.3)
  1755. RH.C0=clerp(RH.C0,cf(1,.5,-.2)*angles(math.rad(0),math.rad(90),math.rad(30))*angles(math.rad(2),math.rad(0),math.rad(0)),.3)
  1756. LH.C0=clerp(LH.C0,cf(-1,-.5,-.5)*angles(math.rad(0),math.rad(-80),math.rad(40))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1757. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.08,0)*angles(math.rad(0),math.rad(0),math.rad(80)),.3)
  1758. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.07,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  1759. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  1760. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  1761. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(-80),math.rad(0),math.rad(0)),.3)
  1762. end
  1763. attack = false
  1764. Humanoid.WalkSpeed = 16
  1765. end
  1766.  
  1767. function TurnIntoGold()
  1768. attack = true
  1769. so("http://roblox.com/asset/?id=200632211",Hitbox,1,.9)
  1770. if Grab == false then
  1771. gp = nil
  1772. con1=Hitbox.Touched:connect(function(hit) -- credits to TheDarkRevenant for the grabbing
  1773. local ht = hit.Parent
  1774. local hum1=ht:FindFirstChild('Humanoid')
  1775. if hum1 ~= nil then
  1776. hum1.PlatformStand=true
  1777. gp = ht
  1778. Grab = true
  1779. local asd=weld5(RightArm,ht:FindFirstChild("Torso"),CFrame.new(0,-1.7,0),CFrame.new(0,0,0))
  1780. asd.Parent = RightArm
  1781. asd.Name = "asd"
  1782. asd.C0=asd.C0*CFrame.Angles(math.rad(-90),0,0)
  1783. so("http://roblox.com/asset/?id=200632821",Torso,1,.9)
  1784. --[[for i,v in pairs (gp:GetChildren()) do
  1785. if v:IsA("Part") then
  1786. v.BrickColor = BrickColor.new("Really black")
  1787. v.Reflectance = 0.5
  1788. v.Material = "SmoothPlastic"
  1789. end
  1790. end]]--
  1791. elseif hum1 == nil then
  1792. con1:disconnect()
  1793. wait() return
  1794. end
  1795. end)
  1796. end
  1797. for i = 0,1,0.1 do
  1798. swait()
  1799. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),.4)
  1800. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-40)),.5)
  1801. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.4)
  1802. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-50)), 0.3)
  1803. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(10))*angles(math.rad(-2),math.rad(0),math.rad(0)),.4)
  1804. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-130),math.rad(10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.4)
  1805. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(30),math.rad(0),math.rad(-50)),.3)
  1806. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(20),math.rad(0),math.rad(50)),.3)
  1807. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  1808. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(-10),math.rad(0),math.rad(50)),.3)
  1809. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(50),math.rad(0),math.rad(-20)),.3)
  1810. end
  1811. if Grab == true then
  1812. for i = 0,1,0.1 do
  1813. swait()
  1814. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  1815. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  1816. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(130), math.rad(0), math.rad(0)), 0.4)
  1817. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
  1818. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(10))*angles(math.rad(-2),math.rad(0),math.rad(0)),.4)
  1819. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.4)
  1820. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(30),math.rad(0),math.rad(-50)),.3)
  1821. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(20),math.rad(0),math.rad(50)),.3)
  1822. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  1823. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(-10),math.rad(0),math.rad(50)),.3)
  1824. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(50),math.rad(0),math.rad(-20)),.3)
  1825. end
  1826. so("http://roblox.com/asset/?id=248572927",Torso,1,1)
  1827. so("http://www.roblox.com/asset/?id=159882481",Torso,1,1)
  1828. MagniDamage2(Hitbox,Hitbox,5,30,50,0,"Normal")
  1829. MagicCircle(BrickColor.new("Really black"),RightArm.CFrame,3,3,3,5,5,5,0.05)
  1830. BlastEffect(BrickColor.new("Really black"),Torso.CFrame,1,1,1,.7,.7,.7)
  1831. for i = 0,1,0.1 do
  1832. swait()
  1833. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  1834. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  1835. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(130), math.rad(0), math.rad(0)), 0.4)
  1836. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
  1837. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(10))*angles(math.rad(-2),math.rad(0),math.rad(0)),.4)
  1838. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.4)
  1839. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(30),math.rad(0),math.rad(-50)),.3)
  1840. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(20),math.rad(0),math.rad(50)),.3)
  1841. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  1842. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(-10),math.rad(0),math.rad(50)),.3)
  1843. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(50),math.rad(0),math.rad(-20)),.3)
  1844. end
  1845. end
  1846. con1:disconnect()
  1847. Grab = false
  1848. attack = false
  1849. for i,v in pairs(RightArm:GetChildren()) do
  1850. if v.Name == "asd" and v:IsA("Weld") then
  1851. v:Remove()
  1852.  
  1853. end
  1854. end
  1855. end
  1856.  
  1857. mouse.Button1Down:connect(function()
  1858. if attack == false and attacktype == 1 then
  1859. attacktype = 2
  1860. attackone()
  1861. elseif attack == false and attacktype == 2 then
  1862. attacktype = 3
  1863. attacktwo()
  1864. elseif attack == false and attacktype == 3 then
  1865. attacktype = 1
  1866. attackthree()
  1867. end
  1868. end)
  1869.  
  1870. mouse.KeyDown:connect(function(k)
  1871. k=k:lower()
  1872. if attack == false and k == 'q' then
  1873. GrabNSlam()
  1874. elseif attack == false and k == 'e' then
  1875. HammerFist()
  1876. elseif attack == false and k == 'r' then
  1877. TurnIntoGold()
  1878. end
  1879. end)
  1880.  
  1881.  
  1882. local sine = 0
  1883. local change = 1
  1884. local val = 0
  1885. local donum = .5
  1886.  
  1887. while true do
  1888. swait()
  1889. sine = sine + change
  1890. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1891. local velderp=RootPart.Velocity.y
  1892. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1893. if equipped==true or equipped==false then
  1894. if attack==false then
  1895. idle=idle+1
  1896. else
  1897. idle=0
  1898. end
  1899. if idle>=500 then
  1900. if attack==false then
  1901. end
  1902. end
  1903. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1904. Anim="Jump"
  1905. if attack==false then
  1906. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1907. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  1908. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(30)), 0.3)
  1909. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
  1910. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1911. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1912. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(30),math.rad(0),math.rad(-50)),.3)
  1913. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(20),math.rad(0),math.rad(50)),.3)
  1914. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  1915. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(-10),math.rad(0),math.rad(50)),.3)
  1916. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(50),math.rad(0),math.rad(-20)),.3)
  1917. end
  1918. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1919. Anim="Fall"
  1920. if attack==false then
  1921. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1922. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1923. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(60)), 0.3)
  1924. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(-60)), 0.3)
  1925. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1926. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1927. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(30),math.rad(0),math.rad(-50)),.3)
  1928. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(20),math.rad(0),math.rad(50)),.3)
  1929. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  1930. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(-10),math.rad(0),math.rad(50)),.3)
  1931. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(50),math.rad(0),math.rad(-20)),.3)
  1932. end
  1933. elseif torvel<1 and hitfloor~=nil then
  1934. Anim="Idle"
  1935. if attack==false then
  1936. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(-30)),.3)
  1937. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(30)),.3)
  1938. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(5)), 0.3)
  1939. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(5), math.rad(0), math.rad(-10)), 0.3)
  1940. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3)
  1941. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(-5))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1942. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.08,0)*angles(math.rad(0),math.rad(0),math.rad(20)),.3)
  1943. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.07,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  1944. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.3)
  1945. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-40)),.3)
  1946. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(-50),math.rad(0),math.rad(0)),.3)
  1947. end
  1948. elseif torvel>2 and hitfloor~=nil then
  1949. Anim="Walk"
  1950. if attack==false then
  1951. change=3
  1952. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1953. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1954. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10)*math.cos(sine/13), math.rad(0), math.rad(10)), 0.3)
  1955. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10)*math.cos(sine/13), math.rad(0), math.rad(-10)), 0.3)
  1956. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(5)),.3)
  1957. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-5)),.3)
  1958. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(80)),.3)
  1959. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  1960. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  1961. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  1962. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(-80),math.rad(0),math.rad(0)),.3)
  1963. end
  1964. end
  1965. end
  1966. if #Effects>0 then
  1967. for e=1,#Effects do
  1968. if Effects[e]~=nil then
  1969. local Thing=Effects[e]
  1970. if Thing~=nil then
  1971. local Part=Thing[1]
  1972. local Mode=Thing[2]
  1973. local Delay=Thing[3]
  1974. local IncX=Thing[4]
  1975. local IncY=Thing[5]
  1976. local IncZ=Thing[6]
  1977. if Thing[1].Transparency<=1 then
  1978. if Thing[2]=="Block1" then
  1979. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1980. Mesh=Thing[1].Mesh
  1981. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1982. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1983. elseif Thing[2]=="Cylinder" then
  1984. Mesh=Thing[1].Mesh
  1985. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1986. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1987. elseif Thing[2]=="Blood" then
  1988. Mesh=Thing[7]
  1989. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  1990. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1991. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1992. elseif Thing[2]=="Elec" then
  1993. Mesh=Thing[1].Mesh
  1994. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  1995. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1996. elseif Thing[2]=="Disappear" then
  1997. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1998. end
  1999. else
  2000. Part.Parent=nil
  2001. table.remove(Effects,e)
  2002. end
  2003. end
  2004. end
  2005. end
  2006. end
  2007. endPlayer=game:GetService("Players").LocalPlayer
  2008. Character=Player.Character
  2009. PlayerGui=Player.PlayerGui
  2010. Backpack=Player.Backpack
  2011. Torso=Character.Torso
  2012. Head=Character.Head
  2013. Humanoid=Character.Humanoid
  2014. m=Instance.new('Model',Character)
  2015. LeftArm=Character["Left Arm"]
  2016. LeftLeg=Character["Left Leg"]
  2017. RightArm=Character["Right Arm"]
  2018. RightLeg=Character["Right Leg"]
  2019. LS=Torso["Left Shoulder"]
  2020. LH=Torso["Left Hip"]
  2021. RS=Torso["Right Shoulder"]
  2022. RH=Torso["Right Hip"]
  2023. Face = Head.face
  2024. Neck=Torso.Neck
  2025. it=Instance.new
  2026. attacktype=1
  2027. vt=Vector3.new
  2028. cf=CFrame.new
  2029. euler=CFrame.fromEulerAnglesXYZ
  2030. angles=CFrame.Angles
  2031. cloaked=false
  2032. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  2033. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  2034. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  2035. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  2036. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  2037. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  2038. RootPart=Character.HumanoidRootPart
  2039. RootJoint=RootPart.RootJoint
  2040. RootCF=euler(-1.57,0,3.14)
  2041. attack = false
  2042. attackdebounce = false
  2043. deb=false
  2044. equipped=true
  2045. hand=false
  2046. MMouse=nil
  2047. combo=0
  2048. mana=0
  2049. trispeed=1
  2050. pathtrans=.7
  2051. attackmode='none'
  2052. local idle=0
  2053. local Anim="Idle"
  2054. local Effects={}
  2055. local gun=false
  2056. local shoot=false
  2057. player=nil
  2058. cloak=false
  2059.  
  2060. mouse=Player:GetMouse()
  2061. --save shoulders
  2062. RSH, LSH=nil, nil
  2063. --welds
  2064. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  2065. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  2066. LH=Torso["Left Hip"]
  2067. RH=Torso["Right Hip"]
  2068. function NoOutline(Part)
  2069. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  2070. end
  2071. player=Player
  2072. ch=Character
  2073. RSH=ch.Torso["Right Shoulder"]
  2074. LSH=ch.Torso["Left Shoulder"]
  2075. --
  2076. RSH.Parent=nil
  2077. LSH.Parent=nil
  2078. --
  2079. RW.Name="Right Shoulder"
  2080. RW.Part0=ch.Torso
  2081. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  2082. RW.C1=cf(0, 0.5, 0)
  2083. RW.Part1=ch["Right Arm"]
  2084. RW.Parent=ch.Torso
  2085. --
  2086. LW.Name="Left Shoulder"
  2087. LW.Part0=ch.Torso
  2088. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  2089. LW.C1=cf(0, 0.5, 0)
  2090. LW.Part1=ch["Left Arm"]
  2091. LW.Parent=ch.Torso
  2092.  
  2093. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  2094. local fp=it("Part")
  2095. fp.formFactor=formfactor
  2096. fp.Parent=parent
  2097. fp.Reflectance=reflectance
  2098. fp.Transparency=transparency
  2099. fp.CanCollide=false
  2100. fp.Locked=true
  2101. fp.BrickColor=brickcolor
  2102. fp.Name=name
  2103. fp.Size=size
  2104. fp.Position=Torso.Position
  2105. NoOutline(fp)
  2106. fp.Material="Neon"
  2107. fp:BreakJoints()
  2108. return fp
  2109. end
  2110.  
  2111. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  2112. local mesh=it(Mesh)
  2113. mesh.Parent=part
  2114. if Mesh=="SpecialMesh" then
  2115. mesh.MeshType=meshtype
  2116. if meshid~="nil" then
  2117. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  2118. end
  2119. end
  2120. mesh.Offset=offset
  2121. mesh.Scale=scale
  2122. return mesh
  2123. end
  2124.  
  2125. function weld(parent,part0,part1,c0)
  2126. local weld=it("Weld")
  2127. weld.Parent=parent
  2128. weld.Part0=part0
  2129. weld.Part1=part1
  2130. weld.C0=c0
  2131. return weld
  2132. end
  2133.  
  2134. local Color1=Torso.BrickColor
  2135.  
  2136. local bodvel=Instance.new("BodyVelocity")
  2137. local bg=Instance.new("BodyGyro")
  2138.  
  2139. function swait(num)
  2140. if num==0 or num==nil then
  2141. game:service'RunService'.Stepped:wait(0)
  2142. else
  2143. for i=0,num do
  2144. game:service'RunService'.Stepped:wait(0)
  2145. end
  2146. end
  2147. end
  2148.  
  2149.  
  2150. so = function(id,par,vol,pit)
  2151. coroutine.resume(coroutine.create(function()
  2152. local sou = Instance.new("Sound",par or workspace)
  2153. sou.Volume=vol
  2154. sou.Pitch=pit or 1
  2155. sou.SoundId=id
  2156. swait()
  2157. sou:play()
  2158. game:GetService("Debris"):AddItem(sou,6)
  2159. end))
  2160. end
  2161.  
  2162. function clerp(a,b,t)
  2163. local qa = {QuaternionFromCFrame(a)}
  2164. local qb = {QuaternionFromCFrame(b)}
  2165. local ax, ay, az = a.x, a.y, a.z
  2166. local bx, by, bz = b.x, b.y, b.z
  2167. local _t = 1-t
  2168. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  2169. end
  2170.  
  2171. function QuaternionFromCFrame(cf)
  2172. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  2173. local trace = m00 + m11 + m22
  2174. if trace > 0 then
  2175. local s = math.sqrt(1 + trace)
  2176. local recip = 0.5/s
  2177. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  2178. else
  2179. local i = 0
  2180. if m11 > m00 then
  2181. i = 1
  2182. end
  2183. if m22 > (i == 0 and m00 or m11) then
  2184. i = 2
  2185. end
  2186. if i == 0 then
  2187. local s = math.sqrt(m00-m11-m22+1)
  2188. local recip = 0.5/s
  2189. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  2190. elseif i == 1 then
  2191. local s = math.sqrt(m11-m22-m00+1)
  2192. local recip = 0.5/s
  2193. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  2194. elseif i == 2 then
  2195. local s = math.sqrt(m22-m00-m11+1)
  2196. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  2197. end
  2198. end
  2199. end
  2200.  
  2201. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  2202. local xs, ys, zs = x + x, y + y, z + z
  2203. local wx, wy, wz = w*xs, w*ys, w*zs
  2204. local xx = x*xs
  2205. local xy = x*ys
  2206. local xz = x*zs
  2207. local yy = y*ys
  2208. local yz = y*zs
  2209. local zz = z*zs
  2210. 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))
  2211. end
  2212.  
  2213. function QuaternionSlerp(a, b, t)
  2214. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  2215. local startInterp, finishInterp;
  2216. if cosTheta >= 0.0001 then
  2217. if (1 - cosTheta) > 0.0001 then
  2218. local theta = math.acos(cosTheta)
  2219. local invSinTheta = 1/math.sin(theta)
  2220. startInterp = math.sin((1-t)*theta)*invSinTheta
  2221. finishInterp = math.sin(t*theta)*invSinTheta
  2222. else
  2223. startInterp = 1-t
  2224. finishInterp = t
  2225. end
  2226. else
  2227. if (1+cosTheta) > 0.0001 then
  2228. local theta = math.acos(-cosTheta)
  2229. local invSinTheta = 1/math.sin(theta)
  2230. startInterp = math.sin((t-1)*theta)*invSinTheta
  2231. finishInterp = math.sin(t*theta)*invSinTheta
  2232. else
  2233. startInterp = t-1
  2234. finishInterp = t
  2235. end
  2236. end
  2237. 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
  2238. end
  2239.  
  2240. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  2241. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2242. end
  2243.  
  2244. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  2245. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2246. prt.Anchored=true
  2247. prt.CFrame=cframe
  2248. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  2249. --http://www.roblox.com/asset/?id=4770560
  2250. game:GetService("Debris"):AddItem(prt,2)
  2251. CF=prt.CFrame
  2252. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  2253. for i=0,1,0.2 do
  2254. wait()
  2255. Part.CFrame=CF*cf(0,0,-0.4)
  2256. end
  2257. for i=0,1,delay do
  2258. wait()
  2259. --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
  2260. Mesh.Scale=Mesh.Scale
  2261. end
  2262. for i=0,1,0.1 do
  2263. wait()
  2264. Part.Transparency=i
  2265. end
  2266. Part.Parent=nil
  2267. end),prt,msh,CF)
  2268. end
  2269.  
  2270. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2271. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2272. prt.Anchored=true
  2273. prt.CFrame=cframe
  2274. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2275. game:GetService("Debris"):AddItem(prt,5)
  2276. coroutine.resume(coroutine.create(function(Part,Mesh)
  2277. for i=0,1,delay do
  2278. wait()
  2279. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2280. Part.Transparency=i
  2281. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2282. end
  2283. Part.Parent=nil
  2284. end),prt,msh)
  2285. end
  2286.  
  2287. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2288. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2289. prt.Anchored=false
  2290. prt.CFrame=cframe
  2291. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2292. local wld=weld(prt,prt,Parent,cframe)
  2293. game:GetService("Debris"):AddItem(prt,5)
  2294. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2295. for i=0,1,delay do
  2296. wait()
  2297. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2298. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2299. Part.Transparency=i
  2300. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2301. end
  2302. Part.Parent=nil
  2303. end),prt,msh,wld)
  2304. end
  2305.  
  2306. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2307. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2308. prt.Anchored=false
  2309. prt.CFrame=cframe
  2310. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2311. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2312. game:GetService("Debris"):AddItem(prt,5)
  2313. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2314. for i=0,1,delay do
  2315. wait()
  2316. Weld.C0=euler(i*20,0,0)
  2317. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2318. Part.Transparency=i
  2319. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2320. end
  2321. Part.Parent=nil
  2322. end),prt,msh,wld)
  2323. end
  2324.  
  2325. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2326. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2327. prt.Anchored=true
  2328. prt.CFrame=cframe
  2329. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2330. game:GetService("Debris"):AddItem(prt,2)
  2331. coroutine.resume(coroutine.create(function(Part,Mesh)
  2332. for i=0,1,delay do
  2333. wait()
  2334. Part.CFrame=Part.CFrame
  2335. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2336. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2337. prt2.Anchored=true
  2338. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2339. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2340. game:GetService("Debris"):AddItem(prt2,2)
  2341. coroutine.resume(coroutine.create(function(Part,Mesh)
  2342. for i=0,1,0.1 do
  2343. wait()
  2344. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2345. end
  2346. Part.Parent=nil
  2347. end),prt2,msh2)
  2348. end
  2349. for i=0,1,delay*2 do
  2350. wait()
  2351. Part.CFrame=Part.CFrame
  2352. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2353. end
  2354. Part.Parent=nil
  2355. end),prt,msh)
  2356. end
  2357.  
  2358. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2359. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2360. prt.Anchored=true
  2361. prt.CFrame=cframe
  2362. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2363. game:GetService("Debris"):AddItem(prt,2)
  2364. coroutine.resume(coroutine.create(function(Part,Mesh)
  2365. for i=0,1,delay do
  2366. wait()
  2367. Part.CFrame=Part.CFrame
  2368. Part.Transparency=i
  2369. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2370. end
  2371. Part.Parent=nil
  2372. end),prt,msh)
  2373. end
  2374.  
  2375. function MagicRing(brickcolor,cframe,x1,y1,z1,x2,y2,z2,x3,y3,z3)
  2376. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2377. prt.Anchored=true
  2378. prt.CFrame=cframe*euler(x2,y2,z2)
  2379. --"http://www.roblox.com/asset/?id=168892465"
  2380. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  2381. game:GetService("Debris"):AddItem(prt,2)
  2382. coroutine.resume(coroutine.create(function(Part,Mesh)
  2383. for i=0,1,0.03 do
  2384. wait()
  2385. Part.CFrame=Part.CFrame
  2386. Part.Transparency=i
  2387. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2388. end
  2389. Part.Parent=nil
  2390. end),prt,msh)
  2391. end
  2392.  
  2393. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2394. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2395. prt.Anchored=true
  2396. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2397. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2398. game:GetService("Debris"):AddItem(prt,2)
  2399. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2400. CF=Part.CFrame
  2401. Numbb=0
  2402. randnumb=math.random()/10
  2403. rand1=math.random()/10
  2404. for i=0,1,rand1 do
  2405. wait()
  2406. CF=CF*cf(0,math.random()/2,0)
  2407. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2408. Part.CFrame=CF*euler(Numbb,0,0)
  2409. Part.Transparency=i
  2410. Numbb=Numbb+randnumb
  2411. end
  2412. Part.Parent=nil
  2413. end),prt,CF,Numbb,randnumb)
  2414. end
  2415.  
  2416. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2417. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2418. prt.Anchored=true
  2419. prt.CFrame=cframe
  2420. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2421. game:GetService("Debris"):AddItem(prt,5)
  2422. coroutine.resume(coroutine.create(function(Part,Mesh)
  2423. for i=0,1,delay do
  2424. wait()
  2425. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2426. Part.Transparency=i
  2427. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2428. end
  2429. Part.Parent=nil
  2430. end),prt,msh)
  2431. end
  2432.  
  2433. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2434. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2435. prt.Anchored=true
  2436. prt.CFrame=cframe
  2437. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2438. game:GetService("Debris"):AddItem(prt,2)
  2439. coroutine.resume(coroutine.create(function(Part,Mesh)
  2440. for i=0,1,delay do
  2441. wait()
  2442. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2443. Part.Transparency=i
  2444. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2445. end
  2446. Part.Parent=nil
  2447. end),prt,msh)
  2448. end
  2449.  
  2450. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2451. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2452. prt.Anchored=true
  2453. prt.CFrame=cframe*cf(x,y,z)
  2454. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2455. game:GetService("Debris"):AddItem(prt,5)
  2456. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2457. local num=math.random()
  2458. local num2=math.random(-3,2)+math.random()
  2459. local numm=0
  2460. for i=0,1,delay*2 do
  2461. swait()
  2462. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2463. Part.Transparency=i
  2464. numm=numm+0.01
  2465. end
  2466. Part.Parent=nil
  2467. Mesh.Parent=nil
  2468. end),prt,msh,x,y,z)
  2469. end
  2470.  
  2471. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  2472. if hit.Parent==nil then
  2473. return
  2474. end
  2475. h=hit.Parent:FindFirstChild("Humanoid")
  2476. for _,v in pairs(hit.Parent:children()) do
  2477. if v:IsA("Humanoid") then
  2478. h=v
  2479. end
  2480. end
  2481. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  2482. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  2483. end
  2484. if hit.Parent.className=="Hat" then
  2485. hit=hit.Parent.Parent:findFirstChild("Head")
  2486. end
  2487. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  2488. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  2489. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  2490. return
  2491. end]]
  2492. -- hs(hit,1.2)
  2493. c=Instance.new("ObjectValue")
  2494. c.Name="creator"
  2495. c.Value=game:service("Players").LocalPlayer
  2496. c.Parent=h
  2497. game:GetService("Debris"):AddItem(c,.5)
  2498. Damage=math.random(minim,maxim)
  2499. -- h:TakeDamage(Damage)
  2500. blocked=false
  2501. block=hit.Parent:findFirstChild("Block")
  2502. if block~=nil then
  2503. print(block.className)
  2504. if block.className=="NumberValue" then
  2505. if block.Value>0 then
  2506. blocked=true
  2507. if decreaseblock==nil then
  2508. block.Value=block.Value-1
  2509. end
  2510. end
  2511. end
  2512. if block.className=="IntValue" then
  2513. if block.Value>0 then
  2514. blocked=true
  2515. if decreaseblock~=nil then
  2516. block.Value=block.Value-1
  2517. end
  2518. end
  2519. end
  2520. end
  2521. if blocked==false then
  2522. -- h:TakeDamage(Damage)
  2523. h.Health=h.Health-Damage
  2524. showDamage(hit.Parent,Damage,145689,"Bright blue")
  2525. else
  2526. h.Health=h.Health-(Damage/145689)
  2527. showDamage(hit.Parent,Damage/145689,BrickColor.new("Bright blue"))
  2528. end
  2529. if Type=="Knockdown" then
  2530. hum=hit.Parent.Humanoid
  2531. hum.PlatformStand=true
  2532. coroutine.resume(coroutine.create(function(HHumanoid)
  2533. swait(1)
  2534. HHumanoid.PlatformStand=false
  2535. end),hum)
  2536. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  2537. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  2538. local bodvol=Instance.new("BodyVelocity")
  2539. bodvol.velocity=angle*knockback
  2540. bodvol.P=5000
  2541. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  2542. bodvol.Parent=hit
  2543. rl=Instance.new("BodyAngularVelocity")
  2544. rl.P=3000
  2545. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  2546. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  2547. rl.Parent=hit
  2548. game:GetService("Debris"):AddItem(bodvol,.5)
  2549. game:GetService("Debris"):AddItem(rl,.5)
  2550. elseif Type=="Normal" then
  2551. vp=Instance.new("BodyVelocity")
  2552. vp.P=500
  2553. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  2554. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  2555. if KnockbackType==1 then
  2556. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  2557. elseif KnockbackType==2 then
  2558. vp.velocity=Property.CFrame.lookVector*knockback
  2559. end
  2560. if knockback>0 then
  2561. vp.Parent=hit.Parent.Torso
  2562. end
  2563. game:GetService("Debris"):AddItem(vp,.5)
  2564. elseif Type=="Up" then
  2565. local bodyVelocity=Instance.new("BodyVelocity")
  2566. bodyVelocity.velocity=vt(0,10,0)
  2567. bodyVelocity.P=1000
  2568. bodyVelocity.maxForce=Vector3.new(1e+009, 1e+009, 1e+009)
  2569. bodyVelocity.Parent=hit
  2570. game:GetService("Debris"):AddItem(bodyVelocity,1)
  2571. rl=Instance.new("BodyAngularVelocity")
  2572. rl.P=3000
  2573. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  2574. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  2575. rl.Parent=hit
  2576. game:GetService("Debris"):AddItem(rl,.5)
  2577. elseif Type=="Snare" then
  2578. bp=Instance.new("BodyPosition")
  2579. bp.P=2000
  2580. bp.D=100
  2581. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2582. bp.position=hit.Parent.Torso.Position
  2583. bp.Parent=hit.Parent.Torso
  2584. game:GetService("Debris"):AddItem(bp,1)
  2585. elseif Type=="Target" then
  2586. if Targetting==false then
  2587. ZTarget=hit.Parent.Torso
  2588. coroutine.resume(coroutine.create(function(Part)
  2589. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  2590. swait(5)
  2591. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  2592. end),ZTarget)
  2593. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  2594. targetgui=Instance.new("BillboardGui")
  2595. targetgui.Parent=ZTarget
  2596. targetgui.Size=UDim2.new(10,100,10,100)
  2597. targ=Instance.new("ImageLabel")
  2598. targ.Parent=targetgui
  2599. targ.BackgroundTransparency=1
  2600. targ.Image="rbxassetid://4834067"
  2601. targ.Size=UDim2.new(1,0,1,0)
  2602. cam.CameraType="Scriptable"
  2603. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  2604. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  2605. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  2606. Targetting=true
  2607. RocketTarget=ZTarget
  2608. for i=1,Property do
  2609. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  2610. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  2611. swait()
  2612. end
  2613. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  2614. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  2615. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  2616. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  2617. end
  2618. Targetting=false
  2619. RocketTarget=nil
  2620. targetgui.Parent=nil
  2621. cam.CameraType="Custom"
  2622. end
  2623. end
  2624. debounce=Instance.new("BoolValue")
  2625. debounce.Name="DebounceHit"
  2626. debounce.Parent=hit.Parent
  2627. debounce.Value=true
  2628. game:GetService("Debris"):AddItem(debounce,Delay)
  2629. c=Instance.new("ObjectValue")
  2630. c.Name="creator"
  2631. c.Value=Player
  2632. c.Parent=h
  2633. game:GetService("Debris"):AddItem(c,.5)
  2634. CRIT=false
  2635. hitDeb=true
  2636. AttackPos=6
  2637. end
  2638. end
  2639.  
  2640. showDamage=function(Char,Dealt,du,Color)
  2641. m=Instance.new("Model")
  2642. m.Name=tostring(Dealt)
  2643. h=Instance.new("Humanoid")
  2644. h.Health=0
  2645. h.MaxHealth=0
  2646. h.Parent=m
  2647. c=Instance.new("Part")
  2648. c.Transparency=0
  2649. c.BrickColor="Bright blue"
  2650. c.Name="Head"
  2651. c.TopSurface=0
  2652. c.BottomSurface=0
  2653. c.formFactor="Plate"
  2654. c.Size=Vector3.new(1,.4,1)
  2655. ms=Instance.new("CylinderMesh")
  2656. ms.Scale=Vector3.new(.8,.8,.8)
  2657. so("http://www.roblox.com/asset/?id=199149269",c,1,1)
  2658. if CRIT==true then
  2659. ms.Scale=Vector3.new(1,1.25,1)
  2660. end
  2661. ms.Parent=c
  2662. c.Reflectance=0
  2663. Instance.new("BodyGyro").Parent=c
  2664. c.Parent=m
  2665. if Char:findFirstChild("Head")~=nil then
  2666. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  2667. elseif Char.Parent:findFirstChild("Head")~=nil then
  2668. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  2669. end
  2670. f=Instance.new("BodyPosition")
  2671. f.P=2000
  2672. f.D=100
  2673. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2674. f.position=c.Position+Vector3.new(0,3,0)
  2675. f.Parent=c
  2676. game:GetService("Debris"):AddItem(m,.5+du)
  2677. c.CanCollide=false
  2678. m.Parent=workspace
  2679. c.CanCollide=false
  2680. end
  2681.  
  2682. Player=game:GetService('Players').LocalPlayer
  2683. Character=Player.Character
  2684. Mouse=Player:GetMouse()
  2685. m=Instance.new('Model',Character)
  2686.  
  2687.  
  2688. local function weldBetween(a, b)
  2689. local weldd = Instance.new("ManualWeld")
  2690. weldd.Part0 = a
  2691. weldd.Part1 = b
  2692. weldd.C0 = CFrame.new()
  2693. weldd.C1 = b.CFrame:inverse() * a.CFrame
  2694. weldd.Parent = a
  2695. return weldd
  2696. end
  2697.  
  2698. it=Instance.new
  2699.  
  2700. function nooutline(part)
  2701. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  2702. end
  2703.  
  2704. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  2705. local fp=it("Part")
  2706. fp.formFactor=formfactor
  2707. fp.Parent=parent
  2708. fp.Reflectance=reflectance
  2709. fp.Transparency=transparency
  2710. fp.CanCollide=false
  2711. fp.Locked=true
  2712. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  2713. fp.Name=name
  2714. fp.Size=size
  2715. fp.Position=Character.Torso.Position
  2716. nooutline(fp)
  2717. fp.Material=material
  2718. fp:BreakJoints()
  2719. return fp
  2720. end
  2721.  
  2722. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  2723. local mesh=it(Mesh)
  2724. mesh.Parent=part
  2725. if Mesh=="SpecialMesh" then
  2726. mesh.MeshType=meshtype
  2727. mesh.MeshId=meshid
  2728. end
  2729. mesh.Offset=offset
  2730. mesh.Scale=scale
  2731. return mesh
  2732. end
  2733.  
  2734. function weld(parent,part0,part1,c0,c1)
  2735. local weld=it("Weld")
  2736. weld.Parent=parent
  2737. weld.Part0=part0
  2738. weld.Part1=part1
  2739. weld.C0=c0
  2740. weld.C1=c1
  2741. return weld
  2742. end
  2743. local modelzorz=Instance.new("Model")
  2744. modelzorz.Parent=Character
  2745. modelzorz.Name="Claw1"
  2746.  
  2747. Handle=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,1,"Bright blue","Handle",Vector3.new(1.20000005, 1.20000005, 1))
  2748. Handleweld=weld(m,Character["Torso"],Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.74455023, 0.843135834, 3.31332064, 0.866820872, 0.000393055088, -0.498619556, 0.129048944, -0.966104209, 0.223582461, -0.481630623, -0.258152217, -0.837489963))
  2749.  
  2750.  
  2751. local moosick = it("Sound",Torso)
  2752. moosick.SoundId = "rbxassetid://142653441"
  2753. --142653441, 175067863
  2754. moosick.Looped = true
  2755. moosick.Pitch = 1
  2756. moosick.Volume = 1
  2757. moosick:Play()
  2758.  
  2759.  
  2760.  
  2761. Player=game:GetService("Players").LocalPlayer
  2762. Character=Player.Character
  2763. PlayerGui=Player.PlayerGui
  2764. Backpack=Player.Backpack
  2765. Torso=Character.Torso
  2766. Head=Character.Head
  2767. Humanoid=Character.Humanoid
  2768. LeftArm=Character["Left Arm"]
  2769. LeftLeg=Character["Left Leg"]
  2770. RightArm=Character["Right Arm"]
  2771. RightLeg=Character["Right Leg"]
  2772. LS=Torso["Left Shoulder"]
  2773. LH=Torso["Left Hip"]
  2774. RS=Torso["Right Shoulder"]
  2775. RH=Torso["Right Hip"]
  2776. Face = Head.face
  2777. Neck=Torso.Neck
  2778. it=Instance.new
  2779. attacktype=1
  2780. vt=Vector3.new
  2781. cf=CFrame.new
  2782. euler=CFrame.fromEulerAnglesXYZ
  2783. angles=CFrame.Angles
  2784. cloaked=false
  2785. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  2786. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  2787. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  2788. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  2789. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  2790. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  2791. RootPart=Character.HumanoidRootPart
  2792. RootJoint=RootPart.RootJoint
  2793. RootCF=euler(-1.57,0,3.14)
  2794. attack = false
  2795. attackdebounce = false
  2796. deb=false
  2797. equipped=true
  2798. hand=false
  2799. MMouse=nil
  2800. combo=0
  2801. mana=0
  2802. trispeed=.2
  2803. attackmode='none'
  2804. local idle=0
  2805. local Anim="Idle"
  2806. local Effects={}
  2807. local gun=false
  2808. local shoot=false
  2809. player=nil
  2810. mana=0
  2811. cam = workspace.CurrentCamera
  2812. ZTarget = nil
  2813. RocketTarget = nil
  2814. local m = Instance.new("Model",Character)
  2815. m.Name = "WeaponModel"
  2816.  
  2817. mouse=Player:GetMouse()
  2818. --save shoulders
  2819. RSH, LSH=nil, nil
  2820. --welds
  2821. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  2822. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  2823. LH=Torso["Left Hip"]
  2824. RH=Torso["Right Hip"]
  2825. function NoOutline(Part)
  2826. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  2827. end
  2828. player=Player
  2829. ch=Character
  2830. RSH=ch.Torso["Right Shoulder"]
  2831. LSH=ch.Torso["Left Shoulder"]
  2832. --
  2833. RSH.Parent=nil
  2834. LSH.Parent=nil
  2835. --
  2836. RW.Name="Right Shoulder"
  2837. RW.Part0=ch.Torso
  2838. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  2839. RW.C1=cf(0, 0.5, 0)
  2840. RW.Part1=ch["Right Arm"]
  2841. RW.Parent=ch.Torso
  2842. --
  2843. LW.Name="Left Shoulder"
  2844. LW.Part0=ch.Torso
  2845. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  2846. LW.C1=cf(0, 0.5, 0)
  2847. LW.Part1=ch["Left Arm"]
  2848. LW.Parent=ch.Torso
  2849.  
  2850. function swait(num)
  2851. if num==0 or num==nil then
  2852. game:service'RunService'.Heartbeat:wait(0)
  2853. else
  2854. for i=0,num do
  2855. game:service'RunService'.Heartbeat:wait(0)
  2856. end
  2857. end
  2858. end
  2859.  
  2860. function nooutline(part)
  2861. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  2862. end
  2863.  
  2864. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  2865. local fp=it("Part")
  2866. fp.formFactor=formfactor
  2867. fp.Parent=parent
  2868. fp.Reflectance=reflectance
  2869. fp.Transparency=transparency
  2870. fp.CanCollide=false
  2871. fp.Locked=true
  2872. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  2873. fp.Name=name
  2874. fp.Size=size
  2875. fp.Position=Character.Torso.Position
  2876. nooutline(fp)
  2877. fp.Material=material
  2878. fp:BreakJoints()
  2879. return fp
  2880. end
  2881.  
  2882. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  2883. local mesh=it(Mesh)
  2884. mesh.Parent=part
  2885. if Mesh=="SpecialMesh" then
  2886. mesh.MeshType=meshtype
  2887. mesh.MeshId=meshid
  2888. end
  2889. mesh.Offset=offset
  2890. mesh.Scale=scale
  2891. return mesh
  2892. end
  2893.  
  2894. function weld(parent,part0,part1,c0,c1)
  2895. local weld=it("Weld")
  2896. weld.Parent=parent
  2897. weld.Part0=part0
  2898. weld.Part1=part1
  2899. weld.C0=c0
  2900. weld.C1=c1
  2901. return weld
  2902. end
  2903.  
  2904.  
  2905. local function CFrameFromTopBack(at, top, back)
  2906. local right = top:Cross(back)
  2907. return CFrame.new(at.x, at.y, at.z,
  2908. right.x, top.x, back.x,
  2909. right.y, top.y, back.y,
  2910. right.z, top.z, back.z)
  2911. end
  2912.  
  2913. function Triangle(a, b, c)
  2914. local edg1 = (c-a):Dot((b-a).unit)
  2915. local edg2 = (a-b):Dot((c-b).unit)
  2916. local edg3 = (b-c):Dot((a-c).unit)
  2917. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  2918. a, b, c = a, b, c
  2919. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  2920. a, b, c = b, c, a
  2921. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  2922. a, b, c = c, a, b
  2923. else
  2924. assert(false, "unreachable")
  2925. end
  2926.  
  2927. local len1 = (c-a):Dot((b-a).unit)
  2928. local len2 = (b-a).magnitude - len1
  2929. local width = (a + (b-a).unit*len1 - c).magnitude
  2930.  
  2931. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  2932.  
  2933. local list = {}
  2934.  
  2935. local TrailColor = ("Dark grey")
  2936.  
  2937. if len1 > 0.01 then
  2938. local w1 = Instance.new('WedgePart', m)
  2939. game:GetService("Debris"):AddItem(w1,5)
  2940. w1.Material = "SmoothPlastic"
  2941. w1.FormFactor = 'Custom'
  2942. w1.BrickColor = BrickColor.new(TrailColor)
  2943. w1.Transparency = 0
  2944. w1.Reflectance = 0
  2945. w1.Material = "SmoothPlastic"
  2946. w1.CanCollide = false
  2947. NoOutline(w1)
  2948. local sz = Vector3.new(0.2, width, len1)
  2949. w1.Size = sz
  2950. local sp = Instance.new("SpecialMesh",w1)
  2951. sp.MeshType = "Wedge"
  2952. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  2953. w1:BreakJoints()
  2954. w1.Anchored = true
  2955. w1.Parent = workspace
  2956. w1.Transparency = 0.7
  2957. table.insert(Effects,{w1,"Disappear",.01})
  2958. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  2959. table.insert(list,w1)
  2960. end
  2961.  
  2962. if len2 > 0.01 then
  2963. local w2 = Instance.new('WedgePart', m)
  2964. game:GetService("Debris"):AddItem(w2,5)
  2965. w2.Material = "SmoothPlastic"
  2966. w2.FormFactor = 'Custom'
  2967. w2.BrickColor = BrickColor.new(TrailColor)
  2968. w2.Transparency = 0
  2969. w2.Reflectance = 0
  2970. w2.Material = "SmoothPlastic"
  2971. w2.CanCollide = false
  2972. NoOutline(w2)
  2973. local sz = Vector3.new(0.2, width, len2)
  2974. w2.Size = sz
  2975. local sp = Instance.new("SpecialMesh",w2)
  2976. sp.MeshType = "Wedge"
  2977. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  2978. w2:BreakJoints()
  2979. w2.Anchored = true
  2980. w2.Parent = workspace
  2981. w2.Transparency = 0.7
  2982. table.insert(Effects,{w2,"Disappear",.01})
  2983. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  2984. table.insert(list,w2)
  2985. end
  2986. return unpack(list)
  2987. end
  2988.  
  2989.  
  2990. so = function(id,par,vol,pit)
  2991. coroutine.resume(coroutine.create(function()
  2992. local sou = Instance.new("Sound",par or workspace)
  2993. sou.Volume=vol
  2994. sou.Pitch=pit or 1
  2995. sou.SoundId=id
  2996. swait()
  2997. sou:play()
  2998. game:GetService("Debris"):AddItem(sou,6)
  2999. end))
  3000. end
  3001.  
  3002. function clerp(a,b,t)
  3003. local qa = {QuaternionFromCFrame(a)}
  3004. local qb = {QuaternionFromCFrame(b)}
  3005. local ax, ay, az = a.x, a.y, a.z
  3006. local bx, by, bz = b.x, b.y, b.z
  3007. local _t = 1-t
  3008. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  3009. end
  3010.  
  3011. function QuaternionFromCFrame(cf)
  3012. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  3013. local trace = m00 + m11 + m22
  3014. if trace > 0 then
  3015. local s = math.sqrt(1 + trace)
  3016. local recip = 0.5/s
  3017. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  3018. else
  3019. local i = 0
  3020. if m11 > m00 then
  3021. i = 1
  3022. end
  3023. if m22 > (i == 0 and m00 or m11) then
  3024. i = 2
  3025. end
  3026. if i == 0 then
  3027. local s = math.sqrt(m00-m11-m22+1)
  3028. local recip = 0.5/s
  3029. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  3030. elseif i == 1 then
  3031. local s = math.sqrt(m11-m22-m00+1)
  3032. local recip = 0.5/s
  3033. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  3034. elseif i == 2 then
  3035. local s = math.sqrt(m22-m00-m11+1)
  3036. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  3037. end
  3038. end
  3039. end
  3040.  
  3041. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  3042. local xs, ys, zs = x + x, y + y, z + z
  3043. local wx, wy, wz = w*xs, w*ys, w*zs
  3044. local xx = x*xs
  3045. local xy = x*ys
  3046. local xz = x*zs
  3047. local yy = y*ys
  3048. local yz = y*zs
  3049. local zz = z*zs
  3050. 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))
  3051. end
  3052.  
  3053. function QuaternionSlerp(a, b, t)
  3054. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  3055. local startInterp, finishInterp;
  3056. if cosTheta >= 0.0001 then
  3057. if (1 - cosTheta) > 0.0001 then
  3058. local theta = math.acos(cosTheta)
  3059. local invSinTheta = 1/math.sin(theta)
  3060. startInterp = math.sin((1-t)*theta)*invSinTheta
  3061. finishInterp = math.sin(t*theta)*invSinTheta
  3062. else
  3063. startInterp = 1-t
  3064. finishInterp = t
  3065. end
  3066. else
  3067. if (1+cosTheta) > 0.0001 then
  3068. local theta = math.acos(-cosTheta)
  3069. local invSinTheta = 1/math.sin(theta)
  3070. startInterp = math.sin((t-1)*theta)*invSinTheta
  3071. finishInterp = math.sin(t*theta)*invSinTheta
  3072. else
  3073. startInterp = t-1
  3074. finishInterp = t
  3075. end
  3076. end
  3077. 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
  3078. end
  3079.  
  3080. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  3081. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  3082. end
  3083.  
  3084. Damagefunc=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  3085. if hit.Parent==nil then
  3086. return
  3087. end
  3088. local h=hit.Parent:FindFirstChild("Humanoid")
  3089. for _,v in pairs(hit.Parent:children()) do
  3090. if v:IsA("Humanoid") then
  3091. h=v
  3092. end
  3093. end
  3094. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  3095. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  3096. end
  3097. if hit.Parent.className=="Hat" then
  3098. hit=hit.Parent.Parent:findFirstChild("Head")
  3099. end
  3100. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  3101. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  3102. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  3103. return
  3104. end]]
  3105. -- hs(hit,1.2)
  3106. local c=Instance.new("ObjectValue")
  3107. c.Name="creator"
  3108. c.Value=game:service("Players").LocalPlayer
  3109. c.Parent=h
  3110. game:GetService("Debris"):AddItem(c,.5)
  3111. local Damage=math.random(minim,maxim)
  3112. -- h:TakeDamage(Damage)
  3113. local blocked=false
  3114. local block=hit.Parent:findFirstChild("Block")
  3115. if block~=nil then
  3116. print(block.className)
  3117. if block.className=="NumberValue" then
  3118. if block.Value>0 then
  3119. blocked=true
  3120. if decreaseblock==nil then
  3121. block.Value=block.Value-1
  3122. end
  3123. end
  3124. end
  3125. if block.className=="IntValue" then
  3126. if block.Value>0 then
  3127. blocked=true
  3128. if decreaseblock~=nil then
  3129. block.Value=block.Value-1
  3130. end
  3131. end
  3132. end
  3133. end
  3134. if blocked==false then
  3135. -- h:TakeDamage(Damage)
  3136. h.Health=h.Health-Damage
  3137. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
  3138. else
  3139. h.Health=h.Health-(Damage/2)
  3140. 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)
  3141. end
  3142. if Type=="Knockdown" then
  3143. local hum=hit.Parent.Humanoid
  3144. hum.PlatformStand=true
  3145. coroutine.resume(coroutine.create(function(HHumanoid)
  3146. swait(1)
  3147. HHumanoid.PlatformStand=false
  3148. end),hum)
  3149. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  3150. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  3151. local bodvol=Instance.new("BodyVelocity")
  3152. bodvol.velocity=angle*knockback
  3153. bodvol.P=5000
  3154. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  3155. bodvol.Parent=hit
  3156. local rl=Instance.new("BodyAngularVelocity")
  3157. rl.P=3000
  3158. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  3159. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  3160. rl.Parent=hit
  3161. game:GetService("Debris"):AddItem(bodvol,.5)
  3162. game:GetService("Debris"):AddItem(rl,.5)
  3163. elseif Type=="Normal" then
  3164. local vp=Instance.new("BodyVelocity")
  3165. vp.P=500
  3166. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  3167. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  3168. if KnockbackType==1 then
  3169. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  3170. elseif KnockbackType==2 then
  3171. vp.velocity=Property.CFrame.lookVector*knockback
  3172. end
  3173. if knockback>0 then
  3174. vp.Parent=hit.Parent.Torso
  3175. end
  3176. game:GetService("Debris"):AddItem(vp,.5)
  3177. elseif Type=="Up" then
  3178. local bodyVelocity=Instance.new("BodyVelocity")
  3179. bodyVelocity.velocity=vt(0,60,0)
  3180. bodyVelocity.P=5000
  3181. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  3182. bodyVelocity.Parent=hit
  3183. game:GetService("Debris"):AddItem(bodyVelocity,1)
  3184. local rl=Instance.new("BodyAngularVelocity")
  3185. rl.P=3000
  3186. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  3187. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  3188. rl.Parent=hit
  3189. game:GetService("Debris"):AddItem(rl,.5)
  3190. elseif Type=="Snare" then
  3191. local bp=Instance.new("BodyPosition")
  3192. bp.P=2000
  3193. bp.D=100
  3194. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  3195. bp.position=hit.Parent.Torso.Position
  3196. bp.Parent=hit.Parent.Torso
  3197. game:GetService("Debris"):AddItem(bp,1)
  3198. elseif Type=="Target" then
  3199. local Targetting = false
  3200. if Targetting==false then
  3201. ZTarget=hit.Parent.Torso
  3202. coroutine.resume(coroutine.create(function(Part)
  3203. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  3204. swait(5)
  3205. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  3206. end),ZTarget)
  3207. local TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  3208. local targetgui=Instance.new("BillboardGui")
  3209. targetgui.Parent=ZTarget
  3210. targetgui.Size=UDim2.new(10,100,10,100)
  3211. local targ=Instance.new("ImageLabel")
  3212. targ.Parent=targetgui
  3213. targ.BackgroundTransparency=1
  3214. targ.Image="rbxassetid://4834067"
  3215. targ.Size=UDim2.new(1,0,1,0)
  3216. cam.CameraType="Scriptable"
  3217. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  3218. local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  3219. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  3220. Targetting=true
  3221. RocketTarget=ZTarget
  3222. for i=1,Property do
  3223. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  3224. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  3225. swait()
  3226. end
  3227. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  3228. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  3229. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  3230. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  3231. end
  3232. Targetting=false
  3233. RocketTarget=nil
  3234. targetgui.Parent=nil
  3235. cam.CameraType="Custom"
  3236. end
  3237. end
  3238. local debounce=Instance.new("BoolValue")
  3239. debounce.Name="DebounceHit"
  3240. debounce.Parent=hit.Parent
  3241. debounce.Value=true
  3242. game:GetService("Debris"):AddItem(debounce,Delay)
  3243. c=Instance.new("ObjectValue")
  3244. c.Name="creator"
  3245. c.Value=Player
  3246. c.Parent=h
  3247. game:GetService("Debris"):AddItem(c,.5)
  3248. end
  3249. end
  3250.  
  3251. function ShowDamage(Pos, Text, Time, Color)
  3252. local Rate = (1 / 30)
  3253. local Pos = (Pos or Vector3.new(0, 0, 0))
  3254. local Text = (Text or "")
  3255. local Time = (Time or 2)
  3256. local Color = (Color or Color3.new(1, 0, 0))
  3257. local EffectPart = part("Custom",workspace,"SmoothPlastic",0,1,BrickColor.new(Color),"Effect",vt(0,0,0))
  3258. EffectPart.Anchored = true
  3259. local BillboardGui = Instance.new("BillboardGui")
  3260. BillboardGui.Size = UDim2.new(3, 0, 3, 0)
  3261. BillboardGui.Adornee = EffectPart
  3262. local TextLabel = Instance.new("TextLabel")
  3263. TextLabel.BackgroundTransparency = 1
  3264. TextLabel.Size = UDim2.new(1, 0, 1, 0)
  3265. TextLabel.Text = Text
  3266. TextLabel.TextColor3 = Color
  3267. TextLabel.TextScaled = true
  3268. TextLabel.Font = Enum.Font.ArialBold
  3269. TextLabel.Parent = BillboardGui
  3270. BillboardGui.Parent = EffectPart
  3271. game.Debris:AddItem(EffectPart, (Time + 0.1))
  3272. EffectPart.Parent = game:GetService("Workspace")
  3273. Delay(0, function()
  3274. local Frames = (Time / Rate)
  3275. for Frame = 1, Frames do
  3276. wait(Rate)
  3277. local Percent = (Frame / Frames)
  3278. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  3279. TextLabel.TextTransparency = Percent
  3280. end
  3281. if EffectPart and EffectPart.Parent then
  3282. EffectPart:Destroy()
  3283. end
  3284. end)
  3285. end
  3286.  
  3287. --example: local con = HitboxB.Touched:connect(function(hit) Damagefunc(Hitbox,hit,Dmg,Dmg,math.random(Knockback,Knockback),"Normal",RootPart,.2,1) end)
  3288.  
  3289. Handle=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,1,"Really black","Handle",Vector3.new(1, 0.800000012, 1))
  3290. Handleweld=weld(m,Character["Right Arm"],Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-8.96453857e-005, 0.000481128693, -1.83582306e-005, 1, 1.92410751e-014, -4.42007258e-005, -1.93349195e-014, 0.999999881, -2.12312026e-012, 4.42007258e-005, 2.12312091e-012, 1))
  3291. Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,1,"Really black","Hitbox",Vector3.new(1.60000002, 3.4000001, 1))
  3292. Hitboxweld=weld(m,Handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.300050735, 0.100232601, 3.57627869e-007, 1, 1.06558363e-014, -4.67116479e-009, -1.06558363e-014, 1, -7.35089073e-017, 4.67116479e-009, 7.35089073e-017, 1))
  3293. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(1, 0.200000003, 1))
  3294. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(8.20159912e-005, 1.10002291, 1.57356262e-005, 1, -1.22308889e-014, 4.41999473e-005, 1.23254525e-014, 0.999996662, -2.14035647e-012, -4.41999473e-005, 2.14036427e-012, 1))
  3295. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(1.01999998, 0.200000003, 0.200000003))
  3296. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.82012939e-005, -0.699694633, 0.410015702, 1, -1.57821432e-014, 4.42007258e-005, 1.56883004e-014, 1, 2.12312091e-012, -4.42007258e-005, -2.12312026e-012, 1))
  3297. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(1.01999998, 0.200000003, 0.200000003))
  3298. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.82012939e-005, -0.699361324, -0.40998435, 1, -1.22308889e-014, 4.41999473e-005, 1.23254932e-014, 1, -2.14036362e-012, -4.41999473e-005, 2.14036427e-012, 1))
  3299. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(0.200000003, 0.800000012, 0.620000005))
  3300. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.409914017, 0.000346660614, 1.57356262e-005, 1, -1.57821432e-014, 4.42007258e-005, 1.56883004e-014, 1, 2.12312091e-012, -4.42007258e-005, -2.12312026e-012, 1))
  3301. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.620000005))
  3302. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.409914017, 0.700180769, 1.57356262e-005, 1, -1.57821432e-014, 4.42007258e-005, 1.56883004e-014, 1, 2.12312091e-012, -4.42007258e-005, -2.12312026e-012, 1))
  3303. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(1.01999998, 0.800000012, 0.200000003))
  3304. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.82012939e-005, 0.000400543213, 0.410015702, 1, -1.57821432e-014, 4.42007258e-005, 1.56883004e-014, 1, 2.12312091e-012, -4.42007258e-005, -2.12312026e-012, 1))
  3305. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(0.200000003, 0.800000012, 0.620000005))
  3306. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.410078049, 0.000326633453, 1.57356262e-005, 1, -1.57821432e-014, 4.42007258e-005, 1.56883004e-014, 1, 2.12312091e-012, -4.42007258e-005, -2.12312026e-012, 1))
  3307. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(1.01999998, 0.800000012, 0.200000003))
  3308. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.82012939e-005, 0.000392436981, -0.40998435, 1, -1.57821432e-014, 4.42007258e-005, 1.56883004e-014, 1, 2.12312091e-012, -4.42007258e-005, -2.12312026e-012, 1))
  3309. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(1.01999998, 0.200000003, 0.200000003))
  3310. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.82012939e-005, 0.700207949, 0.410015702, 1, -1.57821432e-014, 4.42007258e-005, 1.56883004e-014, 1, 2.12312091e-012, -4.42007258e-005, -2.12312026e-012, 1))
  3311. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.620000005))
  3312. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.410078049, -0.699380398, 1.56164169e-005, 1, -1.22308889e-014, 4.41999473e-005, 1.23254932e-014, 1, -2.14036362e-012, -4.41999473e-005, 2.14036427e-012, 1))
  3313. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.620000005))
  3314. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.4100914, 0.700154781, 1.57356262e-005, 1, -1.93349195e-014, 4.42007258e-005, 1.92409124e-014, 0.999991417, 2.12310291e-012, -4.42007258e-005, -2.12312026e-012, 1))
  3315. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(1.01999998, 0.200000003, 0.200000003))
  3316. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.82012939e-005, 0.700230837, -0.40998435, 1, -1.57821432e-014, 4.42007258e-005, 1.56883004e-014, 1, 2.12312091e-012, -4.42007258e-005, -2.12312026e-012, 1))
  3317. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(0.400000006, 2, 1))
  3318. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699924469, 4.14848328e-005, 2.16960907e-005, 1, -1.22308889e-014, 4.41999473e-005, 1.23254932e-014, 1, -2.14036362e-012, -4.41999473e-005, 2.14036427e-012, 1))
  3319. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(1, 1.39999998, 0.200000003))
  3320. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.57356262e-005, -0.299851894, 0.999885559, -4.41999473e-005, -5.95854743e-008, 1, -2.60350986e-012, 1, 5.95854743e-008, -1, 3.01648321e-014, -4.41999473e-005))
  3321. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  3322. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(1, 0.600000024, 0.200000003))
  3323. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.57356262e-005, -0.700007677, 0.999902725, 4.41999473e-005, -2.13950775e-012, -1, -2.65373322e-014, -1, 2.13950667e-012, -1, 2.64427677e-014, -4.41999473e-005))
  3324. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  3325. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(0.400000006, 1.39999998, 0.399999976))
  3326. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.848457336, -0.300411701, -0.141453743, 0.707042813, -1.50516166e-012, -0.707170904, 1.1783393e-014, 1, -2.11664583e-012, 0.707170904, 1.48822632e-012, 0.707042813))
  3327. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(0.400000006, 0.400000006, 0.400000006))
  3328. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.6998806, -0.499980569, -0.399654627, 0.999999881, 3.17161053e-008, 4.20847573e-005, -4.21145523e-005, -2.83570323e-009, 0.999999762, 3.17162403e-008, -0.999999762, -2.83438673e-009))
  3329. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.404000014, 0.400000006, 0.995999992))
  3330. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(0.400000006, 0.400000006, 0.400000006))
  3331. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699882507, 0.500019133, 1.00034523, 0.999999881, 3.17161053e-008, 4.20847573e-005, -4.21145523e-005, -2.83570323e-009, 0.999999762, 3.17162403e-008, -0.999999762, -2.83438673e-009))
  3332. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.404000014, 0.400000006, 0.560000002))
  3333. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(0.400000006, 0.400000006, 0.400000006))
  3334. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699882507, 0.500019133, -0.399654627, 0.999999881, 3.17161053e-008, 4.20847573e-005, -4.21145523e-005, -2.83570323e-009, 0.999999762, 3.17162403e-008, -0.999999762, -2.83438673e-009))
  3335. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.404000014, 0.400000006, 0.995999992))
  3336. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.620000005))
  3337. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.409921646, -0.699380398, 1.57356262e-005, 1, -1.22308889e-014, 4.41999473e-005, 1.23254932e-014, 1, -2.14036362e-012, -4.41999473e-005, 2.14036427e-012, 1))
  3338. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(1, 0.200000003, 0.400000006))
  3339. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.56164169e-005, -1.10002637, 0.699918747, 4.41999473e-005, -2.14036427e-012, -1, -1.23254932e-014, -1, 2.14036362e-012, -1, 1.22308889e-014, -4.41999473e-005))
  3340. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  3341. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(1, 0.200000003, 0.200000003))
  3342. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.16960907e-005, -0.599924088, 1.49999762, 4.41999473e-005, -2.14036427e-012, -1, 1, -1.22308889e-014, 4.41999473e-005, -1.23254932e-014, -1, 2.14036362e-012))
  3343. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  3344. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(0.400000006, 1.39999998, 0.399999976))
  3345. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.141283035, -0.300261259, -0.848459244, 0.707067847, -1.51049073e-012, -0.70714587, 1.20093924e-014, 1, -2.12403055e-012, 0.70714587, 1.49334115e-012, 0.707067847))
  3346. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(0.400000006, 0.400000006, 0.400000006))
  3347. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.6998806, -0.499980569, 1.00034523, 0.999999881, 3.17161053e-008, 4.20847573e-005, -4.21145523e-005, -2.83570323e-009, 0.999999762, 3.17162403e-008, -0.999999762, -2.83438673e-009))
  3348. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.403999984, 0.399999976, 0.560000002))
  3349. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(1, 0.200000003, 0.400000006))
  3350. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.16960907e-005, -0.79992485, 1.19999647, 4.41999473e-005, -2.14036427e-012, -1, 0.999999821, 2.980231e-008, 4.419994e-005, 2.980231e-008, -0.999999821, 3.45762416e-012))
  3351. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  3352. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(0.200000003, 0.400000006, 1))
  3353. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599924088, -1.19995832, 2.16960907e-005, 1, -1.22308889e-014, 4.41999473e-005, 1.23254932e-014, 1, -2.14036362e-012, -4.41999473e-005, 2.14036427e-012, 1))
  3354. Finger1Connector=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,1,"Bright blue","Finger1Connector",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  3355. Finger1Connectorweld=weld(m,Handle,Finger1Connector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.399971008, 1.29990399, 0.200015664, 1, 1.78782017e-007, 4.41999473e-005, -1.7878321e-007, 0.999993324, -1.00110302e-011, -4.41999473e-005, 2.10883698e-012, 1))
  3356. Finger2Connector=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,1,"Bright blue","Finger2Connector",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  3357. Finger2Connectorweld=weld(m,Handle,Finger2Connector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.399934769, 1.29982674, 0.400015712, 1, 2.97982776e-008, 4.41999473e-005, -2.97984766e-008, 0.999993324, -3.43642345e-012, -4.41999473e-005, 2.11934723e-012, 1))
  3358. Finger3Connector=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,1,"Bright blue","Finger3Connector",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  3359. Finger3Connectorweld=weld(m,Handle,Finger3Connector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.399934769, 1.29971194, 0.140015721, 1, 8.93768473e-008, 4.421228e-005, -8.93774441e-008, 0.999993324, -1.82566007e-012, -4.421228e-005, -2.12587717e-012, 1))
  3360. Finger4Connector=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,1,"Bright blue","Finger4Connector",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  3361. Finger4Connectorweld=weld(m,Handle,Finger4Connector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.399930954, 1.29973722, -0.119984269, 1, 8.93806842e-008, 4.421228e-005, -8.9381281e-008, 0.999993324, -1.82601091e-012, -4.421228e-005, -2.12569589e-012, 1))
  3362. Finger5Connector=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,1,"Bright blue","Finger5Connector",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  3363. Finger5Connectorweld=weld(m,Handle,Finger5Connector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.399984121, -1.29981911, -0.399932861, -4.41701486e-005, 5.95858012e-008, 1, 4.58027785e-008, -0.999993324, 5.95882241e-008, 1, 4.58051019e-008, 4.41701486e-005))
  3364. Finger1=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Bright blue","Finger1",Vector3.new(0.200000003, 0.400000006, 0.200000003))
  3365. Finger1weld=weld(m,Finger1Connector,Finger1,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(6.10351563e-005, 0.100007057, 0, 1, 2.06483719e-011, -5.55111512e-017, -2.54232191e-011, 0.999986649, 4.50594423e-016, 5.55111512e-017, -4.49727061e-016, 1))
  3366. Finger2=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Bright blue","Finger2",Vector3.new(0.200000003, 0.600000024, 0.200000003))
  3367. Finger2weld=weld(m,Finger2Connector,Finger2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.81469727e-006, 0.199999213, 1.1920929e-007, 1, 8.77520279e-013, 0, -1.67332814e-012, 0.999986649, 1.50920942e-016, 0, -1.50053581e-016, 1))
  3368. Finger3=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Bright blue","Finger3",Vector3.new(0.200000003, 0.600000024, 0.200000003))
  3369. Finger3weld=weld(m,Finger3Connector,Finger3,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.81469727e-006, 0.200001121, 1.1920929e-007, 1, 2.64321898e-012, -4.35207426e-013, -5.03064257e-012, 0.999986649, -1.23739232e-016, 4.35207426e-013, 2.38535383e-016, 1))
  3370. Finger4=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Bright blue","Finger4",Vector3.new(0.200000003, 0.600000024, 0.200000003))
  3371. Finger4weld=weld(m,Finger4Connector,Finger4,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.81469727e-006, 0.199998736, 1.1920929e-007, 1, 2.64321898e-012, -4.35207426e-013, -5.03064257e-012, 0.999986649, -1.23732138e-016, 4.35207426e-013, 2.38539513e-016, 1))
  3372. Finger5=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Bright blue","Finger5",Vector3.new(0.200000003, 0.600000024, 0.200000003))
  3373. Finger5weld=weld(m,Finger5Connector,Finger5,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.38418579e-007, -0.199927688, 9.53674316e-006, 1, -3.86535248e-012, -7.77482967e-010, 5.45696821e-012, 0.999986649, -1.35540613e-012, 7.77477638e-010, 2.57749442e-012, 1))
  3374.  
  3375. function FuckYou()
  3376. attack = true
  3377. for i = 0,1,0.1 do
  3378. swait()
  3379. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(30)),.3)
  3380. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-30)),.3)
  3381. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-130), math.rad(-170)), 0.3)
  3382. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.3)
  3383. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  3384. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  3385. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(80)),.3)
  3386. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  3387. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  3388. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  3389. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(-80),math.rad(0),math.rad(0)),.3)
  3390. end
  3391. for i = 0,1,0.01 do
  3392. swait()
  3393. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(30)),.3)
  3394. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-30)),.3)
  3395. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-130), math.rad(-150)), 0.3)
  3396. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.3)
  3397. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  3398. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  3399. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(80)),.3)
  3400. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  3401. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  3402. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  3403. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(-80),math.rad(0),math.rad(0)),.3)
  3404. end
  3405. attack = false
  3406. end
  3407.  
  3408. function attackone()
  3409. attack = true
  3410. local con = Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,145689,math.random(145689,145689),"Normal",RootPart,.2,1) end)
  3411. for i = 0,1,0.1 do
  3412. swait()
  3413. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(70)),.3)
  3414. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  3415. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -.5) * angles(math.rad(90), math.rad(0), math.rad(-50)), 0.3)
  3416. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-15)), 0.3)
  3417. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(0))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3)
  3418. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-130),math.rad(10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  3419. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(80)),.3)
  3420. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  3421. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  3422. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  3423. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(-80),math.rad(0),math.rad(0)),.3)
  3424. end
  3425. so("http://roblox.com/asset/?id=200632136",Hitbox,1,.9)
  3426. so("http://www.roblox.com/asset/?id=159972643",Torso,1,1)
  3427. for i = 0,1,0.1 do
  3428. swait()
  3429. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(-70)),.4)
  3430. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(60)),.4)
  3431. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, 0.5) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.4)
  3432. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-20)), 0.3)
  3433. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(130),math.rad(0))*angles(math.rad(-2),math.rad(0),math.rad(0)),.4)
  3434. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(-10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.4)
  3435. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(30),math.rad(0),math.rad(20)),.3)
  3436. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(20),math.rad(0),math.rad(-20)),.3)
  3437. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(10),math.rad(0),math.rad(-20)),.3)
  3438. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(-10),math.rad(0),math.rad(-20)),.3)
  3439. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(-20),math.rad(0),math.rad(-20)),.3)
  3440. end
  3441. attack = false
  3442. con:disconnect()
  3443. end
  3444.  
  3445. function attacktwo()
  3446. attack = true
  3447. local con = Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,145689,math.random(145689,145689),"Normal",RootPart,.2,1) end)
  3448. for i = 0,1,0.1 do
  3449. swait()
  3450. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(-70)),.3)
  3451. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  3452. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -.5) * angles(math.rad(0), math.rad(150), math.rad(90)), 0.3)
  3453. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-20), math.rad(-90)), 0.3)
  3454. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(130),math.rad(-10))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3)
  3455. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(-10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  3456. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(30),math.rad(0),math.rad(-50)),.3)
  3457. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(20),math.rad(0),math.rad(50)),.3)
  3458. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  3459. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(-10),math.rad(0),math.rad(50)),.3)
  3460. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(50),math.rad(0),math.rad(-20)),.3)
  3461. end
  3462. so("http://roblox.com/asset/?id=200632211",Hitbox,1,.9)
  3463. so("http://www.roblox.com/asset/?id=159882477",Torso,1,1)
  3464. for i = 0,1,0.1 do
  3465. swait()
  3466. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(70)),.4)
  3467. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-60)),.5)
  3468. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(20), math.rad(90)), 0.4)
  3469. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-50)), 0.3)
  3470. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(10))*angles(math.rad(-2),math.rad(0),math.rad(0)),.4)
  3471. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-130),math.rad(10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.4)
  3472. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(30),math.rad(0),math.rad(-50)),.3)
  3473. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(20),math.rad(0),math.rad(50)),.3)
  3474. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  3475. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(-10),math.rad(0),math.rad(50)),.3)
  3476. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(50),math.rad(0),math.rad(-20)),.3)
  3477. end
  3478. attack = false
  3479. con:disconnect()
  3480. end
  3481.  
  3482. function attackthree()
  3483. attack = true
  3484. local con = Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,145689,math.random(145689,145689),"Normal",RootPart,.2,1) end)
  3485. for i = 0,1,0.1 do
  3486. swait()
  3487. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(-70)),.3)
  3488. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  3489. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-30)), 0.3)
  3490. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-20), math.rad(-90)), 0.3)
  3491. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(130),math.rad(-10))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3)
  3492. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(-10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  3493. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(80)),.3)
  3494. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  3495. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  3496. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  3497. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(-80),math.rad(0),math.rad(0)),.3)
  3498. end
  3499. so("http://roblox.com/asset/?id=200632136",Hitbox,1,.8)
  3500. so("http://www.roblox.com/asset/?id=159882584",Torso,1,1)
  3501. for i = 0,1,0.1 do
  3502. swait()
  3503. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(90)),.4)
  3504. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-80)),.4)
  3505. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -.5) * angles(math.rad(90), math.rad(0), math.rad(-40*i)), 0.4)
  3506. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-50)), 0.3)
  3507. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.4)
  3508. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-130),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.4)
  3509. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(80)),.3)
  3510. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  3511. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  3512. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  3513. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(-80),math.rad(0),math.rad(0)),.3)
  3514. end
  3515. attack = false
  3516. con:disconnect()
  3517. end
  3518.  
  3519. function weld5(part0, part1, c0, c1)
  3520. local weeld=Instance.new("Weld", part0)
  3521. weeld.Part0=part0
  3522. weeld.Part1=part1
  3523.  
  3524. weeld.C0=c0
  3525. weeld.C1=c1
  3526. return weeld
  3527. end
  3528.  
  3529. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  3530. local prt=part(3,workspace,"Neon",0.5,0,brickcolor,"Effect",vt())
  3531. prt.Anchored=true
  3532. prt.CFrame=cframe
  3533. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  3534. game:GetService("Debris"):AddItem(prt,2)
  3535. coroutine.resume(coroutine.create(function(Part,Mesh)
  3536. local wld=nil
  3537. for i=0,1,delay do
  3538. wait()
  3539. Part.CFrame=Part.CFrame
  3540. Part.Transparency=i
  3541. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  3542. end
  3543. Part.Parent=nil
  3544. end),prt,msh)
  3545. end
  3546.  
  3547. function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  3548. local prt=part(3,workspace,"Neon",0.5,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3549. prt.Anchored=true
  3550. prt.CFrame=cframe
  3551. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  3552. game:GetService("Debris"):AddItem(prt,5)
  3553. coroutine.resume(coroutine.create(function(Part,Mesh)
  3554. for i=0,1,delay do
  3555. wait()
  3556. Part.CFrame=Part.CFrame
  3557. Part.Transparency=i
  3558. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  3559. end
  3560. Part.Parent=nil
  3561. end),prt,msh)
  3562. end
  3563.  
  3564. local Grab = false
  3565.  
  3566. function MagniDamage(Hit,Part,magni,mindam,maxdam,knock,Type)
  3567. for _,c in pairs(workspace:children()) do
  3568. local hum=c:findFirstChild("Humanoid")
  3569. if hum~=nil then
  3570. local head=c:findFirstChild("Torso")
  3571. if head~=nil then
  3572. local targ=head.Position-Part.Position
  3573. local mag=targ.magnitude
  3574. if mag<=magni and c.Name~=Player.Name then
  3575. Damagefunc(Hit,head,mindam,maxdam,knock,Type,RootPart,.2,1,3)
  3576. end
  3577. end
  3578. end
  3579. end
  3580. end
  3581.  
  3582. function MagniDamage2(Hit,Part,magni,mindam,maxdam,knock,Type)
  3583. for _,c in pairs(workspace:children()) do
  3584. local hum=c:findFirstChild("Humanoid")
  3585. if hum~=nil then
  3586. local head=c:findFirstChild("Torso")
  3587. if head~=nil then
  3588. local targ=head.Position-Part.Position
  3589. local mag=targ.magnitude
  3590. if mag<=magni and c.Name~=Player.Name then
  3591. Damagefunc(Hit,head,mindam,maxdam,knock,Type,RootPart,.2,1,3)
  3592. for i,v in pairs (hum.Parent:GetChildren()) do
  3593. if v:IsA("Humanoid") then
  3594. v:remove()
  3595. end
  3596. if v:IsA("Part") then
  3597. v.BrickColor = BrickColor.new("Really black")
  3598. v.Reflectance = 0.5
  3599. v.Material = "SmoothPlastic"
  3600. v.CanCollide = true
  3601. end
  3602. end
  3603. end
  3604. end
  3605. end
  3606. end
  3607. end
  3608.  
  3609.  
  3610. function GrabNSlam()
  3611. attack = true
  3612. so("http://roblox.com/asset/?id=200632211",Hitbox,1,.9)
  3613. if Grab == false then
  3614. gp = nil
  3615. con1=Hitbox.Touched:connect(function(hit) -- credits to TheDarkRevenant for the grabbing
  3616. local ht = hit.Parent
  3617. local hum1=ht:FindFirstChild('Humanoid')
  3618. if hum1 ~= nil then
  3619. hum1.PlatformStand=true
  3620. gp = ht
  3621. Grab = true
  3622. local asd=weld5(RightArm,ht:FindFirstChild("Torso"),CFrame.new(0,-1.7,0),CFrame.new(0,0,0))
  3623. asd.Parent = RightArm
  3624. asd.Name = "asd"
  3625. asd.C0=asd.C0*CFrame.Angles(math.rad(-90),0,0)
  3626. so("http://roblox.com/asset/?id=200632821",Torso,1,.9)
  3627. for i,v in pairs (gp:GetChildren()) do
  3628. if v:IsA("Part") then
  3629. v.BrickColor = BrickColor.new("Really black")
  3630. v.Reflectance = 0.5
  3631. v.Material = "SmoothPlastic"
  3632. end
  3633. end
  3634. elseif hum1 == nil then
  3635. con1:disconnect()
  3636. wait() return
  3637. end
  3638. end)
  3639. end
  3640. for i = 0,1,0.1 do
  3641. swait()
  3642. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(50)),.4)
  3643. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-40)),.5)
  3644. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(90)), 0.4)
  3645. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-50)), 0.3)
  3646. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(10))*angles(math.rad(-2),math.rad(0),math.rad(0)),.4)
  3647. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-130),math.rad(10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.4)
  3648. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(30),math.rad(0),math.rad(-50)),.3)
  3649. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(20),math.rad(0),math.rad(50)),.3)
  3650. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  3651. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(-10),math.rad(0),math.rad(50)),.3)
  3652. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(50),math.rad(0),math.rad(-20)),.3)
  3653. end
  3654. if Grab == true then
  3655. for i = 0,1,0.1 do
  3656. swait()
  3657. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(-50)),.4)
  3658. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(40)),.5)
  3659. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(90)), 0.4)
  3660. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-50)), 0.3)
  3661. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(130),math.rad(10))*angles(math.rad(-2),math.rad(0),math.rad(0)),.4)
  3662. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.4)
  3663. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(30),math.rad(0),math.rad(-50)),.3)
  3664. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(20),math.rad(0),math.rad(50)),.3)
  3665. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  3666. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(-10),math.rad(0),math.rad(50)),.3)
  3667. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(50),math.rad(0),math.rad(-20)),.3)
  3668. end
  3669. so("http://roblox.com/asset/?id=200632875",Torso,1,.9)
  3670. so("http://www.roblox.com/asset/?id=231917758",RightArm,1,1)
  3671. MagicCircle(BrickColor.new("Really black"),Hitbox.CFrame,5,5,5,6,6,6,0.05)
  3672. MagicRing(BrickColor.new("Really black"),Hitbox.CFrame,5,5,5,6,6,6,0.05)
  3673. MagniDamage(Hitbox,Hitbox,10,30,50,0,"Normal")
  3674. for i = 0,1,0.1 do
  3675. swait()
  3676. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(50),math.rad(0),math.rad(70)),.4)
  3677. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-60)),.5)
  3678. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(20), math.rad(90)), 0.4)
  3679. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-70)), 0.3)
  3680. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.4)
  3681. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-130),math.rad(10))*angles(math.rad(-10),math.rad(0),math.rad(0)),.4)
  3682. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(30),math.rad(0),math.rad(-50)),.3)
  3683. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(20),math.rad(0),math.rad(50)),.3)
  3684. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  3685. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(-10),math.rad(0),math.rad(50)),.3)
  3686. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(50),math.rad(0),math.rad(-20)),.3)
  3687. end
  3688. end
  3689. con1:disconnect()
  3690. for i,v in pairs(RightArm:GetChildren()) do
  3691. if v.Name == "asd" and v:IsA("Weld") then
  3692. v:Remove()
  3693.  
  3694. end
  3695. end
  3696. Grab = false
  3697. attack = false
  3698. end
  3699.  
  3700. function BlastEffect(brickcolor,cframe,x1,y1,z1,x2,y2,z2)
  3701. local prt=part(3,workspace,"Neon",0.5,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3702. prt.Anchored=true
  3703. prt.CFrame = cframe
  3704. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  3705. coroutine.resume(coroutine.create(function()
  3706. for i=0,1,0.05 do
  3707. wait()
  3708. prt.Transparency=i
  3709. msh.Scale=msh.Scale+vt(x2,y2,z2)
  3710. end
  3711. prt.Parent=nil
  3712. end))
  3713. end
  3714.  
  3715. function HammerFist()
  3716. attack = true
  3717. Humanoid.WalkSpeed = 0
  3718. for i = 0,1,0.1 do
  3719. swait()
  3720. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  3721. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-30)),.3)
  3722. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(150), math.rad(0), math.rad(0)), 0.3)
  3723. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-50)), 0.3)
  3724. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(-5))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3)
  3725. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-80),math.rad(-5))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  3726. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.08,0)*angles(math.rad(0),math.rad(0),math.rad(80)),.3)
  3727. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.07,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  3728. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  3729. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  3730. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(-80),math.rad(0),math.rad(0)),.3)
  3731. end
  3732. so("http://roblox.com/asset/?id=200632875",Torso,1,.9)
  3733. so("http://roblox.com/asset/?id=263610131",Torso,1,1)
  3734. so("http://roblox.com/asset/?id=263610111",Torso,1,1)
  3735. so("http://www.roblox.com/asset/?id=159882598",Torso,1,1)
  3736. MagniDamage(Hitbox,Hitbox,20,20,30,0,"Knockdown")
  3737. local hit,pos=rayCast(Hitbox.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,100,Character)
  3738. if hit~=nil then
  3739. local ref=part(3,workspace,"Neon",0,1,BrickColor.new("Bright blue"),"Effect",vt())
  3740. ref.Anchored=true
  3741. ref.CFrame=cf(pos)
  3742. game:GetService("Debris"):AddItem(ref,3)
  3743. for i=1,10 do
  3744. local Col=BrickColor.new("Really black")
  3745. local groundpart=part(3,workspace,"SmoothPlastic",0.5,0,Col,"Ground",vt(math.random(50,200)/100,math.random(50,200)/100,math.random(50,200)/100))
  3746. groundpart.Anchored=true
  3747. groundpart.CanCollide=false
  3748. groundpart.CFrame=cf(pos)*cf(math.random(-500,500)/100,0,math.random(-500,500)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3749. game:GetService("Debris"):AddItem(groundpart,5)
  3750. end
  3751. BlastEffect(BrickColor.new("Bright orange"),cf(pos),1,1,1,.7,.7,.7)
  3752. MagicCircle(BrickColor.new("Really black"),cf(pos),3,3,3,5,5,5,0.05)
  3753. MagniDamage(ref,ref,10,10,20,math.random(10,20),"Knockdown")
  3754. end
  3755. for i = 0,1,0.1 do
  3756. swait()
  3757. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)* angles(math.rad(40),math.rad(0),math.rad(0)),.5)
  3758. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(30),math.rad(0),math.rad(0)),.3)
  3759. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(40), math.rad(0), math.rad(0)), 0.5)
  3760. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.3)
  3761. RH.C0=clerp(RH.C0,cf(1,.5,-.2)*angles(math.rad(0),math.rad(90),math.rad(30))*angles(math.rad(2),math.rad(0),math.rad(0)),.3)
  3762. LH.C0=clerp(LH.C0,cf(-1,-.5,-.5)*angles(math.rad(0),math.rad(-80),math.rad(40))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  3763. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.08,0)*angles(math.rad(0),math.rad(0),math.rad(80)),.3)
  3764. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.07,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  3765. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  3766. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  3767. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(-80),math.rad(0),math.rad(0)),.3)
  3768. end
  3769. attack = false
  3770. Humanoid.WalkSpeed = 16
  3771. end
  3772.  
  3773. function TurnIntoGold()
  3774. attack = true
  3775. so("http://roblox.com/asset/?id=200632211",Hitbox,1,.9)
  3776. if Grab == false then
  3777. gp = nil
  3778. con1=Hitbox.Touched:connect(function(hit) -- credits to TheDarkRevenant for the grabbing
  3779. local ht = hit.Parent
  3780. local hum1=ht:FindFirstChild('Humanoid')
  3781. if hum1 ~= nil then
  3782. hum1.PlatformStand=true
  3783. gp = ht
  3784. Grab = true
  3785. local asd=weld5(RightArm,ht:FindFirstChild("Torso"),CFrame.new(0,-1.7,0),CFrame.new(0,0,0))
  3786. asd.Parent = RightArm
  3787. asd.Name = "asd"
  3788. asd.C0=asd.C0*CFrame.Angles(math.rad(-90),0,0)
  3789. so("http://roblox.com/asset/?id=200632821",Torso,1,.9)
  3790. --[[for i,v in pairs (gp:GetChildren()) do
  3791. if v:IsA("Part") then
  3792. v.BrickColor = BrickColor.new("Really black")
  3793. v.Reflectance = 0.5
  3794. v.Material = "SmoothPlastic"
  3795. end
  3796. end]]--
  3797. elseif hum1 == nil then
  3798. con1:disconnect()
  3799. wait() return
  3800. end
  3801. end)
  3802. end
  3803. for i = 0,1,0.1 do
  3804. swait()
  3805. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),.4)
  3806. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-40)),.5)
  3807. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.4)
  3808. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-50)), 0.3)
  3809. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(10))*angles(math.rad(-2),math.rad(0),math.rad(0)),.4)
  3810. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-130),math.rad(10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.4)
  3811. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(30),math.rad(0),math.rad(-50)),.3)
  3812. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(20),math.rad(0),math.rad(50)),.3)
  3813. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  3814. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(-10),math.rad(0),math.rad(50)),.3)
  3815. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(50),math.rad(0),math.rad(-20)),.3)
  3816. end
  3817. if Grab == true then
  3818. for i = 0,1,0.1 do
  3819. swait()
  3820. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  3821. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  3822. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(130), math.rad(0), math.rad(0)), 0.4)
  3823. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
  3824. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(10))*angles(math.rad(-2),math.rad(0),math.rad(0)),.4)
  3825. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.4)
  3826. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(30),math.rad(0),math.rad(-50)),.3)
  3827. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(20),math.rad(0),math.rad(50)),.3)
  3828. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  3829. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(-10),math.rad(0),math.rad(50)),.3)
  3830. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(50),math.rad(0),math.rad(-20)),.3)
  3831. end
  3832. so("http://roblox.com/asset/?id=248572927",Torso,1,1)
  3833. so("http://www.roblox.com/asset/?id=159882481",Torso,1,1)
  3834. MagniDamage2(Hitbox,Hitbox,5,30,50,0,"Normal")
  3835. MagicCircle(BrickColor.new("Really black"),RightArm.CFrame,3,3,3,5,5,5,0.05)
  3836. BlastEffect(BrickColor.new("Really black"),Torso.CFrame,1,1,1,.7,.7,.7)
  3837. for i = 0,1,0.1 do
  3838. swait()
  3839. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  3840. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  3841. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(130), math.rad(0), math.rad(0)), 0.4)
  3842. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
  3843. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(10))*angles(math.rad(-2),math.rad(0),math.rad(0)),.4)
  3844. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.4)
  3845. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(30),math.rad(0),math.rad(-50)),.3)
  3846. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(20),math.rad(0),math.rad(50)),.3)
  3847. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  3848. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(-10),math.rad(0),math.rad(50)),.3)
  3849. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(50),math.rad(0),math.rad(-20)),.3)
  3850. end
  3851. end
  3852. con1:disconnect()
  3853. Grab = false
  3854. attack = false
  3855. for i,v in pairs(RightArm:GetChildren()) do
  3856. if v.Name == "asd" and v:IsA("Weld") then
  3857. v:Remove()
  3858.  
  3859. end
  3860. end
  3861. end
  3862.  
  3863. mouse.Button1Down:connect(function()
  3864. if attack == false and attacktype == 1 then
  3865. attacktype = 2
  3866. attackone()
  3867. elseif attack == false and attacktype == 2 then
  3868. attacktype = 3
  3869. attacktwo()
  3870. elseif attack == false and attacktype == 3 then
  3871. attacktype = 1
  3872. attackthree()
  3873. end
  3874. end)
  3875.  
  3876. mouse.KeyDown:connect(function(k)
  3877. k=k:lower()
  3878. if attack == false and k == 'q' then
  3879. GrabNSlam()
  3880. elseif attack == false and k == 'e' then
  3881. HammerFist()
  3882. elseif attack == false and k == 'r' then
  3883. TurnIntoGold()
  3884. end
  3885. end)
  3886.  
  3887.  
  3888. local sine = 0
  3889. local change = 1
  3890. local val = 0
  3891. local donum = .5
  3892.  
  3893. while true do
  3894. swait()
  3895. sine = sine + change
  3896. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  3897. local velderp=RootPart.Velocity.y
  3898. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  3899. if equipped==true or equipped==false then
  3900. if attack==false then
  3901. idle=idle+1
  3902. else
  3903. idle=0
  3904. end
  3905. if idle>=500 then
  3906. if attack==false then
  3907. end
  3908. end
  3909. if RootPart.Velocity.y > 1 and hitfloor==nil then
  3910. Anim="Jump"
  3911. if attack==false then
  3912. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  3913. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  3914. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(30)), 0.3)
  3915. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
  3916. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  3917. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  3918. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(30),math.rad(0),math.rad(-50)),.3)
  3919. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(20),math.rad(0),math.rad(50)),.3)
  3920. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  3921. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(-10),math.rad(0),math.rad(50)),.3)
  3922. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(50),math.rad(0),math.rad(-20)),.3)
  3923. end
  3924. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  3925. Anim="Fall"
  3926. if attack==false then
  3927. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  3928. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  3929. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(60)), 0.3)
  3930. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(-60)), 0.3)
  3931. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  3932. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  3933. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(30),math.rad(0),math.rad(-50)),.3)
  3934. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(20),math.rad(0),math.rad(50)),.3)
  3935. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  3936. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(-10),math.rad(0),math.rad(50)),.3)
  3937. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(50),math.rad(0),math.rad(-20)),.3)
  3938. end
  3939. elseif torvel<1 and hitfloor~=nil then
  3940. Anim="Idle"
  3941. if attack==false then
  3942. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(-30)),.3)
  3943. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(30)),.3)
  3944. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(5)), 0.3)
  3945. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(5), math.rad(0), math.rad(-10)), 0.3)
  3946. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3)
  3947. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(-5))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  3948. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.08,0)*angles(math.rad(0),math.rad(0),math.rad(20)),.3)
  3949. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.07,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  3950. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.3)
  3951. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-40)),.3)
  3952. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(-50),math.rad(0),math.rad(0)),.3)
  3953. end
  3954. elseif torvel>2 and hitfloor~=nil then
  3955. Anim="Walk"
  3956. if attack==false then
  3957. change=3
  3958. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  3959. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  3960. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10)*math.cos(sine/13), math.rad(0), math.rad(10)), 0.3)
  3961. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10)*math.cos(sine/13), math.rad(0), math.rad(-10)), 0.3)
  3962. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(5)),.3)
  3963. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-5)),.3)
  3964. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(80)),.3)
  3965. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  3966. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  3967. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  3968. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(-80),math.rad(0),math.rad(0)),.3)
  3969. end
  3970. end
  3971. end
  3972. if #Effects>0 then
  3973. for e=1,#Effects do
  3974. if Effects[e]~=nil then
  3975. local Thing=Effects[e]
  3976. if Thing~=nil then
  3977. local Part=Thing[1]
  3978. local Mode=Thing[2]
  3979. local Delay=Thing[3]
  3980. local IncX=Thing[4]
  3981. local IncY=Thing[5]
  3982. local IncZ=Thing[6]
  3983. if Thing[1].Transparency<=1 then
  3984. if Thing[2]=="Block1" then
  3985. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3986. Mesh=Thing[1].Mesh
  3987. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3988. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3989. elseif Thing[2]=="Cylinder" then
  3990. Mesh=Thing[1].Mesh
  3991. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3992. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3993. elseif Thing[2]=="Blood" then
  3994. Mesh=Thing[7]
  3995. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  3996. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3997. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3998. elseif Thing[2]=="Elec" then
  3999. Mesh=Thing[1].Mesh
  4000. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  4001. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  4002. elseif Thing[2]=="Disappear" then
  4003. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  4004. end
  4005. else
  4006. Part.Parent=nil
  4007. table.remove(Effects,e)
  4008. end
  4009. end
  4010. end
  4011. end
  4012. end
  4013. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement