rrixh

offbrand pizza fighter

Jul 20th, 2023
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 71.84 KB | None | 0 0
  1. Player=game:GetService("Players").LocalPlayer
  2. Character=Player.Character
  3. PlayerGui=Player.PlayerGui
  4. Backpack=Player.Backpack
  5. Torso=Character.Torso
  6. Head=Character.Head
  7. Humanoid=Character.Humanoid
  8. m=Instance.new('Model',Character)
  9. LeftArm=Character["Left Arm"]
  10. LeftLeg=Character["Left Leg"]
  11. RightArm=Character["Right Arm"]
  12. RightLeg=Character["Right Leg"]
  13. LS=Torso["Left Shoulder"]
  14. LH=Torso["Left Hip"]
  15. RS=Torso["Right Shoulder"]
  16. RH=Torso["Right Hip"]
  17. Face = Head.face
  18. Neck=Torso.Neck
  19. it=Instance.new
  20. attacktype=1
  21. vt=Vector3.new
  22. cf=CFrame.new
  23. euler=CFrame.fromEulerAnglesXYZ
  24. angles=CFrame.Angles
  25. cloaked=false
  26. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  27. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  28. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  29. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  30. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  31. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  32. RootPart=Character.HumanoidRootPart
  33. RootJoint=RootPart.RootJoint
  34. RootCF=euler(-1.57,0,3.14)
  35. attack = false
  36. attackdebounce = false
  37. deb=false
  38. equipped=true
  39. hand=false
  40. MMouse=nil
  41. combo=0
  42. mana=0
  43. trispeed=1
  44. pathtrans=.7
  45. attackmode='none'
  46. local idle=0
  47. local Anim="Idle"
  48. local Effects={}
  49. local gun=false
  50. local shoot=false
  51. player=nil
  52. cloak=false
  53. lightcolor='Bright blue'
  54.  
  55. mouse=Player:GetMouse()
  56. --save shoulders
  57. RSH, LSH=nil, nil
  58. --welds
  59. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  60. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  61. LH=Torso["Left Hip"]
  62. RH=Torso["Right Hip"]
  63. TorsoColor=Torso.BrickColor
  64. function NoOutline(Part)
  65. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  66. end
  67. player=Player
  68. ch=Character
  69. RSH=ch.Torso["Right Shoulder"]
  70. LSH=ch.Torso["Left Shoulder"]
  71. --
  72. RSH.Parent=nil
  73. LSH.Parent=nil
  74. --
  75. RW.Name="Right Shoulder"
  76. RW.Part0=ch.Torso
  77. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  78. RW.C1=cf(0, 0.5, 0)
  79. RW.Part1=ch["Right Arm"]
  80. RW.Parent=ch.Torso
  81. --
  82. LW.Name="Left Shoulder"
  83. LW.Part0=ch.Torso
  84. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  85. LW.C1=cf(0, 0.5, 0)
  86. LW.Part1=ch["Left Arm"]
  87. LW.Parent=ch.Torso
  88.  
  89. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  90. local fp=it("Part")
  91. fp.formFactor=formfactor
  92. fp.Parent=parent
  93. fp.Reflectance=reflectance
  94. fp.Transparency=transparency
  95. fp.CanCollide=false
  96. fp.Locked=true
  97. fp.BrickColor=brickcolor
  98. fp.Name=name
  99. fp.Size=size
  100. fp.Position=Torso.Position
  101. NoOutline(fp)
  102. fp.Material="SmoothPlastic"
  103. fp:BreakJoints()
  104. return fp
  105. end
  106.  
  107. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  108. local mesh=it(Mesh)
  109. mesh.Parent=part
  110. if Mesh=="SpecialMesh" then
  111. mesh.MeshType=meshtype
  112. if meshid~="nil" then
  113. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  114. end
  115. end
  116. mesh.Offset=offset
  117. mesh.Scale=scale
  118. return mesh
  119. end
  120.  
  121. function weld(parent,part0,part1,c0)
  122. local weld=it("Weld")
  123. weld.Parent=parent
  124. weld.Part0=part0
  125. weld.Part1=part1
  126. weld.C0=c0
  127. return weld
  128. end
  129.  
  130. local Color1=Torso.BrickColor
  131.  
  132. local bodvel=Instance.new("BodyVelocity")
  133. local bg=Instance.new("BodyGyro")
  134.  
  135. function swait(num)
  136. if num==0 or num==nil then
  137. game:service'RunService'.Stepped:wait(0)
  138. else
  139. for i=0,num do
  140. game:service'RunService'.Stepped:wait(0)
  141. end
  142. end
  143. end
  144.  
  145.  
  146. so = function(id,par,vol,pit)
  147. coroutine.resume(coroutine.create(function()
  148. local sou = Instance.new("Sound",par or workspace)
  149. sou.Volume=vol
  150. sou.Pitch=pit or 1
  151. sou.SoundId=id
  152. swait()
  153. sou:play()
  154. game:GetService("Debris"):AddItem(sou,6)
  155. end))
  156. end
  157.  
  158. function clerp(a,b,t)
  159. local qa = {QuaternionFromCFrame(a)}
  160. local qb = {QuaternionFromCFrame(b)}
  161. local ax, ay, az = a.x, a.y, a.z
  162. local bx, by, bz = b.x, b.y, b.z
  163. local _t = 1-t
  164. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  165. end
  166.  
  167. function QuaternionFromCFrame(cf)
  168. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  169. local trace = m00 + m11 + m22
  170. if trace > 0 then
  171. local s = math.sqrt(1 + trace)
  172. local recip = 0.5/s
  173. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  174. else
  175. local i = 0
  176. if m11 > m00 then
  177. i = 1
  178. end
  179. if m22 > (i == 0 and m00 or m11) then
  180. i = 2
  181. end
  182. if i == 0 then
  183. local s = math.sqrt(m00-m11-m22+1)
  184. local recip = 0.5/s
  185. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  186. elseif i == 1 then
  187. local s = math.sqrt(m11-m22-m00+1)
  188. local recip = 0.5/s
  189. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  190. elseif i == 2 then
  191. local s = math.sqrt(m22-m00-m11+1)
  192. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  193. end
  194. end
  195. end
  196.  
  197. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  198. local xs, ys, zs = x + x, y + y, z + z
  199. local wx, wy, wz = w*xs, w*ys, w*zs
  200. local xx = x*xs
  201. local xy = x*ys
  202. local xz = x*zs
  203. local yy = y*ys
  204. local yz = y*zs
  205. local zz = z*zs
  206. 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))
  207. end
  208.  
  209. function QuaternionSlerp(a, b, t)
  210. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  211. local startInterp, finishInterp;
  212. if cosTheta >= 0.0001 then
  213. if (1 - cosTheta) > 0.0001 then
  214. local theta = math.acos(cosTheta)
  215. local invSinTheta = 1/math.sin(theta)
  216. startInterp = math.sin((1-t)*theta)*invSinTheta
  217. finishInterp = math.sin(t*theta)*invSinTheta
  218. else
  219. startInterp = 1-t
  220. finishInterp = t
  221. end
  222. else
  223. if (1+cosTheta) > 0.0001 then
  224. local theta = math.acos(-cosTheta)
  225. local invSinTheta = 1/math.sin(theta)
  226. startInterp = math.sin((t-1)*theta)*invSinTheta
  227. finishInterp = math.sin(t*theta)*invSinTheta
  228. else
  229. startInterp = t-1
  230. finishInterp = t
  231. end
  232. end
  233. 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
  234. end
  235.  
  236. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  237. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  238. end
  239.  
  240. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  241. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  242. prt.Anchored=true
  243. prt.CFrame=cframe
  244. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  245. --http://www.roblox.com/asset/?id=4770560
  246. game:GetService("Debris"):AddItem(prt,2)
  247. CF=prt.CFrame
  248. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  249. for i=0,1,0.2 do
  250. wait()
  251. Part.CFrame=CF*cf(0,0,-0.4)
  252. end
  253. for i=0,1,delay do
  254. wait()
  255. --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)
  256. Mesh.Scale=Mesh.Scale
  257. end
  258. for i=0,1,0.1 do
  259. wait()
  260. Part.Transparency=i
  261. end
  262. Part.Parent=nil
  263. end),prt,msh,CF)
  264. end
  265.  
  266. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  267. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  268. prt.Anchored=true
  269. prt.CFrame=cframe
  270. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  271. game:GetService("Debris"):AddItem(prt,5)
  272. coroutine.resume(coroutine.create(function(Part,Mesh)
  273. for i=0,1,delay do
  274. wait()
  275. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  276. Part.Transparency=i
  277. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  278. end
  279. Part.Parent=nil
  280. end),prt,msh)
  281. end
  282.  
  283. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  284. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  285. prt.Anchored=false
  286. prt.CFrame=cframe
  287. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  288. local wld=weld(prt,prt,Parent,cframe)
  289. game:GetService("Debris"):AddItem(prt,5)
  290. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  291. for i=0,1,delay do
  292. wait()
  293. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  294. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  295. Part.Transparency=i
  296. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  297. end
  298. Part.Parent=nil
  299. end),prt,msh,wld)
  300. end
  301.  
  302. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  303. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  304. prt.Anchored=false
  305. prt.CFrame=cframe
  306. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  307. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  308. game:GetService("Debris"):AddItem(prt,5)
  309. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  310. for i=0,1,delay do
  311. wait()
  312. Weld.C0=euler(i*20,0,0)
  313. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  314. Part.Transparency=i
  315. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  316. end
  317. Part.Parent=nil
  318. end),prt,msh,wld)
  319. end
  320.  
  321. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  322. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  323. prt.Anchored=true
  324. prt.CFrame=cframe
  325. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  326. game:GetService("Debris"):AddItem(prt,2)
  327. coroutine.resume(coroutine.create(function(Part,Mesh)
  328. for i=0,1,delay do
  329. wait()
  330. Part.CFrame=Part.CFrame
  331. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  332. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  333. prt2.Anchored=true
  334. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  335. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  336. game:GetService("Debris"):AddItem(prt2,2)
  337. coroutine.resume(coroutine.create(function(Part,Mesh)
  338. for i=0,1,0.1 do
  339. wait()
  340. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  341. end
  342. Part.Parent=nil
  343. end),prt2,msh2)
  344. end
  345. for i=0,1,delay*2 do
  346. wait()
  347. Part.CFrame=Part.CFrame
  348. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  349. end
  350. Part.Parent=nil
  351. end),prt,msh)
  352. end
  353.  
  354. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  355. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  356. prt.Anchored=true
  357. prt.CFrame=cframe
  358. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  359. game:GetService("Debris"):AddItem(prt,2)
  360. coroutine.resume(coroutine.create(function(Part,Mesh)
  361. for i=0,1,delay do
  362. wait()
  363. Part.CFrame=Part.CFrame
  364. Part.Transparency=i
  365. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  366. end
  367. Part.Parent=nil
  368. end),prt,msh)
  369. end
  370.  
  371. Damagefunc2=function(hit,Damage,Knockback)
  372. if hit.Parent==nil then
  373. return
  374. end
  375. CPlayer=Bin
  376. h=hit.Parent:FindFirstChild("Humanoid")
  377. if h~=nil and hit.Parent.Name~="Fenrier" and hit.Parent:FindFirstChild("Torso")~=nil then
  378. if attackdebounce == false then
  379. attackdebounce = true
  380. coroutine.resume(coroutine.create(function()
  381. wait(0.1)
  382. attackdebounce = false
  383. end))
  384. Damage=Damage
  385. if Enemy==nil then
  386. Enemy=hit.Parent
  387. HP=Enemy.Humanoid.Health
  388. end
  389. coroutine.resume(coroutine.create(function()
  390. wait(1)
  391. if attack==false and Enemy~=nil then
  392. Did=HP-Enemy.Humanoid.Health
  393. print("Did "..Did.." Damage")
  394. Enemy=nil
  395. HP=0
  396. end
  397. end))
  398. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  399. return
  400. end]]
  401. if mana<400 then
  402. mana=mana+math.random(10,20)
  403. else
  404. mana=400
  405. end
  406. c=it("ObjectValue")
  407. c.Name="creator"
  408. c.Value=game.Players.LocalPlayer
  409. c.Parent=h
  410. game:GetService("Debris"):AddItem(c,.5)
  411. -- print(c.Value)
  412. if math.random(0,99)+math.random()<=5 then
  413. CRIT=true
  414. Damage=Damage*2
  415. critsound(2)
  416. --[[ Knockback=Knockback*2
  417. r=it("BodyAngularVelocity")
  418. r.P=3000
  419. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  420. r.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  421. r.Parent=hit.Parent.Torso]]
  422.  
  423. end
  424. Damage=Damage+math.random(0,10)
  425. -- Blood(hit.CFrame*cf(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  426. h:TakeDamage(Damage)
  427. showDamage(hit.Parent,Damage,.5)
  428. vp=it("BodyVelocity")
  429. vp.P=500
  430. vp.maxForce=vt(math.huge,0,math.huge)
  431. -- vp.velocity=Head.CFrame.lookVector*Knockback
  432. vp.velocity=Head.CFrame.lookVector*Knockback
  433. vp.Parent=hit.Parent.Torso
  434. --[[ if Knockback>0 then
  435. vp.Parent=hit.Parent.Torso
  436. end]]
  437. game:GetService("Debris"):AddItem(vp,.5)
  438. --[[ r=it("BodyAngularVelocity")
  439. r.P=3000
  440. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  441. r.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  442. r.Parent=hit.Parent.Torso]]
  443. game:GetService("Debris"):AddItem(r,.5)
  444. c=it("ObjectValue")
  445. c.Name="creator"
  446. c.Value=Player
  447. c.Parent=h
  448. game:GetService("Debris"):AddItem(c,.5)
  449. CRIT=false
  450. hitDeb=true
  451. AttackPos=6
  452. end
  453. end
  454. end
  455.  
  456. function MagicRing(brickcolor,cframe,x1,y1,z1,x2,y2,z2,x3,y3,z3)
  457. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  458. prt.Anchored=true
  459. prt.CFrame=cframe*euler(x2,y2,z2)
  460. prt.Size = Vector3.new(5,5,5)
  461. --"http://www.roblox.com/asset/?id=168892465"
  462. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  463. game:GetService("Debris"):AddItem(prt,2)
  464. coroutine.resume(coroutine.create(function(Part,Mesh)
  465. for i=0,1,0.03 do
  466. wait()
  467. Part.CFrame=Part.CFrame
  468. Part.Transparency=i
  469. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  470. end
  471. Part.Parent=nil
  472. end),prt,msh)
  473. end
  474.  
  475. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  476. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  477. prt.Anchored=true
  478. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  479. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  480. game:GetService("Debris"):AddItem(prt,2)
  481. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  482. CF=Part.CFrame
  483. Numbb=0
  484. randnumb=math.random()/10
  485. rand1=math.random()/10
  486. for i=0,1,rand1 do
  487. wait()
  488. CF=CF*cf(0,math.random()/2,0)
  489. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  490. Part.CFrame=CF*euler(Numbb,0,0)
  491. Part.Transparency=i
  492. Numbb=Numbb+randnumb
  493. end
  494. Part.Parent=nil
  495. end),prt,CF,Numbb,randnumb)
  496. end
  497.  
  498. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  499. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  500. prt.Anchored=true
  501. prt.CFrame=cframe
  502. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  503. game:GetService("Debris"):AddItem(prt,5)
  504. coroutine.resume(coroutine.create(function(Part,Mesh)
  505. for i=0,1,delay do
  506. wait()
  507. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  508. Part.Transparency=i
  509. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  510. end
  511. Part.Parent=nil
  512. end),prt,msh)
  513. end
  514.  
  515. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  516. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  517. prt.Anchored=true
  518. prt.CFrame=cframe
  519. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  520. game:GetService("Debris"):AddItem(prt,2)
  521. coroutine.resume(coroutine.create(function(Part,Mesh)
  522. for i=0,1,delay do
  523. wait()
  524. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  525. Part.Transparency=i
  526. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  527. end
  528. Part.Parent=nil
  529. end),prt,msh)
  530. end
  531.  
  532. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  533. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  534. prt.Anchored=true
  535. prt.CFrame=cframe*cf(x,y,z)
  536. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  537. game:GetService("Debris"):AddItem(prt,5)
  538. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  539. local num=math.random()
  540. local num2=math.random(-3,2)+math.random()
  541. local numm=0
  542. for i=0,1,delay*2 do
  543. swait()
  544. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  545. Part.Transparency=i
  546. numm=numm+0.01
  547. end
  548. Part.Parent=nil
  549. Mesh.Parent=nil
  550. end),prt,msh,x,y,z)
  551. end
  552.  
  553. function dmgstart(dmg,what)
  554. hitcon = what.Touched:connect(function(hit)
  555. local hum = hit.Parent:FindFirstChild("Humanoid")
  556. if hum and not hum:IsDescendantOf(Character) then
  557. hum:TakeDamage(dmg)
  558. end
  559. end)
  560. end
  561.  
  562. function dmgstop()
  563. hitcon:disconnect()
  564. end
  565.  
  566. user=game.Players.localPlayer
  567. char=user.Character
  568. mouse=user:GetMouse()
  569. m=Instance.new('Model',char)
  570.  
  571. blocks = {}
  572. function Part(Type, Parent, Name, Transparency, Reflectance, Size, CFrame, Material, BrickColor3)
  573. prt = Instance.new(Type,Parent)
  574. prt.Name = Name
  575. prt.FormFactor = "Custom"
  576. prt.Transparency = Transparency
  577. prt.Reflectance = Reflectance
  578. prt.Size = Size
  579. prt.CFrame = CFrame
  580. prt.Material = Material
  581. prt.TopSurface = 'SmoothNoOutlines'
  582. prt.BottomSurface = 'SmoothNoOutlines'
  583. prt.LeftSurface = 'SmoothNoOutlines'
  584. prt.RightSurface = 'SmoothNoOutlines'
  585. prt.FrontSurface = 'SmoothNoOutlines'
  586. prt.BackSurface = 'SmoothNoOutlines'
  587. prt.BrickColor = BrickColor.new(tostring(BrickColor3))
  588. prt.Anchored = false
  589. prt.CanCollide = false
  590. table.insert(blocks, prt)
  591. return #blocks
  592. end
  593.  
  594. function weldBetween(a, b)
  595. weld = Instance.new("ManualWeld")
  596. weld.Part0 = a
  597. weld.Part1 = b
  598. weld.C0 = CFrame.new()
  599. weld.C1 = b.CFrame:inverse() * a.CFrame
  600. weld.Parent = a
  601. return weld;
  602. end
  603.  
  604. local function CFrameFromTopBack(at, top, back)
  605. local right = top:Cross(back)
  606. return CFrame.new(at.x, at.y, at.z,
  607. right.x, top.x, back.x,
  608. right.y, top.y, back.y,
  609. right.z, top.z, back.z)
  610. end
  611.  
  612. function Triangle(a, b, c)
  613. local edg1 = (c-a):Dot((b-a).unit)
  614. local edg2 = (a-b):Dot((c-b).unit)
  615. local edg3 = (b-c):Dot((a-c).unit)
  616. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  617. a, b, c = a, b, c
  618. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  619. a, b, c = b, c, a
  620. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  621. a, b, c = c, a, b
  622. else
  623. assert(false, "unreachable")
  624. end
  625.  
  626. local len1 = (c-a):Dot((b-a).unit)
  627. local len2 = (b-a).magnitude - len1
  628. local width = (a + (b-a).unit*len1 - c).magnitude
  629.  
  630. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  631.  
  632. local list = {}
  633.  
  634. if len1 > 0.01 then
  635. local w1 = Instance.new('WedgePart', m)
  636. game:GetService("Debris"):AddItem(w1,5)
  637. w1.Material = "SmoothPlastic"
  638. w1.FormFactor = 'Custom'
  639. w1.BrickColor = BrickColor.new("Toothpaste")
  640. w1.Transparency = 0
  641. w1.Reflectance = 0
  642. w1.Material = "SmoothPlastic"
  643. w1.CanCollide = false
  644. NoOutline(w1)
  645. local sz = Vector3.new(0.2, width, len1)
  646. w1.Size = sz
  647. local sp = Instance.new("SpecialMesh",w1)
  648. sp.MeshType = "Wedge"
  649. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  650. w1:BreakJoints()
  651. w1.Anchored = true
  652. w1.Parent = workspace
  653. w1.Transparency = 0.7
  654. table.insert(Effects,{w1,"Disappear",.01})
  655. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  656. table.insert(list,w1)
  657. end
  658.  
  659. if len2 > 0.01 then
  660. local w2 = Instance.new('WedgePart', m)
  661. game:GetService("Debris"):AddItem(w2,5)
  662. w2.Material = "SmoothPlastic"
  663. w2.FormFactor = 'Custom'
  664. w2.BrickColor = BrickColor.new("Toothpaste")
  665. w2.Transparency = 0
  666. w2.Reflectance = 0
  667. w2.Material = "SmoothPlastic"
  668. w2.CanCollide = false
  669. NoOutline(w2)
  670. local sz = Vector3.new(0.2, width, len2)
  671. w2.Size = sz
  672. local sp = Instance.new("SpecialMesh",w2)
  673. sp.MeshType = "Wedge"
  674. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  675. w2:BreakJoints()
  676. w2.Anchored = true
  677. w2.Parent = workspace
  678. w2.Transparency = 0.7
  679. table.insert(Effects,{w2,"Disappear",.01})
  680. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  681. table.insert(list,w2)
  682. end
  683. return unpack(list)
  684. end
  685.  
  686. function NoOutline(Part)
  687. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  688. end
  689.  
  690.  
  691. local Handle = Instance.new("Part", m)
  692. Handle:BreakJoints()
  693. Handle.TopSurface = "Smooth"
  694. Handle.Material = "SmoothPlastic"
  695. Handle.Name = 'Handle'
  696. Handle.Transparency = 0 Handle.BottomSurface = "Smooth"
  697. Handle.FormFactor = "Custom" Handle.CanCollide = false
  698. Handle.BrickColor = BrickColor.new("Really black")
  699. Handle.Size = Vector3.new(2.31999993, 0.34799999, 0.200000003)
  700. local Handleweld = Instance.new("ManualWeld")
  701. Handleweld.Part0 = char["Torso"]
  702. Handleweld.Part1 = Handle Handleweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  703. Handleweld.C1 = CFrame.new(0.0648193359, -0.791286469, -0.906871796, 0.707106709, 0.70710665, -3.06183203e-008, -5.06046831e-008, 9.39054843e-008, 0.999991417, 0.707100689, -0.707100689, 1.02184011e-007)
  704. Handleweld.Parent = char["Torso"]
  705.  
  706. local Part = Instance.new("Part", m)
  707. Part:BreakJoints()
  708. Part.TopSurface = "Smooth"
  709. Part.Material = "SmoothPlastic"
  710. Part.Name = 'Part'
  711. Part.Transparency = 0 Part.BottomSurface = "Smooth"
  712. Part.FormFactor = "Custom" Part.CanCollide = false
  713. Part.BrickColor = BrickColor.new("New Yeller")
  714. Part.Size = Vector3.new(0.34799999, 0.200000003, 0.34799999)
  715. local Partweld = Instance.new("ManualWeld")
  716. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  717. Partweld.C1 = CFrame.new(-0.697142124, -0.240707397, 0.697052002, 0.707106292, -6.45096577e-007, -0.707100093, 7.29660428e-007, 0.999991119, -4.4702773e-008, 0.707106292, -4.72456946e-007, 0.707100153)
  718. Partweld.Parent = Part
  719. local PartMesh = Instance.new("BlockMesh",Part)
  720. PartMesh.Name = "Mesh"
  721. PartMesh.Offset = Vector3.new(0, 0, 0)
  722. PartMesh.Scale = Vector3.new(1, 0.898999929, 1)
  723.  
  724. local Part = Instance.new("Part", m)
  725. Part:BreakJoints()
  726. Part.TopSurface = "Smooth"
  727. Part.Material = "SmoothPlastic"
  728. Part.Name = 'Part'
  729. Part.Transparency = 0 Part.BottomSurface = "Smooth"
  730. Part.FormFactor = "Custom" Part.CanCollide = false
  731. Part.BrickColor = BrickColor.new("White")
  732. Part.Size = Vector3.new(2.31999993, 0.200000003, 0.200000003)
  733. local Partweld = Instance.new("ManualWeld")
  734. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  735. Partweld.C1 = CFrame.new(3.81469727e-006, -0.232005119, 1.97199249, 0.999999762, -2.87769808e-013, 5.96046448e-008, 5.25801624e-013, 0.999991417, 2.84217094e-014, 0, -1.17239551e-013, 0.999991238)
  736. Partweld.Parent = Part
  737. local PartMesh = Instance.new("BlockMesh",Part)
  738. PartMesh.Name = "Mesh"
  739. PartMesh.Offset = Vector3.new(0, 0, 0)
  740. PartMesh.Scale = Vector3.new(1, 0.579999983, 0.579999983)
  741.  
  742. local Part = Instance.new("Part", m)
  743. Part:BreakJoints()
  744. Part.TopSurface = "Smooth"
  745. Part.Material = "SmoothPlastic"
  746. Part.Name = 'Part'
  747. Part.Transparency = 0 Part.BottomSurface = "Smooth"
  748. Part.FormFactor = "Custom" Part.CanCollide = false
  749. Part.BrickColor = BrickColor.new("Really black")
  750. Part.Size = Vector3.new(1.15999997, 0.200000003, 1.15999997)
  751. local Partweld = Instance.new("ManualWeld")
  752. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  753. Partweld.C1 = CFrame.new(-0.697060108, -0.237798691, 0.696979523, 0.707100153, -7.8854832e-008, -0.707074642, 6.79929997e-008, 0.999963224, -4.47018209e-008, 0.707100153, -2.54248249e-008, 0.707074702)
  754. Partweld.Parent = Part
  755. local PartMesh = Instance.new("BlockMesh",Part)
  756. PartMesh.Name = "Mesh"
  757. PartMesh.Offset = Vector3.new(0, 0, 0)
  758. PartMesh.Scale = Vector3.new(1, 0.696000099, 1)
  759.  
  760. local Part = Instance.new("Part", m)
  761. Part:BreakJoints()
  762. Part.TopSurface = "Smooth"
  763. Part.Material = "SmoothPlastic"
  764. Part.Name = 'Part'
  765. Part.Transparency = 0 Part.BottomSurface = "Smooth"
  766. Part.FormFactor = "Custom" Part.CanCollide = false
  767. Part.BrickColor = BrickColor.new("White")
  768. Part.Size = Vector3.new(0.200000003, 0.200000003, 2.0880003)
  769. local Partweld = Instance.new("ManualWeld")
  770. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  771. Partweld.C1 = CFrame.new(-1.21799088, -0.231980324, 0.985839844, 0.999999762, 5.87768056e-010, 1.80602074e-005, -5.86997118e-010, 0.999974251, -6.33293951e-009, -1.80006027e-005, 6.33261976e-009, 0.99997437)
  772. Partweld.Parent = Part
  773. local PartMesh = Instance.new("BlockMesh",Part)
  774. PartMesh.Name = "Mesh"
  775. PartMesh.Offset = Vector3.new(0, 0, 0)
  776. PartMesh.Scale = Vector3.new(0.579999983, 0.579999983, 1)
  777.  
  778. local Part = Instance.new("Part", m)
  779. Part:BreakJoints()
  780. Part.TopSurface = "Smooth"
  781. Part.Material = "SmoothPlastic"
  782. Part.Name = 'Part'
  783. Part.Transparency = 0 Part.BottomSurface = "Smooth"
  784. Part.FormFactor = "Custom" Part.CanCollide = false
  785. Part.BrickColor = BrickColor.new("New Yeller")
  786. Part.Size = Vector3.new(0.200000003, 0.34799999, 0.200000003)
  787. local Partweld = Instance.new("ManualWeld")
  788. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  789. Partweld.C1 = CFrame.new(0.000141143799, 1.8119812e-005, -1.21799469, 1.81794167e-005, -1.78968406e-007, -0.999964833, 6.0702348e-007, 0.999964714, -1.78957677e-007, 0.999999702, -6.06998185e-007, 1.82688236e-005)
  790. Partweld.Parent = Part
  791. local PartMesh = Instance.new("BlockMesh",Part)
  792. PartMesh.Name = "Mesh"
  793. PartMesh.Offset = Vector3.new(0, 0, 0)
  794. PartMesh.Scale = Vector3.new(0.579999983, 1, 0.579999983)
  795.  
  796. local Part = Instance.new("Part", m)
  797. Part:BreakJoints()
  798. Part.TopSurface = "Smooth"
  799. Part.Material = "SmoothPlastic"
  800. Part.Name = 'Part'
  801. Part.Transparency = 0 Part.BottomSurface = "Smooth"
  802. Part.FormFactor = "Custom" Part.CanCollide = false
  803. Part.BrickColor = BrickColor.new("White")
  804. Part.Size = Vector3.new(0.200000003, 0.200000003, 2.0880003)
  805. local Partweld = Instance.new("ManualWeld")
  806. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  807. Partweld.C1 = CFrame.new(-1.21799469, 0.232003212, 0.985847473, 0.999999762, 5.66021896e-010, 1.80602074e-005, -5.65410829e-010, 0.999973297, -6.33274055e-009, -1.80006027e-005, 6.3324741e-009, 0.999973238)
  808. Partweld.Parent = Part
  809. local PartMesh = Instance.new("BlockMesh",Part)
  810. PartMesh.Name = "Mesh"
  811. PartMesh.Offset = Vector3.new(0, 0, 0)
  812. PartMesh.Scale = Vector3.new(0.579999983, 0.579999983, 1)
  813.  
  814. local Part = Instance.new("Part", m)
  815. Part:BreakJoints()
  816. Part.TopSurface = "Smooth"
  817. Part.Material = "SmoothPlastic"
  818. Part.Name = 'Part'
  819. Part.Transparency = 0 Part.BottomSurface = "Smooth"
  820. Part.FormFactor = "Custom" Part.CanCollide = false
  821. Part.BrickColor = BrickColor.new("Mid gray")
  822. Part.Size = Vector3.new(2.31999969, 0.200000003, 1.8560003)
  823. local Partweld = Instance.new("ManualWeld")
  824. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  825. Partweld.C1 = CFrame.new(3.81469727e-006, -0.115989685, 0.985801697, 0.999999762, 6.05332673e-010, 1.80602074e-005, -6.04796213e-010, 0.999982834, -6.33284003e-009, -1.80006027e-005, 6.33262687e-009, 0.999982953)
  826. Partweld.Parent = Part
  827. local PartMesh = Instance.new("BlockMesh",Part)
  828. PartMesh.Name = "Mesh"
  829. PartMesh.Offset = Vector3.new(0, 0, 0)
  830. PartMesh.Scale = Vector3.new(1, 0.579999983, 1)
  831.  
  832. local Part = Instance.new("Part", m)
  833. Part:BreakJoints()
  834. Part.TopSurface = "Smooth"
  835. Part.Material = "SmoothPlastic"
  836. Part.Name = 'Part'
  837. Part.Transparency = 0 Part.BottomSurface = "Smooth"
  838. Part.FormFactor = "Custom" Part.CanCollide = false
  839. Part.BrickColor = BrickColor.new("Institutional white")
  840. Part.Size = Vector3.new(0.579999983, 0.200000003, 0.579999983)
  841. local Partweld = Instance.new("ManualWeld")
  842. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  843. Partweld.C1 = CFrame.new(1.52587891e-005, 0.226189613, 0.985958099, 0.99999094, -4.17435785e-007, -8.94069672e-008, 4.17436127e-007, 0.999991119, 2.08614694e-007, -2.98023224e-008, -2.83119846e-007, 0.999982476)
  844. Partweld.Parent = Part
  845. local PartMesh = Instance.new("BlockMesh",Part)
  846. PartMesh.Name = "Mesh"
  847. PartMesh.Offset = Vector3.new(0, 0, 0)
  848. PartMesh.Scale = Vector3.new(1, 0.811999977, 1)
  849.  
  850. local Part = Instance.new("Part", m)
  851. Part:BreakJoints()
  852. Part.TopSurface = "Smooth"
  853. Part.Material = "SmoothPlastic"
  854. Part.Name = 'Part'
  855. Part.Transparency = 0 Part.BottomSurface = "Smooth"
  856. Part.FormFactor = "Custom" Part.CanCollide = false
  857. Part.BrickColor = BrickColor.new("Institutional white")
  858. Part.Size = Vector3.new(0.579999983, 0.200000003, 0.579999983)
  859. local Partweld = Instance.new("ManualWeld")
  860. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  861. Partweld.C1 = CFrame.new(1.52587891e-005, -0.237810135, 0.985958099, 0.99999094, -4.17435785e-007, -8.94069672e-008, 4.17436127e-007, 0.999991119, 2.08614694e-007, -2.98023224e-008, -2.83119846e-007, 0.999982476)
  862. Partweld.Parent = Part
  863. local PartMesh = Instance.new("BlockMesh",Part)
  864. PartMesh.Name = "Mesh"
  865. PartMesh.Offset = Vector3.new(0, 0, 0)
  866. PartMesh.Scale = Vector3.new(1, 0.811999977, 1)
  867.  
  868. local Part = Instance.new("Part", m)
  869. Part:BreakJoints()
  870. Part.TopSurface = "Smooth"
  871. Part.Material = "SmoothPlastic"
  872. Part.Name = 'Part'
  873. Part.Transparency = 0 Part.BottomSurface = "Smooth"
  874. Part.FormFactor = "Custom" Part.CanCollide = false
  875. Part.BrickColor = BrickColor.new("Really black")
  876. Part.Size = Vector3.new(1.15999997, 0.200000003, 1.15999997)
  877. local Partweld = Instance.new("ManualWeld")
  878. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  879. Partweld.C1 = CFrame.new(-0.985813141, -0.237781525, 0, 1.80006027e-005, 1.57576963e-007, -0.999979973, 8.91885605e-008, 0.99998039, 2.61884452e-007, 0.999999166, -8.91910901e-008, 1.80602074e-005)
  880. Partweld.Parent = Part
  881. local PartMesh = Instance.new("BlockMesh",Part)
  882. PartMesh.Name = "Mesh"
  883. PartMesh.Offset = Vector3.new(0, 0, 0)
  884. PartMesh.Scale = Vector3.new(1, 0.69599998, 1)
  885.  
  886. local Part = Instance.new("Part", m)
  887. Part:BreakJoints()
  888. Part.TopSurface = "Smooth"
  889. Part.Material = "SmoothPlastic"
  890. Part.Name = 'Part'
  891. Part.Transparency = 0 Part.BottomSurface = "Smooth"
  892. Part.FormFactor = "Custom" Part.CanCollide = false
  893. Part.BrickColor = BrickColor.new("New Yeller")
  894. Part.Size = Vector3.new(0.34799999, 0.200000003, 0.34799999)
  895. local Partweld = Instance.new("ManualWeld")
  896. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  897. Partweld.C1 = CFrame.new(-5.7220459e-005, 0.223287582, 0.985862732, 0.999999285, -4.17447836e-007, 5.96046448e-008, 4.17451417e-007, 0.999991119, 2.08614694e-007, 8.94069672e-008, -8.94065408e-008, 0.999990642)
  898. Partweld.Parent = Part
  899. local PartMesh = Instance.new("BlockMesh",Part)
  900. PartMesh.Name = "Mesh"
  901. PartMesh.Offset = Vector3.new(0, 0, 0)
  902. PartMesh.Scale = Vector3.new(1, 0.898999929, 1)
  903.  
  904. local Part = Instance.new("Part", m)
  905. Part:BreakJoints()
  906. Part.TopSurface = "Smooth"
  907. Part.Material = "SmoothPlastic"
  908. Part.Name = 'Part'
  909. Part.Transparency = 0 Part.BottomSurface = "Smooth"
  910. Part.FormFactor = "Custom" Part.CanCollide = false
  911. Part.BrickColor = BrickColor.new("Really black")
  912. Part.Size = Vector3.new(1.15999997, 0.200000003, 1.15999997)
  913. local Partweld = Instance.new("ManualWeld")
  914. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  915. Partweld.C1 = CFrame.new(-0.985980988, 0.22618866, 0, -8.94069672e-008, 1.63911707e-007, -0.999990642, 8.97813663e-008, 0.999991119, 2.68218798e-007, 0.999999285, -8.97803574e-008, 5.96046448e-008)
  916. Partweld.Parent = Part
  917. local PartMesh = Instance.new("BlockMesh",Part)
  918. PartMesh.Name = "Mesh"
  919. PartMesh.Offset = Vector3.new(0, 0, 0)
  920. PartMesh.Scale = Vector3.new(1, 0.69599998, 1)
  921.  
  922. local Part = Instance.new("Part", m)
  923. Part:BreakJoints()
  924. Part.TopSurface = "Smooth"
  925. Part.Material = "SmoothPlastic"
  926. Part.Name = 'Part'
  927. Part.Transparency = 0 Part.BottomSurface = "Smooth"
  928. Part.FormFactor = "Custom" Part.CanCollide = false
  929. Part.BrickColor = BrickColor.new("Really black")
  930. Part.Size = Vector3.new(1.15999997, 0.200000003, 1.15999997)
  931. local Partweld = Instance.new("ManualWeld")
  932. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  933. Partweld.C1 = CFrame.new(-0.697110176, 0.226187706, 0.697032928, 0.707100391, -7.8857461e-008, -0.707094431, 6.79927936e-008, 0.999991119, -4.4702837e-008, 0.707100332, -2.54258214e-008, 0.707094312)
  934. Partweld.Parent = Part
  935. local PartMesh = Instance.new("BlockMesh",Part)
  936. PartMesh.Name = "Mesh"
  937. PartMesh.Offset = Vector3.new(0, 0, 0)
  938. PartMesh.Scale = Vector3.new(1, 0.696000099, 1)
  939.  
  940. local Part = Instance.new("Part", m)
  941. Part:BreakJoints()
  942. Part.TopSurface = "Smooth"
  943. Part.Material = "SmoothPlastic"
  944. Part.Name = 'Part'
  945. Part.Transparency = 0 Part.BottomSurface = "Smooth"
  946. Part.FormFactor = "Custom" Part.CanCollide = false
  947. Part.BrickColor = BrickColor.new("Institutional white")
  948. Part.Size = Vector3.new(0.579999983, 0.200000003, 0.579999983)
  949. local Partweld = Instance.new("ManualWeld")
  950. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  951. Partweld.C1 = CFrame.new(-0.697163582, 0.226187706, 0.697189331, 0.707100332, -7.88574468e-008, -0.707094491, 6.7967342e-008, 0.999991119, -4.47028512e-008, 0.707100451, 4.37624692e-009, 0.707094193)
  952. Partweld.Parent = Part
  953. local PartMesh = Instance.new("BlockMesh",Part)
  954. PartMesh.Name = "Mesh"
  955. PartMesh.Offset = Vector3.new(0, 0, 0)
  956. PartMesh.Scale = Vector3.new(1, 0.812000036, 1)
  957.  
  958. local Part = Instance.new("Part", m)
  959. Part:BreakJoints()
  960. Part.TopSurface = "Smooth"
  961. Part.Material = "SmoothPlastic"
  962. Part.Name = 'Part'
  963. Part.Transparency = 0 Part.BottomSurface = "Smooth"
  964. Part.FormFactor = "Custom" Part.CanCollide = false
  965. Part.BrickColor = BrickColor.new("New Yeller")
  966. Part.Size = Vector3.new(0.34799999, 0.200000003, 0.34799999)
  967. local Partweld = Instance.new("ManualWeld")
  968. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  969. Partweld.C1 = CFrame.new(-5.7220459e-005, -0.240706444, 0.985862732, 0.999999285, -4.17447836e-007, 5.96046448e-008, 4.17451417e-007, 0.999991119, 2.08614694e-007, 8.94069672e-008, -8.94065408e-008, 0.999990642)
  970. Partweld.Parent = Part
  971. local PartMesh = Instance.new("BlockMesh",Part)
  972. PartMesh.Name = "Mesh"
  973. PartMesh.Offset = Vector3.new(0, 0, 0)
  974. PartMesh.Scale = Vector3.new(1, 0.898999929, 1)
  975.  
  976. local Part = Instance.new("Part", m)
  977. Part:BreakJoints()
  978. Part.TopSurface = "Smooth"
  979. Part.Material = "SmoothPlastic"
  980. Part.Name = 'Part'
  981. Part.Transparency = 0 Part.BottomSurface = "Smooth"
  982. Part.FormFactor = "Custom" Part.CanCollide = false
  983. Part.BrickColor = BrickColor.new("White")
  984. Part.Size = Vector3.new(2.31999993, 0.200000003, 0.200000003)
  985. local Partweld = Instance.new("ManualWeld")
  986. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  987. Partweld.C1 = CFrame.new(3.81469727e-006, 0.23197937, -1.52587891e-005, 0.999999762, 2.23820962e-013, 5.96046448e-008, 7.10542736e-015, 0.999991417, -1.03028697e-013, 0, 1.0658141e-014, 0.999991238)
  988. Partweld.Parent = Part
  989. local PartMesh = Instance.new("BlockMesh",Part)
  990. PartMesh.Name = "Mesh"
  991. PartMesh.Offset = Vector3.new(0, 0, 0)
  992. PartMesh.Scale = Vector3.new(1, 0.579999983, 0.579999983)
  993.  
  994. local Part = Instance.new("Part", m)
  995. Part:BreakJoints()
  996. Part.TopSurface = "Smooth"
  997. Part.Material = "SmoothPlastic"
  998. Part.Name = 'Part'
  999. Part.Transparency = 0 Part.BottomSurface = "Smooth"
  1000. Part.FormFactor = "Custom" Part.CanCollide = false
  1001. Part.BrickColor = BrickColor.new("Institutional white")
  1002. Part.Size = Vector3.new(0.579999983, 0.200000003, 0.579999983)
  1003. local Partweld = Instance.new("ManualWeld")
  1004. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1005. Partweld.C1 = CFrame.new(-0.697163105, -0.237812042, 0.697189331, 0.707100332, -7.88574468e-008, -0.707094491, 6.7967342e-008, 0.999991119, -4.47028512e-008, 0.707100451, 4.37624692e-009, 0.707094193)
  1006. Partweld.Parent = Part
  1007. local PartMesh = Instance.new("BlockMesh",Part)
  1008. PartMesh.Name = "Mesh"
  1009. PartMesh.Offset = Vector3.new(0, 0, 0)
  1010. PartMesh.Scale = Vector3.new(1, 0.812000036, 1)
  1011.  
  1012. local Part = Instance.new("Part", m)
  1013. Part:BreakJoints()
  1014. Part.TopSurface = "Smooth"
  1015. Part.Material = "SmoothPlastic"
  1016. Part.Name = 'Part'
  1017. Part.Transparency = 0 Part.BottomSurface = "Smooth"
  1018. Part.FormFactor = "Custom" Part.CanCollide = false
  1019. Part.BrickColor = BrickColor.new("Navy blue")
  1020. Part.Size = Vector3.new(2.31999993, 0.200000003, 1.85600007)
  1021. local Partweld = Instance.new("ManualWeld")
  1022. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1023. Partweld.C1 = CFrame.new(0, 0.232005119, 0.985790253, 0.999999762, 6.06398487e-010, 1.80602074e-005, -6.05488992e-010, 0.999969959, -6.3331953e-009, -1.80006027e-005, 6.33281516e-009, 0.99996984)
  1024. Partweld.Parent = Part
  1025. local PartMesh = Instance.new("BlockMesh",Part)
  1026. PartMesh.Name = "Mesh"
  1027. PartMesh.Offset = Vector3.new(0, 0, 0)
  1028. PartMesh.Scale = Vector3.new(1, 0.579999983, 1)
  1029.  
  1030. local Part = Instance.new("Part", m)
  1031. Part:BreakJoints()
  1032. Part.TopSurface = "Smooth"
  1033. Part.Material = "SmoothPlastic"
  1034. Part.Name = 'Part'
  1035. Part.Transparency = 0 Part.BottomSurface = "Smooth"
  1036. Part.FormFactor = "Custom" Part.CanCollide = false
  1037. Part.BrickColor = BrickColor.new("New Yeller")
  1038. Part.Size = Vector3.new(0.34799999, 0.200000003, 0.34799999)
  1039. local Partweld = Instance.new("ManualWeld")
  1040. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1041. Partweld.C1 = CFrame.new(-0.697142363, 0.223291397, 0.697052002, 0.707106292, -6.45096577e-007, -0.707100093, 7.29660428e-007, 0.999991119, -4.4702773e-008, 0.707106292, -4.72456946e-007, 0.707100153)
  1042. Partweld.Parent = Part
  1043. local PartMesh = Instance.new("BlockMesh",Part)
  1044. PartMesh.Name = "Mesh"
  1045. PartMesh.Offset = Vector3.new(0, 0, 0)
  1046. PartMesh.Scale = Vector3.new(1, 0.898999929, 1)
  1047.  
  1048. local Part = Instance.new("Part", m)
  1049. Part:BreakJoints()
  1050. Part.TopSurface = "Smooth"
  1051. Part.Material = "SmoothPlastic"
  1052. Part.Name = 'Part'
  1053. Part.Transparency = 0 Part.BottomSurface = "Smooth"
  1054. Part.FormFactor = "Custom" Part.CanCollide = false
  1055. Part.BrickColor = BrickColor.new("Mid gray")
  1056. Part.Size = Vector3.new(2.31999969, 0.200000003, 1.8560003)
  1057. local Partweld = Instance.new("ManualWeld")
  1058. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1059. Partweld.C1 = CFrame.new(0, 0.115994453, 0.985679626, 0.999999762, 6.06839023e-010, 1.80602074e-005, -6.06164008e-010, 0.999978542, -6.33337294e-009, -1.79708004e-005, 6.33308517e-009, 0.999978423)
  1060. Partweld.Parent = Part
  1061. local PartMesh = Instance.new("BlockMesh",Part)
  1062. PartMesh.Name = "Mesh"
  1063. PartMesh.Offset = Vector3.new(0, 0, 0)
  1064. PartMesh.Scale = Vector3.new(1, 0.579999983, 1)
  1065.  
  1066. local Part = Instance.new("Part", m)
  1067. Part:BreakJoints()
  1068. Part.TopSurface = "Smooth"
  1069. Part.Material = "SmoothPlastic"
  1070. Part.Name = 'Part'
  1071. Part.Transparency = 0 Part.BottomSurface = "Smooth"
  1072. Part.FormFactor = "Custom" Part.CanCollide = false
  1073. Part.BrickColor = BrickColor.new("Mid gray")
  1074. Part.Size = Vector3.new(2.31999969, 0.200000003, 1.8560003)
  1075. local Partweld = Instance.new("ManualWeld")
  1076. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1077. Partweld.C1 = CFrame.new(0, -5.7220459e-006, 0.985614777, 0.999999762, 6.06938499e-010, 1.80602074e-005, -6.06267037e-010, 0.999978542, -6.33343333e-009, -1.79708004e-005, 6.33315622e-009, 0.999978423)
  1078. Partweld.Parent = Part
  1079. local PartMesh = Instance.new("BlockMesh",Part)
  1080. PartMesh.Name = "Mesh"
  1081. PartMesh.Offset = Vector3.new(0, 0, 0)
  1082. PartMesh.Scale = Vector3.new(1, 0.579999983, 1)
  1083.  
  1084. local Part = Instance.new("Part", m)
  1085. Part:BreakJoints()
  1086. Part.TopSurface = "Smooth"
  1087. Part.Material = "SmoothPlastic"
  1088. Part.Name = 'Part'
  1089. Part.Transparency = 0 Part.BottomSurface = "Smooth"
  1090. Part.FormFactor = "Custom" Part.CanCollide = false
  1091. Part.BrickColor = BrickColor.new("Navy blue")
  1092. Part.Size = Vector3.new(2.31999993, 0.200000003, 1.85600007)
  1093. local Partweld = Instance.new("ManualWeld")
  1094. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1095. Partweld.C1 = CFrame.new(-3.81469727e-006, -0.231994629, 0.98563385, 0.999999762, 5.88961768e-010, 1.80602074e-005, -5.88052274e-010, 0.999969959, -6.33351505e-009, -1.80006027e-005, 6.3331278e-009, 0.99996984)
  1096. Partweld.Parent = Part
  1097. local PartMesh = Instance.new("BlockMesh",Part)
  1098. PartMesh.Name = "Mesh"
  1099. PartMesh.Offset = Vector3.new(0, 0, 0)
  1100. PartMesh.Scale = Vector3.new(1, 0.579999983, 1)
  1101.  
  1102. local Part = Instance.new("Part", m)
  1103. Part:BreakJoints()
  1104. Part.TopSurface = "Smooth"
  1105. Part.Material = "SmoothPlastic"
  1106. Part.Name = 'Part'
  1107. Part.Transparency = 0 Part.BottomSurface = "Smooth"
  1108. Part.FormFactor = "Custom" Part.CanCollide = false
  1109. Part.BrickColor = BrickColor.new("White")
  1110. Part.Size = Vector3.new(2.31999993, 0.200000003, 0.200000003)
  1111. local Partweld = Instance.new("ManualWeld")
  1112. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1113. Partweld.C1 = CFrame.new(-7.62939453e-006, -0.231983185, -0.000392913818, 0.999999762, 5.89174931e-010, 1.80602074e-005, -5.88627813e-010, 0.999982834, -6.33369623e-009, -1.79708004e-005, 6.33347597e-009, 0.999982774)
  1114. Partweld.Parent = Part
  1115. local PartMesh = Instance.new("BlockMesh",Part)
  1116. PartMesh.Name = "Mesh"
  1117. PartMesh.Offset = Vector3.new(0, 0, 0)
  1118. PartMesh.Scale = Vector3.new(1, 0.579999983, 0.579999983)
  1119.  
  1120. local Part = Instance.new("Part", m)
  1121. Part:BreakJoints()
  1122. Part.TopSurface = "Smooth"
  1123. Part.Material = "SmoothPlastic"
  1124. Part.Name = 'Part'
  1125. Part.Transparency = 0 Part.BottomSurface = "Smooth"
  1126. Part.FormFactor = "Custom" Part.CanCollide = false
  1127. Part.BrickColor = BrickColor.new("New Yeller")
  1128. Part.Size = Vector3.new(0.200000003, 0.34799999, 0.200000003)
  1129. local Partweld = Instance.new("ManualWeld")
  1130. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1131. Partweld.C1 = CFrame.new(0.000408172607, 1.71661377e-005, 1.2179985, 1.81794167e-005, -1.78972357e-007, -0.999982238, 6.07028539e-007, 0.999982357, -1.78961514e-007, 0.999999702, -6.07014329e-007, 1.82688236e-005)
  1132. Partweld.Parent = Part
  1133. local PartMesh = Instance.new("BlockMesh",Part)
  1134. PartMesh.Name = "Mesh"
  1135. PartMesh.Offset = Vector3.new(0, 0, 0)
  1136. PartMesh.Scale = Vector3.new(0.579999983, 1, 0.579999983)
  1137.  
  1138. local Part = Instance.new("Part", m)
  1139. Part:BreakJoints()
  1140. Part.TopSurface = "Smooth"
  1141. Part.Material = "SmoothPlastic"
  1142. Part.Name = 'Part'
  1143. Part.Transparency = 0 Part.BottomSurface = "Smooth"
  1144. Part.FormFactor = "Custom" Part.CanCollide = false
  1145. Part.BrickColor = BrickColor.new("White")
  1146. Part.Size = Vector3.new(0.200000003, 0.200000003, 2.0880003)
  1147. local Partweld = Instance.new("ManualWeld")
  1148. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1149. Partweld.C1 = CFrame.new(1.21799469, -0.231983185, 0.985591888, 0.999999762, 5.89174931e-010, 1.80602074e-005, -5.88627813e-010, 0.999982834, -6.33369623e-009, -1.79708004e-005, 6.33347597e-009, 0.999982774)
  1150. Partweld.Parent = Part
  1151. local PartMesh = Instance.new("BlockMesh",Part)
  1152. PartMesh.Name = "Mesh"
  1153. PartMesh.Offset = Vector3.new(0, 0, 0)
  1154. PartMesh.Scale = Vector3.new(0.579999983, 0.579999983, 1)
  1155.  
  1156. local Part = Instance.new("Part", m)
  1157. Part:BreakJoints()
  1158. Part.TopSurface = "Smooth"
  1159. Part.Material = "SmoothPlastic"
  1160. Part.Name = 'Part'
  1161. Part.Transparency = 0 Part.BottomSurface = "Smooth"
  1162. Part.FormFactor = "Custom" Part.CanCollide = false
  1163. Part.BrickColor = BrickColor.new("White")
  1164. Part.Size = Vector3.new(0.200000003, 0.200000003, 2.0880003)
  1165. local Partweld = Instance.new("ManualWeld")
  1166. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1167. Partweld.C1 = CFrame.new(1.21799469, 0.232002258, 0.985588074, 0.999999762, 5.78641135e-010, 1.80602074e-005, -5.78168624e-010, 0.999980927, -6.33353991e-009, -1.79708004e-005, 6.33334807e-009, 0.999980807)
  1168. Partweld.Parent = Part
  1169. local PartMesh = Instance.new("BlockMesh",Part)
  1170. PartMesh.Name = "Mesh"
  1171. PartMesh.Offset = Vector3.new(0, 0, 0)
  1172. PartMesh.Scale = Vector3.new(0.579999983, 0.579999983, 1)
  1173.  
  1174. local Part = Instance.new("Part", m)
  1175. Part:BreakJoints()
  1176. Part.TopSurface = "Smooth"
  1177. Part.Material = "SmoothPlastic"
  1178. Part.Name = 'Part'
  1179. Part.Transparency = 0 Part.BottomSurface = "Smooth"
  1180. Part.FormFactor = "Custom" Part.CanCollide = false
  1181. Part.BrickColor = BrickColor.new("White")
  1182. Part.Size = Vector3.new(2.31999993, 0.200000003, 0.200000003)
  1183. local Partweld = Instance.new("ManualWeld")
  1184. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1185. Partweld.C1 = CFrame.new(3.81469727e-006, 0.231988907, 1.97200775, 0.999999762, 1.69357861e-011, 5.96046448e-008, -1.6701307e-011, 0.999991179, 2.27373675e-013, 2.98023224e-008, -3.23296945e-013, 0.99999094)
  1186. Partweld.Parent = Part
  1187. local PartMesh = Instance.new("BlockMesh",Part)
  1188. PartMesh.Name = "Mesh"
  1189. PartMesh.Offset = Vector3.new(0, 0, 0)
  1190. PartMesh.Scale = Vector3.new(1, 0.579999983, 0.579999983)
  1191.  
  1192. local HandleMesh = Instance.new("BlockMesh",Handle)
  1193. HandleMesh.Name = "Mesh"
  1194. HandleMesh.Offset = Vector3.new(0, 0, 0)
  1195. HandleMesh.Scale = Vector3.new(1, 1, 0.579999983)
  1196.  
  1197. function damage(hit,Damage,Knockback)
  1198. if hit.Parent==nil then return end
  1199. local CPlayer=bin
  1200. local h=hit.Parent:FindFirstChild("Humanoid")
  1201. if h~=nil and hit.Parent.Name~=char.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1202. if attackdebounce == false then
  1203. attackdebounce = true
  1204. coroutine.resume(coroutine.create(function()
  1205. wait(0.2)
  1206. attackdebounce = false
  1207. end))
  1208. Damage=Damage
  1209. local c=Instance.new("ObjectValue")
  1210. c.Name="creator"
  1211. c.Value=game.Players.LocalPlayer
  1212. c.Parent=h
  1213. game:GetService("Debris"):AddItem(c,.5)
  1214. Damage=Damage+math.random(0,10)
  1215. h.Health=h.Health-Damage
  1216. local vp=Instance.new("BodyVelocity")
  1217. vp.P=500
  1218. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1219. vp.velocity=char.HumanoidRootPart.CFrame.lookVector*Knockback+char.HumanoidRootPart.Velocity/1.05
  1220. if Knockback>0 then
  1221. vp.Parent=hit.Parent.Torso
  1222. end
  1223. game:GetService("Debris"):AddItem(vp,.25)
  1224. game:GetService("Debris"):AddItem(r,.5)
  1225. c=Instance.new("ObjectValue")
  1226. c.Name="creator"
  1227. c.Value=plr
  1228. c.Parent=h
  1229. game:GetService("Debris"):AddItem(c,.5)
  1230. end
  1231. end
  1232. end
  1233.  
  1234. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  1235. if hit.Parent==nil then
  1236. return
  1237. end
  1238. h=hit.Parent:FindFirstChild("Humanoid")
  1239. for _,v in pairs(hit.Parent:children()) do
  1240. if v:IsA("Humanoid") then
  1241. h=v
  1242. end
  1243. end
  1244. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  1245. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  1246. end
  1247. if hit.Parent.className=="Hat" then
  1248. hit=hit.Parent.Parent:findFirstChild("Head")
  1249. end
  1250. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1251. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  1252. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1253. return
  1254. end]]
  1255. -- hs(hit,1.2)
  1256. c=Instance.new("ObjectValue")
  1257. c.Name="creator"
  1258. c.Value=game:service("Players").LocalPlayer
  1259. c.Parent=h
  1260. game:GetService("Debris"):AddItem(c,.5)
  1261. Damage=math.random(minim,maxim)
  1262. -- h:TakeDamage(Damage)
  1263. blocked=false
  1264. block=hit.Parent:findFirstChild("Block")
  1265. if block~=nil then
  1266. print(block.className)
  1267. if block.className=="NumberValue" then
  1268. if block.Value>0 then
  1269. blocked=true
  1270. if decreaseblock==nil then
  1271. block.Value=block.Value-1
  1272. end
  1273. end
  1274. end
  1275. if block.className=="IntValue" then
  1276. if block.Value>0 then
  1277. blocked=true
  1278. if decreaseblock~=nil then
  1279. block.Value=block.Value-1
  1280. end
  1281. end
  1282. end
  1283. end
  1284. if blocked==false then
  1285. -- h:TakeDamage(Damage)
  1286. h.Health=h.Health-Damage
  1287. showDamage(hit.Parent,Damage,.5,BrickColor.new("Navy blue"))
  1288. else
  1289. h.Health=h.Health-(Damage/2)
  1290. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  1291. end
  1292. if Type=="Knockdown" then
  1293. hum=hit.Parent.Humanoid
  1294. hum.PlatformStand=true
  1295. coroutine.resume(coroutine.create(function(HHumanoid)
  1296. swait(1)
  1297. HHumanoid.PlatformStand=false
  1298. end),hum)
  1299. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  1300. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  1301. local bodvol=Instance.new("BodyVelocity")
  1302. bodvol.velocity=angle*knockback
  1303. bodvol.P=5000
  1304. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1305. bodvol.Parent=hit
  1306. rl=Instance.new("BodyAngularVelocity")
  1307. rl.P=3000
  1308. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1309. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1310. rl.Parent=hit
  1311. game:GetService("Debris"):AddItem(bodvol,.5)
  1312. game:GetService("Debris"):AddItem(rl,.5)
  1313. elseif Type=="Normal" then
  1314. vp=Instance.new("BodyVelocity")
  1315. vp.P=500
  1316. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1317. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1318. if KnockbackType==1 then
  1319. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  1320. elseif KnockbackType==2 then
  1321. vp.velocity=Property.CFrame.lookVector*knockback
  1322. end
  1323. if knockback>0 then
  1324. vp.Parent=hit.Parent.Torso
  1325. end
  1326. game:GetService("Debris"):AddItem(vp,.5)
  1327. elseif Type=="Up" then
  1328. local bodyVelocity=Instance.new("BodyVelocity")
  1329. bodyVelocity.velocity=vt(0,60,0)
  1330. bodyVelocity.P=5000
  1331. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1332. bodyVelocity.Parent=hit
  1333. game:GetService("Debris"):AddItem(bodyVelocity,1)
  1334. rl=Instance.new("BodyAngularVelocity")
  1335. rl.P=3000
  1336. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1337. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  1338. rl.Parent=hit
  1339. game:GetService("Debris"):AddItem(rl,.5)
  1340. elseif Type=="Snare" then
  1341. bp=Instance.new("BodyPosition")
  1342. bp.P=2000
  1343. bp.D=100
  1344. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1345. bp.position=hit.Parent.Torso.Position
  1346. bp.Parent=hit.Parent.Torso
  1347. game:GetService("Debris"):AddItem(bp,1)
  1348. elseif Type=="Target" then
  1349. if Targetting==false then
  1350. ZTarget=hit.Parent.Torso
  1351. coroutine.resume(coroutine.create(function(Part)
  1352. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  1353. swait(5)
  1354. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  1355. end),ZTarget)
  1356. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  1357. targetgui=Instance.new("BillboardGui")
  1358. targetgui.Parent=ZTarget
  1359. targetgui.Size=UDim2.new(10,100,10,100)
  1360. targ=Instance.new("ImageLabel")
  1361. targ.Parent=targetgui
  1362. targ.BackgroundTransparency=1
  1363. targ.Image="rbxassetid://4834067"
  1364. targ.Size=UDim2.new(1,0,1,0)
  1365. cam.CameraType="Scriptable"
  1366. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1367. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  1368. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1369. Targetting=true
  1370. RocketTarget=ZTarget
  1371. for i=1,Property do
  1372. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  1373. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  1374. swait()
  1375. end
  1376. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  1377. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1378. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  1379. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  1380. end
  1381. Targetting=false
  1382. RocketTarget=nil
  1383. targetgui.Parent=nil
  1384. cam.CameraType="Custom"
  1385. end
  1386. end
  1387. debounce=Instance.new("BoolValue")
  1388. debounce.Name="DebounceHit"
  1389. debounce.Parent=hit.Parent
  1390. debounce.Value=true
  1391. game:GetService("Debris"):AddItem(debounce,Delay)
  1392. c=Instance.new("ObjectValue")
  1393. c.Name="creator"
  1394. c.Value=Player
  1395. c.Parent=h
  1396. game:GetService("Debris"):AddItem(c,.5)
  1397. CRIT=false
  1398. hitDeb=true
  1399. AttackPos=6
  1400. end
  1401. end
  1402.  
  1403. showDamage=function(Char,Dealt,du,Color)
  1404. m=Instance.new("Model")
  1405. m.Name=tostring(Dealt)
  1406. h=Instance.new("Humanoid")
  1407. h.Health=0
  1408. h.MaxHealth=0
  1409. h.Parent=m
  1410. c=Instance.new("Part")
  1411. c.Transparency=0
  1412. c.BrickColor=Color
  1413. c.Name="Head"
  1414. c.TopSurface=0
  1415. c.BottomSurface=0
  1416. c.formFactor="Plate"
  1417. c.Size=Vector3.new(1,.4,1)
  1418. ms=Instance.new("CylinderMesh")
  1419. ms.Scale=Vector3.new(.8,.8,.8)
  1420. if CRIT==true then
  1421. ms.Scale=Vector3.new(1,1.25,1)
  1422. end
  1423. ms.Parent=c
  1424. c.Reflectance=0
  1425. Instance.new("BodyGyro").Parent=c
  1426. c.Parent=m
  1427. if Char:findFirstChild("Head")~=nil then
  1428. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1429. elseif Char.Parent:findFirstChild("Head")~=nil then
  1430. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1431. end
  1432. f=Instance.new("BodyPosition")
  1433. f.P=2000
  1434. f.D=100
  1435. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1436. f.position=c.Position+Vector3.new(0,3,0)
  1437. f.Parent=c
  1438. game:GetService("Debris"):AddItem(m,.5+du)
  1439. c.CanCollide=false
  1440. m.Parent=workspace
  1441. c.CanCollide=false
  1442. end
  1443.  
  1444. function UnCloak()
  1445. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  1446. Face.Parent=Head
  1447. cloaked=false
  1448. for _,v in pairs(Torso.Parent:children()) do
  1449. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1450. coroutine.resume(coroutine.create(function()
  1451. for i=0,1,0.1 do
  1452. wait()
  1453. v.Transparency=v.Transparency-0.1
  1454. end
  1455. v.Transparency=0
  1456. end))
  1457. end
  1458. if v.className=="Hat" then
  1459. hatp=v.Handle
  1460. coroutine.resume(coroutine.create(function(derp)
  1461. for i=0,1,0.1 do
  1462. wait()
  1463. derp.Transparency=derp.Transparency-0.1
  1464. end
  1465. derp.Transparency=0
  1466. end),hatp)
  1467. end
  1468. end
  1469. for _,v in pairs(blocks) do
  1470. if v.className=="Part" and v.Name~="Torso" and v.Name~='tip' then
  1471. coroutine.resume(coroutine.create(function()
  1472. for i=0,1,0.1 do
  1473. wait()
  1474. v.Transparency=v.Transparency-0.1
  1475. end
  1476. v.Transparency=0
  1477. end))
  1478. v.Transparency=0
  1479. end
  1480. end
  1481. end
  1482. meshids = {["penguin"] = 15853464, ["ring"] = 3270017,
  1483. ["spike"] = 1033714,["cone"] = 1082802,["crown"] = 20329976,["crossbow"] = 15886761,
  1484. ["cloud"] = 1095708,["mjolnir"] = 1279013,["diamond"] = 9756362, ["hand"] = 37241605,
  1485. ["fist"] = 65322375,["skull"] = 36869983,["totem"] = 35624068,["spikeb"] = 9982590,["dragon"] = 58430372,["fish"] = 31221717, ["coffee"] = 15929962,["spiral"] = 1051557,
  1486. ["ramen"] = 19380188,["lightning"] = 72583597,["bullet"]=2697549}---some meshids
  1487. textureids = {["cone"] = 1082804,["rainbow"] = 28488599,["fish"] = 31221733, ["coffee"] = 24181455,["monster"] = 33366441,["ramen"] = 19380153}
  1488. soundids = {["bell"] = 20005706,["flintlock"] = 13510352,["falcon"] = 1387390,['sensa'] = 4700455,
  1489. ['midas'] = 17385513;
  1490. ['spark'] = 10756118;
  1491. ['boom'] = 10730819;
  1492. ['plank'] = 10548112;
  1493. ['harmonica1'] = 33069371;
  1494. ['harmonica2'] = 33069412;
  1495. ['thump'] = 10730819;
  1496. }
  1497.  
  1498. cfn,ang,v3n,ud2n,V2 = CFrame.new,CFrame.Angles,Vector3.new,UDim2.new,Vector2.new
  1499.  
  1500. M = {["R"] = function(a,b) return math.random(a,b) end,
  1501. ["Cos"] = function(a) return math.cos(a) end,
  1502. ["Sin"] = function(a) return math.sin(a) end,
  1503. ["D"] = function(a) return math.rad(a) end
  1504. }
  1505.  
  1506. T = {["P"] = function(x,y,z,color,transparency,cancollide,anchored,parent,typee)
  1507. if typee == 'wedge' then
  1508. c = Instance.new("WedgePart",m)
  1509. elseif typee == 'seat' then
  1510. c = Instance.new("Seat",m)
  1511. elseif typee == 'vseat' then
  1512. c = Instance.new("VehicleSeat",m)
  1513. else
  1514. c = Instance.new("Part",m)
  1515. end
  1516. c.TopSurface,c.BottomSurface = 0,0
  1517. c.Locked = true
  1518. c.formFactor = "Custom"
  1519. c.Size = Vector3.new(x,y,z)
  1520. if color ~= "random" then
  1521. c.BrickColor = BrickColor.new(color)
  1522. else c.BrickColor = BrickColor:random()
  1523. end
  1524. c.Transparency = transparency
  1525. c.CanCollide = cancollide
  1526. if anchored ~= nil then c.Anchored = anchored end
  1527. if parent ~= nil then c.Parent = parent end
  1528. return c
  1529. end
  1530. ,
  1531. ["C"] = function(func) coroutine.resume(coroutine.create(func)) end
  1532. ,
  1533. ["W"] = function(part0,part1,x,y,z,rx,ry,rz,parent)
  1534. w = Instance.new("Motor",m)
  1535. if parent ~= nil then w.Parent = parent end
  1536. w.Part0,w.Part1 = part0,part1
  1537. w.C1 = CFrame.new(x,y,z) * CFrame.Angles(rx,ry,rz)
  1538. return w
  1539. end
  1540. ,
  1541. ["BG"] = function(parent)
  1542. local c = Instance.new("BodyGyro",parent)
  1543. c.P = 20e+003
  1544. c.cframe = parent.CFrame
  1545. c.maxTorque = Vector3.new(c.P,c.P,c.P)
  1546. return c
  1547. end
  1548. ,
  1549. ["BP"] = function(parent,position)
  1550. local bp = Instance.new("BodyPosition",parent)
  1551. bp.maxForce = Vector3.new()*math.huge
  1552. bp.position = position
  1553. return bp
  1554. end
  1555. ,
  1556. ["F"] = function(parent,size,heat,color,secondcolor,enabled)
  1557. f = Instance.new("Fire",parent)
  1558. f.Size = size
  1559. f.Heat = heat
  1560. if enabled ~= nil then f.Enabled = enabled end
  1561. if color ~= nil then f.Color = BrickColor.new(color).Color end
  1562. if secondcolor ~= nil then f.SecondaryColor = BrickColor.new(secondcolor).Color end
  1563. return f
  1564. end
  1565. ,
  1566. ["FM"] = function(parent,meshid,x,y,z,meshtexture)
  1567. if meshid == "cylinder" then
  1568. mesh = Instance.new("CylinderMesh",parent)
  1569. mesh.Scale = Vector3.new(x,y,z)
  1570. return mesh
  1571. elseif meshid == 'block' then
  1572. mesh = Instance.new("BlockMesh",parent)
  1573. mesh.Scale = Vector3.new(x,y,z)
  1574. return mesh
  1575. end
  1576. mesh = Instance.new("SpecialMesh",parent)
  1577. if meshid == 'wedge' then
  1578. mesh.MeshType = 'Wedge'
  1579. elseif meshid == 'sphere' then
  1580. mesh.MeshType = 3
  1581. elseif type(meshid) == "number" then
  1582. mesh.MeshId = "rbxassetid://"..meshid
  1583. else
  1584. mesh.MeshId = "rbxassetid://"..meshids[meshid]
  1585. end
  1586. mesh.Scale = Vector3.new(x,y,z)
  1587. if meshtexture then
  1588. if type(meshtexture) == "number" then mesh.TextureId = "rbxassetid://"..meshtexture else
  1589. mesh.TextureId = "rbxassetid://"..textureids[meshtexture] end
  1590. end
  1591. return mesh
  1592. end,
  1593. ["Dec"] = function(parent,face,id,transparency)
  1594. c = Instance.new("Decal",parent)
  1595. c.Face = face
  1596. c.Texture = id
  1597. if transparency then c.Transparency = transparency end
  1598. return c
  1599. end,
  1600. ["S"] = function(id,pitch,volume,parent)
  1601. cur = nil
  1602. found = false
  1603. if type(id) == 'string' then
  1604. for i,v in pairs(char.Head:children()) do
  1605. if v:IsA("Sound") and v.Name == id and not found then
  1606. cur = v
  1607. if parent then cur = v:Clone() cur.Parent = parent end
  1608. cur.Pitch = pitch
  1609. if volume then cur.Volume = volume end
  1610. cur:Play()
  1611. found = true
  1612. return cur
  1613. end
  1614. end
  1615. elseif type(id) == 'number' then
  1616. local a = char.Head:FindFirstChild('exteo')
  1617. a.SoundId = 'rbxassetid://'..id
  1618. a.Pitch = pitch
  1619. if volume then a.Volume = volume end
  1620. a:Play()
  1621. return a
  1622. end
  1623. end
  1624. }
  1625.  
  1626. function damage(hit,amount,delay)
  1627. for i,v in pairs(hit:children()) do
  1628. if v:IsA("Humanoid") and v.Parent ~= char then
  1629. if delay then
  1630. local found = v:FindFirstChild('tag')
  1631. if not found then
  1632. local a = Instance.new("StringValue",v)
  1633. a.Name = 'tag ur it'
  1634. game:service'Debris':AddItem(a,delay)
  1635. v.Health = v.Health - amount
  1636. end
  1637. else v.Health = v.Health - amount
  1638. end
  1639. end
  1640. end
  1641. end
  1642.  
  1643. function lightning(startpos,endpos,times,offse,livetime,col,dmg)
  1644. local curpos = startpos
  1645. for i = 1,times do
  1646. local mag = (startpos-endpos).magnitude
  1647. local offs = {-offse,offse}
  1648. local offset = v3n(offs[M.R(1,2)],offs[M.R(1,2)],offs[M.R(1,2)])
  1649. laz = T.P(.1,.1,mag/times,col,0,false,true,m)
  1650. laz.Parent=m
  1651. laz.Transparency=.5
  1652. if dmg then laz.Touched:connect(function(hit) dmgstart(laz,5) end) end
  1653. local apos = (cfn(curpos,endpos)*cfn(0,0,-mag/times)).p+offset
  1654. if times == i then
  1655. local mag2 = (curpos-endpos).magnitude
  1656. laz.Size = v3n(.1,.1,mag2)
  1657. laz.CFrame = cfn(curpos,endpos)*cfn(0,0,-mag2/2)
  1658. else
  1659. laz.CFrame = cfn(curpos,apos)*cfn(0,0,-mag/times/2)
  1660. end
  1661. curpos = laz.CFrame*cfn(0,0,-mag/times/2).p game:service'Debris':AddItem(laz,livetime)
  1662. pcall(function()
  1663. dmgstop()
  1664. end)
  1665. end
  1666. end
  1667.  
  1668. function magicring(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
  1669. local prt=part(3,workspace,0,0,brickcolor,"Effect",Vector3.new(0.5,0.5,0.5))
  1670. prt.Anchored=true
  1671. prt.CFrame=cframe
  1672. prt.Touched:connect(function(hit) damage(hit, 10, 10) end)
  1673. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",Vector3.new(0,0,0),Vector3.new(x1,y1,z1))
  1674. coroutine.resume(coroutine.create(function(Part,Mesh)
  1675. for i=0,1,0.03 do
  1676. wait()
  1677. Part.CFrame=Part.CFrame
  1678. Part.Transparency=i
  1679. Mesh.Scale=Mesh.Scale+Vector3.new(x3,y3,z3)
  1680. end
  1681. Part.Parent=nil
  1682. end),prt,msh)
  1683. end
  1684.  
  1685. function MagicBlocka(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1686. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1687. prt.Anchored=true
  1688. prt.CFrame=cframe
  1689. prt.Transparency=1
  1690. prt.Size = Vector3.new(5,5,5)
  1691. --msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1692. game:GetService("Debris"):AddItem(prt,5)
  1693. coroutine.resume(coroutine.create(function(Part,Mesh)
  1694. for i=0,1,delay do
  1695. wait()
  1696. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1697. Part.Transparency=1
  1698. --Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1699. end
  1700. Part.Parent=nil
  1701. return Part
  1702. end),prt,msh)
  1703. return prt
  1704. end
  1705.  
  1706. mouse.Button1Down:connect(function()
  1707. if attack==false then
  1708. if attacktype==1 then
  1709. attack=true
  1710. attacktype=2
  1711. attackone()
  1712. elseif attacktype==2 then
  1713. attack=true
  1714. attacktype=3
  1715. attackone()
  1716. elseif attacktype==3 then
  1717. attack=true
  1718. attacktype=1
  1719. attackone()
  1720. end
  1721. end
  1722. end)
  1723.  
  1724. function attackone()
  1725. attack=true
  1726. for i=0,1,0.1 do
  1727. swait()
  1728. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-1.2),.3)
  1729. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,1.2),.3)
  1730. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3)
  1731. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-0.5,.8),.3)
  1732. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
  1733. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
  1734. end
  1735. so("http://roblox.com/asset/?id=228343249",Torso,1,1)
  1736. --con1=Torso.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(10,20),"Normal",RootPart,.2,1) end)
  1737. for i = 1, 4 do
  1738. magicring(BrickColor.new("New Yeller"),Torso.CFrame*CFrame.new(10,0,0)*CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,0.1,1,1,0.05)
  1739. magicring(BrickColor.new("Navy blue"),Torso.CFrame*CFrame.new(10,0,0)*CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,0.1,1,1,0.05)
  1740. --hiasd=MagicBlocka(BrickColor.new("Black"),Torso.CFrame*CFrame.new(10,0,0)*CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,0.1,1,1,0.05)
  1741. --dmgstart(5,hiasd)
  1742. end
  1743. hiasd=MagicBlocka(BrickColor.new("Black"),Torso.CFrame*CFrame.new(10,0,0)*CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,0.1,1,1,0.05)
  1744. dmgstart(5,hiasd)
  1745. for i=0,1,0.1 do
  1746. swait()
  1747. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,1),.3)
  1748. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1),.3)
  1749. --RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.2,1.2,0)*euler(-1.5,0,0),.3)
  1750. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.2,-.2,-1.4),.3)
  1751. end
  1752. dmgstop()
  1753. attack=false
  1754. end
  1755.  
  1756. local sine = 0
  1757. local change = 1
  1758. local val = 0
  1759.  
  1760. while true do
  1761. swait()
  1762. sine = sine + change
  1763. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1764. local velderp=RootPart.Velocity.y
  1765. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1766. if equipped==true or equipped==false then
  1767. if attack==false then
  1768. idle=idle+1
  1769. else
  1770. idle=0
  1771. end
  1772. if idle>=500 then
  1773. if attack==false then
  1774. --Sheath()
  1775. end
  1776. end
  1777. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1778. Anim="Jump"
  1779. if attack==false then
  1780. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  1781. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1782. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1783. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,0.5),.3)
  1784. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1785. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3)
  1786. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1787. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  1788. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  1789. --Handleweld.C0=clerp(--Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1790. end
  1791. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1792. Anim="Fall"
  1793. if attack==false then
  1794. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
  1795. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1796. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1797. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.3,0,0.2),.3)
  1798. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1799. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3)
  1800. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1801. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  1802. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  1803. --Handleweld.C0=clerp(--Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1804. end
  1805. elseif torvel<1 and hitfloor~=nil then
  1806. Anim="Idle"
  1807. if attack==false then
  1808. RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(0),math.rad(0),math.rad(-45)),.3)
  1809. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(45)),.3)
  1810. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-2),math.rad(-25),math.rad(15)),.3)
  1811. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  1812. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1813. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1814. --Handleweld.C0=clerp(--Handleweld.C0,cf(0,0,0)*angles(math.rad(-15),math.rad(0),math.rad(0)),.3)
  1815. end
  1816. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  1817. local idleanim=0
  1818. Anim="Walk"
  1819. if attack==false then
  1820. change=3
  1821. --[[RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(35),math.rad(0),math.rad(15*math.cos(sine/10))),.3)
  1822. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
  1823. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-135*math.cos(sine/9)),math.rad(0),math.rad(0)),.3)
  1824. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(135*math.cos(sine/9)),math.rad(0),math.rad(0)),.3)
  1825. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1826. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1827. --Handleweld.C0=clerp(--Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)]]--
  1828. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  1829. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,0),.2)
  1830. --RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-0.1,0,0.2),.2)
  1831. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-5),math.rad(-25),math.rad(20)),.3)
  1832. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(5),math.rad(25),math.rad(-20)),.3)
  1833. RH.C0=clerp(RH.C0,RHC0,.3)
  1834. LH.C0=clerp(LH.C0,LHC0,.3)
  1835. end
  1836. elseif torvel>=22 and hitfloor~=nil then
  1837. Anim="Run"
  1838. if attack==false then
  1839. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(45),math.rad(0),math.rad(0)),.3)
  1840. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-40),math.rad(0),math.rad(0)),.3)
  1841. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-60),math.rad(0),math.rad(0)),.3)
  1842. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-60),math.rad(0),math.rad(0)),.3)
  1843. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1844. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1845. --Handleweld.C0=clerp(--Handleweld.C0,cf(0,-.5,-.7)*angles(math.rad(-75),math.rad(0),math.rad(0)),.3)
  1846. end
  1847. end
  1848. end
  1849. end
  1850. --156434034D
Add Comment
Please, Sign In to add comment