Plug_RBLX

ahahewgf

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