WDGASTER132

Untitled

Aug 17th, 2016
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 68.18 KB | None | 0 0
  1. Player=game:GetService("Players").LocalPlayer
  2. Character=Player.Character
  3. PlayerGui=Player.PlayerGui
  4. Backpack=Player.Backpack
  5. Mouse=Player:GetMouse()
  6. Torso=Character.Torso
  7. Head=Character.Head
  8. Humanoid=Character.Humanoid
  9. m=Instance.new('Model',Character)
  10. LeftArm=Character["Left Arm"]
  11. LeftLeg=Character["Left Leg"]
  12. RightArm=Character["Right Arm"]
  13. RightLeg=Character["Right Leg"]
  14. LS=Torso["Left Shoulder"]
  15. LH=Torso["Left Hip"]
  16. RS=Torso["Right Shoulder"]
  17. RH=Torso["Right Hip"]
  18. Face = Head.face
  19. Neck=Torso.Neck
  20. it=Instance.new
  21. attacktype=1
  22. vt=Vector3.new
  23. cf=CFrame.new
  24. euler=CFrame.fromEulerAnglesXYZ
  25. angles=CFrame.Angles
  26. cloaked=false
  27. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  28. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  29. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  30. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  31. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  32. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  33. RootPart=Character.HumanoidRootPart
  34. RootJoint=RootPart.RootJoint
  35. RootCF=euler(-1.57,0,3.14)
  36. attack = false
  37. attackdebounce = false
  38. deb=false
  39. equipped=true
  40. hand=false
  41. MMouse=nil
  42. combo=0
  43. mana=0
  44. trispeed=.2
  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. trispeed=.5
  53. pathtrans=.7
  54. magix=false
  55. pathcolor=BrickColor.new('White')
  56. shoot=false
  57. mon=Instance.new('Model',Character)
  58. --game:service'Lighting'.TimeOfDay=24
  59. --[[
  60. sound=Instance.new('Sound',Character)
  61. sound.SoundId='rbxassetid://190454307'--170825871 142360845 231392691 145556530 178571619 190454307
  62. sound.Volume=1
  63. sound.Pitch=1
  64. sound.PlayOnRemove=false
  65. sound.Looped=true
  66. wait()
  67. sound:play()]]
  68.  
  69. mouse=Player:GetMouse()
  70. --save shoulders
  71. RSH, LSH=nil, nil
  72. --welds
  73. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  74. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  75. LH=Torso["Left Hip"]
  76. RH=Torso["Right Hip"]
  77. TorsoColor=Torso.BrickColor
  78.  
  79. function NoOutline(Part)
  80. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  81. end
  82.  
  83. player=Player
  84. ch=Character
  85. RSH=ch.Torso["Right Shoulder"]
  86. LSH=ch.Torso["Left Shoulder"]
  87. --
  88. RSH.Parent=nil
  89. LSH.Parent=nil
  90. --
  91. RW.Name="Right Shoulder"
  92. RW.Part0=ch.Torso
  93. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  94. RW.C1=cf(0, 0.5, 0)
  95. RW.Part1=ch["Right Arm"]
  96. RW.Parent=ch.Torso
  97. --
  98. LW.Name="Left Shoulder"
  99. LW.Part0=ch.Torso
  100. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  101. LW.C1=cf(0, 0.5, 0)
  102. LW.Part1=ch["Left Arm"]
  103. LW.Parent=ch.Torso
  104.  
  105. local function weldBetween(a, b)
  106. local weldd = Instance.new("ManualWeld")
  107. weldd.Part0 = a
  108. weldd.Part1 = b
  109. weldd.C0 = CFrame.new()
  110. weldd.C1 = b.CFrame:inverse() * a.CFrame
  111. weldd.Parent = a
  112. return weldd
  113. end
  114.  
  115. it=Instance.new
  116.  
  117. function nooutline(part)
  118. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  119. end
  120.  
  121. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  122. local fp=it("Part")
  123. fp.formFactor=formfactor
  124. fp.Parent=parent
  125. fp.Reflectance=reflectance
  126. fp.Transparency=transparency
  127. fp.CanCollide=false
  128. fp.Locked=true
  129. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  130. fp.Name=name
  131. fp.Size=size
  132. fp.Position=Character.Torso.Position
  133. nooutline(fp)
  134. fp.Material=material
  135. fp:BreakJoints()
  136. return fp
  137. end
  138.  
  139. function prt(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  140. local fp=it("Part")
  141. fp.formFactor=formfactor
  142. fp.Parent=parent
  143. fp.Reflectance=reflectance
  144. fp.Transparency=transparency
  145. fp.CanCollide=false
  146. fp.Locked=true
  147. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  148. fp.Name=name
  149. fp.Size=size
  150. fp.Position=Character.Torso.Position
  151. nooutline(fp)
  152. fp.Material=material
  153. fp:BreakJoints()
  154. return fp
  155. end
  156.  
  157.  
  158. function paart(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  159. local fp=it("Part")
  160. fp.formFactor=formfactor
  161. fp.Parent=parent
  162. fp.Reflectance=reflectance
  163. fp.Transparency=transparency
  164. fp.CanCollide=false
  165. fp.Locked=true
  166. fp.BrickColor=brickcolor
  167. fp.Name=name
  168. fp.Size=size
  169. fp.Position=Torso.Position
  170. NoOutline(fp)
  171. fp.Material="SmoothPlastic"
  172. fp:BreakJoints()
  173. return fp
  174. end
  175.  
  176. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  177. local mesh=it(Mesh)
  178. mesh.Parent=part
  179. if Mesh=="SpecialMesh" then
  180. mesh.MeshType=meshtype
  181. mesh.MeshId=meshid
  182. end
  183. mesh.Offset=offset
  184. mesh.Scale=scale
  185. return mesh
  186. end
  187.  
  188. function weld(parent,part0,part1,c0,c1)
  189. local weld=it("Weld")
  190. weld.Parent=parent
  191. weld.Part0=part0
  192. weld.Part1=part1
  193. weld.C0=c0
  194. weld.C1=c1
  195. return weld
  196. end
  197.  
  198. local Color1=Torso.BrickColor
  199.  
  200. local bodvel=Instance.new("BodyVelocity")
  201. local bg=Instance.new("BodyGyro")
  202.  
  203. function swait(num)
  204. if num==0 or num==nil then
  205. game:service'RunService'.Heartbeat:wait(0)
  206. else
  207. for i=0,num do
  208. game:service'RunService'.Heartbeat:wait(0)
  209. end
  210. end
  211. end
  212.  
  213.  
  214. so = function(id,par,vol,pit)
  215. coroutine.resume(coroutine.create(function()
  216. local sou = Instance.new("Sound",par or workspace)
  217. sou.Volume=vol
  218. sou.Pitch=pit or 1
  219. sou.SoundId=id
  220. swait()
  221. sou:play()
  222. game:GetService("Debris"):AddItem(sou,6)
  223. end))
  224. end
  225.  
  226. function clerp(a,b,t)
  227. local qa = {QuaternionFromCFrame(a)}
  228. local qb = {QuaternionFromCFrame(b)}
  229. local ax, ay, az = a.x, a.y, a.z
  230. local bx, by, bz = b.x, b.y, b.z
  231. local _t = 1-t
  232. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  233. end
  234.  
  235. function QuaternionFromCFrame(cf)
  236. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  237. local trace = m00 + m11 + m22
  238. if trace > 0 then
  239. local s = math.sqrt(1 + trace)
  240. local recip = 0.5/s
  241. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  242. else
  243. local i = 0
  244. if m11 > m00 then
  245. i = 1
  246. end
  247. if m22 > (i == 0 and m00 or m11) then
  248. i = 2
  249. end
  250. if i == 0 then
  251. local s = math.sqrt(m00-m11-m22+1)
  252. local recip = 0.5/s
  253. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  254. elseif i == 1 then
  255. local s = math.sqrt(m11-m22-m00+1)
  256. local recip = 0.5/s
  257. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  258. elseif i == 2 then
  259. local s = math.sqrt(m22-m00-m11+1)
  260. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  261. end
  262. end
  263. end
  264.  
  265. local function CFrameFromTopBack(at, top, back)
  266. local right = top:Cross(back)
  267. return CFrame.new(at.x, at.y, at.z,
  268. right.x, top.x, back.x,
  269. right.y, top.y, back.y,
  270. right.z, top.z, back.z)
  271. end
  272.  
  273. function Triangle(a, b, c)
  274. local edg1 = (c-a):Dot((b-a).unit)
  275. local edg2 = (a-b):Dot((c-b).unit)
  276. local edg3 = (b-c):Dot((a-c).unit)
  277. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  278. a, b, c = a, b, c
  279. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  280. a, b, c = b, c, a
  281. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  282. a, b, c = c, a, b
  283. else
  284. assert(false, "unreachable")
  285. end
  286.  
  287. local len1 = (c-a):Dot((b-a).unit)
  288. local len2 = (b-a).magnitude - len1
  289. local width = (a + (b-a).unit*len1 - c).magnitude
  290.  
  291. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  292.  
  293. local list = {}
  294.  
  295. if len1 > 0.01 then
  296. local w1 = Instance.new('WedgePart', m)
  297. game:GetService("Debris"):AddItem(w1,5)
  298. w1.Material = "SmoothPlastic"
  299. w1.FormFactor = 'Custom'
  300. w1.BrickColor = pathcolor
  301. w1.Transparency = 0
  302. w1.Reflectance = 0
  303. w1.Material = "SmoothPlastic"
  304. w1.CanCollide = false
  305. NoOutline(w1)
  306. local sz = Vector3.new(0.2, width, len1)
  307. w1.Size = sz
  308. local sp = Instance.new("SpecialMesh",w1)
  309. sp.MeshType = "Wedge"
  310. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  311. w1:BreakJoints()
  312. w1.Anchored = true
  313. w1.Parent = workspace
  314. w1.Transparency = 0.7
  315. table.insert(Effects,{w1,"Disappear",.01})
  316. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  317. table.insert(list,w1)
  318. end
  319.  
  320. if len2 > 0.01 then
  321. local w2 = Instance.new('WedgePart', m)
  322. game:GetService("Debris"):AddItem(w2,5)
  323. w2.Material = "SmoothPlastic"
  324. w2.FormFactor = 'Custom'
  325. w2.BrickColor = pathcolor
  326. w2.Transparency = 0
  327. w2.Reflectance = 0
  328. w2.Material = "SmoothPlastic"
  329. w2.CanCollide = false
  330. NoOutline(w2)
  331. local sz = Vector3.new(0.2, width, len2)
  332. w2.Size = sz
  333. local sp = Instance.new("SpecialMesh",w2)
  334. sp.MeshType = "Wedge"
  335. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  336. w2:BreakJoints()
  337. w2.Anchored = true
  338. w2.Parent = workspace
  339. w2.Transparency = 0.7
  340. table.insert(Effects,{w2,"Disappear",.01})
  341. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  342. table.insert(list,w2)
  343. end
  344. return unpack(list)
  345. end
  346.  
  347. function NoOutline(Part)
  348. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  349. end
  350.  
  351.  
  352. if #Effects>0 then
  353. --table.insert(Effects,{prt,"Block1",delay})
  354. for e=1,#Effects do
  355. if Effects[e]~=nil then
  356. --for j=1,#Effects[e] do
  357. local Thing=Effects[e]
  358. if Thing~=nil then
  359. local Part=Thing[1]
  360. local Mode=Thing[2]
  361. local Delay=Thing[3]
  362. local IncX=Thing[4]
  363. local IncY=Thing[5]
  364. local IncZ=Thing[6]
  365. if Thing[1].Transparency<=1 then
  366. if Thing[2]=="Block1" then
  367. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  368. Mesh=Thing[1].Mesh
  369. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  370. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  371. elseif Thing[2]=="Cylinder" then
  372. Mesh=Thing[1].Mesh
  373. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  374. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  375. elseif Thing[2]=="Blood" then
  376. Mesh=Thing[1].Mesh
  377. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  378. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  379. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  380. elseif Thing[2]=="Elec" then
  381. Mesh=Thing[1].Mesh
  382. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  383. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  384. elseif Thing[2]=="Disappear" then
  385. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  386. end
  387. else
  388. Part.Parent=nil
  389. table.remove(Effects,e)
  390. end
  391. end
  392. --end
  393. end
  394. end
  395. end
  396.  
  397. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  398. local xs, ys, zs = x + x, y + y, z + z
  399. local wx, wy, wz = w*xs, w*ys, w*zs
  400. local xx = x*xs
  401. local xy = x*ys
  402. local xz = x*zs
  403. local yy = y*ys
  404. local yz = y*zs
  405. local zz = z*zs
  406. 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))
  407. end
  408.  
  409. function QuaternionSlerp(a, b, t)
  410. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  411. local startInterp, finishInterp;
  412. if cosTheta >= 0.0001 then
  413. if (1 - cosTheta) > 0.0001 then
  414. local theta = math.acos(cosTheta)
  415. local invSinTheta = 1/math.sin(theta)
  416. startInterp = math.sin((1-t)*theta)*invSinTheta
  417. finishInterp = math.sin(t*theta)*invSinTheta
  418. else
  419. startInterp = 1-t
  420. finishInterp = t
  421. end
  422. else
  423. if (1+cosTheta) > 0.0001 then
  424. local theta = math.acos(-cosTheta)
  425. local invSinTheta = 1/math.sin(theta)
  426. startInterp = math.sin((t-1)*theta)*invSinTheta
  427. finishInterp = math.sin(t*theta)*invSinTheta
  428. else
  429. startInterp = t-1
  430. finishInterp = t
  431. end
  432. end
  433. 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
  434. end
  435.  
  436. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  437. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  438. end
  439.  
  440. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  441. local prt=paart(3,workspace,0,0,brickcolor,"Effect",vt(3,3,3))
  442. prt.Anchored=true
  443. prt.CFrame=cframe
  444. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  445. --http://www.roblox.com/asset/?id=4770560
  446. game:GetService("Debris"):AddItem(prt,2)
  447. CF=prt.CFrame
  448. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  449. for i=0,1,0.2 do
  450. wait()
  451. Part.CFrame=CF*cf(0,0,-0.4)
  452. end
  453. for i=0,1,delay do
  454. wait()
  455. --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)
  456. Mesh.Scale=Mesh.Scale
  457. end
  458. for i=0,1,0.1 do
  459. wait()
  460. Part.Transparency=i
  461. end
  462. Part.Parent=nil
  463. return Part
  464. end),prt,msh,CF)
  465. return prt
  466. end
  467.  
  468. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  469. local prt=paart(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  470. prt.Anchored=true
  471. prt.CFrame=cframe
  472. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  473. game:GetService("Debris"):AddItem(prt,5)
  474. coroutine.resume(coroutine.create(function(Part,Mesh)
  475. for i=0,1,delay do
  476. wait()
  477. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  478. Part.Transparency=i
  479. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  480. end
  481. Part.Parent=nil
  482. return Part
  483. end),prt,msh)
  484. return prt
  485. end
  486.  
  487. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  488. local prt=paart(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  489. prt.Anchored=false
  490. prt.CFrame=cframe
  491. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  492. local wld=weld(prt,prt,Parent,cframe)
  493. game:GetService("Debris"):AddItem(prt,5)
  494. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  495. for i=0,1,delay do
  496. wait()
  497. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  498. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  499. Part.Transparency=i
  500. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  501. end
  502. Part.Parent=nil
  503. end),prt,msh,wld)
  504. end
  505.  
  506. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  507. local prt=paart(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  508. prt.Anchored=false
  509. prt.CFrame=cframe
  510. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  511. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  512. game:GetService("Debris"):AddItem(prt,5)
  513. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  514. for i=0,1,delay do
  515. wait()
  516. Weld.C0=euler(i*20,0,0)
  517. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  518. Part.Transparency=i
  519. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  520. end
  521. Part.Parent=nil
  522. end),prt,msh,wld)
  523. end
  524.  
  525. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  526. local prt=paart(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  527. prt.Anchored=true
  528. prt.CFrame=cframe
  529. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  530. game:GetService("Debris"):AddItem(prt,2)
  531. coroutine.resume(coroutine.create(function(Part,Mesh)
  532. for i=0,1,delay do
  533. wait()
  534. Part.CFrame=Part.CFrame
  535. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  536. local prt2=paart(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  537. prt2.Anchored=true
  538. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  539. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  540. game:GetService("Debris"):AddItem(prt2,2)
  541. coroutine.resume(coroutine.create(function(Part,Mesh)
  542. for i=0,1,0.1 do
  543. wait()
  544. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  545. end
  546. Part.Parent=nil
  547. end),prt2,msh2)
  548. end
  549. for i=0,1,delay*2 do
  550. wait()
  551. Part.CFrame=Part.CFrame
  552. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  553. end
  554. Part.Parent=nil
  555. end),prt,msh)
  556. end
  557.  
  558. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  559. local prt=paart(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  560. prt.Anchored=true
  561. prt.CFrame=cframe
  562. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  563. game:GetService("Debris"):AddItem(prt,2)
  564. coroutine.resume(coroutine.create(function(Part,Mesh)
  565. for i=0,1,delay do
  566. wait()
  567. Part.CFrame=Part.CFrame
  568. Part.Transparency=i
  569. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  570. end
  571. Part.Parent=nil
  572. end),prt,msh)
  573. end
  574.  
  575. function MagicRing(brickcolor,cframe,x1,y1,z1,x2,y2,z2,x3,y3,z3)
  576. local prt=paart(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  577. prt.Anchored=true
  578. prt.CFrame=cframe*euler(x2,y2,z2)
  579. --"http://www.roblox.com/asset/?id=168892465"
  580. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  581. game:GetService("Debris"):AddItem(prt,2)
  582. coroutine.resume(coroutine.create(function(Part,Mesh)
  583. for i=0,1,0.03 do
  584. wait()
  585. Part.CFrame=Part.CFrame
  586. Part.Transparency=i
  587. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  588. end
  589. Part.Parent=nil
  590. end),prt,msh)
  591. end
  592.  
  593. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  594. local prt=paart(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  595. prt.Anchored=true
  596. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  597. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  598. game:GetService("Debris"):AddItem(prt,2)
  599. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  600. CF=Part.CFrame
  601. Numbb=0
  602. randnumb=math.random()/10
  603. rand1=math.random()/10
  604. for i=0,1,rand1 do
  605. wait()
  606. CF=CF*cf(0,math.random()/2,0)
  607. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  608. Part.CFrame=CF*euler(Numbb,0,0)
  609. Part.Transparency=i
  610. Numbb=Numbb+randnumb
  611. end
  612. Part.Parent=nil
  613. end),prt,CF,Numbb,randnumb)
  614. end
  615.  
  616. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  617. local prt=paart(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  618. prt.Anchored=true
  619. prt.CFrame=cframe
  620. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  621. game:GetService("Debris"):AddItem(prt,5)
  622. coroutine.resume(coroutine.create(function(Part,Mesh)
  623. for i=0,1,delay do
  624. wait()
  625. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  626. Part.Transparency=i
  627. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  628. end
  629. Part.Parent=nil
  630. end),prt,msh)
  631. end
  632.  
  633. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  634. local prt=paart(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  635. prt.Anchored=true
  636. prt.CFrame=cframe
  637. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  638. game:GetService("Debris"):AddItem(prt,2)
  639. coroutine.resume(coroutine.create(function(Part,Mesh)
  640. for i=0,1,delay do
  641. wait()
  642. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  643. Part.Transparency=i
  644. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  645. end
  646. Part.Parent=nil
  647. end),prt,msh)
  648. end
  649.  
  650. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  651. local prt=paart(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  652. prt.Anchored=true
  653. prt.CFrame=cframe*cf(x,y,z)
  654. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  655. game:GetService("Debris"):AddItem(prt,5)
  656. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  657. local num=math.random()
  658. local num2=math.random(-3,2)+math.random()
  659. local numm=0
  660. for i=0,1,delay*2 do
  661. swait()
  662. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  663. Part.Transparency=i
  664. numm=numm+0.01
  665. end
  666. Part.Parent=nil
  667. Mesh.Parent=nil
  668. end),prt,msh,x,y,z)
  669. end
  670.  
  671. function dmgstart(dmg,what)
  672. hitcon = what.Touched:connect(function(hit)
  673. local hum = hit.Parent:FindFirstChild("Humanoid")
  674. if hum and not hum:IsDescendantOf(Character) then
  675. hum:TakeDamage(dmg)
  676. end
  677. end)
  678. end
  679.  
  680. function dmgstop()
  681. hitcon:disconnect()
  682. end
  683.  
  684. function Cloak()
  685. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  686. Face.Parent=nil
  687. cloaked=true
  688. for _,v in pairs(Torso.Parent:children()) do
  689. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  690. coroutine.resume(coroutine.create(function()
  691. for i=0,1,0.2 do
  692. wait()
  693. v.Transparency=i
  694. end
  695. v.Transparency=1
  696. end))
  697. end
  698. if v.className=="Hat" then
  699. hatp=v.Handle
  700. coroutine.resume(coroutine.create(function(derp)
  701. for i=0,1,0.2 do
  702. wait()
  703. derp.Transparency=i
  704. end
  705. derp.Transparency=1
  706. end),hatp)
  707. end
  708. end
  709. for _,v in pairs(m:children()) do
  710. if v.className=="Part" then
  711. coroutine.resume(coroutine.create(function()
  712. for i=0,1,0.2 do
  713. wait()
  714. v.Transparency=i
  715. end
  716. v.Transparency=1
  717. end))
  718. end
  719. end
  720. end
  721.  
  722. function UnCloak()
  723. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  724. Face.Parent=Head
  725. cloaked=false
  726. for _,v in pairs(Torso.Parent:children()) do
  727. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  728. coroutine.resume(coroutine.create(function()
  729. for i=0,1,0.1 do
  730. wait()
  731. v.Transparency=v.Transparency-0.1
  732. end
  733. v.Transparency=0
  734. end))
  735. end
  736. if v.className=="Hat" then
  737. hatp=v.Handle
  738. coroutine.resume(coroutine.create(function(derp)
  739. for i=0,1,0.1 do
  740. wait()
  741. derp.Transparency=derp.Transparency-0.1
  742. end
  743. derp.Transparency=0
  744. end),hatp)
  745. end
  746. end
  747. for _,v in pairs(m:children()) do
  748. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  749. coroutine.resume(coroutine.create(function()
  750. for i=0,1,0.1 do
  751. wait()
  752. v.Transparency=v.Transparency-0.1
  753. end
  754. v.Transparency=0
  755. end))
  756. v.Transparency=0
  757. end
  758. end
  759. end
  760. handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Handle",Vector3.new(1.4000001, 0.200000003, 0.200000003))
  761. handleweld=weld(m,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0154070854, 0.995601535, 0.000632286072, -0.00125485484, 0.00257133436, -0.999995947, 6.88316641e-006, 0.999996662, 0.00257132808, 0.999999285, -3.6564943e-006, -0.00125486846))
  762. HitboxA=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","HitboxA",Vector3.new(1.79999995, 2.4000001, 0.200000003))
  763. HitboxAweld=weld(m,handle,HitboxA,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00170946121, -0.0965684652, -0.601927757, 0.999999881, -0.000561807537, 0.000275471248, 0.000561808934, 0.99999994, -4.76328069e-006, -0.000275468454, 4.91804258e-006, 1))
  764. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0.5,"Toothpaste","Part",Vector3.new(0.200000003, 0.800000072, 0.50999999))
  765. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.602468491, -0.724547029, 0.242210865, 0.00042680779, -7.82173265e-006, -0.99999994, -0.000832682126, -0.999999821, 7.46633577e-006, -0.999999583, 0.000832678634, -0.000426814135))
  766. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.120000005, 1, 1))
  767. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0.5,"Toothpaste","Part",Vector3.new(0.200000003, 1.60000002, 0.600000024))
  768. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.60279274, 0.495191097, 0.799488068, -0.00070699479, 4.96798862e-007, 0.999999881, -0.00145373261, -0.999999046, -5.30982788e-007, 0.999998748, -0.00145373226, 0.000706994964))
  769. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.120000005, 1, 1))
  770. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0.5,"Toothpaste","Part",Vector3.new(0.200000003, 0.800000072, 0.49999997))
  771. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.602442741, -0.724509835, 0.25446558, -0.000412500987, 7.36253105e-006, 1, -0.000830772333, -0.999999821, 7.01983481e-006, 0.999999642, -0.000830769422, 0.000412507041))
  772. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.120000005, 1, 1))
  773. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0.5,"Toothpaste","Part",Vector3.new(0.200000003, 0.600000024, 0.600000024))
  774. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.601718903, -1.59704423, 0.801092148, -0.000494460051, 6.93902348e-006, 0.99999994, 0.00101020024, 0.999999523, -6.43951716e-006, -0.999999404, 0.00101019721, -0.000494466804))
  775. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.120000005, 1, 1))
  776. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0.5,"Toothpaste","Part",Vector3.new(0.200000003, 0.600000024, 0.600000024))
  777. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.60227108, -1.59592354, 0.798442364, 0.000617224199, -4.80521385e-006, -1, 0.00125885615, 0.999999344, -4.02821388e-006, 0.999999046, -0.00125885336, 0.000617229904))
  778. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.120000005, 1, 1))
  779. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0.5,"Toothpaste","Part",Vector3.new(1, 0.600000024, 0.200000003))
  780. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00190782547, 0.0232970715, -0.601828575, 0.999999642, 0.000794240739, -0.000389426365, -0.000794241205, 0.999999821, -3.51965855e-006, 0.000389423221, 3.82895541e-006, 1))
  781. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.180000007))
  782. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0.5,"Toothpaste","Part",Vector3.new(0.200000003, 1.60000002, 0.600000024))
  783. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.601143837, 0.498566628, 0.79928875, 0.000771298422, 6.43939802e-006, -0.999999762, -0.00161833921, -0.999998748, -7.68761493e-006, -0.99999845, 0.00161834504, -0.000771286897))
  784. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.120000005, 1, 1))
  785. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1, 1.60000002, 0.200000003))
  786. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00112390518, -1.09656513, -0.601929665, 0.999999881, -0.000561807537, 0.000275471248, 0.000561808934, 0.99999994, -4.76328069e-006, -0.000275468454, 4.91804258e-006, 1))
  787. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(1, 0.200000003, 0.200000003))
  788. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000888347626, -1.19647253, -0.611891747, 0.999999583, -0.000899368082, 0.000440986711, 0.000899370061, 0.999999762, -4.0586242e-006, -0.000440982811, 4.4552321e-006, 0.99999994))
  789. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 1.60000002, 0.600000024))
  790. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.600500584, -1.09640467, -0.201779366, 1.00000012, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012))
  791. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1, 0.200000003, 0.200000003))
  792. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000306129456, -0.377037048, -0.601670265, 1, 0.000316517428, -0.000155193033, -0.000316518126, 1.00000012, -4.67931477e-006, 0.000155191519, 4.72843612e-006, 1.00000012))
  793. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.180000007))
  794. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  795. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.600498676, -0.196920753, -0.00151443481, 1.00000012, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012))
  796. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 1.60000002, 0.600000024))
  797. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.599460602, -1.09671295, -0.201775551, 1.00000012, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012))
  798. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.200000003, 0.600000024, 0.200000003))
  799. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.603309631, 0.79431057, 0.1997962, 0.000441341603, 1.01966566e-006, -1.00000012, -0.00148041546, -0.999999166, -1.67311498e-006, -0.999998808, 0.00148036098, -0.000441342418))
  800. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  801. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.200000003, 0.800000072, 0.200000003))
  802. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.602658272, 0.895184875, 0.599769115, -0.000441067736, -1.06552829e-006, 0.999999821, -0.0014800647, -0.999999106, -1.78397886e-006, 0.999998987, -0.00148006517, 0.000441068551))
  803. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  804. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.200000003, 0.800000072, 0.200000003))
  805. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.603645325, 0.895176172, 0.598275185, 0.000440955686, -1.06465241e-005, -0.999999523, -0.00366260204, -0.999993503, 9.09692517e-006, -0.999993205, 0.00366259739, -0.000441015174))
  806. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  807. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  808. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.599495411, -0.200006366, -8.58306885e-006, 1.00000012, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012))
  809. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 1, 0.400000036))
  810. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.602901459, 0.794560313, 0.699896336, 0.000277693267, -4.80270955e-006, -0.999999642, -0.000562646659, -0.999999702, 4.62737444e-006, -0.999999821, 0.000562646426, -0.000277680578))
  811. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  812. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.600000024, 0.400000036))
  813. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.601531029, -1.59454489, 0.704494476, 0.000275316415, -3.86594729e-006, -0.999999821, 0.00458068866, 0.999989569, -2.60450747e-006, 0.99998945, -0.0045806882, 0.000275375205))
  814. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  815. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 1, 0.400000036))
  816. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.601531982, 0.794553995, 0.703288555, -0.00027771492, 3.93844584e-006, 0.999999464, -0.00458001066, -0.999989331, 2.68568306e-006, 0.999989212, -0.00458000973, 0.000277744257))
  817. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  818. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.200000003, 0.400000036, 0.200000003))
  819. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.602655411, -1.49517691, 0.599338531, 0.000441020064, 1.03086927e-006, -1.00000012, 0.00148038764, 0.999999344, 1.68374265e-006, 0.999998987, -0.00148038741, 0.000441020762))
  820. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  821. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.600000024, 0.400000036))
  822. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.60290432, -1.59455109, 0.701107025, -0.000275433296, 4.86323188e-006, 0.99999994, 0.000561969588, 0.99999994, -4.70864506e-006, -0.999999821, 0.000561968423, -0.000275420258))
  823. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  824. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.200000003, 0.600000083, 0.200000003))
  825. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.602983475, 0.794746637, 0.200195313, -0.000441403419, -1.05526942e-006, 0.99999994, -0.00148058624, -0.999999166, -1.70904195e-006, 0.99999851, -0.00148053118, 0.000441275013))
  826. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  827. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.200000003, 0.400000036, 0.200000003))
  828. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.603649139, -1.49516821, 0.597844124, -0.000440896314, 1.06115904e-005, 0.999999702, 0.00366227981, 0.999993742, -8.99657334e-006, -0.999993205, 0.00366227515, -0.000441015174))
  829. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  830. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.200000003, 0.600000024, 0.200000003))
  831. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.602816582, -1.59496272, 0.399340153, 0.000441020064, 1.03086927e-006, -1.00000012, 0.00148038764, 0.999999344, 1.68374265e-006, 0.999998987, -0.00148038741, 0.000441020762))
  832. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  833. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.200000003, 0.600000024, 0.200000003))
  834. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.603467941, -1.59409034, 0.400663376, -0.000440896198, -9.23162133e-007, 0.999999762, 0.00148090243, 0.999999344, 1.57590046e-006, -0.999998569, 0.00148090185, -0.000440932345))
  835. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  836.  
  837.  
  838. handle2=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","handle2",Vector3.new(1.4000001, 0.200000003, 0.200000003))
  839. handle2weld=weld(m,Character["Left Arm"],handle2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00919055939, 0.995664835, 0.0114703178, 0.0012549758, 0.00257122959, 0.999995947, -6.8526133e-006, 0.999996662, -0.00257122354, -0.999999046, -3.62611718e-006, 0.00125494599))
  840. HitboxB=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","HitboxB",Vector3.new(1.79999995, 2.4000001, 0.200000003))
  841. HitboxBweld=weld(m,handle2,HitboxB,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00170660019, -0.0965681076, -0.601927757, 0.999999642, -0.000561807072, 0.00027549779, 0.000561809167, 0.99999994, -4.76324203e-006, -0.00027543481, 4.91759874e-006, 0.999999702))
  842. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0.5,"Toothpaste","Part",Vector3.new(0.200000003, 0.800000072, 0.50999999))
  843. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.602469921, -0.724547267, 0.242210865, 0.000426779152, -7.82130155e-006, -0.999999642, -0.000832682359, -0.999999821, 7.46649903e-006, -0.999999344, 0.000832678168, -0.000426910236))
  844. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.120000005, 1, 1))
  845. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0.5,"Toothpaste","Part",Vector3.new(0.200000003, 1.60000002, 0.600000024))
  846. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.60279417, 0.495191097, 0.799487114, -0.000707134255, 4.96800908e-007, 0.999999523, -0.00145373296, -0.999999046, -5.30899797e-007, 0.999998569, -0.00145373214, 0.000706980878))
  847. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.120000005, 1, 1))
  848. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0.5,"Toothpaste","Part",Vector3.new(0.200000003, 0.800000072, 0.49999997))
  849. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.602442265, -0.724509716, 0.254464626, -0.000412504945, 7.36218499e-006, 0.999999702, -0.000830772566, -0.999999821, 7.01985255e-006, 0.999999464, -0.00083076919, 0.000412620022))
  850. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.120000005, 1, 1))
  851. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0.5,"Toothpaste","Part",Vector3.new(0.200000003, 0.600000024, 0.600000024))
  852. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.601716995, -1.59704447, 0.801092625, -0.000494611624, 6.93905622e-006, 0.999999583, 0.00101020071, 0.999999523, -6.43967132e-006, -0.999999344, 0.00101019721, -0.000494443404))
  853. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.120000005, 1, 1))
  854. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0.5,"Toothpaste","Part",Vector3.new(0.200000003, 0.600000024, 0.600000024))
  855. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.602270603, -1.59592342, 0.79843998, 0.000617268961, -4.80497238e-006, -0.999999583, 0.00125885627, 0.999999344, -4.028072e-006, 0.999998927, -0.00125885347, 0.000617334503))
  856. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.120000005, 1, 1))
  857. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0.5,"Toothpaste","Part",Vector3.new(1, 0.600000024, 0.200000003))
  858. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0019068718, 0.0232973099, -0.601829529, 0.999999523, 0.000794241205, -0.000389327412, -0.000794240274, 0.999999821, -3.51985841e-006, 0.000389305991, 3.82890084e-006, 0.999999762))
  859. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.180000007))
  860. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0.5,"Toothpaste","Part",Vector3.new(0.200000003, 1.60000002, 0.600000024))
  861. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.601144314, 0.498567104, 0.799289227, 0.000771435793, 6.4394012e-006, -0.999999285, -0.00161833968, -0.999998748, -7.68757309e-006, -0.999998271, 0.0016183448, -0.000771280145))
  862. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.120000005, 1, 1))
  863. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1, 1.60000002, 0.200000003))
  864. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00112533569, -1.09656477, -0.601927757, 0.999999642, -0.000561807072, 0.00027549779, 0.000561809167, 0.99999994, -4.76324203e-006, -0.00027543481, 4.91759874e-006, 0.999999702))
  865. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(1, 0.200000003, 0.200000003))
  866. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000889778137, -1.19647264, -0.611890316, 0.999999464, -0.000899367849, 0.000441022159, 0.00089937041, 0.999999762, -4.05865558e-006, -0.00044113741, 4.45527257e-006, 0.999999464))
  867. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 1.60000002, 0.600000024))
  868. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.600500584, -1.09640455, -0.201779842, 1.00000012, -2.32830644e-010, -4.30736691e-008, -2.32830644e-010, 1.00000012, -2.45790943e-010, -4.30736691e-008, -2.45790943e-010, 0.999999642))
  869. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1, 0.200000003, 0.200000003))
  870. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000306606293, -0.377037287, -0.601670265, 0.999999762, 0.00031651766, -0.000155181624, -0.000316517428, 1.00000012, -4.67921154e-006, 0.000155075802, 4.72837655e-006, 0.999999821))
  871. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.180000007))
  872. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  873. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.600499153, -0.196920633, -0.00151586533, 1.00000012, -2.32830644e-010, -4.30736691e-008, -2.32830644e-010, 1.00000012, -2.45790943e-010, -4.30736691e-008, -2.45790943e-010, 0.999999642))
  874. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 1.60000002, 0.600000024))
  875. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.599459648, -1.09671283, -0.201775074, 1.00000012, -2.32830644e-010, -4.30736691e-008, -2.32830644e-010, 1.00000012, -2.45790943e-010, -4.30736691e-008, -2.45790943e-010, 0.999999642))
  876. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.200000003, 0.600000024, 0.200000003))
  877. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.603309631, 0.79431057, 0.19979763, 0.000441345328, 1.02001377e-006, -0.999999583, -0.0014804157, -0.999999166, -1.67312442e-006, -0.999998629, 0.00148036075, -0.000441501907))
  878. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  879. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.200000003, 0.800000072, 0.200000003))
  880. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.602658272, 0.895184755, 0.599769115, -0.00044106209, -1.06590051e-006, 0.999999404, -0.00148006494, -0.999999106, -1.78377411e-006, 0.999998808, -0.00148006494, 0.000441099808))
  881. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  882. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.200000003, 0.800000072, 0.200000003))
  883. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.603645325, 0.895176172, 0.598274708, 0.000441031589, -1.06463622e-005, -0.999999106, -0.00366260204, -0.999993503, 9.0968615e-006, -0.999993086, 0.00366259739, -0.000441047887))
  884. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  885. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  886. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.59949255, -0.200006008, -8.10623169e-006, 1.00000012, -2.32830644e-010, -4.30736691e-008, -2.32830644e-010, 1.00000012, -2.45790943e-010, -4.30736691e-008, -2.45790943e-010, 0.999999642))
  887. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 1, 0.400000036))
  888. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.602900505, 0.794560432, 0.699896812, 0.000277848565, -4.8027523e-006, -0.999999285, -0.000562647125, -0.999999702, 4.62732169e-006, -0.999999464, 0.000562645728, -0.000277688028))
  889. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  890. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.600000024, 0.400000036))
  891. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.601531029, -1.59454489, 0.704492569, 0.000275437254, -3.86590182e-006, -0.999999583, 0.00458068866, 0.999989569, -2.6046348e-006, 0.999989331, -0.00458068773, 0.000275452854))
  892. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  893. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 1, 0.400000036))
  894. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.601531506, 0.794553995, 0.703287125, -0.000277835759, 3.93840037e-006, 0.999999225, -0.00458001066, -0.999989331, 2.68569465e-006, 0.999988854, -0.0045800088, 0.000277791754))
  895. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  896. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.200000003, 0.400000036, 0.200000003))
  897. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.602654457, -1.49517679, 0.599338055, 0.000441032287, 1.03119532e-006, -0.999999523, 0.00148038787, 0.999999344, 1.68376937e-006, 0.999998808, -0.00148038717, 0.000441099808))
  898. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  899. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.600000024, 0.400000036))
  900. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.602901459, -1.59455109, 0.701107502, -0.000275434693, 4.862879e-006, 0.999999583, 0.00056196982, 0.99999994, -4.70873238e-006, -0.999999642, 0.000561968191, -0.00027549779))
  901. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  902. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.200000003, 0.600000083, 0.200000003))
  903. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.602984428, 0.794746876, 0.200193405, -0.000441434851, -1.05554568e-006, 0.999999642, -0.00148058624, -0.999999166, -1.70890337e-006, 0.999998391, -0.00148053118, 0.000441248238))
  904. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  905. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.200000003, 0.400000036, 0.200000003))
  906. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.603648663, -1.49516833, 0.597844124, -0.00044106174, 1.06116586e-005, 0.999999285, 0.00366228004, 0.999993742, -8.99647875e-006, -0.999993086, 0.00366227515, -0.000441047887))
  907. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  908. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.200000003, 0.600000024, 0.200000003))
  909. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.602815151, -1.59496284, 0.399338245, 0.000441032287, 1.03119532e-006, -0.999999523, 0.00148038787, 0.999999344, 1.68376937e-006, 0.999998808, -0.00148038717, 0.000441099808))
  910. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  911. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.200000003, 0.600000024, 0.200000003))
  912. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.603466988, -1.59408998, 0.40066433, -0.000441091426, -9.23018206e-007, 0.999999285, 0.00148090266, 0.999999344, 1.57579962e-006, -0.99999845, 0.00148090185, -0.000441129145))
  913. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  914.  
  915. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  916. if hit.Parent==nil then
  917. return
  918. end
  919. h=hit.Parent:FindFirstChild("Humanoid")
  920. for _,v in pairs(hit.Parent:children()) do
  921. if v:IsA("Humanoid") then
  922. h=v
  923. end
  924. end
  925. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  926. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  927. end
  928. if hit.Parent.className=="Hat" then
  929. hit=hit.Parent.Parent:findFirstChild("Head")
  930. end
  931. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  932. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  933. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  934. return
  935. end]]
  936. -- hs(hit,1.2)
  937. c=Instance.new("ObjectValue")
  938. c.Name="creator"
  939. c.Value=game:service("Players").LocalPlayer
  940. c.Parent=h
  941. game:GetService("Debris"):AddItem(c,.5)
  942. Damage=math.random(minim,maxim)
  943. -- h:TakeDamage(Damage)
  944. blocked=false
  945. block=hit.Parent:findFirstChild("Block")
  946. if block~=nil then
  947. print(block.className)
  948. if block.className=="NumberValue" then
  949. if block.Value>0 then
  950. blocked=true
  951. if decreaseblock==nil then
  952. block.Value=block.Value-1
  953. end
  954. end
  955. end
  956. if block.className=="IntValue" then
  957. if block.Value>0 then
  958. blocked=true
  959. if decreaseblock~=nil then
  960. block.Value=block.Value-1
  961. end
  962. end
  963. end
  964. end
  965. if blocked==false then
  966. -- h:TakeDamage(Damage)
  967. h.Health=h.Health-Damage
  968. showDamage(hit.Parent,Damage,.5,BrickColor.new("Toothpaste"))
  969. else
  970. h.Health=h.Health-(Damage/2)
  971. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  972. end
  973. if Type=="Knockdown" then
  974. hum=hit.Parent.Humanoid
  975. hum.PlatformStand=true
  976. coroutine.resume(coroutine.create(function(HHumanoid)
  977. swait(1)
  978. HHumanoid.PlatformStand=false
  979. end),hum)
  980. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  981. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  982. local bodvol=Instance.new("BodyVelocity")
  983. bodvol.velocity=angle*knockback
  984. bodvol.P=5000
  985. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  986. bodvol.Parent=hit
  987. rl=Instance.new("BodyAngularVelocity")
  988. rl.P=3000
  989. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  990. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  991. rl.Parent=hit
  992. game:GetService("Debris"):AddItem(bodvol,.5)
  993. game:GetService("Debris"):AddItem(rl,.5)
  994. elseif Type=="Normal" then
  995. vp=Instance.new("BodyVelocity")
  996. vp.P=500
  997. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  998. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  999. if KnockbackType==1 then
  1000. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  1001. elseif KnockbackType==2 then
  1002. vp.velocity=Property.CFrame.lookVector*knockback
  1003. end
  1004. if knockback>0 then
  1005. vp.Parent=hit.Parent.Torso
  1006. end
  1007. game:GetService("Debris"):AddItem(vp,.5)
  1008. elseif Type=="Up" then
  1009. local bodyVelocity=Instance.new("BodyVelocity")
  1010. bodyVelocity.velocity=vt(0,60,0)
  1011. bodyVelocity.P=5000
  1012. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1013. bodyVelocity.Parent=hit
  1014. game:GetService("Debris"):AddItem(bodyVelocity,1)
  1015. rl=Instance.new("BodyAngularVelocity")
  1016. rl.P=3000
  1017. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1018. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  1019. rl.Parent=hit
  1020. game:GetService("Debris"):AddItem(rl,.5)
  1021. elseif Type=="Snare" then
  1022. bp=Instance.new("BodyPosition")
  1023. bp.P=2000
  1024. bp.D=100
  1025. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1026. bp.position=hit.Parent.Torso.Position
  1027. bp.Parent=hit.Parent.Torso
  1028. game:GetService("Debris"):AddItem(bp,1)
  1029. elseif Type=="Target" then
  1030. if Targetting==false then
  1031. ZTarget=hit.Parent.Torso
  1032. coroutine.resume(coroutine.create(function(Part)
  1033. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  1034. swait(5)
  1035. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  1036. end),ZTarget)
  1037. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  1038. targetgui=Instance.new("BillboardGui")
  1039. targetgui.Parent=ZTarget
  1040. targetgui.Size=UDim2.new(10,100,10,100)
  1041. targ=Instance.new("ImageLabel")
  1042. targ.Parent=targetgui
  1043. targ.BackgroundTransparency=1
  1044. targ.Image="rbxassetid://4834067"
  1045. targ.Size=UDim2.new(1,0,1,0)
  1046. cam.CameraType="Scriptable"
  1047. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1048. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  1049. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1050. Targetting=true
  1051. RocketTarget=ZTarget
  1052. for i=1,Property do
  1053. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  1054. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  1055. swait()
  1056. end
  1057. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  1058. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1059. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  1060. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  1061. end
  1062. Targetting=false
  1063. RocketTarget=nil
  1064. targetgui.Parent=nil
  1065. cam.CameraType="Custom"
  1066. end
  1067. end
  1068. debounce=Instance.new("BoolValue")
  1069. debounce.Name="DebounceHit"
  1070. debounce.Parent=hit.Parent
  1071. debounce.Value=true
  1072. game:GetService("Debris"):AddItem(debounce,Delay)
  1073. c=Instance.new("ObjectValue")
  1074. c.Name="creator"
  1075. c.Value=Player
  1076. c.Parent=h
  1077. game:GetService("Debris"):AddItem(c,.5)
  1078. CRIT=false
  1079. hitDeb=true
  1080. AttackPos=6
  1081. end
  1082. end
  1083.  
  1084. showDamage=function(Char,Dealt,du,Color)
  1085. m=Instance.new("Model")
  1086. m.Name=tostring(Dealt)
  1087. h=Instance.new("Humanoid")
  1088. h.Health=0
  1089. h.MaxHealth=0
  1090. h.Parent=m
  1091. c=Instance.new("Part")
  1092. c.Transparency=0
  1093. c.BrickColor=Color
  1094. c.Name="Head"
  1095. c.TopSurface=0
  1096. c.BottomSurface=0
  1097. c.formFactor="Plate"
  1098. c.Size=Vector3.new(1,.4,1)
  1099. ms=Instance.new("CylinderMesh")
  1100. ms.Scale=Vector3.new(.8,.8,.8)
  1101. if CRIT==true then
  1102. ms.Scale=Vector3.new(1,1.25,1)
  1103. end
  1104. ms.Parent=c
  1105. c.Reflectance=0
  1106. Instance.new("BodyGyro").Parent=c
  1107. c.Parent=m
  1108. if Char:findFirstChild("Head")~=nil then
  1109. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1110. elseif Char.Parent:findFirstChild("Head")~=nil then
  1111. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1112. end
  1113. f=Instance.new("BodyPosition")
  1114. f.P=2000
  1115. f.D=100
  1116. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1117. f.position=c.Position+Vector3.new(0,3,0)
  1118. f.Parent=c
  1119. game:GetService("Debris"):AddItem(m,.5+du)
  1120. c.CanCollide=false
  1121. m.Parent=workspace
  1122. c.CanCollide=false
  1123. end
  1124.  
  1125. function PlaySound(id, pitch, parent, volume)
  1126. if volume == nil then volume=tonumber(1) end
  1127. epicsound = Instance.new("Sound")
  1128. epicsound.Name = "Epicosound"
  1129. epicsound.SoundId = "rbxassetid://"..id
  1130. epicsound.Volume = volume
  1131. epicsound.Pitch = pitch
  1132. epicsound.Looped = false
  1133. epicsound.Parent = parent
  1134. sbu = epicsound:Clone()
  1135. sbu.Parent = Storage
  1136. wait()
  1137. epicsound:Play()
  1138. game:service'Debris':AddItem(epicsound, 8)
  1139. end
  1140.  
  1141. Slashes = {200633108, 200633148, 200633196,200633281}
  1142.  
  1143. Slash = function(part)
  1144. local shot=math.random(1, #Slashes)
  1145. PlaySound(Slashes[shot], 1, part)
  1146. end
  1147.  
  1148. local Shockwave = function()
  1149. local Wave = Instance.new("Part", m)
  1150. Wave.Name = "Shockwave"
  1151. Wave.BrickColor = BrickColor.new("Black")
  1152. Wave.Size = Vector3.new(1, 1, 1)
  1153. Wave.Shape = "Ball"
  1154. Wave.CanCollide = false
  1155. Wave.Anchored = true
  1156. Wave.TopSurface = 0
  1157. Wave.BottomSurface = 0
  1158. Wave.Touched:connect(function(hit)
  1159. if hit.Parent:findFirstChild("Humanoid") and hit.Parent:findFirstChild("Torso") then
  1160. if hit.Parent.Name ~= Character.Name and hit.Parent.Parent~=mon then
  1161. hit.Parent:findFirstChild("Humanoid").Health = hit.Parent:findFirstChild("Humanoid").Health - 5
  1162. hit.Parent:findFirstChild("Torso").Velocity = hit.Parent:findFirstChild("Torso").CFrame.lookVector * -120
  1163. end
  1164. end
  1165. end)
  1166. Instance.new("SpecialMesh", Wave).MeshType = "Sphere"
  1167. Delay(0, function()
  1168. for i = 1, 38, 1 do
  1169. Wave.Size = Vector3.new(1 + i, 1 + i, 1 + i)
  1170. Wave.CFrame = Torso.CFrame
  1171. local t = i / 38
  1172. Wave.Transparency = t
  1173. wait()
  1174. end
  1175. Wave:Destroy()
  1176. end)
  1177. Delay(0, function()
  1178. while wait() do
  1179. if Wave ~= nil then
  1180. Wave.CFrame = Wave.CFrame
  1181. else
  1182. break
  1183. end
  1184. end
  1185. end)
  1186. end
  1187.  
  1188. hits={144650218,135436482,183345423,200561185}
  1189.  
  1190. function atktype(s,e)
  1191. coroutine.resume(coroutine.create(function()
  1192. attacktype = e
  1193. wait(.5)
  1194. attacktype = s
  1195. end))
  1196. end
  1197.  
  1198. mouse.Button1Down:connect(function()
  1199. if attack==false and attacktype==1 then
  1200. attacktype=2
  1201. attackone()
  1202. elseif attack==false and attacktype==2 then
  1203. attacktype=1
  1204. attacktwo()
  1205. end
  1206. end)
  1207.  
  1208. mouse.KeyDown:connect(function(k)
  1209. if k=='e' and attack==false then
  1210. kick()
  1211. elseif k=='r' and attack==false then
  1212. rapunch()
  1213. end
  1214. end)
  1215.  
  1216. function kick()
  1217. attack=true
  1218. Humanoid.WalkSpeed=0
  1219. so("http://roblox.com/asset/?id=200632136",RightLeg,1,1)
  1220. con1=RightLeg.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(30,50),"Normal",RootPart,.2,1) end)
  1221. for i=0,1,0.1 do
  1222. swait()
  1223. RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(-25),math.rad(0),math.rad(0)),.37)
  1224. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25),math.rad(0),math.rad(0)),.37)
  1225. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(65),math.rad(0),math.rad(-35)),.37)
  1226. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-65),math.rad(0),math.rad(-25)),.37)
  1227. 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(125)),.37)
  1228. 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(25)),.37)
  1229. end
  1230. attack=false
  1231. Humanoid.WalkSpeed=16
  1232. con1:disconnect()
  1233. end
  1234.  
  1235. function attackone()
  1236. attack=true
  1237. con1=HitboxA.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(1,2),"Normal",RootPart,.2,1) end)
  1238. --[[for i=0,1,0.1 do
  1239. swait()
  1240. RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(0),math.rad(0),math.rad(-45)),.37)
  1241. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(45)),.37)
  1242. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*angles(math.rad(90),math.rad(90),math.rad(0))*angles(math.rad(45),math.rad(0),math.rad(0)),.37)
  1243. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(-90),math.rad(0))*angles(math.rad(-55),math.rad(0),math.rad(0)),.37)
  1244. RH.C0=clerp(RH.C0,cf(.8,-1,-.3)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(45),math.rad(0)),.37)
  1245. LH.C0=clerp(LH.C0,cf(-.8,-1,.3)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(45),math.rad(0)),.37)
  1246. end
  1247. for i=0,1,0.1 do
  1248. swait()
  1249. RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(0),math.rad(0),math.rad(75)),.37)
  1250. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-75)),.37)
  1251. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(55),math.rad(90),math.rad(0))*angles(math.rad(-25),math.rad(0),math.rad(0)),.37)
  1252. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-15),math.rad(0),math.rad(-15))*angles(math.rad(0),math.rad(0),math.rad(0)),.37)
  1253. RH.C0=clerp(RH.C0,cf(.5,-1,.3)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(-75),math.rad(0)),.37)
  1254. LH.C0=clerp(LH.C0,cf(-.5,-1,-.3)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(-75),math.rad(0)),.37)
  1255. end]]
  1256. Torso.Velocity=Head.CFrame.lookVector*50
  1257. Slash(HitboxA)
  1258. for i=0,1,0.1 do
  1259. swait()
  1260. RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(0),math.rad(0),math.rad(85)),.37)
  1261. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-85)),.37)
  1262. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(90),math.rad(0))*angles(math.rad(-75),math.rad(0),math.rad(0)),.37)
  1263. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-15),math.rad(0),math.rad(-15))*angles(math.rad(0),math.rad(0),math.rad(0)),.37)
  1264. RH.C0=clerp(RH.C0,cf(.5,-1,.3)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(-85),math.rad(0)),.37)
  1265. LH.C0=clerp(LH.C0,cf(-.5,-1,-.3)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(-85),math.rad(0)),.37)
  1266. end
  1267. attack=false
  1268. con1:disconnect()
  1269. end
  1270.  
  1271. function attacktwo()
  1272. attack=true
  1273. con1=HitboxB.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(1,2),"Normal",RootPart,.2,1) end)
  1274. Slash(HitboxB)
  1275. for i=0,1,0.1 do
  1276. swait()
  1277. RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(0),math.rad(0),math.rad(-65)),.37)
  1278. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(65)),.37)
  1279. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(15),math.rad(0),math.rad(15))*angles(math.rad(0),math.rad(0),math.rad(0)),.37)
  1280. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(75),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-45)),.37)
  1281. RH.C0=clerp(RH.C0,cf(.7,-1,-.3)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(65),math.rad(0)),.37)
  1282. LH.C0=clerp(LH.C0,cf(-.7,-1,.3)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(65),math.rad(0)),.37)
  1283. end
  1284. attack=false
  1285. con1:disconnect()
  1286. end
  1287.  
  1288. function rapunch()
  1289. attack=true
  1290. con1=HitboxA.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(1,2),"Normal",RootPart,.2,1) end)
  1291. con2=HitboxB.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(1,2),"Normal",RootPart,.2,1) end)
  1292. for i=0,10 do
  1293. Slash(HitboxA)
  1294. for i=0,.4,0.1 do
  1295. swait()
  1296. RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(0),math.rad(0),math.rad(-65)),.7)
  1297. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(65)),.7)
  1298. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(15),math.rad(0),math.rad(15))*angles(math.rad(0),math.rad(0),math.rad(0)),.7)
  1299. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(75),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-45)),.7)
  1300. RH.C0=clerp(RH.C0,cf(.7,-1,-.3)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(65),math.rad(0)),.7)
  1301. LH.C0=clerp(LH.C0,cf(-.7,-1,.3)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(65),math.rad(0)),.7)
  1302. end
  1303. Slash(HitboxB)
  1304. for i=0,.4,0.1 do
  1305. swait()
  1306. RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(0),math.rad(0),math.rad(85)),.7)
  1307. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-85)),.7)
  1308. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(90),math.rad(0))*angles(math.rad(-75),math.rad(0),math.rad(0)),.7)
  1309. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-15),math.rad(0),math.rad(-15))*angles(math.rad(0),math.rad(0),math.rad(0)),.7)
  1310. RH.C0=clerp(RH.C0,cf(.5,-1,.3)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(-85),math.rad(0)),.7)
  1311. LH.C0=clerp(LH.C0,cf(-.5,-1,-.3)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(-85),math.rad(0)),.7)
  1312. end
  1313. end
  1314. attack=false
  1315. con1:disconnect()
  1316. con2:disconnect()
  1317. end
  1318.  
  1319. local sine = 0
  1320. local change = 1
  1321. local val = 0
  1322.  
  1323. while true do
  1324. swait()
  1325. sine = sine + change
  1326. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1327. local velderp=RootPart.Velocity.y
  1328. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1329. if equipped==true or equipped==false then
  1330. if attack==false then
  1331. idle=idle+1
  1332. else
  1333. idle=0
  1334. end
  1335. if idle>=500 then
  1336. if attack==false then
  1337. --Sheath()
  1338. end
  1339. end
  1340. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1341. Anim="Jump"
  1342. if attack==false then
  1343. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  1344. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1345. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1346. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,0.5),.3)
  1347. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1348. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3)
  1349. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1350. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  1351. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  1352. end
  1353. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1354. Anim="Fall"
  1355. if attack==false then
  1356. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
  1357. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1358. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1359. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.3,0,0.2),.3)
  1360. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1361. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3)
  1362. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1363. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  1364. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  1365. end
  1366. elseif torvel<1 and hitfloor~=nil then
  1367. Anim="Idle"
  1368. if attack==false then
  1369. --[[]]
  1370. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*angles(math.rad(15),math.rad(0),math.rad(10)),.3)
  1371. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-15),math.rad(0),math.rad(-15)),.3)
  1372. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(75),math.rad(-5)),.3)
  1373. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(-75),math.rad(5)),.3)
  1374. RH.C0=clerp(RH.C0,cf(1,-.7,-.25)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(-15),math.rad(15)),.3)
  1375. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(-15),math.rad(0)),.3)
  1376. end
  1377. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  1378. Anim="Walk"
  1379. if attack==false then
  1380. change=3
  1381. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(15),math.rad(0),math.rad(0)),.2)
  1382. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  1383. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-35),math.rad(0),math.rad(0)),.2)
  1384. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-35),math.rad(0),math.rad(0)),.2)
  1385. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1386. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1387. end
  1388. elseif torvel>=22 and hitfloor~=nil then
  1389. Anim="Run"
  1390. if attack==false then
  1391. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(45),math.rad(0),math.rad(0)),.3)
  1392. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-40),math.rad(0),math.rad(0)),.3)
  1393. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-60),math.rad(0),math.rad(0)),.3)
  1394. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-60),math.rad(0),math.rad(0)),.3)
  1395. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1396. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1397. end
  1398. end
  1399. end
  1400. end
Add Comment
Please, Sign In to add comment