Guest User

Untitled

a guest
Dec 10th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 48.07 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=.2
  44. attackmode='none'
  45. local idle=0
  46. local Anim="Idle"
  47. local Effects={}
  48. local gun=false
  49. local shoot=false
  50. player=nil
  51. mana=0
  52.  
  53. mouse=Player:GetMouse()
  54. --save shoulders
  55. RSH, LSH=nil, nil
  56. --welds
  57. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  58. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  59. LH=Torso["Left Hip"]
  60. RH=Torso["Right Hip"]
  61. TorsoColor=Torso.BrickColor
  62. function NoOutline(Part)
  63. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  64. end
  65. player=Player
  66. ch=Character
  67. RSH=ch.Torso["Right Shoulder"]
  68. LSH=ch.Torso["Left Shoulder"]
  69. --
  70. RSH.Parent=nil
  71. LSH.Parent=nil
  72. --
  73. RW.Name="Right Shoulder"
  74. RW.Part0=ch.Torso
  75. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  76. RW.C1=cf(0, 0.5, 0)
  77. RW.Part1=ch["Right Arm"]
  78. RW.Parent=ch.Torso
  79. --
  80. LW.Name="Left Shoulder"
  81. LW.Part0=ch.Torso
  82. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  83. LW.C1=cf(0, 0.5, 0)
  84. LW.Part1=ch["Left Arm"]
  85. LW.Parent=ch.Torso
  86.  
  87. Player=game:GetService('Players').LocalPlayer
  88. Character=Player.Character
  89. Mouse=Player:GetMouse()
  90. m=Instance.new('Model',Character)
  91.  
  92.  
  93. local function weldBetween(a, b)
  94. local weldd = Instance.new("ManualWeld")
  95. weldd.Part0 = a
  96. weldd.Part1 = b
  97. weldd.C0 = CFrame.new()
  98. weldd.C1 = b.CFrame:inverse() * a.CFrame
  99. weldd.Parent = a
  100. return weldd
  101. end
  102.  
  103. function swait(num)
  104. if num==0 or num==nil then
  105. game:service'RunService'.Stepped:wait(0)
  106. else
  107. for i=0,num do
  108. game:service'RunService'.Stepped:wait(0)
  109. end
  110. end
  111. end
  112.  
  113. function nooutline(part)
  114. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  115. end
  116.  
  117. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  118. local fp=it("Part")
  119. fp.formFactor=formfactor
  120. fp.Parent=parent
  121. fp.Reflectance=reflectance
  122. fp.Transparency=transparency
  123. fp.CanCollide=false
  124. fp.Locked=true
  125. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  126. fp.Name=name
  127. fp.Size=size
  128. fp.Position=Character.Torso.Position
  129. nooutline(fp)
  130. fp.Material=material
  131. fp:BreakJoints()
  132. return fp
  133. end
  134.  
  135. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  136. local mesh=it(Mesh)
  137. mesh.Parent=part
  138. if Mesh=="SpecialMesh" then
  139. mesh.MeshType=meshtype
  140. mesh.MeshId=meshid
  141. end
  142. mesh.Offset=offset
  143. mesh.Scale=scale
  144. return mesh
  145. end
  146.  
  147. function weld(parent,part0,part1,c0,c1)
  148. local weld=it("Weld")
  149. weld.Parent=parent
  150. weld.Part0=part0
  151. weld.Part1=part1
  152. weld.C0=c0
  153. weld.C1=c1
  154. return weld
  155. end
  156.  
  157.  
  158. local function CFrameFromTopBack(at, top, back)
  159. local right = top:Cross(back)
  160. return CFrame.new(at.x, at.y, at.z,
  161. right.x, top.x, back.x,
  162. right.y, top.y, back.y,
  163. right.z, top.z, back.z)
  164. end
  165.  
  166. function Triangle(a, b, c)
  167. local edg1 = (c-a):Dot((b-a).unit)
  168. local edg2 = (a-b):Dot((c-b).unit)
  169. local edg3 = (b-c):Dot((a-c).unit)
  170. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  171. a, b, c = a, b, c
  172. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  173. a, b, c = b, c, a
  174. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  175. a, b, c = c, a, b
  176. else
  177. assert(false, "unreachable")
  178. end
  179.  
  180. local len1 = (c-a):Dot((b-a).unit)
  181. local len2 = (b-a).magnitude - len1
  182. local width = (a + (b-a).unit*len1 - c).magnitude
  183.  
  184. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  185.  
  186. local list = {}
  187.  
  188. local TrailColor = ("Dark grey")
  189.  
  190. if len1 > 0.01 then
  191. local w1 = Instance.new('WedgePart', m)
  192. game:GetService("Debris"):AddItem(w1,5)
  193. w1.Material = "SmoothPlastic"
  194. w1.FormFactor = 'Custom'
  195. w1.BrickColor = BrickColor.new(TrailColor)
  196. w1.Transparency = 0
  197. w1.Reflectance = 0
  198. w1.Material = "SmoothPlastic"
  199. w1.CanCollide = false
  200. NoOutline(w1)
  201. local sz = Vector3.new(0.2, width, len1)
  202. w1.Size = sz
  203. local sp = Instance.new("SpecialMesh",w1)
  204. sp.MeshType = "Wedge"
  205. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  206. w1:BreakJoints()
  207. w1.Anchored = true
  208. w1.Parent = workspace
  209. w1.Transparency = 0.7
  210. table.insert(Effects,{w1,"Disappear",.01})
  211. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  212. table.insert(list,w1)
  213. end
  214.  
  215. if len2 > 0.01 then
  216. local w2 = Instance.new('WedgePart', m)
  217. game:GetService("Debris"):AddItem(w2,5)
  218. w2.Material = "SmoothPlastic"
  219. w2.FormFactor = 'Custom'
  220. w2.BrickColor = BrickColor.new(TrailColor)
  221. w2.Transparency = 0
  222. w2.Reflectance = 0
  223. w2.Material = "SmoothPlastic"
  224. w2.CanCollide = false
  225. NoOutline(w2)
  226. local sz = Vector3.new(0.2, width, len2)
  227. w2.Size = sz
  228. local sp = Instance.new("SpecialMesh",w2)
  229. sp.MeshType = "Wedge"
  230. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  231. w2:BreakJoints()
  232. w2.Anchored = true
  233. w2.Parent = workspace
  234. w2.Transparency = 0.7
  235. table.insert(Effects,{w2,"Disappear",.01})
  236. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  237. table.insert(list,w2)
  238. end
  239. return unpack(list)
  240. end
  241.  
  242.  
  243. so = function(id,par,vol,pit)
  244. coroutine.resume(coroutine.create(function()
  245. local sou = Instance.new("Sound",par or workspace)
  246. sou.Volume=vol
  247. sou.Pitch=pit or 1
  248. sou.SoundId=id
  249. swait()
  250. sou:play()
  251. game:GetService("Debris"):AddItem(sou,6)
  252. end))
  253. end
  254.  
  255. function clerp(a,b,t)
  256. local qa = {QuaternionFromCFrame(a)}
  257. local qb = {QuaternionFromCFrame(b)}
  258. local ax, ay, az = a.x, a.y, a.z
  259. local bx, by, bz = b.x, b.y, b.z
  260. local _t = 1-t
  261. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  262. end
  263.  
  264. function QuaternionFromCFrame(cf)
  265. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  266. local trace = m00 + m11 + m22
  267. if trace > 0 then
  268. local s = math.sqrt(1 + trace)
  269. local recip = 0.5/s
  270. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  271. else
  272. local i = 0
  273. if m11 > m00 then
  274. i = 1
  275. end
  276. if m22 > (i == 0 and m00 or m11) then
  277. i = 2
  278. end
  279. if i == 0 then
  280. local s = math.sqrt(m00-m11-m22+1)
  281. local recip = 0.5/s
  282. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  283. elseif i == 1 then
  284. local s = math.sqrt(m11-m22-m00+1)
  285. local recip = 0.5/s
  286. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  287. elseif i == 2 then
  288. local s = math.sqrt(m22-m00-m11+1)
  289. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  290. end
  291. end
  292. end
  293.  
  294. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  295. local xs, ys, zs = x + x, y + y, z + z
  296. local wx, wy, wz = w*xs, w*ys, w*zs
  297. local xx = x*xs
  298. local xy = x*ys
  299. local xz = x*zs
  300. local yy = y*ys
  301. local yz = y*zs
  302. local zz = z*zs
  303. 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))
  304. end
  305.  
  306. function QuaternionSlerp(a, b, t)
  307. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  308. local startInterp, finishInterp;
  309. if cosTheta >= 0.0001 then
  310. if (1 - cosTheta) > 0.0001 then
  311. local theta = math.acos(cosTheta)
  312. local invSinTheta = 1/math.sin(theta)
  313. startInterp = math.sin((1-t)*theta)*invSinTheta
  314. finishInterp = math.sin(t*theta)*invSinTheta
  315. else
  316. startInterp = 1-t
  317. finishInterp = t
  318. end
  319. else
  320. if (1+cosTheta) > 0.0001 then
  321. local theta = math.acos(-cosTheta)
  322. local invSinTheta = 1/math.sin(theta)
  323. startInterp = math.sin((t-1)*theta)*invSinTheta
  324. finishInterp = math.sin(t*theta)*invSinTheta
  325. else
  326. startInterp = t-1
  327. finishInterp = t
  328. end
  329. end
  330. 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
  331. end
  332.  
  333. --Example: Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  334.  
  335.  
  336. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  337. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  338. end
  339.  
  340. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  341. if hit.Parent==nil then
  342. return
  343. end
  344. h=hit.Parent:FindFirstChild("Humanoid")
  345. for _,v in pairs(hit.Parent:children()) do
  346. if v:IsA("Humanoid") then
  347. h=v
  348. end
  349. end
  350. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  351. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  352. end
  353. if hit.Parent.className=="Hat" then
  354. hit=hit.Parent.Parent:findFirstChild("Head")
  355. end
  356. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  357. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  358. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  359. return
  360. end]]
  361. -- hs(hit,1.2)
  362. c=Instance.new("ObjectValue")
  363. c.Name="creator"
  364. c.Value=game:service("Players").LocalPlayer
  365. c.Parent=h
  366. game:GetService("Debris"):AddItem(c,.5)
  367. Damage=math.random(minim,maxim)
  368. -- h:TakeDamage(Damage)
  369. blocked=false
  370. block=hit.Parent:findFirstChild("Block")
  371. if block~=nil then
  372. print(block.className)
  373. if block.className=="NumberValue" then
  374. if block.Value>0 then
  375. blocked=true
  376. if decreaseblock==nil then
  377. block.Value=block.Value-1
  378. end
  379. end
  380. end
  381. if block.className=="IntValue" then
  382. if block.Value>0 then
  383. blocked=true
  384. if decreaseblock~=nil then
  385. block.Value=block.Value-1
  386. end
  387. end
  388. end
  389. end
  390. if blocked==false then
  391. -- h:TakeDamage(Damage)
  392. h.Health=h.Health-Damage
  393. showDamage(hit.Parent,Damage,.5,BrickColor.new("Bright red"))
  394. else
  395. h.Health=h.Health-(Damage/2)
  396. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  397. end
  398. if Type=="Knockdown" then
  399. hum=hit.Parent.Humanoid
  400. hum.PlatformStand=true
  401. coroutine.resume(coroutine.create(function(HHumanoid)
  402. swait(1)
  403. HHumanoid.PlatformStand=false
  404. end),hum)
  405. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  406. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  407. local bodvol=Instance.new("BodyVelocity")
  408. bodvol.velocity=angle*knockback
  409. bodvol.P=5000
  410. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  411. bodvol.Parent=hit
  412. rl=Instance.new("BodyAngularVelocity")
  413. rl.P=3000
  414. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  415. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  416. rl.Parent=hit
  417. game:GetService("Debris"):AddItem(bodvol,.5)
  418. game:GetService("Debris"):AddItem(rl,.5)
  419. elseif Type=="Normal" then
  420. vp=Instance.new("BodyVelocity")
  421. vp.P=500
  422. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  423. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  424. if KnockbackType==1 then
  425. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  426. elseif KnockbackType==2 then
  427. vp.velocity=Property.CFrame.lookVector*knockback
  428. end
  429. if knockback>0 then
  430. vp.Parent=hit.Parent.Torso
  431. end
  432. game:GetService("Debris"):AddItem(vp,.5)
  433. elseif Type=="Up" then
  434. local bodyVelocity=Instance.new("BodyVelocity")
  435. bodyVelocity.velocity=vt(0,60,0)
  436. bodyVelocity.P=5000
  437. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  438. bodyVelocity.Parent=hit
  439. game:GetService("Debris"):AddItem(bodyVelocity,1)
  440. rl=Instance.new("BodyAngularVelocity")
  441. rl.P=3000
  442. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  443. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  444. rl.Parent=hit
  445. game:GetService("Debris"):AddItem(rl,.5)
  446. elseif Type=="Snare" then
  447. bp=Instance.new("BodyPosition")
  448. bp.P=2000
  449. bp.D=100
  450. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  451. bp.position=hit.Parent.Torso.Position
  452. bp.Parent=hit.Parent.Torso
  453. game:GetService("Debris"):AddItem(bp,1)
  454. elseif Type=="Target" then
  455. if Targetting==false then
  456. ZTarget=hit.Parent.Torso
  457. coroutine.resume(coroutine.create(function(Part)
  458. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  459. swait(5)
  460. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  461. end),ZTarget)
  462. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  463. targetgui=Instance.new("BillboardGui")
  464. targetgui.Parent=ZTarget
  465. targetgui.Size=UDim2.new(10,100,10,100)
  466. targ=Instance.new("ImageLabel")
  467. targ.Parent=targetgui
  468. targ.BackgroundTransparency=1
  469. targ.Image="rbxassetid://4834067"
  470. targ.Size=UDim2.new(1,0,1,0)
  471. cam.CameraType="Scriptable"
  472. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  473. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  474. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  475. Targetting=true
  476. RocketTarget=ZTarget
  477. for i=1,Property do
  478. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  479. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  480. swait()
  481. end
  482. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  483. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  484. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  485. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  486. end
  487. Targetting=false
  488. RocketTarget=nil
  489. targetgui.Parent=nil
  490. cam.CameraType="Custom"
  491. end
  492. end
  493. debounce=Instance.new("BoolValue")
  494. debounce.Name="DebounceHit"
  495. debounce.Parent=hit.Parent
  496. debounce.Value=true
  497. game:GetService("Debris"):AddItem(debounce,Delay)
  498. c=Instance.new("ObjectValue")
  499. c.Name="creator"
  500. c.Value=Player
  501. c.Parent=h
  502. game:GetService("Debris"):AddItem(c,.5)
  503. CRIT=false
  504. hitDeb=true
  505. AttackPos=6
  506. end
  507. end
  508.  
  509. showDamage=function(Char,Dealt,du,Color)
  510. m=Instance.new("Model")
  511. m.Name=tostring(Dealt)
  512. h=Instance.new("Humanoid")
  513. h.Health=0
  514. h.MaxHealth=0
  515. h.Parent=m
  516. c=Instance.new("Part")
  517. c.Transparency=0
  518. c.BrickColor=Color
  519. c.Name="Head"
  520. c.TopSurface=0
  521. c.BottomSurface=0
  522. c.formFactor="Plate"
  523. c.Size=Vector3.new(1,.4,1)
  524. ms=Instance.new("CylinderMesh")
  525. ms.Scale=Vector3.new(.8,.8,.8)
  526. if CRIT==true then
  527. ms.Scale=Vector3.new(1,1.25,1)
  528. end
  529. ms.Parent=c
  530. c.Reflectance=0
  531. Instance.new("BodyGyro").Parent=c
  532. c.Parent=m
  533. if Char:findFirstChild("Head")~=nil then
  534. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  535. elseif Char.Parent:findFirstChild("Head")~=nil then
  536. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  537. end
  538. f=Instance.new("BodyPosition")
  539. f.P=2000
  540. f.D=100
  541. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  542. f.position=c.Position+Vector3.new(0,3,0)
  543. f.Parent=c
  544. game:GetService("Debris"):AddItem(m,.5+du)
  545. c.CanCollide=false
  546. m.Parent=workspace
  547. c.CanCollide=false
  548. end
  549.  
  550. handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.10000000149012,0,"Really black","Handle",Vector3.new(0.369804025, 1.84901965, 0.369803846))
  551. handleweld=weld(m,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.900197744, -0.0494179726, 0.0825119019, 0, -0.999993443, 0, 0, 0, -1, 1, 0, 0))
  552. mesh("CylinderMesh",handle,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  553. FlamePrt1=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really red","FlamePrt1",Vector3.new(0.208559111, 2.58862758, 0.208559081))
  554. FlamePrt1weld=weld(m,handle,FlamePrt1,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.462256908, -3.14333391, 0.00839996338, 0.999986649, 0, 0, 0, 1, 0, 0, 0, 0.999999762))
  555. mesh("BlockMesh",FlamePrt1,"","",Vector3.new(0, 0, 0),Vector3.new(0.886568844, 1, 0.0531941466))
  556. FlamePrt2=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really red","FlamePrt2",Vector3.new(0.369804025, 4.43764687, 0.208559081))
  557. FlamePrt2weld=weld(m,handle,FlamePrt2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.369809985, -3.69803858, 0.00839996338, 0.999986768, 0, 0, 0, 1, 0, 0, 0, 0.999999881))
  558. mesh("BlockMesh",FlamePrt2,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.0531941466))
  559. FlamePrt3=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really red","FlamePrt3",Vector3.new(0.208559111, 1.10941172, 1.66411757))
  560. FlamePrt3weld=weld(m,handle,FlamePrt3,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00842285156, -0.00544404984, 6.74883699, 5.96038632e-008, 1.43051147e-006, -0.999993443, 0.999986053, 1.49011612e-007, -1.49011612e-008, 2.08613457e-007, -0.999993384, -1.43051147e-006))
  561. mesh("SpecialMesh",FlamePrt3,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.0691523701, 0.991999984, 1))
  562. Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,1,"Dark stone grey","Hitbox",Vector3.new(1.4792161, 5.73196125, 0.208559081))
  563. Hitboxweld=weld(m,handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.29153442e-006, -4.34519243, 0.00839996338, 0.999986887, 0, 0, 0, 1, 0, 0, 0, 1))
  564. mesh("BlockMesh",Hitbox,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.886568666))
  565. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.10000000149012,0,"Really red","Part",Vector3.new(0.369804025, 0.208559081, 0.369803846))
  566. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.1920929e-005, -1.01696682, 0, 0.999986887, 0, 0, 0, 1, 0, 0, 0, 1))
  567. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.886568725, 1))
  568. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Dark stone grey","Part",Vector3.new(0.208559111, 0.369803935, 0.208559081))
  569. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.46224308, -1.66419077, 0.00839996338, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.999999523))
  570. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.886568844, 1, 0.886568666))
  571. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.554706097, 0.369803965, 0.369803905))
  572. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.5717473, 1.1920929e-005, 0, -7.45048254e-008, 0.999999642, 1.4894308e-009, -0.999986351, 8.94069672e-008, -4.54347671e-010, 1.08588472e-008, -4.37113847e-008, 0.999999642))
  573. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(0.667496145, 0.698929608, 2.30387807))
  574. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.208559111, 0.208559081, 0.208559081))
  575. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-5.08479548, 0.00839996338, 0.277337313, 0, 1, 0, 0, 0, 1, 0.999986887, 0, 0))
  576. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.886568844, 0.914938867, 0.365266263))
  577. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.208559111, 0.208559081, 0.208559081))
  578. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.53009844, 0.00841522217, 0.46224308, 0, 1, 0, 0, 0, 0.999999523, 0.99998641, 0, 0))
  579. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.886568844, 0.914938867, 0.365266263))
  580. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Dark stone grey","Part",Vector3.new(0.369804025, 0.208559081, 0.369803905))
  581. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 1.38683319, 0.554719806, 1.3857898e-006, 1.48921329e-008, -0.999993563, 1.89679866e-007, -0.999999106, -1.19201033e-007, -0.99998045, -1.89682282e-007, -1.38580799e-006))
  582. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.886568725, 1))
  583. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Dark stone grey","Part",Vector3.new(0.369804025, 0.208559081, 0.369803905))
  584. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 1.38683271, 0.554696321, -1.43049272e-006, -7.13816206e-008, 0.999993443, -2.16640629e-007, -0.999999106, 3.29267564e-008, 0.99998033, -2.16643343e-007, 1.43051147e-006))
  585. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.886568725, 1))
  586. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Dark stone grey","Part",Vector3.new(0.208559111, 0.208559081, 0.208559081))
  587. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00839233398, -0.46224308, 1.94153357, -7.13805832e-008, 1.43051147e-006, 0.999993443, -0.999986053, 1.49011612e-007, 3.29267564e-008, -2.08613528e-007, -0.999993384, 1.43051147e-006))
  588. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.886568844, 0.886568725, 0.886568666))
  589. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Dark stone grey","Part",Vector3.new(0.554706097, 4.43764687, 0.208559081))
  590. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0924448967, -3.69803858, 0.00839996338, 0.999986768, 0, 0, 0, 1, 0, 0, 0, 0.999999881))
  591. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.886568666))
  592. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.10000000149012,0,"Really black","Part",Vector3.new(0.397539318, 0.369803935, 0.397539139))
  593. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00193452835, -6.38961792e-005, 0.00246429443, 0.999986887, 0, 0, 0, 1, 0, 0, 0, 1))
  594. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  595. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.10000000149012,0,"Really red","Part",Vector3.new(0.369804025, 0.369803935, 0.208559081))
  596. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.1920929e-005, 0, -1.57174778, -0.999986887, 0, 0, 0, 0, -1, 0, -1, 0))
  597. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.268107921, 0.223731428, 0.512178302))
  598. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Part",Vector3.new(0.208559111, 4.43764687, 0.208559081))
  599. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.27736032, -3.69803858, 0.00839996338, 0.999986887, 0, 0, 0, 1, 0, 0, 0, 1))
  600. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.886568844, 1, 0.310299039))
  601. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Dark stone grey","Part",Vector3.new(0.208559111, 0.208559081, 0.208559081))
  602. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00839996338, 4.34518862, 0.462241411, -1.43049272e-006, -7.13816206e-008, 0.999993443, -2.16640629e-007, -0.999999106, 3.29267564e-008, 0.99998033, -2.16643343e-007, 1.43051147e-006))
  603. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.886568844, 0.886568725, 0.886568666))
  604. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.10000000149012,0,"Really red","Part",Vector3.new(0.369804025, 0.208559081, 0.369803846))
  605. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.1920929e-005, 1.01695871, 0, 0.999986887, 0, 0, 0, 1, 0, 0, 0, 1))
  606. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.886568725, 1))
  607. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Dark stone grey","Part",Vector3.new(0.208559111, 1.47921586, 0.208559081))
  608. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.462243319, -5.17725229, 0.00839996338, 0.999986887, 0, 0, 0, 1, 0, 0, 0, 1))
  609. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.886568844, 1, 0.886568666))
  610. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.10000000149012,0,"Really red","Part",Vector3.new(0.397539318, 0.739607811, 0.379048914))
  611. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00193452835, -6.38961792e-005, 0.00246429443, 0.999986887, 0, 0, 0, 1, 0, 0, 0, 1))
  612. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  613. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.10000000149012,0,"Really black","Part",Vector3.new(0.369804025, 0.208559081, 0.208559081))
  614. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 1.20193386, 0.277351975, 1.3857898e-006, 1.48921329e-008, -0.999993563, 1.89679866e-007, -0.999999106, -1.19201033e-007, -0.99998045, -1.89682282e-007, -1.38580799e-006))
  615. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.886568725, 0.886568666))
  616. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Part",Vector3.new(0.208559111, 0.924509823, 1.29431367))
  617. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00842285156, 0.0869987011, 6.56396055, 5.96038632e-008, 1.43051147e-006, -0.999993443, 0.999986053, 1.49011612e-007, -1.49011612e-008, 2.08613457e-007, -0.999993384, -1.43051147e-006))
  618. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.322711051, 0.992000043, 1))
  619. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Dark stone grey","Part",Vector3.new(0.208559111, 0.739607871, 1.1094116))
  620. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00842285156, 0.184900761, 6.47150469, 5.96038632e-008, 1.43051147e-006, -0.999993443, 0.999986053, 1.49011612e-007, -1.49011612e-008, 2.08613457e-007, -0.999993384, -1.43051147e-006))
  621. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.886568844, 1, 1))
  622. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.208559111, 0.208559081, 0.208559081))
  623. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-5.45460081, 0.00839996338, 0.277337313, 0, 1, 0, 0, 0, 1, 0.999986887, 0, 0))
  624. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.886568844, 0.914938867, 0.365266263))
  625. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.208559111, 0.208559081, 0.208559081))
  626. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-5.63951445, 0.00840759277, 0.462250471, 0, 1, 0, 0, 0, 1, 0.999986887, 0, 0))
  627. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.886568844, 0.914938867, 0.365266263))
  628. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.208559111, 0.208559081, 0.208559081))
  629. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-5.8243928, 0.00841522217, 0.277329683, 0, 1, 0, 0, 0, 1, 0.999986887, 0, 0))
  630. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.886568844, 0.914938867, 0.365266263))
  631. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.10000000149012,0,"Really red","Part",Vector3.new(0.369804025, 0.369803935, 0.369803846))
  632. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.1920929e-005, 1.10940838, 0, 0.999986887, 0, 0, 0, 1, 0, 0, 0, 1))
  633. mesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  634. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.208559111, 0.208559081, 0.208559081))
  635. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.19419813, 0.00841522217, 0.277329683, 0, 1, 0, 0, 0, 1, 0.999986887, 0, 0))
  636. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.886568844, 0.914938867, 0.365266263))
  637. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Dark stone grey","Part",Vector3.new(0.739608049, 0.208559081, 0.369803846))
  638. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.1920929e-005, -1.38683462, 0, 0.999986768, 0, 0, 0, 1, 0, 0, 0, 0.999999881))
  639. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.886568725, 1))
  640. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.208559111, 0.208559081, 0.208559081))
  641. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.89990377, 0.00840759277, 0.462250471, 0, 1, 0, 0, 0, 1, 0.999986887, 0, 0))
  642. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.886568844, 0.914938867, 0.365266263))
  643. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.208559111, 0.208559081, 0.208559081))
  644. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.71499777, 0.00839996338, 0.277337313, 0, 1, 0, 0, 0, 1, 0.999986887, 0, 0))
  645. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.886568844, 0.914938867, 0.365266263))
  646. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.208559111, 0.208559081, 0.208559081))
  647. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-5.26970911, 0.00840759277, 0.462250471, 0, 1, 0, 0, 0, 1, 0.999986887, 0, 0))
  648. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.886568844, 0.914938867, 0.365266263))
  649. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.208559111, 0.208559081, 0.208559081))
  650. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.00931311, 0.00839996338, 0.462243319, 0, 1, 0, 0, 0, 1, 0.999986887, 0, 0))
  651. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.886568844, 0.914938867, 0.365266263))
  652. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.10000000149012,0,"Really red","Part",Vector3.new(0.369804025, 0.369803935, 0.208559081))
  653. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.57174778, 0, 1.1920929e-005, 2.98019316e-008, 0.999999821, 0, 0, 0, -1, -0.999986708, 2.98023224e-008, 0))
  654. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.147921592, 0.223731428, 0.512178302))
  655. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.10000000149012,0,"Really black","Part",Vector3.new(0.369804025, 0.208559081, 0.208559081))
  656. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 1.20193338, 0.277371168, -1.43049272e-006, -7.13816206e-008, 0.999993443, -2.16640629e-007, -0.999999106, 3.29267564e-008, 0.99998033, -2.16643343e-007, 1.43051147e-006))
  657. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.886568725, 0.886568666))
  658. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Dark stone grey","Part",Vector3.new(0.369804025, 0.369803935, 0.208559081))
  659. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 1.2943902, 0.462240696, -1.43049272e-006, -7.13816206e-008, 0.999993443, -2.16640629e-007, -0.999999106, 3.29267564e-008, 0.99998033, -2.16643343e-007, 1.43051147e-006))
  660. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.886568666))
  661. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Dark stone grey","Part",Vector3.new(0.369804025, 0.369803935, 0.208559081))
  662. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 1.29439068, 0.462263465, 1.3857898e-006, 1.48921329e-008, -0.999993563, 1.89679866e-007, -0.999999106, -1.19201033e-007, -0.99998045, -1.89682282e-007, -1.38580799e-006))
  663. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.886568666))
  664. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.10000000149012,0,"Really black","Part",Vector3.new(0.369804054, 0.208559081, 0.369803846))
  665. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.1920929e-005, -1.20193529, 0, 0.999986887, 0, 0, 0, 1, 0, 0, 0, 1))
  666. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.886568725, 1))
  667.  
  668. function effect(Color,Ref,LP,P1,returnn)
  669. local effectsmsh = Instance.new("BlockMesh")
  670. effectsmsh.Scale = Vector3.new(0.2,1,0.2)
  671. effectsmsh.Name = "Mesh"
  672. local effectsg = Instance.new("Part")
  673. effectsg.formFactor = 3
  674. effectsg.CanCollide = false
  675. effectsg.Name = "Eff"
  676. effectsg.Locked = true
  677. effectsg.Anchored = true
  678. effectsg.Size = Vector3.new(0.5,1,0.5)
  679. effectsg.Parent = workspace
  680. effectsmsh.Parent = effectsg
  681. effectsg.BrickColor = BrickColor.new(Color)
  682. effectsg.Reflectance = Ref
  683. local point1 = P1
  684. local mg = (LP.p - point1.p).magnitude
  685. effectsg.Size = Vector3.new(0.5,mg,0.5)
  686. effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  687. if returnn then return effectsg end
  688. coroutine.resume(coroutine.create(function(Part,Mesh)
  689. if not returnn then
  690. for i = 0 , 1 , 0.2 do
  691. wait()
  692. Part.Transparency = 1*i
  693. Mesh.Scale = Vector3.new(0.2-0.2*i,1,0.2-0.2*i)
  694. end
  695. wait()
  696. Part.Parent = nil
  697. end
  698. end),effectsg,effectsmsh)
  699. end
  700.  
  701. function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  702. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  703. prt.Anchored=true
  704. prt.CFrame=cframe
  705. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  706. game:GetService("Debris"):AddItem(prt,2)
  707. coroutine.resume(coroutine.create(function(Part,Mesh,num)
  708. for i=0,1,delay do
  709. swait()
  710. Part.CFrame=Part.CFrame*cf(0,0,-num)
  711. Part.Transparency=i
  712. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  713. end
  714. Part.Parent=nil
  715. end),prt,msh,(math.random(0,1)+math.random())/5)
  716. end
  717. --example: MagicRing(BrickColor.new(""),ExamplePart.CFrame,0,0,0,0,0,0,0.01)
  718.  
  719. function attackone()
  720. attack = true
  721. local con=Hitbox.Touched:connect(function(hit) Damagefunc(hit,10,15,math.random(5,10),"Normal",RootPart,.2,1) end)
  722. so("http://roblox.com/asset/?id=10209645",Hitbox,1,1)
  723. for i = 0,1,0.1 do
  724. swait()
  725. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  726. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  727. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.5) * angles(math.rad(125), math.rad(0), math.rad(-35)), 0.3)
  728. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -.5) * angles(math.rad(125), math.rad(0), math.rad(35)), 0.3)
  729. 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)), 0.3)
  730. 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)), 0.3)
  731. handleweld.C0 = clerp(handleweld.C0,cf(-.5,-.2,0)* angles(math.rad(0),math.rad(0),math.rad(30)), 0.3)
  732. end
  733. local LastPoint=FlamePrt3.CFrame*CFrame.new(0,FlamePrt3.Size.Y/1.5,0)
  734. for i = 0,1,0.1 do
  735. swait()
  736. local Point=FlamePrt3.CFrame*CFrame.new(0,FlamePrt3.Size.Y/1.5,0)
  737. effect("Dark stone grey",0.5,LastPoint,Point)
  738. LastPoint=Point
  739. --MagicRing(BrickColor.new(""),FlamePrt3.CFrame,.1,.1,.1,.2,.2,.2,0.01)
  740. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(0)), 0.3)
  741. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)), 0.3)
  742. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.3, -.3) * angles(math.rad(15), math.rad(0), math.rad(-35)), 0.3)
  743. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, -.3) * angles(math.rad(15), math.rad(0), math.rad(35)), 0.3)
  744. RH.C0=clerp(RH.C0,cf(1,-1,-.2)*angles(math.rad(20),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)), 0.3)
  745. LH.C0=clerp(LH.C0,cf(-1,-1,-.2)*angles(math.rad(20),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)), 0.3)
  746. handleweld.C0 = clerp(handleweld.C0,cf(-.5,-.2,0)* angles(math.rad(-20),math.rad(-15),math.rad(30)), 0.3)
  747. end
  748. attack = false
  749. con:disconnect()
  750. end
  751.  
  752. function attacktwo()
  753. attack = true
  754. local con=Hitbox.Touched:connect(function(hit) Damagefunc(hit,10,15,math.random(5,10),"Normal",RootPart,.2,1) end)
  755. so("http://roblox.com/asset/?id=10209645",Hitbox,1,1.2)
  756. for i = 0,1,0.1 do
  757. swait()
  758. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(40)),.3)
  759. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-40)),.3)
  760. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.5) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.3)
  761. LW.C0 = clerp(LW.C0, CFrame.new(-.5, 0.5, -.5) * angles(math.rad(0), math.rad(-130), math.rad(-90)), 0.3)
  762. 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)), 0.3)
  763. 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)), 0.3)
  764. handleweld.C0 = clerp(handleweld.C0,cf(-.5,-.2,0)* angles(math.rad(0),math.rad(0),math.rad(30)), 0.3)
  765. end
  766. local LastPoint=FlamePrt3.CFrame*CFrame.new(0,FlamePrt3.Size.Y/1.5,0)
  767. for i = 0,1,0.1 do
  768. swait()
  769. local Point=FlamePrt3.CFrame*CFrame.new(0,FlamePrt3.Size.Y/1.5,0)
  770. effect("Dark stone grey",0.5,LastPoint,Point)
  771. LastPoint=Point
  772. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-30)),.3)
  773. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(30)),.3)
  774. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(90)), 0.3)
  775. LW.C0 = clerp(LW.C0, CFrame.new(.5, 0.5, -.8) * angles(math.rad(0), math.rad(-170), math.rad(-90)), 0.3)
  776. 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)), 0.3)
  777. 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)), 0.3)
  778. handleweld.C0 = clerp(handleweld.C0,cf(0,0,0)* angles(math.rad(-40),math.rad(0),math.rad(0)), 0.3)
  779. end
  780. attack = false
  781. con:disconnect()
  782. end
  783.  
  784. function attackthree()
  785. attack = true
  786. local con=Hitbox.Touched:connect(function(hit) Damagefunc(hit,10,15,math.random(5,10),"Normal",RootPart,.2,1) end)
  787. so("http://roblox.com/asset/?id=10209645",Hitbox,1,.9)
  788. for i = 0,1,0.1 do
  789. swait()
  790. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  791. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  792. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(150), math.rad(0), math.rad(35)), 0.3)
  793. LW.C0 = clerp(LW.C0, CFrame.new(.5, 0.5, -.5) * angles(math.rad(150), math.rad(0), math.rad(45)), 0.3)
  794. RH.C0=clerp(RH.C0,cf(1,-1,-.2)*angles(math.rad(10),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  795. LH.C0=clerp(LH.C0,cf(-1,-1,-.2)*angles(math.rad(10),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  796. handleweld.C0 = clerp(handleweld.C0,cf(0,0,0)* angles(math.rad(40),math.rad(0),math.rad(0)), 0.3)
  797. end
  798. local LastPoint=FlamePrt3.CFrame*CFrame.new(0,FlamePrt3.Size.Y/1.5,0)
  799. for i = 0,1,0.1 do
  800. swait()
  801. local Point=FlamePrt3.CFrame*CFrame.new(0,FlamePrt3.Size.Y/1.5,0)
  802. effect("Dark stone grey",0.5,LastPoint,Point)
  803. LastPoint=Point
  804. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  805. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  806. RW.C0 = clerp(RW.C0, CFrame.new(.5, 0.3, -.5) * angles(math.rad(10), math.rad(0), math.rad(-35)), 0.3)
  807. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, -.5) * angles(math.rad(10), math.rad(0), math.rad(35)), 0.3)
  808. RH.C0=clerp(RH.C0,cf(1,-1,-.2)*angles(math.rad(10),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  809. LH.C0=clerp(LH.C0,cf(-1,-1,-.2)*angles(math.rad(10),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  810. handleweld.C0 = clerp(handleweld.C0,cf(0,0,0)* angles(math.rad(-40),math.rad(0),math.rad(0)), 0.3)
  811. end
  812. attack = false
  813. con:disconnect()
  814. end
  815.  
  816. mouse.Button1Down:connect(function()
  817. if attack == false and attacktype == 1 then
  818. attacktype = 2
  819. attackone()
  820. elseif attack == false and attacktype == 2 then
  821. attacktype = 3
  822. attacktwo()
  823. elseif attack == false and attacktype == 3 then
  824. attacktype = 1
  825. attackthree()
  826. end
  827. end)
  828.  
  829. mouse.KeyDown:connect(function(k)
  830. k=k:lower()
  831.  
  832. end)
  833.  
  834.  
  835. local sine = 0
  836. local change = 1
  837. local val = 0
  838.  
  839. while true do
  840. swait()
  841. sine = sine + change
  842. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  843. local velderp=RootPart.Velocity.y
  844. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  845. if equipped==true or equipped==false then
  846. if attack==false then
  847. idle=idle+1
  848. else
  849. idle=0
  850. end
  851. if idle>=500 then
  852. if attack==false then
  853. --Sheath()
  854. end
  855. end
  856. if RootPart.Velocity.y > 1 and hitfloor==nil then
  857. Anim="Jump"
  858. if attack==false then
  859. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  860. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  861. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(160), math.rad(0), math.rad(0)), 0.3)
  862. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-40)), 0.3)
  863. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-20),math.rad(90),math.rad(0)),.3)
  864. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-10),math.rad(-90),math.rad(0)),.3)
  865. handleweld.C0 = clerp(handleweld.C0,cf(0,-.2,.3)* angles(math.rad(80),math.rad(0),math.rad(0)),.3)
  866. end
  867. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  868. Anim="Fall"
  869. if attack==false then
  870. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  871. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  872. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(150), math.rad(0), math.rad(0)), 0.3)
  873. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(-60)), 0.3)
  874. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(30),math.rad(90),math.rad(0)),.3)
  875. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(20),math.rad(-90),math.rad(0)),.3)
  876. handleweld.C0 = clerp(handleweld.C0,cf(0,-.2,.3)* angles(math.rad(80),math.rad(0),math.rad(0)),.3)
  877. end
  878. elseif torvel<1 and hitfloor~=nil then
  879. Anim="Idle"
  880. if attack==false then
  881. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  882. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  883. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.3, -.5) * angles(math.rad(50), math.rad(0), math.rad(-35)), 0.3)
  884. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, -.5) * angles(math.rad(50), math.rad(0), math.rad(35)), 0.3)
  885. RH.C0=clerp(RH.C0,cf(1,-1,-.2)*angles(math.rad(20),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  886. LH.C0=clerp(LH.C0,cf(-1,-1,-.2)*angles(math.rad(20),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  887. handleweld.C0 = clerp(handleweld.C0,cf(-.5,-.2,0)* angles(math.rad(0),math.rad(0),math.rad(30)),.3)
  888. end
  889. elseif torvel>2 and hitfloor~=nil then
  890. Anim="Walk"
  891. if attack==false then
  892. change=3
  893. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  894. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  895. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(0)), 0.3)
  896. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
  897. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  898. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  899. handleweld.C0 = clerp(handleweld.C0,cf(0,-.2,.3)* angles(math.rad(80),math.rad(0),math.rad(0)),.3)
  900. end
  901. end
  902. end
  903. if #Effects>0 then
  904. --table.insert(Effects,{prt,"Block1",delay})
  905. for e=1,#Effects do
  906. if Effects[e]~=nil then
  907. --for j=1,#Effects[e] do
  908. local Thing=Effects[e]
  909. if Thing~=nil then
  910. local Part=Thing[1]
  911. local Mode=Thing[2]
  912. local Delay=Thing[3]
  913. local IncX=Thing[4]
  914. local IncY=Thing[5]
  915. local IncZ=Thing[6]
  916. if Thing[1].Transparency<=1 then
  917. if Thing[2]=="Block1" then
  918. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  919. Mesh=Thing[1].Mesh
  920. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  921. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  922. elseif Thing[2]=="Cylinder" then
  923. Mesh=Thing[1].Mesh
  924. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  925. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  926. elseif Thing[2]=="Blood" then
  927. Mesh=Thing[7]
  928. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  929. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  930. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  931. elseif Thing[2]=="Elec" then
  932. Mesh=Thing[1].Mesh
  933. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  934. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  935. elseif Thing[2]=="Disappear" then
  936. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  937. end
  938. else
  939. Part.Parent=nil
  940. table.remove(Effects,e)
  941. end
  942. end
  943. --end
  944. end
  945. end
  946. end
  947. end
Add Comment
Please, Sign In to add comment