Spell Book


SUBMITTED BY: P2NP

DATE: May 9, 2017, 1:13 a.m.

FORMAT: Text only

SIZE: 96.6 kB

HITS: 892

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

comments powered by Disqus