Aaronremmers14

Hyacintho flaming Pheon

Jun 18th, 2016
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 55.21 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 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("Cyan"))
  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. HandleA=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","HandleA",Vector3.new(0.400000006, 0.200000003, 0.200000003))
  551. HandleAweld=weld(m,Character["Right Arm"],HandleA,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.14440918e-005, 0, 0.800000191, -0.999999821, -2.98023188e-008, 0, 0, 0, 1, -2.98023224e-008, 0.999999702, 0))
  552. mesh("SpecialMesh",HandleA,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(1.22000003, 1.11999989, 1.48000002))
  553. MagicPrtA=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","MagicPrtA",Vector3.new(0.400000066, 0.200000003, 0.400000006))
  554. MagicPrtAweld=weld(m,HandleA,MagicPrtA,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.100000858, 3.81469727e-006, 0.999999642, -2.98023064e-008, 2.98023188e-008, 2.98023064e-008, -4.47034836e-008, -0.999999285, 2.98023188e-008, 0.999999404, -2.98023153e-008))
  555. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.220000014, 0.200000003, 0.200000003))
  556. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.599983215, -1.0995748, 0.200019836, 0.999999821, -5.43913802e-006, 3.44865896e-008, -3.44864155e-008, 3.01454435e-008, 0.999999344, -5.43913711e-006, -1, 3.01452339e-008))
  557. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  558. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.400000006, 0.200000003, 0.200000003))
  559. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599998951, 0, -0.600002289, -2.98023224e-008, 0, 0.999999821, 0, 1, 0, -0.999999821, 0, -2.98023224e-008))
  560. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(0.539999962, 0.539999962, 1.48000002))
  561. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 1.20000005, 1))
  562. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.600006104, -0.599998951, 0, -0.999999821, 0, -2.98023224e-008, -2.98023188e-008, 0, 0.999999702, 0, 1, 0))
  563. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  564. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.599983215, -1.29950213, 0.400028229, 0.999999523, -6.69091787e-006, 3.448665e-008, -3.44863018e-008, 3.01455501e-008, 0.999993145, -6.69091651e-006, -0.999999702, 3.0145106e-008))
  565. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  566. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.600000024))
  567. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599973679, 0.100389957, -2.67028809e-005, -0.999999821, 7.28699251e-006, -2.98029086e-008, -2.98028944e-008, 7.16782753e-013, 0.999999344, 7.28699115e-006, 1, -4.99611745e-013))
  568. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.220000014, 0.200000003, 0.200000003))
  569. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.599981308, 0.0995743275, 0.19997406, 0.999999344, 5.36441803e-006, -3.42694264e-008, -4.46758364e-009, 5.93965268e-008, -0.999999225, -5.54323105e-006, 0.999999881, 5.9397351e-008))
  570. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  571. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  572. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.599973679, -0.100358725, 0.399974823, 0.999999464, -7.28698978e-006, -2.98017078e-008, -2.98017504e-008, -2.82443882e-013, -0.999998987, 7.28699115e-006, 1, -4.99611745e-013))
  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,"Cyan","Part",Vector3.new(0.220000014, 0.200000003, 0.200000003))
  575. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599981308, 0.0995743275, 0.200027466, -0.999999523, -5.43913802e-006, -8.94069458e-008, 5.96046235e-008, 3.01454435e-008, -0.999999225, 5.4391362e-006, -1, -3.01443492e-008))
  576. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  577. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  578. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599994659, -1.29949927, 0.399971008, -0.999999821, 6.75052434e-006, -2.98028091e-008, -2.98025888e-008, 1.03027981e-012, 0.99999243, 6.75052297e-006, 1, -8.29105447e-013))
  579. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  580. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  581. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599975586, -0.100389719, 0.400028229, -0.999999225, 7.25718564e-006, -8.9407493e-008, 8.9407493e-008, -1.14667997e-012, -0.999998987, -7.21248216e-006, -0.999999583, 5.01831974e-013))
  582. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  583. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.220000014, 0.799999952, 0.200000003))
  584. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599983215, -0.599738359, -0.200023651, -0.999999821, 6.83996359e-006, -2.98027985e-008, -2.98027842e-008, 7.42544481e-013, 0.999999344, 6.83996223e-006, 1, -5.38696854e-013))
  585. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.220000014, 0.200000003, 0.200000003))
  586. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599979401, -1.0995748, 0.199981689, -0.999999642, 5.46872616e-006, -2.51180481e-008, -2.51182009e-008, -3.01454435e-008, 0.999999344, 5.46872525e-006, 0.999999821, 3.01455607e-008))
  587. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  588. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.220000014, 0.799999952, 0.200000003))
  589. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599994659, -0.599813223, 0.199977875, -0.999999821, 4.69404995e-006, -2.98026279e-008, -2.98026137e-008, 5.29311675e-013, 0.999999344, 4.69404904e-006, 1, -3.89419237e-013))
  590. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.400000006, 0.220000014, 0.200000003))
  591. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.599994659, 0.600000381, 0, 2.98012424e-008, -4.69401448e-006, -0.999994099, 0.999996483, -4.54851326e-013, 2.98017682e-008, 2.14393451e-011, -0.999997139, 4.69402175e-006))
  592. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  593. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.600000024))
  594. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599973679, -1.29961014, -2.67028809e-005, -0.999999821, 7.28699251e-006, -2.98029086e-008, -2.98028944e-008, 7.16782753e-013, 0.999999344, 7.28699115e-006, 1, -4.99611745e-013))
  595. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.220000014, 0.200000003, 0.200000003))
  596. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599990845, -0.0995154381, -3.05175781e-005, -0.999999821, 6.75052434e-006, -2.9802866e-008, -2.98028517e-008, 6.63480122e-013, 0.999999344, 6.75052297e-006, 1, -4.62297626e-013))
  597. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.200000003, 0.200000003))
  598. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, -1.20000076, 0.999999642, 0, 0, 0, 1, 0, 0, 0, 0.999999642))
  599. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(1.22000003, 1.11999989, 1.48000002))
  600. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.220000014, 0.200000003, 0.200000003))
  601. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599990845, -1.09951615, -3.05175781e-005, -0.999999821, 6.75052434e-006, -2.9802866e-008, -2.98028517e-008, 6.63480122e-013, 0.999999344, 6.75052297e-006, 1, -4.62297626e-013))
  602.  
  603. HandleB=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","HandleB",Vector3.new(0.400000006, 0.200000003, 0.200000003))
  604. HandleBweld=weld(m,Character["Left Arm"],HandleB,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00098991394, 3.05175781e-005, 0.800000191, 0.999999464, 8.36810372e-008, -4.47034836e-008, -5.96046448e-008, 1.96981595e-008, -0.999999702, -8.36810443e-008, 0.999999702, 1.96981613e-008))
  605. mesh("SpecialMesh",HandleB,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(1.22000003, 1.11999989, 1.48000002))
  606. MagicPrtB=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","MagicPrtB",Vector3.new(0.400000066, 0.200000003, 0.400000006))
  607. MagicPrtBweld=weld(m,HandleB,MagicPrtB,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00100708008, -0.100000858, 3.43322754e-005, -0.999999285, 8.94069316e-008, 8.36810301e-008, -8.36810017e-008, 2.50053187e-008, -0.999999285, -7.45057633e-008, -0.999999106, -1.01041664e-008))
  608. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.200000003, 0.200000003))
  609. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, -1.20000029, 0.999998927, -1.49011434e-008, 2.75411323e-014, -1.49011434e-008, 0.999999404, 7.10542736e-015, 2.75411323e-014, 7.10542736e-015, 0.999999642))
  610. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(1.22000003, 1.11999989, 1.48000002))
  611. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.220000014, 0.200000003, 0.200000003))
  612. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599981308, -1.09957433, 0.199989319, -0.999999285, 5.52832898e-006, -2.51180712e-008, -2.51181635e-008, -3.01454222e-008, 0.999999344, 5.51342691e-006, 0.999999523, 3.01455501e-008))
  613. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  614. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 1.20000005, 1))
  615. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.600004196, -0.599998713, 0, -0.999999166, -3.55271368e-015, -2.98023508e-008, -2.98022798e-008, 8.8817842e-015, 0.999999702, -1.49011434e-008, 0.999999404, 7.10542736e-015))
  616. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.220000014, 0.799999952, 0.200000003))
  617. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.600004196, -0.599812984, 0.199977875, -0.999999344, 4.69386441e-006, -2.9802635e-008, -2.98025782e-008, 5.54223334e-013, 0.999999344, 4.67896234e-006, 0.999999583, -3.92574862e-013))
  618. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.220000014, 0.200000003, 0.200000003))
  619. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.599975586, 0.0995745659, 0.19997406, 0.999998689, 5.24520738e-006, -3.42694086e-008, -4.46761206e-009, 5.93964842e-008, -0.999999225, -5.52832762e-006, 0.999999523, 5.9397351e-008))
  620. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  621. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  622. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599988937, -1.29949903, 0.399974823, -0.999999166, 6.76512536e-006, -2.98028446e-008, -2.98025498e-008, 1.02673425e-012, 0.99999243, 6.75022238e-006, 0.999999404, -8.2600593e-013))
  623. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  624. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  625. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.599973679, -0.100358725, 0.399974823, 0.999998868, -7.40587484e-006, -2.98016953e-008, -2.98017575e-008, -2.93098879e-013, -0.999998987, 7.28666373e-006, 0.999999344, -4.92050845e-013))
  626. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  627. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.220000014, 0.200000003, 0.200000003))
  628. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599992752, -0.0995156765, -3.43322754e-005, -0.999999166, 6.76512536e-006, -2.98029015e-008, -2.98027913e-008, 6.73239242e-013, 0.999999344, 6.75022238e-006, 0.999999404, -4.56523708e-013))
  629. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.600000024))
  630. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599983215, -1.2996099, -2.67028809e-005, -0.999999106, 7.30156671e-006, -2.98029335e-008, -2.98028553e-008, 7.35411732e-013, 0.999999344, 7.28666373e-006, 0.999999344, -4.92050845e-013))
  631. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.220000014, 0.200000003, 0.200000003))
  632. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.599988937, -1.09957433, 0.200023651, 0.999999285, -5.52832898e-006, 3.44866038e-008, -3.44863622e-008, 3.01454222e-008, 0.999999344, -5.51342691e-006, -0.999999523, 3.0145241e-008))
  633. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  634. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.400000006, 0.200000003, 0.200000003))
  635. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599998713, 0, -0.600000381, -2.98022726e-008, 1.77635684e-014, 0.999999821, -1.49011434e-008, 0.999999404, 7.10542736e-015, -0.999999166, -3.55271368e-015, -2.98023508e-008))
  636. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(0.539999962, 0.539999962, 1.48000002))
  637. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  638. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.599985123, -1.29950166, 0.400032043, 0.999998868, -6.85453233e-006, 3.44866748e-008, -3.44862556e-008, 3.01455572e-008, 0.999993145, -6.83962935e-006, -0.999999106, 3.01451237e-008))
  639. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  640. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  641. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599977493, -0.100389481, 0.400024414, -0.999998808, 7.33136903e-006, -8.94075214e-008, 8.94074077e-008, -1.15818466e-012, -0.999998987, -7.28666373e-006, -0.999999046, 5.22248911e-013))
  642. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  643. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.220000014, 0.799999952, 0.200000003))
  644. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599985123, -0.599738121, -0.200023651, -0.999999106, 6.95884e-006, -2.98028127e-008, -2.98027487e-008, 7.47846229e-013, 0.999999344, 6.94393748e-006, 0.999999344, -5.43565193e-013))
  645. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.220000014, 0.200000003, 0.200000003))
  646. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599985123, 0.0995743275, 0.200031281, -0.999998987, -5.30481157e-006, -8.94069601e-008, 5.9604556e-008, 3.01454079e-008, -0.999999225, 5.4985253e-006, -0.999999583, -3.01443599e-008))
  647. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  648. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.400000006, 0.220000014, 0.200000003))
  649. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.599994421, 0.599998474, -3.81469727e-006, 2.98012459e-008, -4.69401175e-006, -0.999994099, 0.999996006, -1.19209062e-007, 2.98017913e-008, -2.98018108e-008, -0.999996841, 4.69402084e-006))
  650. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  651. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.220000014, 0.200000003, 0.200000003))
  652. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599990845, -1.09951591, -3.43322754e-005, -0.999999166, 6.76512536e-006, -2.98029015e-008, -2.98027913e-008, 6.73239242e-013, 0.999999344, 6.75022238e-006, 0.999999404, -4.56523708e-013))
  653. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.600000024))
  654. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599983215, 0.100389719, -2.67028809e-005, -0.999999106, 7.30156671e-006, -2.98029335e-008, -2.98028553e-008, 7.35411732e-013, 0.999999344, 7.28666373e-006, 0.999999344, -4.92050845e-013))
  655.  
  656. local PE1 = Instance.new("ParticleEmitter",MagicPrtA)
  657. PE1.Color = ColorSequence.new(Color3.new (255, 255, 255), Color3.new (255, 255, 255))
  658. PE1.LightEmission = NumberSequence.new(0.2)
  659. PE1.Size = NumberSequence.new(1.1)
  660. PE1.Texture = "http://www.roblox.com/asset/?id=249480403"
  661. PE1.Lifetime = NumberRange.new(.5)
  662. PE1.Rate = 10
  663. PE1.Transparency = NumberSequence.new(0.2)
  664. PE1.LightEmission = NumberSequence.new(0.2)
  665. PE1.Rotation = NumberRange.new(100)
  666. PE1.Speed = NumberRange.new(0)
  667. PE1.RotSpeed = NumberRange.new(100)
  668.  
  669. local PE2 = Instance.new("ParticleEmitter",MagicPrtB)
  670. PE2.Color = ColorSequence.new(Color3.new (255, 255, 255), Color3.new (255, 255, 255))
  671. PE2.LightEmission = NumberSequence.new(0.2)
  672. PE2.Size = NumberSequence.new(1.1)
  673. PE2.Texture = "http://www.roblox.com/asset/?id=249480403"
  674. PE2.Lifetime = NumberRange.new(.5)
  675. PE2.Rate = 10
  676. PE2.Transparency = NumberSequence.new(0.2)
  677. PE2.LightEmission = NumberSequence.new(0.2)
  678. PE2.Rotation = NumberRange.new(100)
  679. PE2.Speed = NumberRange.new(0)
  680. PE2.RotSpeed = NumberRange.new(100)
  681.  
  682. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  683. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  684. prt.Anchored=true
  685. prt.CFrame=cframe
  686. local PE1 = Instance.new("ParticleEmitter",prt)
  687. PE1.Color = ColorSequence.new(Color3.new (255, 255, 255))
  688. PE1.LightEmission = NumberSequence.new(0.2)
  689. PE1.Size = NumberSequence.new(2)
  690. PE1.Texture = "http://www.roblox.com/asset/?id=249480403"
  691. PE1.Lifetime = NumberRange.new(5)
  692. PE1.Rate = 10
  693. PE1.Transparency = NumberSequence.new(0.2)
  694. PE1.LightEmission = NumberSequence.new(0.2)
  695. PE1.Speed = NumberRange.new(0)
  696. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  697. game:GetService("Debris"):AddItem(prt,2)
  698. coroutine.resume(coroutine.create(function(Part,Mesh)
  699. for i=0,1,delay do
  700. swait()
  701. Part.CFrame=Part.CFrame
  702. Part.Transparency=i
  703. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  704. end
  705. Part.Parent=nil
  706. end),prt,msh)
  707. end
  708. --example: MagicCircle(BrickColor.new(""),ExamplePart.CFrame,0,0,0,0,0,0,0.01)
  709.  
  710. function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  711. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  712. prt.Anchored=true
  713. prt.CFrame=cframe
  714. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  715. game:GetService("Debris"):AddItem(prt,2)
  716. coroutine.resume(coroutine.create(function(Part,Mesh,num)
  717. for i=0,1,delay do
  718. swait()
  719. Part.Transparency=i
  720. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  721. end
  722. Part.Parent=nil
  723. end),prt,msh,(math.random(0,1)+math.random())/5)
  724. end
  725. --example: MagicRing(BrickColor.new(""),ExamplePart.CFrame,0,0,0,0,0,0,0.01)
  726.  
  727. function MMMAGIC(part,x1,y1,z1,x2,y2,z2,color)
  728. local msh1 = it("BlockMesh")
  729. msh1.Scale = vt(0.5,0.5,0.5)
  730. local S=it("Part")
  731. S.Material = "SmoothPlastic"
  732. S.Name="Effect"
  733. S.formFactor=0
  734. S.Size=vt(x1,y1,z1)
  735. S.BrickColor=color
  736. S.Reflectance = 0
  737. S.TopSurface=0
  738. S.BottomSurface=0
  739. S.Transparency=0
  740. S.Anchored=true
  741. S.CanCollide=false
  742. S.CFrame=part.CFrame*cf(x2,y2,z2)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  743. S.Parent=workspace
  744. msh1.Parent = S
  745. 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)
  746. end
  747.  
  748. function MagniDamage(Part,magni,mindam,maxdam,knock,Type)
  749. for _,c in pairs(workspace:children()) do
  750. local hum=c:findFirstChild("Humanoid")
  751. if hum~=nil then
  752. local head=c:findFirstChild("Torso")
  753. if head~=nil then
  754. local targ=head.Position-Part.Position
  755. local mag=targ.magnitude
  756. if mag<=magni and c.Name~=Player.Name then
  757. Damagefunc(head,mindam,maxdam,knock,Type,RootPart,.2,1,3)
  758. end
  759. end
  760. end
  761. end
  762. end
  763.  
  764. function attackone()
  765. attack = true
  766. for i = 0,1,0.1 do
  767. swait()
  768. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
  769. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  770. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-20)), 0.3)
  771. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5, -.5) * angles(math.rad(70), math.rad(0), math.rad(50)), 0.3)
  772. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(100),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  773. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  774. end
  775. for i = 0,1,0.1 do
  776. swait()
  777. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),.3)
  778. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  779. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(70)), 0.3)
  780. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)), 0.3)
  781. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(70),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  782. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  783. end
  784. local p = part("Custom",workspace,"SmoothPlastic",0,1,BrickColor.new("Cyan"),"DamagePrt",vt(1,1,1))
  785. p.Anchored = true
  786. p.CFrame = MagicPrtA.CFrame
  787. MagniDamage(p,15,10,20,0,"Normal")
  788. so("http://www.roblox.com/asset/?id=200633327",MagicPrtA,1,1)
  789. MagicCircle(BrickColor.new("Cyan"),MagicPrtA.CFrame,0.1,0.1,0.1,0.8,0.8,0.8,0.06)
  790. MagicRing(BrickColor.new("Cyan"),MagicPrtA.CFrame,0.1,0.1,0.1,1,1,1,0.06)
  791. MMMAGIC(MagicPrtA,2,2,2,0,0,0,BrickColor.new("Cyan"))
  792. for i = 0,1,0.2 do
  793. swait()
  794. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),.3)
  795. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  796. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(70)), 0.3)
  797. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)), 0.3)
  798. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(70),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  799. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  800. end
  801. attack = false
  802. p:remove()
  803. end
  804.  
  805. function attacktwo()
  806. attack = true
  807. for i = 0,1,0.1 do
  808. swait()
  809. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),.3)
  810. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-80)),.3)
  811. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.3)
  812. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(120), math.rad(0), math.rad(-30)), 0.3)
  813. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(70),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  814. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  815. end
  816. for i = 0,1,0.1 do
  817. swait()
  818. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
  819. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  820. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(30)), 0.3)
  821. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-50)), 0.3)
  822. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(100),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  823. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  824. end
  825. local p = part("Custom",workspace,"SmoothPlastic",0,1,BrickColor.new("Cyan"),"DamagePrt",vt(1,1,1))
  826. p.Anchored = true
  827. p.CFrame = MagicPrtA.CFrame
  828. MagniDamage(p,15,10,20,0,"Normal")
  829. so("http://www.roblox.com/asset/?id=200633327",MagicPrtB,1,1)
  830. MagicCircle(BrickColor.new("Cyan"),MagicPrtB.CFrame,0.1,0.1,0.1,0.8,0.8,0.8,0.06)
  831. MagicRing(BrickColor.new("Cyan"),MagicPrtB.CFrame,0.1,0.1,0.1,1,1,1,0.06)
  832. MMMAGIC(MagicPrtB,2,2,2,0,0,0,BrickColor.new("Cyan"))
  833. for i = 0,1,0.2 do
  834. swait()
  835. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
  836. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  837. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(30)), 0.3)
  838. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-50)), 0.3)
  839. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(100),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  840. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  841. end
  842. attack = false
  843. p:remove()
  844. end
  845.  
  846. function attackthree()
  847. attack = true
  848. for i = 0,1,0.1 do
  849. swait()
  850. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  851. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  852. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(20)), 0.3)
  853. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-20)), 0.3)
  854. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  855. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-80),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  856. end
  857. for i = 0,1,0.1 do
  858. swait()
  859. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  860. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  861. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.5) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.3)
  862. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -.5) * angles(math.rad(90), math.rad(0), math.rad(70)), 0.3)
  863. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  864. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-80),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  865. end
  866. local p = part("Custom",workspace,"SmoothPlastic",0,1,BrickColor.new("Cyan"),"DamagePrt",vt(5,5,5))
  867. p.Anchored = true
  868. p.CFrame = Torso.CFrame*cf(0,0,-5)
  869. MagniDamage(p,15,20,30,0,"Normal")
  870. so("http://www.roblox.com/asset/?id=200633327",Torso,1,1)
  871. MagicCircle(BrickColor.new("Cyan"),Torso.CFrame*cf(0,0,-5),0.5,0.5,0.5,2,2,2,0.06)
  872. MagicRing(BrickColor.new("Cyan"),Torso.CFrame*cf(0,0,-5),0.5,0.5,0.5,2,2,2,0.06)
  873. for i = 0,1,0.2 do
  874. swait()
  875. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  876. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  877. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.5) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.3)
  878. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -.5) * angles(math.rad(90), math.rad(0), math.rad(70)), 0.3)
  879. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  880. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-80),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  881. end
  882. attack = false
  883. p:remove()
  884. end
  885.  
  886. function MagicHealingCircle()
  887. attack = true
  888. for i = 0,1,0.1 do
  889. swait()
  890. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  891. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  892. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.3)
  893. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-50)), 0.3)
  894. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  895. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  896. end
  897. for i = 0,1,.1 do
  898. swait()
  899. so("http://www.roblox.com/asset/?id=200633327",Torso,1,1.5)
  900. MagicCircle(BrickColor.new("Cyan"),Torso.CFrame*cf(math.random(-3,3),math.random(-3,5),math.random(-3,3)),0.1,0.1,0.1,.5,.5,.5,0.1)
  901. for i = 0,1,0.5 do
  902. swait()
  903. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  904. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  905. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-50)), 0.3)
  906. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.3)
  907. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  908. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  909. end
  910. end
  911. for i = 0,1,0.01 do
  912. swait()
  913. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)* angles(math.rad(30),math.rad(0),math.rad(0)),.3)
  914. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  915. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(0)), 0.3)
  916. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-50)), 0.3)
  917. RH.C0=clerp(RH.C0,cf(1,-.5,-0.5)*angles(math.rad(0),math.rad(90),math.rad(-50))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  918. LH.C0=clerp(LH.C0,cf(-1,.6,0)*angles(math.rad(0),math.rad(-90),math.rad(-30))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  919. end
  920. attack = false
  921. end
  922.  
  923. mouse.Button1Down:connect(function()
  924. if attack == false and attacktype == 1 then
  925. attacktype = 2
  926. attackone()
  927. elseif attack == false and attacktype == 2 then
  928. attacktype = 3
  929. attacktwo()
  930. elseif attack == false and attacktype == 3 then
  931. attacktype = 1
  932. attackthree()
  933. end
  934. end)
  935.  
  936. mouse.KeyDown:connect(function(key)
  937. key=key:lower()
  938. if key=='q' and attack==false then
  939. MagicHealingCircle()
  940. end
  941. end)
  942.  
  943. local sine = 0
  944. local change = 1
  945. local val = 0
  946.  
  947. while true do
  948. swait()
  949. sine = sine + change
  950. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  951. local velderp=RootPart.Velocity.y
  952. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  953. if equipped==true or equipped==false then
  954. if attack==false then
  955. idle=idle+1
  956. else
  957. idle=0
  958. end
  959. if idle>=500 then
  960. if attack==false then
  961. --Sheath()
  962. end
  963. end
  964. if RootPart.Velocity.y > 1 and hitfloor==nil then
  965. Anim="Jump"
  966. if attack==false then
  967. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  968. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  969. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(40)), 0.3)
  970. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-40)), 0.3)
  971. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  972. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  973. end
  974. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  975. Anim="Fall"
  976. if attack==false then
  977. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  978. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  979. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(70)), 0.3)
  980. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-70)), 0.3)
  981. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  982. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  983. end
  984. elseif torvel<1 and hitfloor~=nil then
  985. Anim="Idle"
  986. if attack==false then
  987. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-30)),.3)
  988. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(30)),.3)
  989. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.3)
  990. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3)
  991. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(100),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  992. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  993. end
  994. elseif torvel>2 and hitfloor~=nil then
  995. Anim="Walk"
  996. if attack==false then
  997. change=3
  998. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  999. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1000. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-40*math.cos(sine/10)), math.rad(0), math.rad(15)), 0.3)
  1001. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(40*math.cos(sine/10)), math.rad(0), math.rad(-15)), 0.3)
  1002. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1003. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1004. end
  1005. end
  1006. end
  1007. if #Effects>0 then
  1008. --table.insert(Effects,{prt,"Block1",delay})
  1009. for e=1,#Effects do
  1010. if Effects[e]~=nil then
  1011. --for j=1,#Effects[e] do
  1012. local Thing=Effects[e]
  1013. if Thing~=nil then
  1014. local Part=Thing[1]
  1015. local Mode=Thing[2]
  1016. local Delay=Thing[3]
  1017. local IncX=Thing[4]
  1018. local IncY=Thing[5]
  1019. local IncZ=Thing[6]
  1020. if Thing[1].Transparency<=1 then
  1021. if Thing[2]=="Block1" then
  1022. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1023. Mesh=Thing[1].Mesh
  1024. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1025. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1026. elseif Thing[2]=="Cylinder" then
  1027. Mesh=Thing[1].Mesh
  1028. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1029. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1030. elseif Thing[2]=="Blood" then
  1031. Mesh=Thing[7]
  1032. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  1033. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1034. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1035. elseif Thing[2]=="Elec" then
  1036. Mesh=Thing[1].Mesh
  1037. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  1038. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1039. elseif Thing[2]=="Disappear" then
  1040. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1041. end
  1042. else
  1043. Part.Parent=nil
  1044. table.remove(Effects,e)
  1045. end
  1046. end
  1047. --end
  1048. end
  1049. end
  1050. end
  1051. end
Add Comment
Please, Sign In to add comment