ColdLegacy

Untitled

Aug 25th, 2016
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 76.85 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. local fengui=it("GuiMain")
  88. fengui.Parent=Player.PlayerGui
  89. fengui.Name="WeaponGUI"
  90. local fenframe=it("Frame")
  91. fenframe.Parent=fengui
  92. fenframe.BackgroundColor3=Color3.new(255,255,255)
  93. fenframe.BackgroundTransparency=1
  94. fenframe.BorderColor3=Color3.new(17,17,17)
  95. fenframe.Size=UDim2.new(0.0500000007, 0, 0.100000001, 0)
  96. fenframe.Position=UDim2.new(0.4,0,0.1,0)
  97. local fenbarmana1=it("TextLabel")
  98. fenbarmana1.Parent=fenframe
  99. fenbarmana1.Text=" "
  100. fenbarmana1.BackgroundTransparency=0
  101. fenbarmana1.BackgroundColor3=Color3.new(0,0,0)
  102. fenbarmana1.SizeConstraint="RelativeXY"
  103. fenbarmana1.TextXAlignment="Center"
  104. fenbarmana1.TextYAlignment="Center"
  105. fenbarmana1.Position=UDim2.new(0,0,0,0)
  106. fenbarmana1.Size=UDim2.new(4,0,0.2,0)
  107. local fenbarmana2=it("TextLabel")
  108. fenbarmana2.Parent=fenframe
  109. fenbarmana2.Text=" "
  110. fenbarmana2.BackgroundTransparency=0
  111. fenbarmana2.BackgroundColor3=Torso.Color
  112. fenbarmana2.SizeConstraint="RelativeXY"
  113. fenbarmana2.TextXAlignment="Center"
  114. fenbarmana2.TextYAlignment="Center"
  115. fenbarmana2.Position=UDim2.new(0,0,0,0)
  116. fenbarmana2.Size=UDim2.new(4*mana/100,0,0.2,0)
  117. local fenbarmana3=it("TextLabel")
  118. fenbarmana3.Parent=fenframe
  119. fenbarmana3.Text=" "
  120. fenbarmana3.BackgroundTransparency=0
  121. fenbarmana3.BackgroundColor3=Color3.new(Col1,Col2,Col3)
  122. fenbarmana3.SizeConstraint="RelativeXY"
  123. fenbarmana3.TextXAlignment="Center"
  124. fenbarmana3.TextYAlignment="Center"
  125. fenbarmana3.Position=UDim2.new(0,0,0,0)
  126. fenbarmana3.Size=UDim2.new(0,0,0.2,0)
  127. local fenbarmana4=it("TextLabel")
  128. fenbarmana4.Parent=fenframe
  129. fenbarmana4.Text="Loading interface"
  130. fenbarmana4.BackgroundTransparency=1
  131. fenbarmana4.BackgroundColor3=Color3.new(0,0,0)
  132. fenbarmana4.SizeConstraint="RelativeXY"
  133. fenbarmana4.TextXAlignment="Center"
  134. fenbarmana4.TextYAlignment="Center"
  135. fenbarmana4.Position=UDim2.new(0,0,-0.3,0)
  136. fenbarmana4.Size=UDim2.new(4,0,0.2,0)
  137. fenbarmana4.FontSize="Size9"
  138. fenbarmana4.TextStrokeTransparency=0
  139. fenbarmana4.TextColor=BrickColor.new("White")
  140.  
  141. Player=game:GetService('Players').LocalPlayer
  142. Character=Player.Character
  143. Mouse=Player:GetMouse()
  144. m=Instance.new('Model',Character)
  145.  
  146.  
  147. local function weldBetween(a, b)
  148. local weldd = Instance.new("ManualWeld")
  149. weldd.Part0 = a
  150. weldd.Part1 = b
  151. weldd.C0 = CFrame.new()
  152. weldd.C1 = b.CFrame:inverse() * a.CFrame
  153. weldd.Parent = a
  154. return weldd
  155. end
  156.  
  157. function swait(num)
  158. if num==0 or num==nil then
  159. game:service'RunService'.Stepped:wait(0)
  160. else
  161. for i=0,num do
  162. game:service'RunService'.Stepped:wait(0)
  163. end
  164. end
  165. end
  166.  
  167. function nooutline(part)
  168. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  169. end
  170.  
  171. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  172. local fp=it("Part")
  173. fp.formFactor=formfactor
  174. fp.Parent=parent
  175. fp.Reflectance=reflectance
  176. fp.Transparency=transparency
  177. fp.CanCollide=false
  178. fp.Locked=true
  179. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  180. fp.Name=name
  181. fp.Size=size
  182. fp.Position=Character.Torso.Position
  183. nooutline(fp)
  184. fp.Material=material
  185. fp:BreakJoints()
  186. return fp
  187. end
  188.  
  189. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  190. local mesh=it(Mesh)
  191. mesh.Parent=part
  192. if Mesh=="SpecialMesh" then
  193. mesh.MeshType=meshtype
  194. mesh.MeshId=meshid
  195. end
  196. mesh.Offset=offset
  197. mesh.Scale=scale
  198. return mesh
  199. end
  200.  
  201. function weld(parent,part0,part1,c0,c1)
  202. local weld=it("Weld")
  203. weld.Parent=parent
  204. weld.Part0=part0
  205. weld.Part1=part1
  206. weld.C0=c0
  207. weld.C1=c1
  208. return weld
  209. end
  210.  
  211.  
  212. local function CFrameFromTopBack(at, top, back)
  213. local right = top:Cross(back)
  214. return CFrame.new(at.x, at.y, at.z,
  215. right.x, top.x, back.x,
  216. right.y, top.y, back.y,
  217. right.z, top.z, back.z)
  218. end
  219.  
  220. function Triangle(a, b, c)
  221. local edg1 = (c-a):Dot((b-a).unit)
  222. local edg2 = (a-b):Dot((c-b).unit)
  223. local edg3 = (b-c):Dot((a-c).unit)
  224. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  225. a, b, c = a, b, c
  226. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  227. a, b, c = b, c, a
  228. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  229. a, b, c = c, a, b
  230. else
  231. assert(false, "unreachable")
  232. end
  233.  
  234. local len1 = (c-a):Dot((b-a).unit)
  235. local len2 = (b-a).magnitude - len1
  236. local width = (a + (b-a).unit*len1 - c).magnitude
  237.  
  238. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  239.  
  240. local list = {}
  241.  
  242. if len1 > 0.01 then
  243. local w1 = Instance.new('WedgePart', m)
  244. game:GetService("Debris"):AddItem(w1,5)
  245. w1.Material = "SmoothPlastic"
  246. w1.FormFactor = 'Custom'
  247. w1.BrickColor = TorsoColor
  248. w1.Transparency = 0
  249. w1.Reflectance = 0
  250. w1.Material = "SmoothPlastic"
  251. w1.CanCollide = false
  252. NoOutline(w1)
  253. local sz = Vector3.new(0.2, width, len1)
  254. w1.Size = sz
  255. local sp = Instance.new("SpecialMesh",w1)
  256. sp.MeshType = "Wedge"
  257. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  258. w1:BreakJoints()
  259. w1.Anchored = true
  260. w1.Parent = workspace
  261. w1.Transparency = 0.7
  262. table.insert(Effects,{w1,"Disappear",.01})
  263. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  264. table.insert(list,w1)
  265. end
  266.  
  267. if len2 > 0.01 then
  268. local w2 = Instance.new('WedgePart', m)
  269. game:GetService("Debris"):AddItem(w2,5)
  270. w2.Material = "SmoothPlastic"
  271. w2.FormFactor = 'Custom'
  272. w2.BrickColor = TorsoColor
  273. w2.Transparency = 0
  274. w2.Reflectance = 0
  275. w2.Material = "SmoothPlastic"
  276. w2.CanCollide = false
  277. NoOutline(w2)
  278. local sz = Vector3.new(0.2, width, len2)
  279. w2.Size = sz
  280. local sp = Instance.new("SpecialMesh",w2)
  281. sp.MeshType = "Wedge"
  282. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  283. w2:BreakJoints()
  284. w2.Anchored = true
  285. w2.Parent = workspace
  286. w2.Transparency = 0.7
  287. table.insert(Effects,{w2,"Disappear",.01})
  288. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  289. table.insert(list,w2)
  290. end
  291. return unpack(list)
  292. end
  293.  
  294.  
  295. so = function(id,par,vol,pit)
  296. coroutine.resume(coroutine.create(function()
  297. local sou = Instance.new("Sound",par or workspace)
  298. sou.Volume=vol
  299. sou.Pitch=pit or 1
  300. sou.SoundId=id
  301. swait()
  302. sou:play()
  303. game:GetService("Debris"):AddItem(sou,6)
  304. end))
  305. end
  306.  
  307. function clerp(a,b,t)
  308. local qa = {QuaternionFromCFrame(a)}
  309. local qb = {QuaternionFromCFrame(b)}
  310. local ax, ay, az = a.x, a.y, a.z
  311. local bx, by, bz = b.x, b.y, b.z
  312. local _t = 1-t
  313. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  314. end
  315.  
  316. function QuaternionFromCFrame(cf)
  317. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  318. local trace = m00 + m11 + m22
  319. if trace > 0 then
  320. local s = math.sqrt(1 + trace)
  321. local recip = 0.5/s
  322. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  323. else
  324. local i = 0
  325. if m11 > m00 then
  326. i = 1
  327. end
  328. if m22 > (i == 0 and m00 or m11) then
  329. i = 2
  330. end
  331. if i == 0 then
  332. local s = math.sqrt(m00-m11-m22+1)
  333. local recip = 0.5/s
  334. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  335. elseif i == 1 then
  336. local s = math.sqrt(m11-m22-m00+1)
  337. local recip = 0.5/s
  338. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  339. elseif i == 2 then
  340. local s = math.sqrt(m22-m00-m11+1)
  341. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  342. end
  343. end
  344. end
  345.  
  346. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  347. local xs, ys, zs = x + x, y + y, z + z
  348. local wx, wy, wz = w*xs, w*ys, w*zs
  349. local xx = x*xs
  350. local xy = x*ys
  351. local xz = x*zs
  352. local yy = y*ys
  353. local yz = y*zs
  354. local zz = z*zs
  355. 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))
  356. end
  357.  
  358. function QuaternionSlerp(a, b, t)
  359. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  360. local startInterp, finishInterp;
  361. if cosTheta >= 0.0001 then
  362. if (1 - cosTheta) > 0.0001 then
  363. local theta = math.acos(cosTheta)
  364. local invSinTheta = 1/math.sin(theta)
  365. startInterp = math.sin((1-t)*theta)*invSinTheta
  366. finishInterp = math.sin(t*theta)*invSinTheta
  367. else
  368. startInterp = 1-t
  369. finishInterp = t
  370. end
  371. else
  372. if (1+cosTheta) > 0.0001 then
  373. local theta = math.acos(-cosTheta)
  374. local invSinTheta = 1/math.sin(theta)
  375. startInterp = math.sin((t-1)*theta)*invSinTheta
  376. finishInterp = math.sin(t*theta)*invSinTheta
  377. else
  378. startInterp = t-1
  379. finishInterp = t
  380. end
  381. end
  382. 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
  383. end
  384.  
  385. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  386. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  387. end
  388.  
  389. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  390. if hit.Parent==nil then
  391. return
  392. end
  393. h=hit.Parent:FindFirstChild("Humanoid")
  394. for _,v in pairs(hit.Parent:children()) do
  395. if v:IsA("Humanoid") then
  396. h=v
  397. end
  398. end
  399. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  400. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  401. end
  402. if hit.Parent.className=="Hat" then
  403. hit=hit.Parent.Parent:findFirstChild("Head")
  404. end
  405. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  406. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  407. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  408. return
  409. end]]
  410. -- hs(hit,1.2)
  411. c=Instance.new("ObjectValue")
  412. c.Name="creator"
  413. c.Value=game:service("Players").LocalPlayer
  414. c.Parent=h
  415. game:GetService("Debris"):AddItem(c,.5)
  416. Damage=math.random(minim,maxim)
  417. -- h:TakeDamage(Damage)
  418. blocked=false
  419. block=hit.Parent:findFirstChild("Block")
  420. if block~=nil then
  421. print(block.className)
  422. if block.className=="NumberValue" then
  423. if block.Value>0 then
  424. blocked=true
  425. if decreaseblock==nil then
  426. block.Value=block.Value-1
  427. end
  428. end
  429. end
  430. if block.className=="IntValue" then
  431. if block.Value>0 then
  432. blocked=true
  433. if decreaseblock~=nil then
  434. block.Value=block.Value-1
  435. end
  436. end
  437. end
  438. end
  439. if blocked==false then
  440. -- h:TakeDamage(Damage)
  441. h.Health=h.Health-Damage
  442. showDamage(hit.Parent,Damage,.5,TorsoColor)
  443. else
  444. h.Health=h.Health-(Damage/2)
  445. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  446. end
  447. if Type=="Knockdown" then
  448. hum=hit.Parent.Humanoid
  449. hum.PlatformStand=true
  450. coroutine.resume(coroutine.create(function(HHumanoid)
  451. swait(1)
  452. HHumanoid.PlatformStand=false
  453. end),hum)
  454. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  455. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  456. local bodvol=Instance.new("BodyVelocity")
  457. bodvol.velocity=angle*knockback
  458. bodvol.P=5000
  459. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  460. bodvol.Parent=hit
  461. rl=Instance.new("BodyAngularVelocity")
  462. rl.P=3000
  463. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  464. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  465. rl.Parent=hit
  466. game:GetService("Debris"):AddItem(bodvol,.5)
  467. game:GetService("Debris"):AddItem(rl,.5)
  468. elseif Type=="Normal" then
  469. vp=Instance.new("BodyVelocity")
  470. vp.P=500
  471. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  472. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  473. if KnockbackType==1 then
  474. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  475. elseif KnockbackType==2 then
  476. vp.velocity=Property.CFrame.lookVector*knockback
  477. end
  478. if knockback>0 then
  479. vp.Parent=hit.Parent.Torso
  480. end
  481. game:GetService("Debris"):AddItem(vp,.5)
  482. elseif Type=="Up" then
  483. local bodyVelocity=Instance.new("BodyVelocity")
  484. bodyVelocity.velocity=vt(0,60,0)
  485. bodyVelocity.P=5000
  486. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  487. bodyVelocity.Parent=hit
  488. game:GetService("Debris"):AddItem(bodyVelocity,1)
  489. rl=Instance.new("BodyAngularVelocity")
  490. rl.P=3000
  491. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  492. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  493. rl.Parent=hit
  494. game:GetService("Debris"):AddItem(rl,.5)
  495. elseif Type=="Snare" then
  496. bp=Instance.new("BodyPosition")
  497. bp.P=2000
  498. bp.D=100
  499. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  500. bp.position=hit.Parent.Torso.Position
  501. bp.Parent=hit.Parent.Torso
  502. game:GetService("Debris"):AddItem(bp,1)
  503. elseif Type=="Target" then
  504. if Targetting==false then
  505. ZTarget=hit.Parent.Torso
  506. coroutine.resume(coroutine.create(function(Part)
  507. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  508. swait(5)
  509. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  510. end),ZTarget)
  511. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  512. targetgui=Instance.new("BillboardGui")
  513. targetgui.Parent=ZTarget
  514. targetgui.Size=UDim2.new(10,100,10,100)
  515. targ=Instance.new("ImageLabel")
  516. targ.Parent=targetgui
  517. targ.BackgroundTransparency=1
  518. targ.Image="rbxassetid://4834067"
  519. targ.Size=UDim2.new(1,0,1,0)
  520. cam.CameraType="Scriptable"
  521. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  522. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  523. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  524. Targetting=true
  525. RocketTarget=ZTarget
  526. for i=1,Property do
  527. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  528. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  529. swait()
  530. end
  531. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  532. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  533. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  534. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  535. end
  536. Targetting=false
  537. RocketTarget=nil
  538. targetgui.Parent=nil
  539. cam.CameraType="Custom"
  540. end
  541. end
  542. debounce=Instance.new("BoolValue")
  543. debounce.Name="DebounceHit"
  544. debounce.Parent=hit.Parent
  545. debounce.Value=true
  546. game:GetService("Debris"):AddItem(debounce,Delay)
  547. c=Instance.new("ObjectValue")
  548. c.Name="creator"
  549. c.Value=Player
  550. c.Parent=h
  551. game:GetService("Debris"):AddItem(c,.5)
  552. CRIT=false
  553. hitDeb=true
  554. AttackPos=6
  555. end
  556. end
  557.  
  558. showDamage=function(Char,Dealt,du,Color)
  559. m=Instance.new("Model")
  560. m.Name=tostring(Dealt)
  561. h=Instance.new("Humanoid")
  562. h.Health=0
  563. h.MaxHealth=0
  564. h.Parent=m
  565. c=Instance.new("Part")
  566. c.Transparency=0
  567. c.BrickColor=Color
  568. c.Name="Head"
  569. c.TopSurface=0
  570. c.BottomSurface=0
  571. c.formFactor="Plate"
  572. c.Size=Vector3.new(1,.4,1)
  573. ms=Instance.new("CylinderMesh")
  574. ms.Scale=Vector3.new(.8,.8,.8)
  575. if CRIT==true then
  576. ms.Scale=Vector3.new(1,1.25,1)
  577. end
  578. ms.Parent=c
  579. c.Reflectance=0
  580. Instance.new("BodyGyro").Parent=c
  581. c.Parent=m
  582. if Char:findFirstChild("Head")~=nil then
  583. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  584. elseif Char.Parent:findFirstChild("Head")~=nil then
  585. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  586. end
  587. f=Instance.new("BodyPosition")
  588. f.P=2000
  589. f.D=100
  590. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  591. f.position=c.Position+Vector3.new(0,3,0)
  592. f.Parent=c
  593. game:GetService("Debris"):AddItem(m,.5+du)
  594. c.CanCollide=false
  595. m.Parent=workspace
  596. c.CanCollide=false
  597. end
  598.  
  599. handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Handle",Vector3.new(0.264787316, 0.397180974, 0.264787316))
  600. handleweld=weld(m,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.00026011, -0.0521850586, -0.0998001099, -5.62780248e-012, -0.999994159, 8.61053451e-011, 6.25571693e-006, -8.51336709e-011, -0.999999702, 0.999994278, -5.45101074e-012, 6.15144063e-006))
  601. mesh("CylinderMesh",handle,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  602. Pivot=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","PivotPoint",Vector3.new(0.264787316, 0.397180974, 0.264787316))
  603. Pivotweld=weld(m,Pivot,handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.76837158e-007, 0, 0, 0.999988556, -9.72159853e-013, -1.76260767e-013, -9.72159853e-013, 0.999999404, 1.0424219e-007, -1.76260767e-013, 1.0424219e-007, 0.999988556))
  604. mesh("CylinderMesh",Pivot,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  605. Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,TorsoColor,"Hitbox",Vector3.new(0.794361949, 5.42814064, 0.228264928))
  606. Hitboxweld=weld(m,Pivot,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000121355057, -3.97163391, 0.000564575195, -0.999988556, -6.44826557e-008, 7.45072555e-008, -6.44840412e-008, 0.999999404, -1.69622808e-006, -7.45068007e-008, -1.90473202e-006, -0.999988556))
  607. mesh("BlockMesh",Hitbox,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.0753999949))
  608. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.397180915, 0.228264928, 0.264787316))
  609. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000289678574, -0.00057220459, 2.44920349, 0.999988556, 7.54901697e-012, -4.10401964e-013, 3.94173084e-014, 1.7724592e-006, 0.999988556, 9.50216988e-012, -0.999999404, 1.56395663e-006))
  610. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.69599998, 1))
  611. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.397180915, 0.228264928, 0.228264928))
  612. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000213384628, 0.00157165527, 3.89822388, 0.999988556, 1.73189796e-011, -3.22475174e-013, 2.69746451e-014, 2.50190601e-006, 0.999988556, 1.92578592e-011, -0.999999404, 2.2933973e-006))
  613. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.724999964, 0.579999983))
  614. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.397180915, 0.228264928, 0.228264928))
  615. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000213384628, 0.00157165527, 2.44197083, 0.999988556, 1.73189796e-011, -3.22475174e-013, 2.69746451e-014, 2.50190601e-006, 0.999988556, 1.92578592e-011, -0.999999404, 2.2933973e-006))
  616. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.724999964, 0.579999983))
  617. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.264787316, 0.228264928, 0.264787316))
  618. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.76837158e-007, 6.10351563e-005, 0, 0.999988556, -9.72159853e-013, -1.76260767e-013, -9.72159853e-013, 0.999999404, 1.0424219e-007, -1.76260767e-013, 1.0424219e-007, 0.999988556))
  619. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  620. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.264787316, 0.264787316, 0.529574633))
  621. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.264739156, -0.992874146, -1.19210654e-007, 1.81748965e-006, 0.999988556, 0.999988556, 2.97863192e-008, 1.19210256e-007, -2.97877225e-008, 0.999999404, -1.60898662e-006))
  622. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  623. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.264787287, 0.291266054, 0.228264928))
  624. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.397107601, 7.62939453e-005, 1.12538147, 0.999988556, 2.44770038e-011, 2.39862232e-012, -2.73521852e-012, 4.90159709e-006, 0.999988556, 2.64299485e-011, -0.999999404, 4.69305996e-006))
  625. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.580000103))
  626. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.397180915, 0.228264928, 0.228264928))
  627. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000213384628, 0.00157928467, 4.56016541, 0.999988556, 1.73189796e-011, -3.22475174e-013, 2.69746451e-014, 2.50190601e-006, 0.999988556, 1.92578592e-011, -0.999999404, 2.2933973e-006))
  628. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.724999964, 0.579999983))
  629. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.228264928, 0.228264928, 0.228264928))
  630. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000579833984, -0.198605895, -3.17730713, 7.45035109e-008, 4.83197618e-006, 0.999988556, 0.999988556, -1.29257643e-007, -7.4503248e-008, 1.29253934e-007, 0.999999404, -4.62343996e-006))
  631. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 0.579999983, 0.579999983))
  632. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.264787316, 0.228264928, 0.264787316))
  633. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.57763672e-005, 0.926803589, -7.62939453e-006, 0.999994278, -7.0863454e-012, -3.11010159e-012, 6.11415085e-012, 0.999999702, 1.56474334e-006, 2.9338307e-012, -1.46050888e-006, 0.999994278))
  634. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  635. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.264787316, 0.228264928, 0.264787316))
  636. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.76837158e-007, -0.661941528, 0, 0.999988556, -9.72159853e-013, -1.76260767e-013, -9.72159853e-013, 0.999999404, 1.0424219e-007, -1.76260767e-013, 1.0424219e-007, 0.999988556))
  637. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  638. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.228264928, 0.228264928, 0.228264928))
  639. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00016784668, 0.00291454792, 5.42793274, -1.4897843e-008, -5.32471859e-006, -0.999988556, 0.999988556, 1.89769338e-007, -1.48991601e-008, 1.8976931e-007, -0.999999404, 5.11617782e-006))
  640. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.619961977, 0.0788800046, 0.579999983))
  641. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.228264928, 4.10420322, 0.228264928))
  642. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000655412674, -3.30970764, -0.000549316406, 0.999988556, -1.78267123e-011, -1.76189293e-012, 1.58809008e-011, 0.999999404, 1.66868676e-006, 1.41555561e-012, -1.46021921e-006, 0.999988556))
  643. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.0927999765, 1, 0.643799961))
  644. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.264787316, 0.397180974, 0.264787316))
  645. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00012254715, 0.397171021, 0.000152587891, 0.999994278, 8.02827874e-011, 4.46345478e-012, -8.12544892e-011, 0.999999702, -5.63018284e-006, -4.6401741e-012, 5.73445595e-006, 0.999994278))
  646. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  647. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Light stone grey","Part",Vector3.new(0.228264928, 0.228264928, 0.228264928))
  648. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00057220459, 0.198636889, 3.17730713, -1.48984096e-008, -4.90732282e-006, -0.999988556, 0.999988556, 1.89766411e-007, -1.4899638e-008, 1.89766382e-007, -0.999999404, 4.69878569e-006))
  649. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 0.579999983, 0.579999983))
  650. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Light stone grey","Part",Vector3.new(0.264787316, 4.10420322, 0.228264928))
  651. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.76837158e-007, -3.30970764, -0.000556945801, 0.999988556, 1.00572398e-011, 5.68523906e-013, -1.20103788e-011, 0.999999404, -5.21206857e-007, -9.05002581e-013, 7.29698513e-007, 0.999988556))
  652. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.579999983))
  653. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.228264928, 4.10420322, 0.228264928))
  654. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000655412674, -3.30970764, -0.000556945801, 0.999988556, -1.55080948e-011, -1.44081687e-012, 1.3569007e-011, 0.999999404, 1.46001821e-006, 1.09498456e-012, -1.25154929e-006, 0.999988556))
  655. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.638000011))
  656. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Light stone grey","Part",Vector3.new(0.228264928, 1.45633042, 0.228264928))
  657. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.198545456, -4.6335907, 0.000564575195, -0.999988556, -6.44841407e-008, 7.45042641e-008, -6.44856755e-008, 0.999999404, -3.57331942e-006, -7.45036957e-008, -3.78184404e-006, -0.999988556))
  658. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.579999983))
  659. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.397180915, 0.228264928, 0.228264928))
  660. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000213384628, 0.00157165527, 3.10389709, 0.999988556, 1.73189796e-011, -3.22475174e-013, 2.69746451e-014, 2.50190601e-006, 0.999988556, 1.92578592e-011, -0.999999404, 2.2933973e-006))
  661. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.724999964, 0.579999983))
  662. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.264787316, 0.264787316, 0.397180974))
  663. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.397184253, 1.3238678, -8.66994356e-013, 7.2984767e-007, 0.999988556, -0.999988556, 2.97975333e-008, -5.46056039e-013, -2.97952614e-008, -0.999999404, 5.21356014e-007))
  664. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  665. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.228264928, 0.529574752, 0.228264928))
  666. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.198561192, -3.50830078, -0.000556945801, 0.999988556, 9.05206465e-013, -2.54105032e-013, -2.85843571e-012, 0.999999404, 3.13056717e-007, -8.23664935e-014, -1.04574156e-007, 0.999988556))
  667. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.579999983))
  668. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.264787316, 0.228264928, 0.264787316))
  669. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.76837158e-007, 0.132415771, 0, 0.999988556, -9.72159853e-013, -1.76260767e-013, -9.72159853e-013, 0.999999404, 1.0424219e-007, -1.76260767e-013, 1.0424219e-007, 0.999988556))
  670. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  671. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.264787316, 0.228264928, 0.264787316))
  672. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.76837158e-007, -0.132369995, 0, 0.999988556, -9.72159853e-013, -1.76260767e-013, -9.72159853e-013, 0.999999404, 1.0424219e-007, -1.76260767e-013, 1.0424219e-007, 0.999988556))
  673. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  674. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.228264928, 0.529574752, 0.228264928))
  675. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.198545456, -3.50830078, 0.00057220459, -0.999988556, -6.44943157e-008, 7.45042641e-008, -6.44958789e-008, 0.999999404, -3.99032433e-006, -7.45036743e-008, -4.19885328e-006, -0.999988556))
  676. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.579999983))
  677. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.264787316, 0.228264928, 1.05914927))
  678. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.62939453e-006, -0.330823541, 1.78723145, 6.10958182e-007, -3.42968951e-006, -0.999988556, 0.999988556, -5.96426233e-008, 6.10958011e-007, -5.96421188e-008, -0.999999404, 3.22116875e-006))
  679. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  680. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.264787316, 0.228264928, 0.264787316))
  681. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000136852264, 0.794342041, 0.000152587891, 0.999994278, 7.73779651e-011, 3.83846947e-012, -7.83496809e-011, 0.999999702, -5.31696378e-006, -4.01514759e-012, 5.42123507e-006, 0.999994278))
  682. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  683. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.228264928, 0.228264928, 0.397180974))
  684. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00016784668, 0.00291454792, 5.56033325, -1.4897843e-008, -5.32470767e-006, -0.999988556, 0.999988556, 1.89769338e-007, -1.48991601e-008, 1.8976931e-007, -0.999999404, 5.1161669e-006))
  685. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.608999968, 0.579999983, 1))
  686. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Light stone grey","Part",Vector3.new(0.228264928, 1.85351133, 0.228264928))
  687. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.198561192, -2.18438721, -0.000564575195, 0.999988556, 3.15054927e-012, -2.55032594e-013, -5.10375076e-012, 0.999999404, 4.17415777e-007, -8.1437671e-014, -2.0893458e-007, 0.999988556))
  688. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.579999983))
  689. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.264787316, 0.228264928, 0.264787316))
  690. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.76837158e-007, -0.794265747, 7.62939453e-006, 0.999988556, -9.72159853e-013, -1.76260767e-013, -9.72159853e-013, 0.999999404, 1.0424219e-007, -1.76260767e-013, 1.0424219e-007, 0.999988556))
  691. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  692. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.264787316, 0.264787316, 0.397181034))
  693. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.62939453e-006, 1.12527466, 0.330884576, 1.23933859e-008, -2.48817855e-006, -0.999988556, -8.93814445e-008, -0.999999404, 2.27966848e-006, -0.999988556, 8.93843222e-008, -1.23932553e-008))
  694. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  695. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Light stone grey","Part",Vector3.new(0.228264928, 0.529574633, 0.926755607))
  696. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000564575195, 1.41859055e-005, 5.82516479, -1.48992925e-008, -4.07267999e-006, -0.999988556, 0.999988556, 1.89761536e-007, -1.49003663e-008, 1.89761494e-007, -0.999999404, 3.86415286e-006))
  697. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1))
  698. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.264787287, 0.264787316, 0.264787316))
  699. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.76837158e-007, -1.1252594, 0, 0.999988556, 4.40398412e-012, 5.13825466e-014, -6.34955977e-012, 0.999999404, -1.04301307e-007, -3.97694058e-013, 3.12787961e-007, 0.999988556))
  700. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Light stone grey","Part",Vector3.new(0.228264928, 0.228264928, 0.228264928))
  701. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000556945801, 0.198605895, 3.17730713, 7.45035109e-008, -6.0443972e-007, 0.999988556, -0.999988556, 1.2527542e-007, 7.45039443e-008, -1.2527218e-007, -0.999999404, -8.12916369e-007))
  702. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 0.579999983, 0.579999983))
  703. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.264787316, 0.397180974, 0.264787316))
  704. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.62939453e-006, 0.926681519, 0.264770508, -2.98031857e-008, 1.01280739e-006, 0.999988556, 1.12257634e-011, -0.999999404, 8.04313459e-007, 0.999988556, 9.31174582e-012, 2.98028446e-008))
  705. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  706. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.264787316, 0.228264928, 0.264787316))
  707. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000136852264, 0.661987305, 0.000152587891, 0.999994278, 7.73779651e-011, 3.83846947e-012, -7.83496809e-011, 0.999999702, -5.31696378e-006, -4.01514759e-012, 5.42123507e-006, 0.999994278))
  708. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  709. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.264787316, 0.228264928, 0.264787316))
  710. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.76837158e-007, -0.926651001, 0, 0.999988556, -4.84995377e-012, -9.15214844e-013, 2.90560631e-012, 0.999999404, 5.21180482e-007, 5.75119433e-013, -3.12700649e-007, 0.999988556))
  711. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  712. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.397180974, 0.264787316, 0.264787316))
  713. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.19151306, 0.000122666359, 0.000152587891, -7.45914832e-008, 0.999999344, -6.14994906e-006, -0.999993742, 8.93218015e-008, -4.60346039e-010, 1.08532996e-008, 6.21200343e-006, 0.99999392))
  714. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(0.406448454, 0.415716171, 1.64962482))
  715. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Light stone grey","Part",Vector3.new(0.228264928, 1.85351133, 0.228264928))
  716. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.198545337, -2.18438721, 0.000579833984, -0.999988556, -6.44912532e-008, 7.45045128e-008, -6.44928022e-008, 0.999999404, -3.78169307e-006, -7.45039372e-008, -3.99021974e-006, -0.999988556))
  717. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.579999983))
  718. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0.5,TorsoColor,"Part",Vector3.new(0.794361949, 4.10420322, 0.228264928))
  719. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000121355057, -3.30970764, 0.000564575195, -0.999988556, -6.44826557e-008, 7.45072555e-008, -6.44840412e-008, 0.999999404, -1.69622808e-006, -7.45068007e-008, -1.90473202e-006, -0.999988556))
  720. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.0753999949))
  721. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.264787316, 0.264787316, 0.228264928))
  722. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00012254715, -0.000152587891, -1.19151306, -0.999994278, -8.51336779e-011, -5.45101117e-012, 5.62780248e-012, -6.25571693e-006, -0.999994278, 8.61053451e-011, -0.999999702, 6.15144063e-006))
  723. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.0820840672, 0.160196364, 0.293913841))
  724. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Light stone grey","Part",Vector3.new(0.228264928, 0.228264928, 0.228264928))
  725. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000579833984, 0.198638082, -3.83926392, -1.4901973e-008, 5.15458805e-006, 0.999988556, 0.999988556, -1.89712992e-007, 1.49025752e-008, 1.8970907e-007, 0.999999404, -4.94604819e-006))
  726. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 0.579999983, 0.579999983))
  727. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.397180915, 0.228264928, 0.264787316))
  728. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000213384628, -0.000465393066, 4.56745911, 0.999988556, 5.46740847e-011, 3.63929373e-012, -3.9153277e-012, 5.73503667e-006, 0.999988556, 5.66128359e-011, -0.999999404, 5.52649362e-006))
  729. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.69599998, 1))
  730. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.228264928, 0.228264928, 0.228264928))
  731. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000556945801, -0.198636889, -3.17730713, 1.49022661e-008, 5.28972123e-007, -0.999988556, -0.999988556, -1.93748591e-007, -1.49020707e-008, -1.93748448e-007, 0.999999404, 7.37449682e-007))
  732. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 0.579999983, 0.579999983))
  733. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.228264928, 0.228264928, 0.264787316))
  734. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.198561192, -1.19145203, 0, 0.999988556, 4.56099047e-012, 2.15499859e-013, -6.51418502e-012, 0.999999404, -2.08553502e-007, -5.51973723e-013, 4.17041974e-007, 0.999988556))
  735. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 0.579999983, 1))
  736. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.397180915, 0.228264928, 0.264787316))
  737. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000289678574, -0.000564575195, 3.11112976, 0.999988556, 7.08313269e-012, -4.74432505e-013, 1.42207643e-013, 1.56400847e-006, 0.999988556, 9.03584846e-012, -0.999999404, 1.35550772e-006))
  738. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.69599998, 1))
  739. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Light stone grey","Part",Vector3.new(0.228264928, 1.45633042, 0.228264928))
  740. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.198561192, -4.6335907, -0.000549316406, 0.999988556, 1.10660647e-011, 2.55782618e-013, -1.30191968e-011, 0.999999404, -1.03957063e-007, -5.92255845e-013, 3.12444172e-007, 0.999988556))
  741. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.579999983))
  742. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(0.264787316, 0.397180974, 0.264787316))
  743. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.76837158e-007, -0.397171021, 0, 0.999988556, -9.72159853e-013, -1.76260767e-013, -9.72159853e-013, 0.999999404, 1.0424219e-007, -1.76260767e-013, 1.0424219e-007, 0.999988556))
  744. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  745. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Light stone grey","Part",Vector3.new(0.228264928, 0.228264928, 0.228264928))
  746. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000549316406, 0.198607206, -3.83921814, -7.45035109e-008, 8.51709956e-007, -0.999988556, -0.999988556, -2.54212353e-007, 7.45035749e-008, -2.54211557e-007, 0.999999404, 1.06018433e-006))
  747. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 0.579999983, 0.579999983))
  748. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.264787316, 0.228264928, 1.05914927))
  749. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.62939453e-006, 0.198409438, 1.78721619, -5.51345352e-007, 8.14446503e-006, 0.999988556, -0.999988556, -5.97869629e-008, -5.51344556e-007, 5.97837868e-008, -0.999999404, 7.93589334e-006))
  750. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  751. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0.5,TorsoColor,"Part",Vector3.new(0.228264928, 0.794361949, 1.32393658))
  752. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00057220459, 5.85317612e-005, 6.02371216, -1.48981627e-008, -4.80272593e-006, -0.999988556, 0.999988556, 1.89769253e-007, -1.48993715e-008, 1.89769224e-007, -0.999999404, 4.59419061e-006))
  753. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.0951199755, 1, 1))
  754. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.397180915, 0.228264928, 0.264787316))
  755. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000289678574, -0.000564575195, 3.9054718, 0.999988556, 8.04947081e-012, -3.74962919e-013, 4.27410792e-014, 1.45970671e-006, 0.999988556, 1.00015135e-011, -0.999999404, 1.25120732e-006))
  756. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.69599998, 1))
  757. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.264787287, 0.27802667, 0.264787316))
  758. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.397167683, 7.62939453e-006, 1.1252594, 0.999988556, 1.21773217e-011, 9.9635133e-013, -1.33575789e-012, 2.08566325e-006, 0.999988556, 1.41199344e-011, -0.999999404, 1.8771575e-006))
  759. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  760. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.228264928, 0.228264928, 0.228264928))
  761. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000549316406, -0.198638082, 3.83926392, 1.48984016e-008, -4.93167136e-007, 0.999988556, -0.999988556, 1.93695911e-007, 1.48988741e-008, -1.93691861e-007, -0.999999404, -7.01645149e-007))
  762. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 0.579999983, 0.579999983))
  763. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.228264928, 0.228264928, 0.228264928))
  764. Partweld=weld(m,Pivot,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000579833984, -0.198607206, 3.83921814, -7.45035109e-008, -4.79617029e-006, -0.999988556, 0.999988556, 2.58195314e-007, -7.45050315e-008, 2.58194859e-007, -0.999999404, 4.58763498e-006))
  765. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 0.579999983, 0.579999983))
  766.  
  767. function atktype(s, e)
  768. coroutine.resume(coroutine.create(function()
  769. attacktype = e
  770. swait(80)
  771. attacktype = s
  772. end))
  773. end
  774.  
  775. function attackone()
  776. attack=true
  777. con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,5,10,math.random(5,10),"Normal",RootPart,.2,1) end)
  778. for i=0,1,0.08 do
  779. swait()
  780. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(30)),.3)
  781. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(-30)),.3)
  782. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(90),math.rad(90)),.3)
  783. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-15),math.rad(0),math.rad(-45)),.3)
  784. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-120),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  785. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(60),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  786. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  787. end
  788. so("http://roblox.com/asset/?id=199146359",Hitbox,1,1)
  789. for i=0,1,0.06 do
  790. swait()
  791. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.3)
  792. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(30)),.3)
  793. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(-20),math.rad(90)),.3)
  794. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(30),math.rad(0),math.rad(20)),.3)
  795. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  796. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(120),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  797. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0)),.3)
  798. end
  799. attack=false
  800. atktype(1, 2)
  801. con1:disconnect()
  802. end
  803.  
  804. function attacktwo()
  805. attack=true
  806. con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,5,10,math.random(5,10),"Normal",RootPart,.2,1) end)
  807. for i=0,1,0.5 do
  808. swait()
  809. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  810. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  811. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(math.rad(30),math.rad(0),math.rad(-30)),.3)
  812. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*angles(math.rad(30),math.rad(0),math.rad(30)),.3)
  813. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  814. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  815. handleweld.C0=clerp(handleweld.C0,cf(-0.75,-0.25,-0.25)*euler(-0.75,-0.25,0.5),.3)
  816. end
  817. for i=0,1,0.08 do
  818. swait()
  819. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  820. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  821. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(math.rad(120),math.rad(0),math.rad(-30)),.3)
  822. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*angles(math.rad(120),math.rad(0),math.rad(30)),.3)
  823. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  824. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  825. handleweld.C0=clerp(handleweld.C0,cf(-0.75,-0.5,0)*angles(math.rad(0),math.rad(0),math.rad(30)),.3)
  826. end
  827. so("http://roblox.com/asset/?id=199150686",Hitbox,1,1)
  828. for i=0,1,0.06 do
  829. swait()
  830. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  831. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  832. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(math.rad(30),math.rad(0),math.rad(-30)),.3)
  833. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*angles(math.rad(30),math.rad(0),math.rad(30)),.3)
  834. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  835. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  836. handleweld.C0=clerp(handleweld.C0,cf(-0.75,-0.25,-0.25)*euler(-0.75,-0.25,0.5),.3)
  837. end
  838. attack=false
  839. atktype(1, 3)
  840. con1:disconnect()
  841. end
  842.  
  843. function attackthree()
  844. attack=true
  845. con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,5,10,math.random(5,10),"Normal",RootPart,.2,1) end)
  846. for i=0,1,0.08 do
  847. swait()
  848. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.3)
  849. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(30)),.3)
  850. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(120),math.rad(15),math.rad(60)),.3)
  851. LW.C0=clerp(LW.C0,cf(-1.25,0.5,-0.25)*angles(math.rad(75),math.rad(0),math.rad(20)),.3)
  852. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  853. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(120),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  854. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  855. end
  856. so("http://roblox.com/asset/?id=199150686",Hitbox,1,0.9)
  857. for i=0,1,0.06 do
  858. swait()
  859. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(30)),.3)
  860. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-30)),.3)
  861. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(45),math.rad(-45),math.rad(-30)),.3)
  862. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-15),math.rad(0),math.rad(-45)),.3)
  863. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-120),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  864. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(60),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  865. handleweld.C0=clerp(handleweld.C0,cf(0,0,-0.5)*angles(math.rad(-75),math.rad(0),math.rad(0)),.3)
  866. end
  867. attack=false
  868. atktype(1, 4)
  869. con1:disconnect()
  870. end
  871.  
  872. function attackfour()
  873. attack=true
  874. con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,5,10,math.random(5,10),"Normal",RootPart,.2,1) end)
  875. for i=0,1,0.08 do
  876. swait()
  877. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  878. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(-30)),.3)
  879. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(90),math.rad(90)),.3)
  880. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-15),math.rad(0),math.rad(-45)),.3)
  881. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-120),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  882. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(60),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  883. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  884. end
  885. so("http://roblox.com/asset/?id=199146359",Hitbox,1,0.9)
  886. for i=0,1,0.06 do
  887. swait()
  888. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-30-360*i)),.3)
  889. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(30)),.3)
  890. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(-20),math.rad(90)),.3)
  891. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(30),math.rad(0),math.rad(20)),.3)
  892. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  893. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(120),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  894. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0)),.3)
  895. end
  896. attack=false
  897. atktype(1, 1)
  898. con1:disconnect()
  899. end
  900.  
  901. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  902. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt())
  903. prt.Anchored=true
  904. prt.CFrame=cframe
  905. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  906. game:GetService("Debris"):AddItem(prt,2)
  907. coroutine.resume(coroutine.create(function(Part,Mesh)
  908. for i=0,1,delay do
  909. wait()
  910. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  911. Part.Transparency=i
  912. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  913. end
  914. Part.Parent=nil
  915. end),prt,msh)
  916. end
  917.  
  918. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  919. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt())
  920. prt.Anchored=true
  921. prt.CFrame=cframe
  922. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  923. game:GetService("Debris"):AddItem(prt,2)
  924. coroutine.resume(coroutine.create(function(Part,Mesh)
  925. local wld=nil
  926. for i=0,1,delay do
  927. wait()
  928. Part.CFrame=Part.CFrame
  929. Part.Transparency=i
  930. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  931. end
  932. Part.Parent=nil
  933. end),prt,msh)
  934. end
  935.  
  936. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  937. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  938. prt.Anchored=true
  939. prt.CFrame=cframe
  940. msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
  941. game:GetService("Debris"):AddItem(prt,5)
  942. coroutine.resume(coroutine.create(function(Part,Mesh)
  943. for i=0,1,delay do
  944. wait()
  945. Part.CFrame=Part.CFrame
  946. Part.Transparency=i
  947. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  948. end
  949. Part.Parent=nil
  950. end),prt,msh)
  951. end
  952.  
  953. function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  954. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  955. prt.Anchored=true
  956. prt.CFrame=cframe
  957. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  958. game:GetService("Debris"):AddItem(prt,5)
  959. coroutine.resume(coroutine.create(function(Part,Mesh)
  960. for i=0,1,delay do
  961. wait()
  962. Part.CFrame=Part.CFrame
  963. Part.Transparency=i
  964. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  965. end
  966. Part.Parent=nil
  967. end),prt,msh)
  968. end
  969.  
  970. function Twirl()
  971. mana=mana-50
  972. attack=true
  973. con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(5,10),"Normal",RootPart,.2,1) end)
  974. for i=0,1,0.2 do
  975. swait()
  976. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(30)),.3)
  977. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(-30)),.3)
  978. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(90),math.rad(90)),.3)
  979. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-15),math.rad(0),math.rad(-45)),.3)
  980. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-120),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  981. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(60),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  982. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  983. end
  984. for i=0,1,0.2 do
  985. so("http://roblox.com/asset/?id=199146359",Torso,1,1.2)
  986. swait()
  987. for i=0,1,0.05 do
  988. swait()
  989. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0-720*i)),.3)
  990. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(30)),.3)
  991. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(-20),math.rad(90)),.3)
  992. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(30),math.rad(0),math.rad(20)),.3)
  993. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  994. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(120),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  995. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0)),.3)
  996. end
  997. end
  998. attack=false
  999. con1:disconnect()
  1000. end
  1001.  
  1002. function Spin()
  1003. mana=mana-30
  1004. attack=true
  1005. con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(5,10),"Normal",RootPart,.2,1) end)
  1006. so("http://roblox.com/asset/?id=199145327",Torso,1,1)
  1007. for i=0,1,0.075 do
  1008. swait()
  1009. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.1)
  1010. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(20)),.1)
  1011. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(20)),.1)
  1012. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-30)),.1)
  1013. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1014. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1015. Pivotweld.C0=cf(0,0,0)*euler(0,0,0+20*i)
  1016. end
  1017. for i=0,1,0.075 do
  1018. swait()
  1019. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.3)
  1020. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(20)),.3)
  1021. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(20)),.3)
  1022. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-30)),.3)
  1023. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1024. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1025. Pivotweld.C0=cf(0,0,0)*euler(0,0,0)
  1026. end
  1027. so("http://roblox.com/asset/?id=199146359",Hitbox,1,0.8)
  1028. for i=0,1,0.075 do
  1029. swait()
  1030. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(45)),.3)
  1031. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(-30)),.3)
  1032. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-10)),.3)
  1033. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(30),math.rad(0),math.rad(-30)),.3)
  1034. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1035. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1036. Pivotweld.C0=cf(0,0,0)*euler(0,0,0)
  1037. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  1038. end
  1039. attack=false
  1040. con1:disconnect()
  1041. end
  1042.  
  1043. function Shockwave2(brickcolor, cframe, x1, y1, z1, x2, y2, z2, delay)
  1044. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1045. prt.Anchored = true
  1046. prt.CFrame = cframe
  1047. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
  1048. coroutine.resume(coroutine.create(function()
  1049. for i = 0, 1, delay do
  1050. swait()
  1051. prt.Transparency = i
  1052. msh.Scale = msh.Scale + vt(x2, y2, z2)
  1053. end
  1054. prt.Parent = nil
  1055. end))
  1056. end
  1057.  
  1058. function MagniDamage(Part,magni,mindam,maxdam,knock,Type)
  1059. for _,c in pairs(workspace:children()) do
  1060. local hum=c:findFirstChild("Humanoid")
  1061. if hum~=nil then
  1062. local head=c:findFirstChild("Torso")
  1063. if head~=nil then
  1064. local targ=head.Position-Part.Position
  1065. local mag=targ.magnitude
  1066. if mag<=magni and c.Name~=Player.Name then
  1067. Damagefunc(head,mindam,maxdam,knock,Type,Part,.2,1,nil,1)
  1068. end
  1069. end
  1070. end
  1071. end
  1072. end
  1073.  
  1074. function GetDownOnIt()
  1075. mana=mana-100
  1076. Humanoid.WalkSpeed = 0
  1077. Humanoid.Jump=true
  1078. wait(0.15)
  1079. attack=true
  1080. con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(5,10),"Normal",RootPart,.2,1) end)
  1081. so("http://roblox.com/asset/?id=199145327",Torso,1,0.9)
  1082. for i=0,1,0.05 do
  1083. swait()
  1084. Torso.Velocity=RootPart.CFrame.lookVector*50
  1085. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0+360*i),math.rad(0),math.rad(0)),.3)
  1086. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1087. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(math.rad(120),math.rad(0),math.rad(-30)),.3)
  1088. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*angles(math.rad(120),math.rad(0),math.rad(30)),.3)
  1089. LH.C0=clerp(LH.C0,cf(-1,-0.5,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1090. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1091. handleweld.C0=clerp(handleweld.C0,cf(-0.75,-0.25,-0.25)*euler(-0.75,-0.25,0.5),.3)
  1092. end
  1093. so("http://roblox.com/asset/?id=199145327",Torso,1,0.9)
  1094. for i=0,1,0.05 do
  1095. swait()
  1096. Torso.Velocity=RootPart.CFrame.lookVector*50
  1097. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0+360*i),math.rad(0),math.rad(0)),.3)
  1098. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1099. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(math.rad(120),math.rad(0),math.rad(-30)),.3)
  1100. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*angles(math.rad(120),math.rad(0),math.rad(30)),.3)
  1101. LH.C0=clerp(LH.C0,cf(-1,-0.5,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1102. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1103. handleweld.C0=clerp(handleweld.C0,cf(-0.75,-0.25,-0.25)*euler(-0.75,-0.25,0.5),.3)
  1104. end
  1105. so("http://roblox.com/asset/?id=199145327",Torso,1,0.9)
  1106. for i=0,1,0.05 do
  1107. swait()
  1108. Torso.Velocity=RootPart.CFrame.lookVector*50
  1109. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0+360*i),math.rad(0),math.rad(0)),.3)
  1110. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1111. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(math.rad(120),math.rad(0),math.rad(-30)),.3)
  1112. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*angles(math.rad(120),math.rad(0),math.rad(30)),.3)
  1113. LH.C0=clerp(LH.C0,cf(-1,-0.5,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1114. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1115. handleweld.C0=clerp(handleweld.C0,cf(-0.75,-0.25,-0.25)*euler(-0.75,-0.25,0.5),.3)
  1116. end
  1117. so("http://roblox.com/asset/?id=199146359",Hitbox,1,0.75)
  1118. Torso.Velocity=RootPart.CFrame.lookVector*0
  1119. for i=0,1,0.075 do
  1120. swait()
  1121. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1122. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1123. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(math.rad(30),math.rad(0),math.rad(-30)),.3)
  1124. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*angles(math.rad(30),math.rad(0),math.rad(30)),.3)
  1125. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  1126. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1127. handleweld.C0=clerp(handleweld.C0,cf(-0.75,-0.25,-0.25)*euler(-0.75,-0.25,0.5),.3)
  1128. end
  1129. hit,pos=rayCast(Hitbox.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,100,Character)
  1130. if hit~=nil then
  1131. swait(5)
  1132. local ref=part(3,workspace,"SmoothPlastic",0,1,BrickColor.new("Really black"),"Effect",vt())
  1133. ref.Anchored=true
  1134. ref.CFrame=cf(pos)
  1135. game:GetService("Debris"):AddItem(ref,3)
  1136. end
  1137. Shockwave2(BrickColor.new("Institutional white"),cf(pos),1,1,1,.7,.7,.7,0.05)
  1138. MagniDamage(Hitbox,10,10,20,math.random(10,20),"Knockdown")
  1139. so("http://roblox.com/asset/?id=199145477",Torso,1,1)
  1140. wait(0.1)
  1141. attack=false
  1142. con1:disconnect()
  1143. end
  1144. function PlaySound(id, pitch, parent, volume)
  1145. if volume == nil then volume=tonumber(1) end
  1146. local epicsound = Instance.new("Sound")
  1147. epicsound.Name = "Epicosound"
  1148. epicsound.SoundId = "rbxassetid://"..id
  1149. epicsound.Volume = volume
  1150. epicsound.Pitch = pitch
  1151. epicsound.Looped = false
  1152. epicsound.Parent = parent
  1153. wait()
  1154. epicsound:Play()
  1155. game:service'Debris':AddItem(epicsound, 8)
  1156. end
  1157. Shots = {263609809, 263609836, 263609864, 263609874, 263609898}
  1158.  
  1159. Shot = function(part)
  1160. local shot=math.random(1, #Shots)
  1161. PlaySound(Shots[shot], 1, part)
  1162. end
  1163.  
  1164. function CelestialStorm()
  1165. mana=mana-40
  1166. local n=2
  1167. attack = true
  1168. for i=0,1,0.1 do
  1169. swait()
  1170. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1171. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-2),math.rad(0)),.3)
  1172. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(10)), 0.3)
  1173. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(150), math.rad(0), math.rad(-20)), 0.3)
  1174. 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)
  1175. 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)
  1176. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(10)),.3)
  1177. end
  1178. for i=1,math.random(5,10) do
  1179. wait(.05)
  1180. MagicBlock(BrickColor.new("New Yeller"),LeftArm.CFrame*cf(0,-1,0),5,5,5,2,2,2,0.1)
  1181. local orb=part(3,Character,"SmoothPlastic",0,0.5,BrickColor.new("New Yeller"),"Orb",vt())
  1182. orb.Anchored=true
  1183. Shot(orb)
  1184. local omsh=mesh("SpecialMesh",orb,"Sphere","",vt(0,0,0),vt(10,10,10))
  1185. orb.CFrame=cf(Player:GetMouse().Hit.p+vt(math.random(-10,10),math.random(50,100),math.random(-10,10)))
  1186. MagicCircle(BrickColor.new("New Yeller"),orb.CFrame,10,10,10,1,1,1,0.1)
  1187. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1188. wait(1)
  1189. Part.Parent=nil
  1190. local spread=vt((math.random(-1,0)+math.random())*16,(math.random(-1,0)+math.random())*16,(math.random(-1,0)+math.random())*16)*(Part.Position-(Part.Position+vt(0,-1,0))).magnitude/100
  1191. local TheHit=Part.Position+vt(0,-1,0)
  1192. local MouseLook=cf((Part.Position+TheHit)/2,TheHit+spread)
  1193. local hit,pos = rayCast(Part.Position,MouseLook.lookVector,999,Character)
  1194. local mag=(Part.Position-pos).magnitude
  1195. MagicCylinder(BrickColor.new("New Yeller"),CFrame.new((Part.Position+pos)/2,pos)*angles(1.57,0,0) ,1,mag*5,1,0.5,0,0.5,0.05)
  1196. MagicBlock(BrickColor.new("New Yeller"),Part.CFrame,8,8,8,0.5,0.5,0.5,0.1)
  1197. MagicBlock(BrickColor.new("New Yeller"),cf(pos),15,15,15,6,6,6,0.1)
  1198. MagicRing(BrickColor.new("New Yeller"),cf(pos)*euler(1.57,math.random(-100,100)/100,math.random(-100,100)/100),1,1,1,2,2,2,0.05)
  1199. local ref=part(3,workspace,"SmoothPlastic",0,1,BrickColor.new("New Yeller"),"Effect",vt())
  1200. ref.CFrame=cf(pos)
  1201. so("http://roblox.com/asset/?id=231917788",ref,1,1.4)
  1202. coroutine.resume(coroutine.create(function(Part)
  1203. wait(1)
  1204. Part.Parent=nil
  1205. end),ref)
  1206. MagniDamage(ref,ref,15,5,10,0,"Normal",RootPart)
  1207. if hit~=nil then
  1208. Damagefunc(ref,hit,20,40,1,"Knockdown",RootPart,0)
  1209. end
  1210. end),orb,omsh)
  1211. end
  1212. wait(0.5)
  1213. local n=2
  1214. for i=0,1,0.1 do
  1215. wait()
  1216. --[[Neck.C0=cf(0,1,0)*euler(0.4-0.6*i*n,0,0)
  1217. RW.C0=cf(1.5,0.5,0)*euler(3.14-3.14*i*n,0,0.3*i*n)
  1218. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1219. LW.C0=cf(-1.5,0.5,0)*euler(-0.2+0.2*i*n,0,-0.3)
  1220. LW.C1=cf(0,0.5,0)*euler(0,0,0)]]
  1221. n=n-0.1
  1222. end
  1223. attack = false
  1224. end
  1225. mouse.Button1Down:connect(function()
  1226. if attack==false then
  1227. if attacktype==1 then
  1228. attack=true
  1229. attacktype=2
  1230. attackone()
  1231. elseif attacktype==2 then
  1232. attack=true
  1233. attacktype=3
  1234. attacktwo()
  1235. elseif attacktype==3 then
  1236. attack=true
  1237. attacktype=4
  1238. attackthree()
  1239. elseif attacktype==4 then
  1240. attack=true
  1241. attacktype=1
  1242. attackfour()
  1243. end
  1244. end
  1245. end)
  1246.  
  1247. mouse.KeyDown:connect(function(k)
  1248. k=k:lower()
  1249. if k=='q' then
  1250. if attack==false and mana>=30 then
  1251. Spin()
  1252. end
  1253. elseif k=='e' then
  1254. if attack==false and mana>=100 then
  1255. GetDownOnIt()
  1256. end
  1257. elseif k=='r' then
  1258. if attack==false and mana>=50 then
  1259. Twirl()
  1260. elseif k=='t' then
  1261. if attack==false and mana>=40 then
  1262. CelestialStorm()
  1263. end
  1264. elseif k=='0' then
  1265. if attack==false then
  1266. Humanoid.WalkSpeed=32
  1267. end
  1268. end
  1269. end
  1270. end)
  1271.  
  1272. local sine = 0
  1273. local change = 1
  1274. local val = 0
  1275.  
  1276. local mananum=0
  1277. while true do
  1278. swait()
  1279. sine = sine + change
  1280. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1281. local velderp=RootPart.Velocity.y
  1282. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1283. if equipped==true or equipped==false then
  1284. if attack==false then
  1285. idle=idle+1
  1286. else
  1287. idle=0
  1288. end
  1289. if idle>=500 then
  1290. if attack==false then
  1291. --Sheath()
  1292. end
  1293. end
  1294. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1295. Anim="Jump"
  1296. if attack==false then
  1297. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  1298. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1299. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1300. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,0.5),.3)
  1301. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1302. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3)
  1303. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1304. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.3)
  1305. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.3)
  1306. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1307. end
  1308. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1309. Anim="Fall"
  1310. if attack==false then
  1311. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
  1312. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1313. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1314. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.3,0,0.2),.3)
  1315. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1316. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3)
  1317. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1318. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.3)
  1319. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.3)
  1320. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1321. end
  1322. elseif torvel<1 and hitfloor~=nil then
  1323. Anim="Idle"
  1324. Humanoid.WalkSpeed = 16
  1325. if attack==false then
  1326. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.25)*angles(math.rad(0),math.rad(0),math.rad(30)),.3)
  1327. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10+2.5*math.cos(sine/40)),math.rad(0),math.rad(-30)),.3)
  1328. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(40-2.5*math.cos(sine/40)),math.rad(35),math.rad(5-2.5*math.cos(sine/40))),.3)
  1329. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10+5*math.cos(sine/40)),math.rad(0),math.rad(-10+5*math.cos(sine/40))),.3)
  1330. LH.C0=clerp(LH.C0,cf(-1,-0.75,0.1)*angles(math.rad(-20),math.rad(-110),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),.3)
  1331. RH.C0=clerp(RH.C0,cf(1.25,-0.75,-0.1)*angles(math.rad(5),math.rad(60),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1332. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1333. Pivotweld.C0=clerp(Pivotweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1334. end
  1335. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  1336. Anim="Walk"
  1337. if attack==false then
  1338. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(15),math.rad(0),math.rad(0)),.3)
  1339. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1340. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(25-2.5*math.cos(sine/30)),math.rad(-15),math.rad(20-2.5*math.cos(sine/30))),.3)
  1341. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20+5*math.cos(sine/30)),math.rad(0),math.rad(-30+5*math.cos(sine/30))),.3)
  1342. 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)
  1343. 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)
  1344. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1345. Pivotweld.C0=clerp(Pivotweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1346. end
  1347. elseif torvel>=22 and hitfloor~=nil then
  1348. Anim="Run"
  1349. if attack==false then
  1350. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(25),math.rad(0),math.rad(-30)),.3)
  1351. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(-2.5),math.rad(30)),.3)
  1352. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50-2.5*math.cos(sine/20)),math.rad(-25),math.rad(30-2.5*math.cos(sine/20))),.3)
  1353. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.25)*angles(math.rad(80+5*math.cos(sine/20)),math.rad(0),math.rad(50+5*math.cos(sine/20))),.3)
  1354. 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)
  1355. 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)
  1356. handleweld.C0=clerp(handleweld.C0,cf(0,-0.2,-0.35)*angles(math.rad(-50),math.rad(0),math.rad(0)),.3)
  1357. Pivotweld.C0=clerp(Pivotweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1358. end
  1359. end
  1360. end
  1361. fenbarmana2:TweenSize(UDim2.new(4*mana/100,0,0.2,0),nil,1,0.4,true)
  1362. fenbarmana4.Text="[Energy] <{[ "..mana.." ]}> [Energy]"
  1363. if mana>=100 then
  1364. mana=100
  1365. else
  1366. if mananum<=8 then
  1367. mananum=mananum+1
  1368. else
  1369. mananum=0
  1370. mana=mana+1
  1371. end
  1372. end
  1373. end
Add Comment
Please, Sign In to add comment