nuttanun734

wad

Aug 12th, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 60.28 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'.Heartbeat:wait(0)
  106. else
  107. for i=0,num do
  108. game:service'RunService'.Heartbeat: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 Color = BrickColor.new("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(Color)
  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(Color)
  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.  
  334. --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)
  335.  
  336.  
  337. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  338. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  339. end
  340.  
  341. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  342. if hit.Parent==nil then
  343. return
  344. end
  345. local h=hit.Parent:FindFirstChild("Humanoid")
  346. for _,v in pairs(hit.Parent:children()) do
  347. if v:IsA("Humanoid") then
  348. h=v
  349. end
  350. end
  351. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  352. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  353. end
  354. if hit.Parent.className=="Hat" then
  355. hit=hit.Parent.Parent:findFirstChild("Head")
  356. end
  357. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  358. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  359. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  360. return
  361. end]]
  362. -- hs(hit,1.2)
  363. local c=Instance.new("ObjectValue")
  364. c.Name="creator"
  365. c.Value=game:service("Players").LocalPlayer
  366. c.Parent=h
  367. game:GetService("Debris"):AddItem(c,.5)
  368. local Damage=math.random(minim,maxim)
  369. -- h:TakeDamage(Damage)
  370. local blocked=false
  371. local block=hit.Parent:findFirstChild("Block")
  372. if block~=nil then
  373. print(block.className)
  374. if block.className=="NumberValue" then
  375. if block.Value>0 then
  376. blocked=true
  377. if decreaseblock==nil then
  378. block.Value=block.Value-1
  379. end
  380. end
  381. end
  382. if block.className=="IntValue" then
  383. if block.Value>0 then
  384. blocked=true
  385. if decreaseblock~=nil then
  386. block.Value=block.Value-1
  387. end
  388. end
  389. end
  390. end
  391. if blocked==false then
  392. -- h:TakeDamage(Damage)
  393. h.Health=h.Health-Damage
  394. ShowDamage((Hitbox.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Hitbox.BrickColor.Color)
  395. else
  396. h.Health=h.Health-(Damage/2)
  397. ShowDamage((Hitbox.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Bright blue").Color)
  398. end
  399. if Type=="Knockdown" then
  400. local hum=hit.Parent.Humanoid
  401. hum.PlatformStand=true
  402. coroutine.resume(coroutine.create(function(HHumanoid)
  403. swait(1)
  404. HHumanoid.PlatformStand=false
  405. end),hum)
  406. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  407. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  408. local bodvol=Instance.new("BodyVelocity")
  409. bodvol.velocity=angle*knockback
  410. bodvol.P=5000
  411. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  412. bodvol.Parent=hit
  413. local rl=Instance.new("BodyAngularVelocity")
  414. rl.P=3000
  415. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  416. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  417. rl.Parent=hit
  418. game:GetService("Debris"):AddItem(bodvol,.5)
  419. game:GetService("Debris"):AddItem(rl,.5)
  420. elseif Type=="Normal" then
  421. local vp=Instance.new("BodyVelocity")
  422. vp.P=500
  423. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  424. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  425. if KnockbackType==1 then
  426. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  427. elseif KnockbackType==2 then
  428. vp.velocity=Property.CFrame.lookVector*knockback
  429. end
  430. if knockback>0 then
  431. vp.Parent=hit.Parent.Torso
  432. end
  433. game:GetService("Debris"):AddItem(vp,.5)
  434. elseif Type=="Up" then
  435. local bodyVelocity=Instance.new("BodyVelocity")
  436. bodyVelocity.velocity=vt(0,60,0)
  437. bodyVelocity.P=5000
  438. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  439. bodyVelocity.Parent=hit
  440. game:GetService("Debris"):AddItem(bodyVelocity,1)
  441. local rl=Instance.new("BodyAngularVelocity")
  442. rl.P=3000
  443. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  444. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  445. rl.Parent=hit
  446. game:GetService("Debris"):AddItem(rl,.5)
  447. elseif Type=="Snare" then
  448. local bp=Instance.new("BodyPosition")
  449. bp.P=2000
  450. bp.D=100
  451. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  452. bp.position=hit.Parent.Torso.Position
  453. bp.Parent=hit.Parent.Torso
  454. game:GetService("Debris"):AddItem(bp,1)
  455. elseif Type=="Target" then
  456. local Targetting = false
  457. if Targetting==false then
  458. ZTarget=hit.Parent.Torso
  459. coroutine.resume(coroutine.create(function(Part)
  460. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  461. swait(5)
  462. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  463. end),ZTarget)
  464. local TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  465. local targetgui=Instance.new("BillboardGui")
  466. targetgui.Parent=ZTarget
  467. targetgui.Size=UDim2.new(10,100,10,100)
  468. local targ=Instance.new("ImageLabel")
  469. targ.Parent=targetgui
  470. targ.BackgroundTransparency=1
  471. targ.Image="rbxassetid://4834067"
  472. targ.Size=UDim2.new(1,0,1,0)
  473. cam.CameraType="Scriptable"
  474. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  475. local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  476. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  477. Targetting=true
  478. RocketTarget=ZTarget
  479. for i=1,Property do
  480. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  481. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  482. swait()
  483. end
  484. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  485. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  486. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  487. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  488. end
  489. Targetting=false
  490. RocketTarget=nil
  491. targetgui.Parent=nil
  492. cam.CameraType="Custom"
  493. end
  494. end
  495. local debounce=Instance.new("BoolValue")
  496. debounce.Name="DebounceHit"
  497. debounce.Parent=hit.Parent
  498. debounce.Value=true
  499. game:GetService("Debris"):AddItem(debounce,Delay)
  500. c=Instance.new("ObjectValue")
  501. c.Name="creator"
  502. c.Value=Player
  503. c.Parent=h
  504. game:GetService("Debris"):AddItem(c,.5)
  505. end
  506. end
  507.  
  508.  
  509. function ShowDamage(Pos, Text, Time, Color)
  510. local Rate = (1 / 30)
  511. local Pos = (Pos or Vector3.new(0, 0, 0))
  512. local Text = (Text or "")
  513. local Time = (Time or 2)
  514. local Color = (Color or Color3.new(1, 0, 0))
  515. local EffectPart = part("Custom",workspace,"SmoothPlastic",0,1,BrickColor.new(Color),"Effect",vt(0,0,0))
  516. EffectPart.Anchored = true
  517. local BillboardGui = Instance.new("BillboardGui")
  518. BillboardGui.Size = UDim2.new(3, 0, 3, 0)
  519. BillboardGui.Adornee = EffectPart
  520. local TextLabel = Instance.new("TextLabel")
  521. TextLabel.BackgroundTransparency = 1
  522. TextLabel.Size = UDim2.new(1, 0, 1, 0)
  523. TextLabel.Text = Text
  524. TextLabel.TextColor3 = Color
  525. TextLabel.TextScaled = true
  526. TextLabel.Font = Enum.Font.ArialBold
  527. TextLabel.Parent = BillboardGui
  528. BillboardGui.Parent = EffectPart
  529. game.Debris:AddItem(EffectPart, (Time + 0.1))
  530. EffectPart.Parent = game:GetService("Workspace")
  531. Delay(0, function()
  532. local Frames = (Time / Rate)
  533. for Frame = 1, Frames do
  534. wait(Rate)
  535. local Percent = (Frame / Frames)
  536. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  537. TextLabel.TextTransparency = Percent
  538. end
  539. if EffectPart and EffectPart.Parent then
  540. EffectPart:Destroy()
  541. end
  542. end)
  543. end
  544.  
  545. handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Handle",Vector3.new(0.800000012, 3.5999999, 0.800000012))
  546. handleweld=weld(m,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00978088379, 0.656887054, 1.14379132, -0.999998093, 0.00253854319, -2.98064613e-008, -2.98062979e-008, 8.94229968e-011, 1, 0.00253850338, 0.999997973, -1.37580555e-011))
  547. mesh("CylinderMesh",handle,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  548. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.799999952, 0.800000012, 0.399999976))
  549. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.2951355, -2.29264069, 2.06851101, -0.70664072, 0.683012187, 0.184808537, -0.707570016, -0.683011293, -0.181221515, 0.00244987407, -0.258822918, 0.965922773))
  550. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.80400002, 0.800000012, 1.36199999))
  551. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.980000019, 0.400000006, 0.829999983))
  552. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0090675354, -0.399864197, -0.00609540939, 0.999998093, -9.84101689e-013, -0.00253850338, 7.63833441e-013, 1, -8.94248287e-011, 0.00253854343, 8.94238988e-011, 0.999998093))
  553. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  554. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.400000006, 0.400000036))
  555. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00175476074, -0.668507576, 3.84399414, 0.999991536, 1.10027628e-007, -0.00253868476, -0.00245218934, 0.258818686, -0.965922773, 0.000656952092, 0.965919077, 0.258819729))
  556. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.328000009, 1, 1))
  557. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.819999993, 0.200000003, 0.200000018))
  558. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00177383423, 0.301001668, 3.09999084, 0.999991536, -1.4007054e-006, -0.00253856136, -0.0025384964, -1.49101027e-007, -0.999997199, 1.40017289e-006, 0.999993384, -2.12260886e-007))
  559. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  560. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.799999952, 0.800000012, 0.399999976))
  561. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.25549316, -2.25797272, 1.87240982, 0.706640601, 0.683012187, -0.184808478, 0.707569897, -0.683011293, 0.181221485, -0.00244979863, -0.258822918, -0.965922713))
  562. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.80400002, 0.800000012, 1.36199999))
  563. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.819999993, 0.399999917, 1.5999999))
  564. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00175476074, -3.19146729, -1.07241821, -0.999997497, 6.7068413e-009, 0.00253847218, 0.000657052209, -0.965925395, 0.258818537, 0.00245200517, 0.258818954, 0.96592319))
  565. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.980000019, 0.400000006, 0.829999983))
  566. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0090675354, 0.40007019, -0.00609540939, 0.999997973, -9.84101689e-013, -0.00253850315, 7.63833441e-013, 0.999999881, -8.94248148e-011, 0.00253854343, 8.94238988e-011, 0.999998093))
  567. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  568. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.599999905, 0.800000012))
  569. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0086517334, 2.09998322, 0.000371813774, 1.00000322, 1.17150734e-011, 0.000686014537, -1.1713297e-011, 1, 2.41529869e-011, -0.000685904175, -2.41570861e-011, 1.00000322))
  570. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  571. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.819999993, 0.200000003, 0.200000018))
  572. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00177383423, 0.30100286, -2.90000153, -0.999991417, 1.32619959e-006, 0.00253841188, -0.0025385858, 1.4892214e-007, -0.999997199, -1.31182526e-006, -0.999993265, -2.05197622e-007))
  573. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  574. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.819999993, 0.399999917, 1.5999999))
  575. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00177001953, -3.24401093, -1.26851368, 0.999997735, 6.63194086e-008, -0.00253853458, -0.000656968332, -0.965925395, -0.258818537, -0.00245199562, 0.258818954, -0.965923369))
  576. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.799999952, 0.800000012, 0.400000036))
  577. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.24404907, 0.00176620483, 2.06851101, 0.000657034281, 0.965924621, 0.258822441, -0.999997914, 7.07726201e-007, 0.00253604189, 0.0024494431, -0.258823037, 0.965922832))
  578. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.616000056, 0.593999982, 1.36199999))
  579. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.400000036, 0.400000036))
  580. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00175476074, -1.86851025, 3.84400558, 0.999991536, 1.10027628e-007, -0.00253868476, -0.00245218934, 0.258818686, -0.965922773, 0.000656952092, 0.965919077, 0.258819729))
  581. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.328000009, 1, 1))
  582. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.400000036, 0.400000036))
  583. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00175476074, -1.26852417, 3.84400177, 0.999991536, 1.10027628e-007, -0.00253868476, -0.00245218934, 0.258818686, -0.965922773, 0.000656952092, 0.965919077, 0.258819729))
  584. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.328000009, 1, 1))
  585. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.800000012, 0.799999893, 1.5999999))
  586. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00177001953, -3.24401093, -1.26851368, 0.999997735, 6.63194086e-008, -0.00253853458, -0.000656968332, -0.965925395, -0.258818537, -0.00245199562, 0.258818954, -0.965923369))
  587. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.800000012, 0.799999893, 2.5999999))
  588. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000328063965, 2.99998474, 0.100373149, 1.00000119, 1.03472786e-011, 0.000678057317, -1.03561604e-011, 1, 2.38740295e-011, -0.00067801727, -2.38796205e-011, 1.00000119))
  589. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.800000012, 0.200000003, 1.20000005))
  590. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000255584717, 3.49998474, 0.000342130661, 1.00000119, 1.03490549e-011, 0.000589797972, -1.03561604e-011, 1, 2.07657936e-011, -0.000589757925, -2.07704687e-011, 1.00000119))
  591. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  592. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.400000036, 0.400000095))
  593. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00175476074, -0.668564796, -2.64397049, -0.999991536, 1.49007832e-007, 0.00253771944, -0.00245122844, 0.258800924, -0.96592766, -0.000656907854, -0.965923607, -0.258801997))
  594. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.328000009, 1, 1))
  595. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0.19999998807907,"Navy blue","Part",Vector3.new(0.800000012, 0.599999905, 0.800000012))
  596. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000328063965, 2.09998322, 0.0003708601, 1.00000358, 1.03526077e-011, 0.000683508348, -1.03490549e-011, 1, 2.40659801e-011, -0.000683391467, -2.40689066e-011, 1.00000358))
  597. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  598. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.800000012, 0.800000072))
  599. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00101470947, 1.50983429, 0.000193715096, 1.00000095, 2.98064009e-008, -0.000846923911, 2.98064471e-008, -1, 4.59674659e-012, -0.000846963958, -2.9841872e-011, -1.00000095))
  600. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1778999",Vector3.new(0, 0, 0),Vector3.new(0.940000057, 1.43400002, 0.988000035))
  601. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.910000026, 1.5999999, 0.819999993))
  602. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00496673584, 0.000102996826, -0.00546550751, 0.999998093, -9.84101689e-013, -0.00253850338, 7.63833441e-013, 1, -8.94248287e-011, 0.00253854343, 8.94238988e-011, 0.999998093))
  603. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  604. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.819999993, 0.200000003, 0.200000018))
  605. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00176620483, 0.299010992, 3.09999084, -0.999991536, -1.46031755e-006, 0.00253854645, 0.00253852643, -1.48922183e-007, 0.999997258, -1.45978549e-006, 0.999993384, 2.12233388e-007))
  606. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  607. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.400000006, 0.400000036, 0.800000072))
  608. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00101470947, -3.79997253, 0.000193715096, 1.00000095, 2.98064009e-008, -0.000846923911, 2.98064471e-008, -1, 4.59674659e-012, -0.000846963958, -2.9841872e-011, -1.00000095))
  609. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1778999",Vector3.new(0, 0, 0),Vector3.new(0.60800004, 0.241999984, 0.606000006))
  610. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.800000012, 0.200000003, 0.800000012))
  611. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00032043457, 2.49998474, 0.000371456146, 1.00000381, 1.03526077e-011, 0.00068351021, -1.03490549e-011, 1, 2.40660495e-011, -0.00068339007, -2.40688372e-011, 1.00000381))
  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,0,"Navy blue","Part",Vector3.new(0.600000024, 0.200000003, 1.20000005))
  614. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0102539063, 3.50998306, 0.000287055969, 1.00000119, 1.03490549e-011, 0.000534346327, -1.03526077e-011, 1, 1.88129321e-011, -0.00053430628, -1.88170521e-011, 1.00000119))
  615. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  616. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.819999993, 0.399999917, 0.799999893))
  617. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00184249878, 2.99998856, -0.801000834, 0.999998212, -9.80548975e-013, -0.00248575397, 7.67386155e-013, 1, -8.7567141e-011, 0.00248579402, 8.75662667e-011, 0.999998212))
  618. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.819999993, 0.399999917, 0.999999881))
  619. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00172424316, 2.99998856, 0.899011493, 0.999998152, -9.80548975e-013, -0.00250685378, 7.67386155e-013, 1, -8.83102202e-011, 0.00250689383, 8.83093182e-011, 0.999998152))
  620. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.399999976, 0.400000095))
  621. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00175476074, -1.86856842, -2.64398575, -0.999991536, 1.49007832e-007, 0.00253771944, -0.00245122844, 0.258800924, -0.96592766, -0.000656907854, -0.965923607, -0.258801997))
  622. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.328000009, 1, 1))
  623. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.400000036, 0.400000095))
  624. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00175476074, -1.26854801, -2.64397812, -0.999991536, 1.49007832e-007, 0.00253771944, -0.00245122844, 0.258800924, -0.96592766, -0.000656907854, -0.965923607, -0.258801997))
  625. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.328000009, 1, 1))
  626. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.910000026, 0.200000003, 0.819999993))
  627. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00489807129, -1.69981766, -0.0052703619, 0.999998152, 1.39959155e-011, -0.00251095998, -1.42090784e-011, 1, -8.84208123e-011, 0.00251100003, 8.84575052e-011, 0.999998152))
  628. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  629. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.819999993, 0.200000003, 0.200000018))
  630. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00176620483, 0.299011946, -2.90000153, 0.999991536, 1.4007129e-006, -0.00253842724, 0.00253855623, 1.49100984e-007, 0.999997258, 1.3565367e-006, -0.999993265, 2.05262978e-007))
  631. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  632. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.400000036, 0.400000095))
  633. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00175857544, -0.472471237, -2.59142685, 0.999991477, 2.08620037e-007, -0.00253769686, 0.00245122635, 0.258800924, 0.965927482, 0.000656995224, -0.965923607, 0.258801967))
  634. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.328000009, 1, 1))
  635. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.800000012, 0.799999893, 1.5999999))
  636. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00177001953, -3.19146729, -1.07242203, -0.999997497, 6.7068413e-009, 0.00253847218, 0.000657052209, -0.965925395, 0.258818537, 0.00245200517, 0.258818954, 0.96592319))
  637. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.799999952, 0.800000012, 0.400000036))
  638. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.19150543, -0.00177383423, 1.87240982, -0.000657099125, 0.965924621, -0.258822352, 0.999997795, 7.67338804e-007, -0.00253604399, -0.00244950107, -0.258823037, -0.965922952))
  639. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.616000056, 0.593999982, 1.36199999))
  640. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.400000006, 0.400000036))
  641. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00175476074, -0.472427368, 3.79145432, -0.999991536, 5.04154229e-008, 0.00253869547, 0.00245207804, 0.258818686, 0.965922534, -0.000657055061, 0.965919077, -0.258819669))
  642. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.328000009, 1, 1))
  643. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.399999976, 0.400000095))
  644. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00175476074, -1.67246628, -2.59144211, 0.999991477, 2.08620037e-007, -0.00253769686, 0.00245122635, 0.258800924, 0.965927482, 0.000656995224, -0.965923607, 0.258801967))
  645. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.328000009, 1, 1))
  646. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.400000036, 0.400000095))
  647. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00175857544, -1.07245636, -2.59143829, 0.999991477, 2.08620037e-007, -0.00253769686, 0.00245122635, 0.258800924, 0.965927482, 0.000656995224, -0.965923607, 0.258801967))
  648. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.328000009, 1, 1))
  649. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.400000036, 0.400000036))
  650. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00175476074, -1.67240334, 3.79145813, -0.999991536, 5.04154229e-008, 0.00253869547, 0.00245207804, 0.258818686, 0.965922534, -0.000657055061, 0.965919077, -0.258819669))
  651. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.328000009, 1, 1))
  652. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.400000036, 0.400000036))
  653. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00177001953, -1.07242966, 3.79145813, -0.999991536, 5.04154229e-008, 0.00253869547, 0.00245207804, 0.258818686, 0.965922534, -0.000657055061, 0.965919077, -0.258819669))
  654. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.328000009, 1, 1))
  655. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.910000026, 0.200000003, 0.819999993))
  656. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00319671631, 1.69999313, -0.00432527065, 1.00000656, 1.07949205e-011, 5.30879479e-005, -1.07611697e-011, 1, 1.86495437e-012, -5.28909732e-005, -1.85864692e-012, 1.00000656))
  657. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  658. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(1.25999999, 0.200000003, 1.60000014))
  659. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00993728638, -2.69981766, -3.56435776e-005, 1.00000131, 1.3251622e-012, 2.64146365e-006, -1.31805677e-012, 1, 9.47592699e-014, -2.60141678e-006, -9.33706237e-014, 1.00000131))
  660. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.0780000091, 1))
  661. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.99999994, 0.800000072))
  662. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00101470947, -2.98979568, 0.000195622444, 0.999992371, 2.98643101e-008, -0.00423007505, -2.99577536e-008, 0.999999702, -5.96182872e-008, 0.0042301151, 1.50410031e-008, 0.999992251))
  663. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1778999",Vector3.new(0, 0, 0),Vector3.new(0.954000056, 0.361999989, 0.988000035))
  664. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(1.25999999, 0.200000003, 1.60000014))
  665. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00993728638, 2.69984818, -1.4424324e-005, 0.999988437, 5.97829199e-008, -0.00507963076, 5.97626766e-008, -0.999999702, 5.95426322e-008, -0.00507967174, -8.95721328e-008, -0.999988258))
  666. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.0780000091, 1))
  667. Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Hitbox",Vector3.new(0.800000012, 1.79999983, 7.19999981))
  668. Hitboxweld=weld(m,handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00791168213, 2.89998627, 0.200349331, 1.00000167, 1.03490549e-011, 0.000589731848, -1.03561604e-011, 1, 2.07634691e-011, -0.000589691801, -2.0768132e-011, 1.00000167))
  669.  
  670. TrailDeb = false
  671.  
  672. function attackone()
  673. attack=true
  674. for i=0,1,0.07 do
  675. swait()
  676. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(-50)),.2)
  677. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(-5),math.rad(50)),.3)
  678. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(160), math.rad(0), math.rad(10)), 0.2)
  679. LW.C0 = clerp(LW.C0, CFrame.new(.3, 0.5, -1) * angles(math.rad(160), math.rad(0), math.rad(50)), 0.2)
  680. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(60),math.rad(-10),math.rad(0)),.2)
  681. end
  682. so("http://www.roblox.com/asset/?id=203691447",Hitbox,1,1)
  683. con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,10,30,math.random(10,20),"Knockdown",RootPart,.2,1) end)
  684. if TrailDeb == false then
  685. TrailDeb = true
  686. end
  687.  
  688.  
  689. coroutine.wrap(function()
  690. local Old = Hitbox.CFrame.p
  691. while wait()do
  692. if not TrailDeb then break end
  693. local New = Hitbox.CFrame.p
  694. local Mag =(Old -New).magnitude
  695. local Dis =(Old +New)/2
  696. local Trail = Instance.new("Part",Character)
  697. Trail.Material = "SmoothPlastic"
  698. Trail.Anchored = true
  699. Trail.CanCollide = false
  700. Trail.BrickColor = BrickColor.new("Navy blue")
  701. Trail.Size = Vector3.new(0.2,Mag,0.2)
  702. Trail.TopSurface = 0
  703. Trail.BottomSurface = 0
  704. Trail.formFactor = "Custom"
  705. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  706. local ms = Instance.new("BlockMesh",Trail)
  707. ms.Scale = Vector3.new(1,1,1)
  708. local TM = Instance.new("CylinderMesh",Trail)
  709. TM.Scale = Vector3.new(1,1,1)
  710. Old = New
  711. coroutine.wrap(function()
  712. for i = 1,0,-0.1 do
  713. wait()
  714. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  715. end
  716. Trail:remove()
  717. end)()
  718. coroutine.wrap(function()
  719. for i = 1,10 do
  720. wait()
  721. Trail.Transparency = Trail.Transparency +0.1
  722. end end)()end end)()
  723. for i=0,1,0.06 do
  724. swait()
  725. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(50)),.2)
  726. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(5),math.rad(-50)),.3)
  727. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(10)), 0.2)
  728. LW.C0 = clerp(LW.C0, CFrame.new(.2, 0.2, -.5) * angles(math.rad(10), math.rad(0), math.rad(50)), 0.2)
  729. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-20),math.rad(-10),math.rad(0)),.2)
  730. end
  731. attack=false
  732. con1:disconnect()
  733. if TrailDeb == true then
  734. TrailDeb = false
  735. end
  736. end
  737.  
  738. function attacktwo()
  739. attack=true
  740. for i=0,1,0.06 do
  741. swait()
  742. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(90)),.2)
  743. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(-5),math.rad(-80)),.3)
  744. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(90),math.rad(90)),.1)
  745. LW.C0 = clerp(LW.C0, CFrame.new(.3, 0.5, -1) * angles(math.rad(0), math.rad(60), math.rad(90)), 0.1)
  746. handleweld.C0=clerp(handleweld.C0,cf(0,-.5,-2)*angles(math.rad(-80),math.rad(-10),math.rad(0)),.1)
  747.  
  748. end
  749. con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,10,30,math.random(10,20),"Knockdown",RootPart,.2,1) end)
  750. so("http://www.roblox.com/asset/?id=203691492",Hitbox,1,1)
  751. if TrailDeb == false then
  752. TrailDeb = true
  753. end
  754. coroutine.wrap(function()
  755. local Old = Hitbox.CFrame.p
  756. while wait()do
  757. if not TrailDeb then break end
  758. local New = Hitbox.CFrame.p
  759. local Mag =(Old -New).magnitude
  760. local Dis =(Old +New)/2
  761. local Trail = Instance.new("Part",Character)
  762. Trail.Material = "SmoothPlastic"
  763. Trail.Anchored = true
  764. Trail.CanCollide = false
  765. Trail.BrickColor = BrickColor.new("Navy blue")
  766. Trail.Size = Vector3.new(0.2,Mag,0.2)
  767. Trail.TopSurface = 0
  768. Trail.BottomSurface = 0
  769. Trail.formFactor = "Custom"
  770. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  771. local ms = Instance.new("BlockMesh",Trail)
  772. ms.Scale = Vector3.new(1,1,1)
  773. local TM = Instance.new("CylinderMesh",Trail)
  774. TM.Scale = Vector3.new(1,1,1)
  775. Old = New
  776. coroutine.wrap(function()
  777. for i = 1,0,-0.1 do
  778. wait()
  779. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  780. end
  781. Trail:remove()
  782. end)()
  783. coroutine.wrap(function()
  784. for i = 1,10 do
  785. wait()
  786. Trail.Transparency = Trail.Transparency +0.1
  787. end end)()end end)()
  788. for i=0,1,0.06 do
  789. swait()
  790. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(-50)),.2)
  791. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(-5),math.rad(50)),.3)
  792. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(-10),math.rad(90)),.1)
  793. LW.C0 = clerp(LW.C0, CFrame.new(.3, 0.5, -1) * angles(math.rad(0), math.rad(-10), math.rad(90)), 0.1)
  794. handleweld.C0=clerp(handleweld.C0,cf(0,-.5,-2)*angles(math.rad(-80),math.rad(-10),math.rad(0)),.1)
  795. end
  796.  
  797. for i=0,1,1 do
  798. swait()
  799. so("http://www.roblox.com/asset/?id=203691467",Hitbox,1,1)
  800. for i=0,1,0.1 do
  801. swait()
  802. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,6*i),.3)
  803. end
  804. end
  805.  
  806. attack=false
  807. con1:disconnect()
  808. if TrailDeb == true then
  809. TrailDeb = false
  810. end
  811. end
  812.  
  813. function attackthree()
  814. attack=true
  815. for i=0,1.5,0.06 do
  816. swait()
  817. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(00)),.1)
  818. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(-5),math.rad(00)),.1)
  819. RW.C0=clerp(RW.C0,cf(1,0.8,-1)*angles(math.rad(130),math.rad(0),math.rad(-50)),.1)
  820. LW.C0=clerp(LW.C0,cf(-1,0.8,-1)*angles(math.rad(130),math.rad(0),math.rad(50)),.1)
  821. handleweld.C0=clerp(handleweld.C0,cf(-1,0,-.2)*angles(math.rad(-20),math.rad(-20),math.rad(50)),.3)
  822. end
  823. so("http://roblox.com/asset/?id=203691467",Hitbox,1,1)
  824. con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,10,30,math.random(10,20),"Knockdown",RootPart,.2,1) end)
  825. if TrailDeb == false then
  826. TrailDeb = true
  827. end
  828. coroutine.wrap(function()
  829. local Old = Hitbox.CFrame.p
  830. while wait()do
  831. if not TrailDeb then break end
  832. local New = Hitbox.CFrame.p
  833. local Mag =(Old -New).magnitude
  834. local Dis =(Old +New)/2
  835. local Trail = Instance.new("Part",Character)
  836. Trail.Material = "SmoothPlastic"
  837. Trail.Anchored = true
  838. Trail.CanCollide = false
  839. Trail.BrickColor = BrickColor.new("Navy blue")
  840. Trail.Size = Vector3.new(0.2,Mag,0.2)
  841. Trail.TopSurface = 0
  842. Trail.BottomSurface = 0
  843. Trail.formFactor = "Custom"
  844. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  845. local ms = Instance.new("BlockMesh",Trail)
  846. ms.Scale = Vector3.new(1,1,1)
  847. local TM = Instance.new("CylinderMesh",Trail)
  848. TM.Scale = Vector3.new(1,1,1)
  849. Old = New
  850. coroutine.wrap(function()
  851. for i = 1,0,-0.1 do
  852. wait()
  853. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  854. end
  855. Trail:remove()
  856. end)()
  857. coroutine.wrap(function()
  858. for i = 1,10 do
  859. wait()
  860. Trail.Transparency = Trail.Transparency +0.1
  861. end end)()end end)()
  862. for i=0,1.5,.06 do
  863. swait()
  864. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(0)),.2)
  865. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(-5),math.rad(00)),.2)
  866. RW.C0=clerp(RW.C0,cf(1,0.2,-.5)*angles(math.rad(20),math.rad(0),math.rad(-50)),.2)
  867. LW.C0=clerp(LW.C0,cf(-1,0.2,-.5)*angles(math.rad(20),math.rad(0),math.rad(50)),.2)
  868. RH.C0=clerp(RH.C0,cf(1,-1,.2)*angles(math.rad(10),math.rad(70),math.rad(0)),.3)
  869. LH.C0=clerp(LH.C0,cf(-1,-1,-.2)*angles(math.rad(-20),math.rad(-70),math.rad(-20)),.3)
  870. handleweld.C0=clerp(handleweld.C0,cf(-1,0,-.2)*angles(math.rad(-20),math.rad(-20),math.rad(50)),.3)
  871. end
  872. attack=false
  873. con1:disconnect()
  874. if TrailDeb == true then
  875. TrailDeb = false
  876. end
  877. end
  878.  
  879. function JumpSpin()
  880. attack=true
  881. for i=0,1,0.06 do
  882. swait()
  883. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(-50)),.1)
  884. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(-5),math.rad(50)),.1)
  885. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(-10),math.rad(90)),.1)
  886. LW.C0 = clerp(LW.C0, CFrame.new(.3, 0.5, -1) * angles(math.rad(0), math.rad(-10), math.rad(90)), 0.1)
  887. handleweld.C0=clerp(handleweld.C0,cf(0,-.5,-2)*angles(math.rad(-80),math.rad(-10),math.rad(0)),.1)
  888. end
  889. if TrailDeb == false then
  890. TrailDeb = true
  891. end
  892. coroutine.wrap(function()
  893. local Old = Hitbox.CFrame.p
  894. while wait()do
  895. if not TrailDeb then break end
  896. local New = Hitbox.CFrame.p
  897. local Mag =(Old -New).magnitude
  898. local Dis =(Old +New)/2
  899. local Trail = Instance.new("Part",Character)
  900. Trail.Material = "SmoothPlastic"
  901. Trail.Anchored = true
  902. Trail.CanCollide = false
  903. Trail.BrickColor = BrickColor.new("Navy blue")
  904. Trail.Size = Vector3.new(0.2,Mag,0.2)
  905. Trail.TopSurface = 0
  906. Trail.BottomSurface = 0
  907. Trail.formFactor = "Custom"
  908. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  909. local ms = Instance.new("BlockMesh",Trail)
  910. ms.Scale = Vector3.new(1,1,1)
  911. local TM = Instance.new("CylinderMesh",Trail)
  912. TM.Scale = Vector3.new(1,1,1)
  913. Old = New
  914. coroutine.wrap(function()
  915. for i = 1,0,-0.1 do
  916. wait()
  917. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  918. end
  919. Trail:remove()
  920. end)()
  921. coroutine.wrap(function()
  922. for i = 1,10 do
  923. wait()
  924. Trail.Transparency = Trail.Transparency +0.1
  925. end end)()end end)()
  926. con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,10,30,math.random(10,20),"Knockdown",RootPart,.2,1) end)
  927. for i=0,0.6,.5 do
  928. so("http://www.roblox.com/asset/?id=203691447",Hitbox,1,1)
  929. swait()
  930. for i=0,1,0.1 do
  931. swait()
  932. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,4)*euler(0,1.2,6*i),.2)
  933. end
  934. end
  935. attack=false
  936. con1:disconnect()
  937. if TrailDeb == true then
  938. TrailDeb = false
  939. end
  940. end
  941.  
  942. mouse.Button1Down:connect(function()
  943. if attack==false then
  944. if attacktype==1 then
  945. attacktype = 2
  946. attackone()
  947. elseif attacktype==2 then
  948. attacktype = 3
  949. attacktwo()
  950. elseif attacktype==3 then
  951. attacktype = 1
  952. attackthree()
  953. end
  954. end
  955. end)
  956.  
  957. function MMMAGIC(part,x1,y1,z1,x2,y2,z2,color)
  958. local msh1 = it("BlockMesh")
  959. msh1.Scale = vt(0.5,0.5,0.5)
  960. S=it("Part")
  961. S.Material = "SmoothPlastic"
  962. S.Name="Effect"
  963. S.formFactor=0
  964. S.Size=vt(x1,y1,z1)
  965. S.BrickColor=color
  966. S.Reflectance = 0
  967. S.TopSurface=0
  968. S.BottomSurface=0
  969. S.Transparency=0
  970. S.Anchored=true
  971. S.CanCollide=false
  972. S.CFrame=part.CFrame*cf(x2,y2,z2)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  973. S.Parent=workspace
  974. nooutline(S)
  975. msh1.Parent = S
  976. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + vt(0.1,0.1,0.1) Part.CFrame=Part.CFrame*euler(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)
  977. end
  978.  
  979. function MMMAGIC2(part,x1,y1,z1,x2,y2,z2,color)
  980. local msh1 = it("BlockMesh")
  981. msh1.Scale = vt(0.5,0.5,0.5)
  982. S=it("Part")
  983. S.Material = "SmoothPlastic"
  984. S.Name="Effect"
  985. S.formFactor=0
  986. S.Size=vt(x1,y1,z1)
  987. S.BrickColor=color
  988. S.Reflectance = 0
  989. S.TopSurface=0
  990. S.BottomSurface=0
  991. S.Transparency=0
  992. S.Anchored=true
  993. S.CanCollide=false
  994. S.CFrame=part*cf(x2,y2,z2)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  995. S.Parent=workspace
  996. nooutline(S)
  997. msh1.Parent = S
  998. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + vt(0.1,0.1,0.1) Part.CFrame=Part.CFrame*euler(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)
  999. end
  1000.  
  1001. function MMMAGIC3(part,x1,y1,z1,x2,y2,z2,color)
  1002. local msh1 = it("BlockMesh")
  1003. msh1.Scale = vt(0.5,0.5,0.5)
  1004. S=it("Part")
  1005. S.Material = "SmoothPlastic"
  1006. S.Name="Effect"
  1007. S.formFactor=0
  1008. S.Size=vt(x1,y1,z1)
  1009. S.BrickColor=color
  1010. S.Reflectance = 0
  1011. S.TopSurface=0
  1012. S.BottomSurface=0
  1013. S.Transparency=0
  1014. S.Anchored=true
  1015. S.CanCollide=false
  1016. S.CFrame=part*cf(x2,y2,z2)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1017. S.Parent=workspace
  1018. nooutline(S)
  1019. msh1.Parent = S
  1020. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + vt(0,0.1,0) Part.CFrame=Part.CFrame*euler(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)
  1021. end
  1022.  
  1023. DOHHit=function(hit,Damage,Pos) --credits to turdulator for making this function :D
  1024. if hit.Parent==nil then
  1025. return
  1026. end
  1027. h=hit.Parent:FindFirstChild("Humanoid")
  1028. t=hit.Parent:FindFirstChild("Torso")
  1029. if h~=nil and t~=nil then
  1030. if attackdebounce2 == false then
  1031. attackdebounce2 = true
  1032. coroutine.resume(coroutine.create(function()
  1033. wait(0.2)
  1034. attackdebounce2 = false
  1035. end))
  1036. elseif attackdebounce2==true then return end
  1037. if h.Parent==Character then
  1038. return
  1039. end
  1040. c=it("ObjectValue")
  1041. c.Name="creator"
  1042. c.Value=game.Players.LocalPlayer
  1043. c.Parent=h
  1044. game:GetService("Debris"):AddItem(c,.5)
  1045. if math.random(0,99)+math.random()<=7.8 then
  1046. --[[ Knockback=Knockback*2
  1047. r=it("BodyAngularVelocity")
  1048. r.P=3000
  1049. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  1050. r.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1051. r.Parent=hit.Parent.Torso]]
  1052.  
  1053. end
  1054. h:TakeDamage(Damage)
  1055. game:GetService("Debris"):AddItem(vl,.2)
  1056. rl=it("BodyAngularVelocity")
  1057. rl.P=3000
  1058. rl.maxTorque=vt(500000,500000,500000)*50000000000000
  1059. rl.angularvelocity=vt(math.random(-3,3),math.random(-3,3),math.random(-3,3))
  1060. rl.Parent=t
  1061. game:GetService("Debris"):AddItem(rl,.05)
  1062. f=it("BodyPosition")
  1063. f.P=800
  1064. f.D=100
  1065. f.maxForce=vt(math.huge,math.huge,math.huge)
  1066. f.position=Pos.Position
  1067. f.Parent=t
  1068. game:GetService("Debris"):AddItem(f,.1)
  1069. else
  1070. if hit.CanCollide==false then
  1071. return
  1072. end
  1073. -- DBExplode(DB)
  1074. end
  1075. end
  1076.  
  1077. colors={"Really black","Navy blue"}
  1078. random=colors[math.random(1,#colors)]
  1079. function Absorber()
  1080. attack=true
  1081. so("http://www.roblox.com/asset/?id=231917977",LeftArm,1,1)
  1082. for i=0,1,0.1 do
  1083. wait()
  1084. MMMAGIC(LeftArm,2,2,2,0,-1,0,BrickColor.new(random))
  1085. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(-10),math.rad(-60)),.3)
  1086. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(-5),math.rad(50)),.3)
  1087. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(40), math.rad(0), math.rad(30)), 0.3)
  1088. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.3)
  1089. end
  1090. for i=0,1,0.1 do
  1091. wait(0)
  1092. MMMAGIC(LeftArm,2,2,2,0,-1,0,BrickColor.new(random))
  1093. end
  1094. for i=0,1,0.2 do
  1095. wait()
  1096. MMMAGIC(LeftArm,2,2,2,0,-1,0,BrickColor.new(random))
  1097. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(-10),math.rad(-90)),.3)
  1098. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(5),math.rad(80)),.3)
  1099. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(40), math.rad(0), math.rad(30)), 0.3)
  1100. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.3)
  1101. end
  1102. for i=0,1,0.15 do
  1103. wait(0)
  1104. MMMAGIC(LeftArm,2,2,2,0,-1,0,BrickColor.new(random))
  1105. end
  1106. so("http://www.roblox.com/asset/?id=231917822",LeftArm,1,1)
  1107. MMMAGIC(LeftArm,4,4,4,0,-1,0,BrickColor.new("Navy blue"))
  1108. MMMAGIC(LeftArm,4,4,4,0,-1,0,BrickColor.new("Black"))
  1109. lacf=LeftArm.CFrame
  1110. coroutine.resume(coroutine.create(function()
  1111. local derppart=part(3,workspace,"SmoothPlastic",0,0,BrickColor.new("Really black"),"Effect",vt(1,1,1))
  1112. derppart.Anchored=true
  1113. derppart.CFrame=lacf*CFrame.new(0,-1,0)
  1114. for i=1,50 do
  1115. wait()
  1116. local c = game.Workspace:GetChildren();
  1117. for i = 1, #c do
  1118. local hum = c[i]:findFirstChild("Humanoid")
  1119. if hum ~= nil and hum.Health ~= 0 then
  1120. local head = c[i]:findFirstChild("Head");
  1121. if head ~= nil then
  1122. local targ = head.Position - derppart.Position;
  1123. local mag = targ.magnitude;
  1124. if mag <= 7 and c[i].Name ~= Player.Name then
  1125. DOHHit(head,math.random(1,3),derppart)
  1126. end
  1127. end
  1128. end
  1129. end
  1130. MMMAGIC2(lacf,3,3,3,0,-1,0,BrickColor.new(random))
  1131. MMMAGIC3(lacf,1,4,1,0,-1,0,BrickColor.new(random))
  1132. end
  1133. derppart.Parent=nil
  1134. end))
  1135. for i=0,1,0.2 do
  1136. wait()
  1137. end
  1138. attack=false
  1139. end
  1140.  
  1141. mouse.KeyDown:connect(function(k)
  1142. k=k:lower()
  1143. if k=='q' then
  1144. if attack==false then
  1145. JumpSpin()
  1146. end
  1147. elseif k=='e' then
  1148. if attack==false then
  1149. Absorber()
  1150. end
  1151. end
  1152. end)
  1153.  
  1154.  
  1155. local sine = 0
  1156. local change = 1
  1157. local val = 0
  1158.  
  1159. while true do
  1160. swait()
  1161. sine = sine + change
  1162. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1163. local velderp=RootPart.Velocity.y
  1164. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1165. if equipped==true or equipped==false then
  1166. if attack==false then
  1167. idle=idle+1
  1168. else
  1169. idle=0
  1170. end
  1171. if idle>=500 then
  1172. if attack==false then
  1173. --Sheath()
  1174. end
  1175. end
  1176. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1177. Anim="Jump"
  1178. if attack==false then
  1179. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-30)),.3)
  1180. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(-5),math.rad(30)),.3)
  1181. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.3)
  1182. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(-20)), 0.3)
  1183. RH.C0=clerp(RH.C0,cf(1,-1,.2)*angles(math.rad(10),math.rad(70),math.rad(0)),.3)
  1184. LH.C0=clerp(LH.C0,cf(-1,-1,-.2)*angles(math.rad(-20),math.rad(-70),math.rad(-20)),.3)
  1185. handleweld.C0=clerp(handleweld.C0,cf(0,0,.6)*angles(math.rad(100),math.rad(-10),math.rad(0)),.3)
  1186. end
  1187. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1188. Anim="Fall"
  1189. if attack==false then
  1190. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-30)),.3)
  1191. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(5),math.rad(30)),.3)
  1192. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(30)), 0.3)
  1193. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(-30)), 0.3)
  1194. RH.C0=clerp(RH.C0,cf(1,-1,.2)*angles(math.rad(10),math.rad(70),math.rad(0)),.3)
  1195. LH.C0=clerp(LH.C0,cf(-1,-1,-.2)*angles(math.rad(-20),math.rad(-70),math.rad(-20)),.3)
  1196. handleweld.C0=clerp(handleweld.C0,cf(0,0,.6)*angles(math.rad(100),math.rad(-10),math.rad(0)),.3)
  1197. end
  1198. elseif torvel<1 and hitfloor~=nil then
  1199. Anim="Idle"
  1200. if attack==false then
  1201. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(-30)),.3)
  1202. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(-5),math.rad(30)),.3)
  1203. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(40), math.rad(0), math.rad(10)), 0.3)
  1204. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  1205. RH.C0=clerp(RH.C0,cf(1,-1,.2)*angles(math.rad(5),math.rad(70),math.rad(0)),.3)
  1206. LH.C0=clerp(LH.C0,cf(-1,-1,-.2)*angles(math.rad(0),math.rad(-70),math.rad(-20)),.3)
  1207. handleweld.C0=clerp(handleweld.C0,cf(0,0,.6)*angles(math.rad(100),math.rad(-10),math.rad(0)),.3)
  1208. end
  1209. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  1210. Anim="Walk"
  1211. if attack==false then
  1212. change=3
  1213. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(30),math.rad(0),math.rad(-20)),.3)
  1214. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(-5),math.rad(20)),.3)
  1215. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(150), math.rad(0), math.rad(10)), 0.3)
  1216. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-20)), 0.3)
  1217. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1218. LH.C0=clerp(LH.C0,cf(-1,-1,-.2)*angles(math.rad(0),math.rad(-90),math.rad(-10)),.3)
  1219. handleweld.C0=clerp(handleweld.C0,cf(0,0,.6)*angles(math.rad(90),math.rad(-10),math.rad(0)),.3)
  1220. end
  1221. elseif torvel>=22 and hitfloor~=nil then
  1222. Anim="Run"
  1223. if attack==false then
  1224. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(30),math.rad(0),math.rad(-20)),.3)
  1225. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(-5),math.rad(20)),.3)
  1226. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(150), math.rad(0), math.rad(10)), 0.3)
  1227. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-20)), 0.3)
  1228. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1229. LH.C0=clerp(LH.C0,cf(-1,-1,-.2)*angles(math.rad(0),math.rad(-90),math.rad(-10)),.3)
  1230. handleweld.C0=clerp(handleweld.C0,cf(0,0,.6)*angles(math.rad(90),math.rad(-10),math.rad(0)),.3)
  1231. end
  1232. end
  1233. end
  1234. end
Add Comment
Please, Sign In to add comment