Advertisement
memberhero

Miner

May 25th, 2018
506
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 83.28 KB | None | 0 0
  1. Player=game:GetService("Players").LocalPlayer
  2. Character=Player.Character
  3. local effectz = Instance.new('Model', Character)
  4. effectz.Name = "effects"
  5. PlayerGui=Player.PlayerGui
  6. Backpack=Player.Backpack
  7. Torso=Character.Torso
  8. Head=Character.Head
  9. Humanoid=Character.Humanoid
  10. m=Instance.new('Model',Character)
  11. LeftArm=Character["Left Arm"]
  12. LeftLeg=Character["Left Leg"]
  13. RightArm=Character["Right Arm"]
  14. RightLeg=Character["Right Leg"]
  15. LS=Torso["Left Shoulder"]
  16. LH=Torso["Left Hip"]
  17. RS=Torso["Right Shoulder"]
  18. RH=Torso["Right Hip"]
  19. Face = Head.face
  20. Neck=Torso.Neck
  21. it=Instance.new
  22. attacktype=1
  23. vt=Vector3.new
  24. cf=CFrame.new
  25. euler=CFrame.fromEulerAnglesXYZ
  26. angles=CFrame.Angles
  27. cloaked=false
  28. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  29. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  30. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  31. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  32. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  33. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  34. RootPart=Character.HumanoidRootPart
  35. RootJoint=RootPart.RootJoint
  36. RootCF=euler(-1.57,0,3.14)
  37. attack = false
  38. attackdebounce = false
  39. deb=false
  40. equipped=true
  41. hand=false
  42. MMouse=nil
  43. combo=0
  44. mana=0
  45. trispeed=.2
  46. attackmode='none'
  47. local idle=0
  48. local Anim="Idle"
  49. local Effects={}
  50. local gun=false
  51. local shoot=false
  52. player=nil
  53. mana=0
  54.  
  55. mouse=Player:GetMouse()
  56. --save shoulders
  57. RSH, LSH=nil, nil
  58. --welds
  59. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  60. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  61. LH=Torso["Left Hip"]
  62. RH=Torso["Right Hip"]
  63. TorsoColor=Torso.BrickColor
  64. function NoOutline(Part)
  65. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  66. end
  67. player=Player
  68. ch=Character
  69. RSH=ch.Torso["Right Shoulder"]
  70. LSH=ch.Torso["Left Shoulder"]
  71. --
  72. RSH.Parent=nil
  73. LSH.Parent=nil
  74. --
  75. RW.Name="Right Shoulder"
  76. RW.Part0=ch.Torso
  77. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  78. RW.C1=cf(0, 0.5, 0)
  79. RW.Part1=ch["Right Arm"]
  80. RW.Parent=ch.Torso
  81. --
  82. LW.Name="Left Shoulder"
  83. LW.Part0=ch.Torso
  84. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  85. LW.C1=cf(0, 0.5, 0)
  86. LW.Part1=ch["Left Arm"]
  87. LW.Parent=ch.Torso
  88.  
  89. Player=game:GetService('Players').LocalPlayer
  90. Character=Player.Character
  91. Mouse=Player:GetMouse()
  92. m=Instance.new('Model',Character)
  93.  
  94.  
  95. local function weldBetween(a, b)
  96. local weldd = Instance.new("ManualWeld")
  97. weldd.Part0 = a
  98. weldd.Part1 = b
  99. weldd.C0 = CFrame.new()
  100. weldd.C1 = b.CFrame:inverse() * a.CFrame
  101. weldd.Parent = a
  102. return weldd
  103. end
  104.  
  105. ArtificialHB = Instance.new("BindableEvent", script)
  106. ArtificialHB.Name = "Heartbeat"
  107.  
  108. script:WaitForChild("Heartbeat")
  109. if game.Players:FindFirstChild(Player.Name) == true then
  110. frame = 1 / 30
  111.  
  112. frame = 1/60
  113. else
  114. frame=1/30
  115. end
  116. tf = 0
  117. allowframeloss = false
  118. tossremainder = false
  119. lastframe = tick()
  120. script.Heartbeat:Fire()
  121.  
  122. game:GetService("RunService").Heartbeat:connect(function(s, p)
  123. tf = tf + s
  124. if tf >= frame then
  125. if allowframeloss then
  126. script.Heartbeat:Fire()
  127. lastframe = tick()
  128. else
  129. for i = 1, math.floor(tf / frame) do
  130. script.Heartbeat:Fire()
  131. end
  132. lastframe = tick()
  133. end
  134. if tossremainder then
  135. tf = 0
  136. else
  137. tf = tf - frame * math.floor(tf / frame)
  138. end
  139. end
  140. end)
  141.  
  142. function swait(num)
  143. if num == 0 or num == nil then
  144. ArtificialHB.Event:wait()
  145. else
  146. for i = 0, num do
  147. ArtificialHB.Event:wait()
  148. end
  149. end
  150. end
  151. function pwait(num)
  152. if num==0 or num==nil then
  153. game:service'RunService'.Heartbeat:wait(0)
  154. else
  155. for i=0,num do
  156. game:service'RunService'.Heartbeat:wait(0)
  157. end
  158. end
  159. end
  160.  
  161. function nooutline(part)
  162. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  163. end
  164.  
  165. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  166. local fp=it("Part")
  167. fp.formFactor=formfactor
  168. fp.Parent=parent
  169. fp.Reflectance=reflectance
  170. fp.Transparency=transparency
  171. fp.CanCollide=false
  172. fp.Locked=true
  173. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  174. fp.Name=name
  175. fp.Size=size
  176. fp.Position=Character.Torso.Position
  177. nooutline(fp)
  178. fp.Material=material
  179. fp:BreakJoints()
  180. return fp
  181. end
  182.  
  183. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  184. local mesh=it(Mesh)
  185. mesh.Parent=part
  186. if Mesh=="SpecialMesh" then
  187. mesh.MeshType=meshtype
  188. mesh.MeshId=meshid
  189. end
  190. mesh.Offset=offset
  191. mesh.Scale=scale
  192. return mesh
  193. end
  194.  
  195.  
  196. local fengui=it("GuiMain")
  197. fengui.Parent=Player.PlayerGui
  198. fengui.Name="WeaponGUI"
  199. local fenframe=it("Frame")
  200. fenframe.Parent=fengui
  201. fenframe.BackgroundColor3=Color3.new(255,255,255)
  202. fenframe.BackgroundTransparency=1
  203. fenframe.BorderColor3=Color3.new(17,17,17)
  204. fenframe.Size=UDim2.new(0.0500000007, 0, 0.100000001, 0)
  205. fenframe.Position=UDim2.new(0.4,0,0.1,0)
  206. local fenbarmana1=it("TextLabel")
  207. fenbarmana1.Parent=fenframe
  208. fenbarmana1.Text=" "
  209. fenbarmana1.BackgroundTransparency=0
  210. fenbarmana1.BackgroundColor3=Color3.new(0,0,0)
  211. fenbarmana1.SizeConstraint="RelativeXY"
  212. fenbarmana1.TextXAlignment="Center"
  213. fenbarmana1.TextYAlignment="Center"
  214. fenbarmana1.Position=UDim2.new(0,0,0,0)
  215. fenbarmana1.Size=UDim2.new(4,0,0.2,0)
  216. local fenbarmana2=it("TextLabel")
  217. fenbarmana2.Parent=fenframe
  218. fenbarmana2.Text=" "
  219. fenbarmana2.BackgroundTransparency=0
  220. fenbarmana2.BackgroundColor3=Torso.Color
  221. fenbarmana2.SizeConstraint="RelativeXY"
  222. fenbarmana2.TextXAlignment="Center"
  223. fenbarmana2.TextYAlignment="Center"
  224. fenbarmana2.Position=UDim2.new(0,0,0,0)
  225. fenbarmana2.Size=UDim2.new(4*mana/100,0,0.2,0)
  226. local fenbarmana3=it("TextLabel")
  227. fenbarmana3.Parent=fenframe
  228. fenbarmana3.Text=" "
  229. fenbarmana3.BackgroundTransparency=0
  230. fenbarmana3.BackgroundColor3=Color3.new(Col1,Col2,Col3)
  231. fenbarmana3.SizeConstraint="RelativeXY"
  232. fenbarmana3.TextXAlignment="Center"
  233. fenbarmana3.TextYAlignment="Center"
  234. fenbarmana3.Position=UDim2.new(0,0,0,0)
  235. fenbarmana3.Size=UDim2.new(0,0,0.2,0)
  236. local fenbarmana4=it("TextLabel")
  237. fenbarmana4.Parent=fenframe
  238. fenbarmana4.Text="Energy("..mana..")"
  239. fenbarmana4.BackgroundTransparency=1
  240. fenbarmana4.BackgroundColor3=Color3.new(0,0,0)
  241. fenbarmana4.SizeConstraint="RelativeXY"
  242. fenbarmana4.TextXAlignment="Center"
  243. fenbarmana4.TextYAlignment="Center"
  244. fenbarmana4.Position=UDim2.new(0,0,-0.3,0)
  245. fenbarmana4.Size=UDim2.new(4,0,0.2,0)
  246. fenbarmana4.FontSize="Size9"
  247. fenbarmana4.TextStrokeTransparency=0
  248. fenbarmana4.TextColor=BrickColor.new("White")
  249.  
  250.  
  251. function weld(parent,part0,part1,c0,c1)
  252. local weld=it("Weld")
  253. weld.Parent=parent
  254. weld.Part0=part0
  255. weld.Part1=part1
  256. weld.C0=c0
  257. weld.C1=c1
  258. return weld
  259. end
  260.  
  261.  
  262. local function CFrameFromTopBack(at, top, back)
  263. local right = top:Cross(back)
  264. return CFrame.new(at.x, at.y, at.z,
  265. right.x, top.x, back.x,
  266. right.y, top.y, back.y,
  267. right.z, top.z, back.z)
  268. end
  269.  
  270. function Triangle(a, b, c)
  271. local edg1 = (c-a):Dot((b-a).unit)
  272. local edg2 = (a-b):Dot((c-b).unit)
  273. local edg3 = (b-c):Dot((a-c).unit)
  274. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  275. a, b, c = a, b, c
  276. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  277. a, b, c = b, c, a
  278. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  279. a, b, c = c, a, b
  280. else
  281. assert(false, "unreachable")
  282. end
  283.  
  284. local len1 = (c-a):Dot((b-a).unit)
  285. local len2 = (b-a).magnitude - len1
  286. local width = (a + (b-a).unit*len1 - c).magnitude
  287.  
  288. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  289.  
  290. local list = {}
  291.  
  292. local TrailColor = ("Dark grey")
  293.  
  294. if len1 > 0.01 then
  295. local w1 = Instance.new('WedgePart', m)
  296. game:GetService("Debris"):AddItem(w1,5)
  297. w1.Material = "SmoothPlastic"
  298. w1.FormFactor = 'Custom'
  299. w1.BrickColor = BrickColor.new(TrailColor)
  300. w1.Transparency = 0
  301. w1.Reflectance = 0
  302. w1.Material = "SmoothPlastic"
  303. w1.CanCollide = false
  304. NoOutline(w1)
  305. local sz = Vector3.new(0.2, width, len1)
  306. w1.Size = sz
  307. local sp = Instance.new("SpecialMesh",w1)
  308. sp.MeshType = "Wedge"
  309. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  310. w1:BreakJoints()
  311. w1.Anchored = true
  312. w1.Parent = effectz
  313. w1.Transparency = 0.7
  314. table.insert(Effects,{w1,"Disappear",.01})
  315. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  316. table.insert(list,w1)
  317. end
  318.  
  319. if len2 > 0.01 then
  320. local w2 = Instance.new('WedgePart', m)
  321. game:GetService("Debris"):AddItem(w2,5)
  322. w2.Material = "SmoothPlastic"
  323. w2.FormFactor = 'Custom'
  324. w2.BrickColor = BrickColor.new(TrailColor)
  325. w2.Transparency = 0
  326. w2.Reflectance = 0
  327. w2.Material = "SmoothPlastic"
  328. w2.CanCollide = false
  329. NoOutline(w2)
  330. local sz = Vector3.new(0.2, width, len2)
  331. w2.Size = sz
  332. local sp = Instance.new("SpecialMesh",w2)
  333. sp.MeshType = "Wedge"
  334. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  335. w2:BreakJoints()
  336. w2.Anchored = true
  337. w2.Parent = effectz
  338. w2.Transparency = 0.7
  339. table.insert(Effects,{w2,"Disappear",.01})
  340. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  341. table.insert(list,w2)
  342. end
  343. return unpack(list)
  344. end
  345.  
  346.  
  347. so = function(id,par,vol,pit)
  348. coroutine.resume(coroutine.create(function()
  349. local sou = Instance.new("Sound",par or workspace)
  350. sou.Volume=vol
  351. sou.Pitch=pit or 1
  352. sou.SoundId=id
  353. swait()
  354. sou:play()
  355. game:GetService("Debris"):AddItem(sou,6)
  356. end))
  357. end
  358.  
  359. function clerp(a,b,t)
  360. local qa = {QuaternionFromCFrame(a)}
  361. local qb = {QuaternionFromCFrame(b)}
  362. local ax, ay, az = a.x, a.y, a.z
  363. local bx, by, bz = b.x, b.y, b.z
  364. local _t = 1-t
  365. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  366. end
  367.  
  368. function QuaternionFromCFrame(cf)
  369. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  370. local trace = m00 + m11 + m22
  371. if trace > 0 then
  372. local s = math.sqrt(1 + trace)
  373. local recip = 0.5/s
  374. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  375. else
  376. local i = 0
  377. if m11 > m00 then
  378. i = 1
  379. end
  380. if m22 > (i == 0 and m00 or m11) then
  381. i = 2
  382. end
  383. if i == 0 then
  384. local s = math.sqrt(m00-m11-m22+1)
  385. local recip = 0.5/s
  386. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  387. elseif i == 1 then
  388. local s = math.sqrt(m11-m22-m00+1)
  389. local recip = 0.5/s
  390. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  391. elseif i == 2 then
  392. local s = math.sqrt(m22-m00-m11+1)
  393. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  394. end
  395. end
  396. end
  397.  
  398. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  399. local xs, ys, zs = x + x, y + y, z + z
  400. local wx, wy, wz = w*xs, w*ys, w*zs
  401. local xx = x*xs
  402. local xy = x*ys
  403. local xz = x*zs
  404. local yy = y*ys
  405. local yz = y*zs
  406. local zz = z*zs
  407. 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))
  408. end
  409.  
  410. function QuaternionSlerp(a, b, t)
  411. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  412. local startInterp, finishInterp;
  413. if cosTheta >= 0.0001 then
  414. if (1 - cosTheta) > 0.0001 then
  415. local theta = math.acos(cosTheta)
  416. local invSinTheta = 1/math.sin(theta)
  417. startInterp = math.sin((1-t)*theta)*invSinTheta
  418. finishInterp = math.sin(t*theta)*invSinTheta
  419. else
  420. startInterp = 1-t
  421. finishInterp = t
  422. end
  423. else
  424. if (1+cosTheta) > 0.0001 then
  425. local theta = math.acos(-cosTheta)
  426. local invSinTheta = 1/math.sin(theta)
  427. startInterp = math.sin((t-1)*theta)*invSinTheta
  428. finishInterp = math.sin(t*theta)*invSinTheta
  429. else
  430. startInterp = t-1
  431. finishInterp = t
  432. end
  433. end
  434. 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
  435. end
  436.  
  437. --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)
  438.  
  439.  
  440. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  441. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  442. end
  443.  
  444. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  445. if hit.Parent==nil then
  446. return
  447. end
  448. h=hit.Parent:FindFirstChild("Humanoid")
  449. for _,v in pairs(hit.Parent:children()) do
  450. if v:IsA("Humanoid") then
  451. h=v
  452. end
  453. end
  454. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  455. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  456. end
  457. if hit.Parent.className=="Accessory" then
  458. hit=hit.Parent.Parent:findFirstChild("Head")
  459. end
  460. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  461. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  462. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  463. return
  464. end]]
  465. -- hs(hit,1.2)
  466. c=Instance.new("ObjectValue")
  467. c.Name="creator"
  468. c.Value=game:service("Players").LocalPlayer
  469. c.Parent=h
  470. game:GetService("Debris"):AddItem(c,.5)
  471. Damage=math.random(minim,maxim)
  472. -- h:TakeDamage(Damage)
  473. blocked=false
  474. block=hit.Parent:findFirstChild("Block")
  475. if block~=nil then
  476. print(block.className)
  477. if block.className=="NumberValue" then
  478. if block.Value>0 then
  479. blocked=true
  480. if decreaseblock==nil then
  481. block.Value=block.Value-1
  482. end
  483. end
  484. end
  485. if block.className=="IntValue" then
  486. if block.Value>0 then
  487. blocked=true
  488. if decreaseblock~=nil then
  489. block.Value=block.Value-1
  490. end
  491. end
  492. end
  493. end
  494. if blocked==false then
  495. -- h:TakeDamage(Damage)
  496. HitHealth=h.Health
  497. h.Health=h.Health-Damage
  498.  
  499. if HitHealth~=h.Health and HitHealth~=0 and h.Health<=0 and h.Parent.Name~="Hologram" then
  500. print("gained spree")
  501. game.Players.LocalPlayer:FindFirstChild("leaderstats").Spree.Value=game.Players.LocalPlayer.leaderstats.Spree.Value+1
  502. end
  503. showDamage(hit.Parent,Damage,.5,BrickColor.new("Dark grey"))
  504. else
  505. h.Health=h.Health-(Damage/2)
  506. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Brown"))
  507. end
  508. if Type=="Knockdown" then
  509. hum=hit.Parent.Humanoid
  510. hum.PlatformStand=true
  511. coroutine.resume(coroutine.create(function(HHumanoid)
  512. swait(1)
  513. HHumanoid.PlatformStand=false
  514. end),hum)
  515. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  516. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  517. local bodvol=Instance.new("BodyVelocity")
  518. bodvol.velocity=angle*knockback
  519. bodvol.P=5000
  520. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  521. bodvol.Parent=hit
  522. rl=Instance.new("BodyAngularVelocity")
  523. rl.P=3000
  524. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  525. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  526. rl.Parent=hit
  527. game:GetService("Debris"):AddItem(bodvol,.5)
  528. game:GetService("Debris"):AddItem(rl,.5)
  529. elseif Type=="Normal" then
  530. vp=Instance.new("BodyVelocity")
  531. vp.P=500
  532. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  533. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  534. if KnockbackType==1 then
  535. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  536. elseif KnockbackType==2 then
  537. vp.velocity=Property.CFrame.lookVector*knockback
  538. end
  539. if knockback>0 then
  540. vp.Parent=hit.Parent.Torso
  541. end
  542. game:GetService("Debris"):AddItem(vp,.5)
  543. elseif Type=="Up" then
  544. local bodyVelocity=Instance.new("BodyVelocity")
  545. bodyVelocity.velocity=vt(0,60,0)
  546. bodyVelocity.P=5000
  547. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  548. bodyVelocity.Parent=hit
  549. game:GetService("Debris"):AddItem(bodyVelocity,1)
  550. rl=Instance.new("BodyAngularVelocity")
  551. rl.P=3000
  552. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  553. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  554. rl.Parent=hit
  555. game:GetService("Debris"):AddItem(rl,.5)
  556. elseif Type=="Snare" then
  557. bp=Instance.new("BodyPosition")
  558. bp.P=2000
  559. bp.D=100
  560. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  561. bp.position=hit.Parent.Torso.Position
  562. bp.Parent=hit.Parent.Torso
  563. game:GetService("Debris"):AddItem(bp,1)
  564. elseif Type=="Target" then
  565. if Targetting==false then
  566. ZTarget=hit.Parent.Torso
  567. coroutine.resume(coroutine.create(function(Part)
  568. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  569. swait(5)
  570. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  571. end),ZTarget)
  572. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  573. targetgui=Instance.new("BillboardGui")
  574. targetgui.Parent=ZTarget
  575. targetgui.Size=UDim2.new(10,100,10,100)
  576. targ=Instance.new("ImageLabel")
  577. targ.Parent=targetgui
  578. targ.BackgroundTransparency=1
  579. targ.Image="rbxassetid://4834067"
  580. targ.Size=UDim2.new(1,0,1,0)
  581. cam.CameraType="Scriptable"
  582. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  583. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  584. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  585. Targetting=true
  586. RocketTarget=ZTarget
  587. for i=1,Property do
  588. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  589. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  590. swait()
  591. end
  592. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  593. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  594. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  595. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  596. end
  597. Targetting=false
  598. RocketTarget=nil
  599. targetgui.Parent=nil
  600. cam.CameraType="Custom"
  601. end
  602. end
  603. debounce=Instance.new("BoolValue")
  604. debounce.Name="DebounceHit"
  605. debounce.Parent=hit.Parent
  606. debounce.Value=true
  607. game:GetService("Debris"):AddItem(debounce,Delay)
  608. c=Instance.new("ObjectValue")
  609. c.Name="creator"
  610. c.Value=Player
  611. c.Parent=h
  612. game:GetService("Debris"):AddItem(c,.5)
  613. CRIT=false
  614. hitDeb=true
  615. AttackPos=6
  616. end
  617. end
  618.  
  619. showDamage=function(Char,Dealt,du,Color)
  620. g=Instance.new("Model")
  621. g.Name=tostring(Dealt)
  622. h=Instance.new("Humanoid")
  623. h.Health=0
  624. h.MaxHealth=0
  625. h.Parent=g
  626. c=Instance.new("Part")
  627. c.Transparency=0
  628. c.BrickColor=Color
  629. c.Name="Head"
  630. c.TopSurface=0
  631. c.BottomSurface=0
  632. c.formFactor="Plate"
  633. c.Size=Vector3.new(1,.4,1)
  634. ms=Instance.new("CylinderMesh")
  635. ms.Scale=Vector3.new(.8,.8,.8)
  636. if CRIT==true then
  637. ms.Scale=Vector3.new(1,1.25,1)
  638. end
  639. ms.Parent=c
  640. c.Reflectance=0
  641. Instance.new("BodyGyro").Parent=c
  642. c.Parent=g
  643. if Char:findFirstChild("Head")~=nil then
  644. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  645. elseif Char.Parent:findFirstChild("Head")~=nil then
  646. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  647. end
  648. f=Instance.new("BodyPosition")
  649. f.P=2000
  650. f.D=100
  651. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  652. f.position=c.Position+Vector3.new(0,3,0)
  653. f.Parent=c
  654. game:GetService("Debris"):AddItem(g,.5+du)
  655. c.CanCollide=false
  656. g.Parent=workspace
  657. c.CanCollide=false
  658. end
  659.  
  660. handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Handle",Vector3.new(1.00000012, 0.200000003, 0.600000024))
  661. handleweld=weld(m,Character["Left Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00497817993, 1.09852839, -0.00498199463, -1.00772247e-025, 2.44568227e-013, 1, 2.26874075e-013, 0.999999881, 2.44568255e-013, -1, -2.26874048e-013, 1.00166402e-025))
  662. handle2=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Handle2",Vector3.new(3.200000024,0.1005, 5.00000012))
  663. handleweld2=weld(m,Character["Right Arm"],handle2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.10497817993, 1.09852839, -1.5598199463, -1.00772247e-025, 2.44568227e-013, 1, 2.26874075e-013, 0.999999881, 2.44568255e-013, -1, -2.26874048e-013, 1.00166402e-025))
  664. Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.WoodPlanks,0,1,"Mid gray","Hitbox",Vector3.new(0.400000036, 1.60000014, 0.600000024))
  665. Hitboxweld=weld(m,handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699993134, -0.101213217, 0, 1, 2.45206633e-013, 2.23613988e-025, -2.45206633e-013, -1, 2.26374475e-013, -2.25900477e-025, 2.26374475e-013, -1))
  666. mesh("SpecialMesh",Hitbox,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1778999",Vector3.new(0, 0, 0),Vector3.new(0.300000012, 0.479999989, 0.300000012))
  667. PBNeedle=part(Enum.FormFactor.Custom,m,Enum.Material.WoodPlanks,0,0,"Mid gray","PBNeedle",Vector3.new(0.400000006, 0.400000006, 0.200000003))
  668. PBNeedleweld=weld(m,handle,PBNeedle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699993134, -0.501211882, 0, 1, 2.45206633e-013, 2.23613988e-025, -2.45206633e-013, -1, 2.26374475e-013, -2.25900477e-025, 2.26374475e-013, -1))
  669. dra=mesh("SpecialMesh",handle2,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=22147051",Vector3.new(0, 0, 0),Vector3.new(2,2,2))
  670. dra.TextureId="http://www.roblox.com/asset/?id=22147026"
  671. mesh("SpecialMesh",PBNeedle,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1778999",Vector3.new(0, 0, 0),Vector3.new(0.300000012, 0.479999989, 0.300000012))
  672. PBPart1=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","PBPart1",Vector3.new(0.800000012, 0.399999946, 0.600000024))
  673. PBPart1weld=weld(m,handle,PBPart1,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699993134, -3.69963789, -7.15255737e-006, 1, 5.05664954e-013, -1.30451205e-015, 4.97449304e-013, 1, -4.5374815e-013, 1.30451205e-015, -4.5374815e-013, 1))
  674. mesh("CylinderMesh",PBPart1,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  675. PBPart2=part(Enum.FormFactor.Custom,m,Enum.Material.Plastic,0,0,"Dark stone grey","PBPart2",Vector3.new(0.400000006, 0.600000024, 0.400000006))
  676. PBPart2weld=weld(m,handle,PBPart2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.700050354, -7.00950623e-005, 3.49907684, -1, -1.60482286e-005, -1.59286301e-007, 1.58860502e-007, 2.65327035e-005, -1, 1.60482323e-005, -1, -2.65327017e-005))
  677. mesh("SpecialMesh",PBPart2,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.299999982, 0.299999982, 2.22000003))
  678. PBPole=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light stone grey","PBPole",Vector3.new(0.400000006, 3.5999999, 0.600000024))
  679. PBPoleweld=weld(m,handle,PBPole,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699993134, -1.69878912, 0, 1, 2.91981717e-013, 2.13405832e-025, 2.91981717e-013, 1, -2.97428748e-013, 2.22223004e-025, -2.40585329e-013, 1))
  680. mesh("CylinderMesh",PBPole,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  681. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 2, 0.600000024))
  682. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599998474, -1.09998429, 0, 1, 2.45206633e-013, 2.23613988e-025, 2.45205765e-013, 0.999996424, -2.26373662e-013, 2.25900477e-025, -2.26374475e-013, 1))
  683. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.400000006, 0.600000024))
  684. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.325069427, -0.366897583, 0, 0.707222462, -0.706991136, 1.60148153e-013, 0.706991136, 0.707222462, -1.60200642e-013, 2.25900477e-025, -2.26374475e-013, 1))
  685. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light stone grey","Part",Vector3.new(0.200000003, 2, 0.200000003))
  686. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599998474, -1.09959769, -0.40000391, 1, 2.45206633e-013, 2.23613988e-025, 2.45206633e-013, 1, -2.26374475e-013, 2.25900477e-025, -2.26374475e-013, 1))
  687. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.560000002))
  688. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.400000006, 0.600000024, 0.200000003))
  689. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.699993134, 1.09672546e-005, 0.200021386, -0.999997139, -5.88281814e-008, 2.74286049e-005, -2.76967985e-005, -7.53964502e-010, -0.999998033, 5.88349671e-008, -0.999996901, -2.88369467e-011))
  690. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(0.420000017, 0.460000008, 1))
  691. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  692. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599998474, 1.99907148, 0.400010586, 1, -2.3827215e-007, 4.58606735e-007, -2.38272577e-007, -1, -1.63917434e-007, 4.58606763e-007, 1.6391779e-007, -1))
  693. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.819999993, 0.560000002, 1.31999993))
  694. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light stone grey","Part",Vector3.new(0.200000003, 2, 0.200000003))
  695. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599998474, -1.09944224, 0.399987221, 1, 2.45206633e-013, 2.23613988e-025, 2.45206633e-013, 1, -2.26374475e-013, 2.25900477e-025, -2.26374475e-013, 1))
  696. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.560000002))
  697. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  698. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599994659, 1.99895847, -0.399979591, 1, -2.38257996e-007, 4.58606735e-007, -2.38258409e-007, -1, -1.63927155e-007, 4.58606763e-007, 1.63927496e-007, -1))
  699. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.819999993, 0.560000002, 1.31999993))
  700. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  701. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599998474, 0.198883891, -0.399979591, 1, -2.38229688e-007, 4.58606735e-007, -2.38230101e-007, -1, -1.63946595e-007, 4.58606763e-007, 1.63946936e-007, -1))
  702. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.819999993, 0.560000002, 1.31999993))
  703. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  704. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599998474, 0.198892951, 0.400010586, 1, -2.38208457e-007, 4.58606735e-007, -2.3820887e-007, -1, -1.63961175e-007, 4.58606763e-007, 1.63961516e-007, -1))
  705. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.819999993, 0.560000002, 1.31999993))
  706. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.800000012))
  707. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599998474, -0.199686766, 0, 1, 2.49342214e-013, 2.23281582e-025, 2.41071052e-013, 1, -2.26374475e-013, 2.25900477e-025, -2.26374475e-013, 1))
  708. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.800000012, 0.5, 1))
  709. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.800000072))
  710. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599998474, -1.99940848, 0, 1, 2.49342214e-013, 2.23281582e-025, 2.41071052e-013, 1, -2.26374475e-013, 2.25900477e-025, -2.26374475e-013, 1))
  711. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.800000012, 0.5, 1))
  712. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.800000012, 0.799999952, 0.600000024))
  713. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699993134, -1.09965634, -7.15255737e-006, 1, 2.53450039e-013, -1.30451205e-015, 2.36963227e-013, 1, -2.26374475e-013, 1.30451205e-015, -2.26374475e-013, 1))
  714. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  715. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Plastic,0,0,"Dark stone grey","Part",Vector3.new(0.400000006, 0.200000003, 0.400000006))
  716. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.700004578, -2.67028809e-005, 0.699332714, -1, -1.60535947e-005, -1.59286301e-007, 1.58860217e-007, 2.65416365e-005, -1, 1.60535983e-005, -1, -2.65416347e-005))
  717. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.299999982, 0.299999982, 2.22000003))
  718. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Plastic,0,0,"Dark stone grey","Part",Vector3.new(0.400000006, 0.200000003, 0.400000006))
  719. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.700019836, -1.66893005e-005, 1.49919093, -1, -1.60516884e-005, -1.59286301e-007, 1.58860317e-007, 2.65384861e-005, -1, 1.6051692e-005, -1, -2.65384842e-005))
  720. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.299999982, 0.299999982, 2.22000003))
  721. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Plastic,0,0,"Light stone grey","Part",Vector3.new(0.400000006, 0.600000024, 0.400000006))
  722. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.700023651, -4.29153442e-005, 1.89885879, -1, -1.60487161e-005, -1.59286301e-007, 1.58860473e-007, 2.65335711e-005, -1, 1.60487198e-005, -1, -2.65335693e-005))
  723. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.299999982, 0.299999982, 2.22000003))
  724. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light stone grey","Part",Vector3.new(0.600000024, 0.400000006, 0.600000024))
  725. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699993134, -2.09877872, 0, 1, 2.63532252e-013, 2.20870009e-025, 2.26881014e-013, 1, -2.40585329e-013, 2.29174052e-025, -2.1216362e-013, 1))
  726. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  727. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Plastic,0,0,"Light stone grey","Part",Vector3.new(0.400000006, 0.600000024, 0.400000006))
  728. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.700031281, -3.81469727e-005, 2.29907608, -1, -1.60496675e-005, -1.59286301e-007, 1.58860416e-007, 2.65351464e-005, -1, 1.60497293e-005, -0.999996424, -2.65352392e-005))
  729. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.299999982, 0.299999982, 2.22000003))
  730. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.400000006, 0.200000003, 0.400000036))
  731. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.900005341, -2.09888887, 0.0100111961, 1, 2.6353919e-013, 2.20464535e-025, 2.26873208e-013, 0.999996424, -2.69013165e-013, 2.35117084e-025, -1.83734972e-013, 1))
  732. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.400000036, 0.400000006))
  733. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.09933496, 0.00994968414, -1.1000061, -7.43166083e-007, 0.999996424, 2.72369789e-007, 1.49011719e-008, -2.72368425e-007, 1, 1, 7.431629e-007, -1.49009649e-008))
  734. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  735. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.210000008, 0.600000024))
  736. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.409999847, -0.404999018, -3.0040741e-005, 1, 1.05336483e-010, -5.11527077e-021, 1.05335976e-010, 1, -9.92765453e-011, -5.11568477e-021, -9.9276018e-011, 1))
  737. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.210000008, 0.600000024))
  738. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.409999847, -1.60497594, -3.0040741e-005, 1, 1.12981839e-010, -5.89094849e-021, -1.12491558e-010, 1, -1.06496659e-010, -6.08833769e-021, 1.0604289e-010, 1))
  739. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.210000008, 0.600000024))
  740. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.409996033, -1.60497594, -3.0040741e-005, 1, 1.13225755e-010, -5.9168516e-021, -1.12735474e-010, 1, -1.06724032e-010, -6.11401341e-021, 1.06270263e-010, 1))
  741. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(1.0200001, 0.210000008, 0.210000008))
  742. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -1.60497594, 0.40499115, 1, 7.82292217e-011, -2.80034948e-021, -7.77389403e-011, 1, -7.37259559e-011, -2.93059226e-021, 7.32721869e-011, 1))
  743. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(1.0200001, 0.210000008, 0.210000008))
  744. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -1.60497594, -0.405024052, 1, 7.93888774e-011, -2.8813423e-021, -7.88986237e-011, 1, -7.48344303e-011, -3.02257208e-021, 7.43806614e-011, 1))
  745. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(1.0200001, 0.210000008, 0.210000008))
  746. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.404999018, -0.405024052, 1, 7.9389488e-011, -2.88135442e-021, 7.93889815e-011, 1, -7.48338752e-011, -2.88212869e-021, -7.48333479e-011, 1))
  747. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.210000008, 0.600000024))
  748. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.409996033, -0.404999018, -3.0040741e-005, 1, 3.79056439e-011, -6.35164548e-022, 3.79058382e-011, 1, -3.57250896e-011, -6.35662047e-022, -3.57250896e-011, 1))
  749. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(1.0200001, 0.210000008, 0.210000008))
  750. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.404999018, 0.40499115, 1, 7.82298046e-011, -2.80033434e-021, 7.8229298e-011, 1, -7.37254285e-011, -2.80000274e-021, -7.37249012e-011, 1))
  751.  
  752. function MagniDamage(Hit,Part,magni,mindam,maxdam,knock,Type)
  753. for _,c in pairs(workspace:children()) do
  754. local hum=c:findFirstChild("Humanoid")
  755. if hum~=nil then
  756. local head=c:findFirstChild("Torso")
  757. if head~=nil then
  758. local targ=head.Position-Part.Position
  759. local mag=targ.magnitude
  760. if mag<=magni and c.Name~=Player.Name then
  761. Damagefunc2(Hit,head,mindam,maxdam,knock,Type,RootPart,.2,1,3)
  762. end
  763. end
  764. end
  765. end
  766. end
  767.  
  768. Damagefunc2=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  769. if hit.Parent==nil then
  770. return
  771. end
  772. local h=hit.Parent:FindFirstChild("Humanoid")
  773. for _,v in pairs(hit.Parent:children()) do
  774. if v:IsA("Humanoid") then
  775. h=v
  776. end
  777. end
  778. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  779. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  780. end
  781. if hit.Parent.className=="Accessory" then
  782. hit=hit.Parent.Parent:findFirstChild("Head")
  783. end
  784. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  785. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  786. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  787. return
  788. end]]
  789. -- hs(hit,1.2)
  790. local c=Instance.new("ObjectValue")
  791. c.Name="creator"
  792. c.Value=game:service("Players").LocalPlayer
  793. c.Parent=h
  794. game:GetService("Debris"):AddItem(c,.5)
  795. local Damage=math.random(minim,maxim)
  796. -- h:TakeDamage(Damage)
  797. local blocked=false
  798. local block=hit.Parent:findFirstChild("Block")
  799. if block~=nil then
  800. print(block.className)
  801. if block.className=="NumberValue" then
  802. if block.Value>0 then
  803. blocked=true
  804. if decreaseblock==nil then
  805. block.Value=block.Value-1
  806. end
  807. end
  808. end
  809. if block.className=="IntValue" then
  810. if block.Value>0 then
  811. blocked=true
  812. if decreaseblock~=nil then
  813. block.Value=block.Value-1
  814. end
  815. end
  816. end
  817. end
  818. if blocked==false then
  819. -- h:TakeDamage(Damage)
  820. h.Health=h.Health-Damage
  821. HitHealth=h.Health
  822. if HitHealth~=h.Health and HitHealth~=0 and h.Health<=0 and h.Parent.Name~="Hologram" then
  823. print("gained spree")
  824. game.Players.LocalPlayer:FindFirstChild("leaderstats").Spree.Value=game.Players.LocalPlayer.leaderstats.Spree.Value+1
  825. end
  826. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
  827. else
  828. h.Health=h.Health-(Damage/2)
  829. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Brown").Color)
  830. end
  831. if Type=="Knockdown" then
  832. local hum=hit.Parent.Humanoid
  833. hum.PlatformStand=true
  834. coroutine.resume(coroutine.create(function(HHumanoid)
  835. swait(1)
  836. HHumanoid.PlatformStand=false
  837. end),hum)
  838. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  839. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  840. local bodvol=Instance.new("BodyVelocity")
  841. bodvol.velocity=angle*knockback
  842. bodvol.P=5000
  843. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  844. bodvol.Parent=hit
  845. local rl=Instance.new("BodyAngularVelocity")
  846. rl.P=3000
  847. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  848. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  849. rl.Parent=hit
  850. game:GetService("Debris"):AddItem(bodvol,.5)
  851. game:GetService("Debris"):AddItem(rl,.5)
  852. elseif Type=="Normal" then
  853. local vp=Instance.new("BodyVelocity")
  854. vp.P=500
  855. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  856. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  857. if KnockbackType==1 then
  858. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  859. elseif KnockbackType==2 then
  860. vp.velocity=Property.CFrame.lookVector*knockback
  861. end
  862. if knockback>0 then
  863. vp.Parent=hit.Parent.Torso
  864. end
  865. game:GetService("Debris"):AddItem(vp,.5)
  866. elseif Type=="Up" then
  867. local bodyVelocity=Instance.new("BodyVelocity")
  868. bodyVelocity.velocity=vt(0,60,0)
  869. bodyVelocity.P=5000
  870. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  871. bodyVelocity.Parent=hit
  872. game:GetService("Debris"):AddItem(bodyVelocity,1)
  873. local rl=Instance.new("BodyAngularVelocity")
  874. rl.P=3000
  875. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  876. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  877. rl.Parent=hit
  878. game:GetService("Debris"):AddItem(rl,.5)
  879. elseif Type=="Snare" then
  880. local bp=Instance.new("BodyPosition")
  881. bp.P=2000
  882. bp.D=100
  883. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  884. bp.position=hit.Parent.Torso.Position
  885. bp.Parent=hit.Parent.Torso
  886. game:GetService("Debris"):AddItem(bp,1)
  887. elseif Type=="Target" then
  888. local Targetting = false
  889. if Targetting==false then
  890. ZTarget=hit.Parent.Torso
  891. coroutine.resume(coroutine.create(function(Part)
  892. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  893. swait(5)
  894. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  895. end),ZTarget)
  896. local TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  897. local targetgui=Instance.new("BillboardGui")
  898. targetgui.Parent=ZTarget
  899. targetgui.Size=UDim2.new(10,100,10,100)
  900. local targ=Instance.new("ImageLabel")
  901. targ.Parent=targetgui
  902. targ.BackgroundTransparency=1
  903. targ.Image="rbxassetid://4834067"
  904. targ.Size=UDim2.new(1,0,1,0)
  905. cam.CameraType="Scriptable"
  906. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  907. local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  908. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  909. Targetting=true
  910. RocketTarget=ZTarget
  911. for i=1,Property do
  912. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  913. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  914. swait()
  915. end
  916. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  917. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  918. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  919. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  920. end
  921. Targetting=false
  922. RocketTarget=nil
  923. targetgui.Parent=nil
  924. cam.CameraType="Custom"
  925. end
  926. end
  927. local debounce=Instance.new("BoolValue")
  928. debounce.Name="DebounceHit"
  929. debounce.Parent=hit.Parent
  930. debounce.Value=true
  931. game:GetService("Debris"):AddItem(debounce,Delay)
  932. c=Instance.new("ObjectValue")
  933. c.Name="creator"
  934. c.Value=Player
  935. c.Parent=h
  936. game:GetService("Debris"):AddItem(c,.5)
  937. end
  938. end
  939.  
  940.  
  941. function ShowDamage(Pos, Text, Time, Color)
  942. local Rate = (1 / 30)
  943. local Pos = (Pos or Vector3.new(0, 0, 0))
  944. local Text = (Text or "")
  945. local Time = (Time or 2)
  946. local Color = (Color or Color3.new(1, 0, 0))
  947. local EffectPart = part("Custom",workspace,"SmoothPlastic",0,1,BrickColor.new(Color),"Effect",vt(0,0,0))
  948. EffectPart.Anchored = true
  949. local BillboardGui = Instance.new("BillboardGui")
  950. BillboardGui.Size = UDim2.new(3, 0, 3, 0)
  951. BillboardGui.Adornee = EffectPart
  952. local TextLabel = Instance.new("TextLabel")
  953. TextLabel.BackgroundTransparency = 1
  954. TextLabel.Size = UDim2.new(1, 0, 1, 0)
  955. TextLabel.Text = Text
  956. TextLabel.TextColor3 = Color
  957. TextLabel.TextScaled = true
  958. TextLabel.Font = Enum.Font.ArialBold
  959. TextLabel.Parent = BillboardGui
  960. BillboardGui.Parent = EffectPart
  961. game.Debris:AddItem(EffectPart, (Time + 0.1))
  962. EffectPart.Parent = game:GetService("Workspace")
  963. Delay(0, function()
  964. local Frames = (Time / Rate)
  965. for Frame = 1, Frames do
  966. wait(Rate)
  967. local Percent = (Frame / Frames)
  968. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  969. TextLabel.TextTransparency = Percent
  970. end
  971. if EffectPart and EffectPart.Parent then
  972. EffectPart:Destroy()
  973. end
  974. end)
  975. end
  976.  
  977. function attackone()
  978. attack = true
  979. local con = LeftLeg.Touched:connect(function(hit) Damagefunc(hit,15,20,math.random(5,15),"Normal",RootPart,.2,1) end)
  980. so("http://roblox.com/asset/?id=200632211",LeftLeg,1,1)
  981. for i = 0,1,0.1 do
  982. swait()
  983. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-50),math.rad(0),math.rad(-90)),.3)
  984. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(50),math.rad(0),math.rad(20)),.3)
  985. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(20), math.rad(20)), 0.3)
  986. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-50)), 0.3)
  987. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
  988. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-80),math.rad(0),math.rad(0)),.3)
  989. end
  990. attack = false
  991. con:disconnect()
  992. end
  993. digging=false
  994. function Dig()
  995. attack = true
  996. Humanoid.AutoRotate=false
  997. Humanoid.WalkSpeed=0
  998. so("http://roblox.com/asset/?id=200632211",LeftLeg,1,1)
  999. for i = 0,1,0.1 do
  1000. swait()
  1001. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  1002. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1003. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(20), math.rad(200)), 0.3)
  1004. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-200)), 0.3)
  1005. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
  1006. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
  1007. handleweld2.C0=clerp(handleweld2.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(80)),.3)
  1008. end
  1009. MagicCircle(BrickColor.new("Brown"),RootPart.CFrame+vt(0,0,0),50,100,50,.5,1,.5,.06)
  1010. MagniDamage(Torso,Torso,20,5,10,0,"Normal",RootPart)
  1011. so("http://www.roblox.com/asset/?id=161806439",Part,1,.7)
  1012. MagicCircle(BrickColor.new("Brown"),RootPart.CFrame+vt(0,-3,0),20,200,20,.5,5,.5,.06)
  1013. MagicCircle(BrickColor.new("Brown"),RootPart.CFrame+vt(0,-3,0),100,1,100,1,0,1,.06)
  1014. MagicCircle(BrickColor.new("Brown"),RootPart.CFrame+vt(0,-3,0),100,1,100,2,0,2,.06)
  1015.  
  1016. for i = 0,1,0.1 do
  1017. swait()
  1018. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1)* angles(math.rad(30),math.rad(0),math.rad(0)),.3)
  1019. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1020. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(30), math.rad(0)), 0.3)
  1021. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50), math.rad(-30), math.rad(0)), 0.3)
  1022. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
  1023. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
  1024. handleweld2.C0=clerp(handleweld2.C0,cf(-1,-1,0)*angles(math.rad(80),math.rad(0),math.rad(80)),.3)
  1025. end
  1026.  
  1027. for i = 0,1,0.1 do
  1028. swait()
  1029. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1)* angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  1030. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1031. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(20), math.rad(200)), 0.3)
  1032. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-200)), 0.3)
  1033. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
  1034. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
  1035. handleweld2.C0=clerp(handleweld2.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(80)),.3)
  1036. end
  1037. MagicCircle(BrickColor.new("Brown"),RootPart.CFrame+vt(0,-3,0),50,100,50,.5,1,.5,.06)
  1038. MagicCircle(BrickColor.new("Brown"),RootPart.CFrame+vt(0,-3,0),20,200,20,.5,5,.5,.06)
  1039. MagicCircle(BrickColor.new("Brown"),RootPart.CFrame+vt(0,-3,0),100,1,100,1,0,1,.06)
  1040. MagniDamage(Torso,Torso,20,5,10,0,"Normal",RootPart)
  1041. so("http://www.roblox.com/asset/?id=161806439",Part,1,.8)
  1042. MagicCircle(BrickColor.new("Brown"),RootPart.CFrame+vt(0,-3,0),100,1,100,2,0,2,.06)
  1043. for i = 0,1,0.1 do
  1044. swait()
  1045. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1)* angles(math.rad(30),math.rad(0),math.rad(0)),.3)
  1046. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1047. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(30), math.rad(0)), 0.3)
  1048. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50), math.rad(-30), math.rad(0)), 0.3)
  1049. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
  1050. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
  1051. handleweld2.C0=clerp(handleweld2.C0,cf(-1,-1,0)*angles(math.rad(80),math.rad(0),math.rad(80)),.3)
  1052. end
  1053. for i = 0,1,0.1 do
  1054. swait()
  1055. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1)* angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  1056. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1057. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(20), math.rad(200)), 0.3)
  1058. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-200)), 0.3)
  1059. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
  1060. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
  1061. handleweld2.C0=clerp(handleweld2.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(80)),.3)
  1062. end
  1063. MagicCircle(BrickColor.new("Brown"),RootPart.CFrame+vt(0,-3,0),50,100,50,.5,1,.5,.06)
  1064. MagicCircle(BrickColor.new("Brown"),RootPart.CFrame+vt(0,-3,0),20,200,20,.5,5,.5,.06)
  1065. MagicCircle(BrickColor.new("Brown"),RootPart.CFrame+vt(0,-3,0),100,1,100,1,0,1,.06)
  1066. MagniDamage(Torso,Torso,20,5,10,0,"Normal",RootPart)
  1067. so("http://www.roblox.com/asset/?id=161806439",Part,1,.9)
  1068. MagicCircle(BrickColor.new("Brown"),RootPart.CFrame+vt(0,-3,0),100,1,100,2,0,2,.06)
  1069. for i = 0,1,0.1 do
  1070. swait()
  1071. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1)* angles(math.rad(30),math.rad(0),math.rad(0)),.3)
  1072. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1073. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(30), math.rad(0)), 0.3)
  1074. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50), math.rad(-30), math.rad(0)), 0.3)
  1075. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
  1076. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
  1077. handleweld2.C0=clerp(handleweld2.C0,cf(-1,-1,0)*angles(math.rad(80),math.rad(0),math.rad(80)),.3)
  1078. end
  1079. coroutine.resume(coroutine.create(function()
  1080. for i, v in pairs(Character:children()) do
  1081. if (v:IsA("BasePart") and v.Name~="HumanoidRootPart") then
  1082. v.Transparency=1
  1083. end
  1084. if (v:IsA("Accessory")) then
  1085. v.Handle.Transparency=1
  1086. end
  1087. Head.face.Transparency=1
  1088. end
  1089. for i, v in pairs(m:children()) do
  1090. if (v:IsA("BasePart")) then
  1091. v.Transparency=1
  1092. end
  1093. end
  1094.  
  1095. end))
  1096. MagicCircle(BrickColor.new("Brown"),RootPart.CFrame+vt(0,-3,0),50,100,50,.5,1,.5,.03)
  1097. MagicCircle(BrickColor.new("Brown"),RootPart.CFrame+vt(0,-3,0),20,200,20,.5,5,.5,.03)
  1098. MagniDamage(Torso,Torso,20,5,10,0,"Normal",RootPart)
  1099. so("http://www.roblox.com/asset/?id=161806439",Part,1,1)
  1100. MagicCircle(BrickColor.new("Brown"),RootPart.CFrame+vt(0,-3,0),100,1,100,1,0,1,.03)
  1101. MagicCircle(BrickColor.new("Brown"),RootPart.CFrame+vt(0,-3,0),100,1,100,2,0,2,.03)
  1102. digging=true
  1103. Humanoid.WalkSpeed=8
  1104. attack = false
  1105. --con:disconnect()
  1106. end
  1107.  
  1108. function Digtimate()
  1109. attack = true
  1110. digging=true
  1111. Humanoid.AutoRotate=false
  1112. Humanoid.WalkSpeed=0
  1113. so("http://roblox.com/asset/?id=200632211",LeftLeg,1,1)
  1114. for i = 0,1,0.1 do
  1115. swait()
  1116. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1)* angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  1117. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1118. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(20), math.rad(200)), 0.3)
  1119. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-200)), 0.3)
  1120. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
  1121. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
  1122. handleweld2.C0=clerp(handleweld2.C0,cf(-1,-1,0)*angles(math.rad(80),math.rad(0),math.rad(80)),.3)
  1123. end
  1124. for i = 0,1,0.1 do
  1125. swait()
  1126. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1)* angles(math.rad(30),math.rad(0),math.rad(0)),.3)
  1127. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1128. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(30), math.rad(0)), 0.3)
  1129. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50), math.rad(-30), math.rad(0)), 0.3)
  1130. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
  1131. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
  1132. end
  1133. coroutine.resume(coroutine.create(function()
  1134. for i, v in pairs(Character:children()) do
  1135. if (v:IsA("BasePart") and v.Name~="HumanoidRootPart") then
  1136. v.Transparency=1
  1137. end
  1138. if (v:IsA("Accessory")) then
  1139. v.Handle.Transparency=1
  1140. end
  1141. Head.face.Transparency=1
  1142. end
  1143. for i, v in pairs(m:children()) do
  1144. if (v:IsA("BasePart")) then
  1145. v.Transparency=1
  1146. end
  1147. end
  1148.  
  1149. end))
  1150. MagicCircle(BrickColor.new("Brown"),RootPart.CFrame+vt(0,-3,0),50,100,50,.5,1,.5,.03)
  1151. MagicCircle(BrickColor.new("Brown"),RootPart.CFrame+vt(0,-3,0),20,200,20,.5,5,.5,.03)
  1152. MagniDamage(Torso,Torso,20,5,10,0,"Normal",RootPart)
  1153. so("http://www.roblox.com/asset/?id=161806439",Part,1,1)
  1154. MagicCircle(BrickColor.new("Brown"),RootPart.CFrame+vt(0,-3,0),100,1,100,1,0,1,.03)
  1155. MagicCircle(BrickColor.new("Brown"),RootPart.CFrame+vt(0,-3,0),100,1,100,2,0,2,.03)
  1156. Humanoid.WalkSpeed=16
  1157. for i = 0,1,.1 do
  1158. swait()
  1159. MagicCircle(BrickColor.new("Brown"),RootPart.CFrame+vt(0,-3,0),100,0,100,.5,1,.5,.08)
  1160. Torso.Velocity=RootPart.CFrame.lookVector*50
  1161. end
  1162. MagicCircle(BrickColor.new("Brown"),RootPart.CFrame+vt(0,-3,0),50,100,50,.5,1,.5,.03)
  1163. so("http://roblox.com/asset/?id=240429289",Hitbox,1,.7)
  1164. MagniDamage(RootPart,RootPart,10,10,20,0,"Normal",RootPart)
  1165. for i = 0,1,.1 do
  1166. swait()
  1167. MagicCircle(BrickColor.new("Brown"),RootPart.CFrame+vt(0,-3,0),100,0,100,.5,1,.5,.08)
  1168. Torso.Velocity=RootPart.CFrame.lookVector*50
  1169. end
  1170. MagicCircle(BrickColor.new("Brown"),RootPart.CFrame+vt(0,-3,0),50,100,50,.5,1,.5,.03)
  1171. MagniDamage(RootPart,RootPart,10,10,20,0,"Normal",RootPart)
  1172. so("http://roblox.com/asset/?id=240429289",Hitbox,1,.7)
  1173. for i = 0,1,.1 do
  1174. swait()
  1175. MagicCircle(BrickColor.new("Brown"),RootPart.CFrame+vt(0,-3,0),100,0,100,.5,1,.5,.08)
  1176. Torso.Velocity=RootPart.CFrame.lookVector*50
  1177. end
  1178. MagicCircle(BrickColor.new("Brown"),RootPart.CFrame+vt(0,-3,0),50,100,50,.5,1,.5,.03)
  1179. MagniDamage(RootPart,RootPart,10,10,20,0,"Normal",RootPart)
  1180. so("http://roblox.com/asset/?id=240429289",Hitbox,1,.7)
  1181. for i = 0,1,.1 do
  1182. swait()
  1183. MagicCircle(BrickColor.new("Brown"),RootPart.CFrame+vt(0,-3,0),100,0,100,.5,1,.5,.08)
  1184. Torso.Velocity=RootPart.CFrame.lookVector*50
  1185. end
  1186. MagicCircle(BrickColor.new("Brown"),RootPart.CFrame+vt(0,-3,0),50,100,50,.5,1,.5,.03)
  1187. MagniDamage(RootPart,RootPart,10,10,20,0,"Normal",RootPart)
  1188. so("http://roblox.com/asset/?id=240429289",Hitbox,1,.7)
  1189. for i = 0,1,.1 do
  1190. swait()
  1191. MagicCircle(BrickColor.new("Brown"),RootPart.CFrame+vt(0,-3,0),100,0,100,.5,1,.5,.08)
  1192. Torso.Velocity=RootPart.CFrame.lookVector*50
  1193. end
  1194. coroutine.resume(coroutine.create(function()
  1195. for i, v in pairs(Character:children()) do
  1196. if (v:IsA("BasePart") and v.Name~="HumanoidRootPart") then
  1197. v.Transparency=0
  1198. end
  1199. if (v:IsA("Accessory")) then
  1200. v.Handle.Transparency=0
  1201. end
  1202. Head.face.Transparency=0
  1203. --v.Handle.Transparency=1
  1204. --v.face.Transparency=1
  1205. --v.roblox.Transparency=1
  1206. --v.Head.Transparency=1
  1207. end
  1208. for i, v in pairs(m:children()) do
  1209. if (v:IsA("BasePart") and v.Name~="HumanoidRootPart") then
  1210. v.Transparency=0
  1211. end
  1212. --v.Handle.Transparency=1
  1213. --v.face.Transparency=1
  1214. end
  1215. end))
  1216. MagicCircle(BrickColor.new("Brown"),RootPart.CFrame+vt(0,-3,0),50,100,50,.5,1,.5,.06)
  1217. MagicCircle(BrickColor.new("Brown"),RootPart.CFrame+vt(0,-3,0),20,200,20,.5,5,.5,.06)
  1218. so("http://roblox.com/asset/?id=240429289",Hitbox,1,.5)
  1219. MagniDamage(RootPart,RootPart,20,10,20,10,"Knockdown",RootPart)
  1220. MagicCircle(BrickColor.new("Brown"),RootPart.CFrame+vt(0,-3,0),100,1,100,1,0,1,.06)
  1221. MagicCircle(BrickColor.new("Brown"),RootPart.CFrame+vt(0,-3,0),100,1,100,2,0,2,.06)
  1222. MagicRing(BrickColor.new("Brown"),RootPart.CFrame*angles(math.rad(95),math.rad(0),math.rad(0))+vt(0,-3,0),15,15,12,5,5,8,0.07)
  1223. for i = 0,1,0.05 do
  1224. swait()
  1225. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,13)* angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  1226. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1227. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(20), math.rad(-200)), 0.3)
  1228. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(200)), 0.3)
  1229. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
  1230. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
  1231. handleweld2.C0=clerp(handleweld2.C0,cf(-1,-1,0)*angles(math.rad(80),math.rad(0),math.rad(80)),.3)
  1232. end
  1233. Humanoid.AutoRotate=true
  1234. digging=false
  1235. attack = false
  1236. --con:disconnect()
  1237. end
  1238.  
  1239.  
  1240. function Surprise()
  1241. attack = true
  1242. so("http://roblox.com/asset/?id=200632211",LeftLeg,1,1)
  1243. coroutine.resume(coroutine.create(function()
  1244. for i, v in pairs(Character:children()) do
  1245. if (v:IsA("BasePart") and v.Name~="HumanoidRootPart") then
  1246. v.Transparency=0
  1247. end
  1248. if (v:IsA("Accessory")) then
  1249. v.Handle.Transparency=0
  1250. end
  1251. Head.face.Transparency=0
  1252. --v.Handle.Transparency=1
  1253. --v.face.Transparency=1
  1254. --v.roblox.Transparency=1
  1255. --v.Head.Transparency=1
  1256. end
  1257. for i, v in pairs(m:children()) do
  1258. if (v:IsA("BasePart") and v.Name~="HumanoidRootPart") then
  1259. v.Transparency=0
  1260. end
  1261. --v.Handle.Transparency=1
  1262. --v.face.Transparency=1
  1263. end
  1264. end))
  1265. MagicCircle(BrickColor.new("Brown"),RootPart.CFrame+vt(0,-3,0),50,100,50,.5,1,.5,.06)
  1266. MagicCircle(BrickColor.new("Brown"),RootPart.CFrame+vt(0,-3,0),20,200,20,.5,5,.5,.06)
  1267. so("http://roblox.com/asset/?id=240429289",Hitbox,1,.666)
  1268. MagniDamage(Torso,Torso,20,20,30,50,"Knockdown",RootPart)
  1269. MagicCircle(BrickColor.new("Brown"),RootPart.CFrame+vt(0,-3,0),100,1,100,1,0,1,.06)
  1270. MagicCircle(BrickColor.new("Brown"),RootPart.CFrame+vt(0,-3,0),100,1,100,2,0,2,.06)
  1271. MagicRing(BrickColor.new("Brown"),RootPart.CFrame*angles(math.rad(90),math.rad(0),math.rad(0))+vt(0,-3,0),15,15,1,5,5,0,0.07)
  1272. for i = 0,1,0.05 do
  1273. swait()
  1274. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,13)* angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  1275. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1276. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(20), math.rad(-200)), 0.3)
  1277. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(200)), 0.3)
  1278. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
  1279. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
  1280. handleweld2.C0=clerp(handleweld2.C0,cf(-1,-1,0)*angles(math.rad(80),math.rad(0),math.rad(80)),.3)
  1281. end
  1282. digging=false
  1283. attack = false
  1284. Humanoid.WalkSpeed=16
  1285. Humanoid.AutoRotate=true
  1286. --con:disconnect()
  1287. end
  1288.  
  1289. function attacktwo()
  1290. attack = true
  1291. for i = 0,1,0.1 do
  1292. swait()
  1293. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(-80)),.3)
  1294. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(70)),.3)
  1295. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(90)), 0.3)
  1296. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.5) * angles(math.rad(0), math.rad(-150), math.rad(-90)), 0.3)
  1297. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(140),math.rad(-10)),.3)
  1298. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(-5)),.3)
  1299. handleweld2.C0=clerp(handleweld2.C0,cf(-1,-1,0)*angles(math.rad(70),math.rad(50),math.rad(100)),.3)
  1300. end
  1301. so("http://roblox.com/asset/?id=200632211",LeftArm,1,.9)
  1302. local con = handle2.Touched:connect(function(hit) Damagefunc(hit,15,20,math.random(5,15),"Normal",RootPart,.2,1) end)
  1303. for i = 0,1,0.1 do
  1304. swait()
  1305. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(80)),.3)
  1306. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1307. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(20)), 0.3)
  1308. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-10), math.rad(-90)), 0.3)
  1309. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(-10)),.3)
  1310. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-140),math.rad(-5)),.3)
  1311. end
  1312. attack = false
  1313. con:disconnect()
  1314. end
  1315.  
  1316. --[[remiders: PBPART1,PBPART2,PBPOLE,PBNEEDLE,HITBOX ]]--
  1317.  
  1318. function attackthree()
  1319. attack = true
  1320. for i = 0,1,0.1 do
  1321. swait()
  1322. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(90)),.3)
  1323. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  1324. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(90)), 0.3)
  1325. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.5) * angles(math.rad(0), math.rad(-150), math.rad(-90)), 0.3)
  1326. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(140),math.rad(-10)),.3)
  1327. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(-5)),.3)
  1328. handleweld2.C0=clerp(handleweld2.C0,cf(-1,-1,0)*angles(math.rad(70),math.rad(50),math.rad(100)),.3)
  1329. end
  1330. so("http://roblox.com/asset/?id=200632211",LeftArm,1,.9)
  1331. local con = handle2.Touched:connect(function(hit) Damagefunc(hit,15,20,math.random(5,15),"Normal",RootPart,.2,1) end)
  1332. for i = 0,1,0.1 do
  1333. swait()
  1334. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(-80)),.3)
  1335. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  1336. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(20)), 0.3)
  1337. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-10), math.rad(-90)), 0.3)
  1338. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(-10)),.3)
  1339. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-140),math.rad(-5)),.3)
  1340. end
  1341. attack = false
  1342. con:disconnect()
  1343. end
  1344.  
  1345. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1346. local prt=part(3,Character,"SmoothPlastic",0,0,brickcolor,"Effect",vt())
  1347. prt.Anchored=true
  1348. prt.CFrame=cframe
  1349. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1350. --game:GetService("Debris"):AddItem(prt,2)
  1351. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  1352. end
  1353.  
  1354. function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1355. local prt=part(3,effectz,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1356. prt.Anchored=true
  1357. prt.CFrame=cframe
  1358. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  1359. game:GetService("Debris"):AddItem(prt,2)
  1360. coroutine.resume(coroutine.create(function(Part,Mesh,num)
  1361. for i=0,1,delay do
  1362. swait()
  1363. Part.Transparency=i
  1364. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1365. end
  1366. Part.Parent=nil
  1367. end),prt,msh,(math.random(0,1)+math.random())/5)
  1368. end
  1369. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1370. local prt=part(3,Character,"SmoothPlastic",0,0,brickcolor,"Effect",vt())
  1371. prt.Anchored=true
  1372. prt.CFrame=cframe
  1373. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1374. --game:GetService("Debris"):AddItem(prt,2)
  1375. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  1376. end
  1377.  
  1378. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1379. local prt=part(3,effectz,"SmoothPlastic",0,0,brickcolor,"Effect",vt())
  1380. prt.Anchored=true
  1381. prt.CFrame=cframe
  1382. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1383. game:GetService("Debris"):AddItem(prt,5)
  1384. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3}) --part, type, delay
  1385. end
  1386.  
  1387. function Piledriver()
  1388. attack = true
  1389. for i = 0,1,0.1 do
  1390. swait()
  1391. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,1,0)* angles(math.rad(-50),math.rad(30),math.rad(40)),.3)
  1392. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  1393. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(80)), 0.3)
  1394. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.5) * angles(math.rad(0), math.rad(-150), math.rad(-90)), 0.3)
  1395. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-50),math.rad(140),math.rad(-10)),.3)
  1396. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-50),math.rad(-50),math.rad(-5)),.3)
  1397. --handleweld2.C0=clerp(handleweld2.C0,cf(-1,-1,0)*angles(math.rad(70),math.rad(50),math.rad(100)),.3)
  1398. end
  1399. so("http://roblox.com/asset/?id=200632211",LeftArm,1,.9)
  1400. local con = handle2.Touched:connect(function(hit) Damagefunc(hit,15,20,math.random(5,15),"Normal",RootPart,.2,1) end)
  1401. for i = 0,1,0.2 do
  1402. swait()
  1403. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-.5,0)* angles(math.rad(50),math.rad(-30),math.rad(-40)),.3)
  1404. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  1405. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(70), math.rad(20)), 0.3)
  1406. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50), math.rad(-100), math.rad(-90)), 0.3)
  1407. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(50),math.rad(50),math.rad(-10)),.3)
  1408. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(50),math.rad(-140),math.rad(-5)),.3)
  1409. end
  1410. for i = 0,1,0.1 do
  1411. swait()
  1412. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-.8,0)* angles(math.rad(80),math.rad(-30),math.rad(-80)),.3)
  1413. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  1414. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(70), math.rad(20)), 0.3)
  1415. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-10), math.rad(-90)), 0.3)
  1416. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(80),math.rad(50),math.rad(-10)),.3)
  1417. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(80),math.rad(-140),math.rad(-5)),.3)
  1418. end
  1419. MagicRing(BrickColor.new("Brown"),RootPart.CFrame*angles(math.rad(90),math.rad(0),math.rad(0))+vt(0,-3,0),15,15,1,5,5,0,0.07)
  1420. MagicCircle(BrickColor.new("Brown"),RootPart.CFrame+vt(0,-3,0),50,100,50,.5,1,.5,.06)
  1421. MagicCircle(BrickColor.new("Brown"),RootPart.CFrame+vt(0,-3,0),20,200,20,.5,5,.5,.06)
  1422. so("http://roblox.com/asset/?id=240429891",Hitbox,1,.7)
  1423. so("http://roblox.com/asset/?id=240429289",Hitbox,1,.6)
  1424. MagicCircle(BrickColor.new("Brown"),RootPart.CFrame+vt(0,-3,0),100,1,100,1,0,1,.06)
  1425. MagniDamage(Torso,Torso,20,10,20,30,"Normal",RootPart)
  1426. MagicCircle(BrickColor.new("Brown"),RootPart.CFrame+vt(0,-3,0),100,1,100,2,0,2,.06)
  1427. attack = false
  1428. con:disconnect()
  1429. end
  1430.  
  1431. function JumpSpin()
  1432. attack=true
  1433. for i=0,1,0.06 do
  1434. swait()
  1435. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(-50)),.1)
  1436. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(-5),math.rad(50)),.1)
  1437. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(70), math.rad(20)), 0.3)
  1438. LW.C0 = clerp(LW.C0, CFrame.new(.3, 0.5, -1) * angles(math.rad(0), math.rad(-10), math.rad(100)), 0.1)
  1439. handleweld2.C0=clerp(handleweld2.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(120)),.1)
  1440. end
  1441. con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,10,30,math.random(10,20),"Knockdown",RootPart,.2,1) end)
  1442. for i=0,1,.5 do
  1443. so("http://www.roblox.com/asset/?id=203691447",Hitbox,1,1)
  1444. swait()
  1445. for i=0,2,0.1 do
  1446.  
  1447. swait()
  1448. Torso.Velocity=RootPart.CFrame.lookVector*20
  1449. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,4)*euler(0,1.2,math.rad(0+360*i)),.2)
  1450. end
  1451. end
  1452. attack=false
  1453. con1:disconnect()
  1454. end
  1455.  
  1456. function attackfour()
  1457. attack = true
  1458. for i = 0,1,0.1 do
  1459. swait()
  1460. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(80)),.3)
  1461. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  1462. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(70), math.rad(20)), 0.3)
  1463. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.5) * angles(math.rad(0), math.rad(-150), math.rad(-90)), 0.3)
  1464. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(140),math.rad(-10)),.3)
  1465. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(-5)),.3)
  1466. end
  1467. so("http://roblox.com/asset/?id=240429891",Hitbox,1,.9)
  1468. so("http://roblox.com/asset/?id=240429289",Hitbox,1,.8)
  1469. local con = Hitbox.Touched:connect(function(hit) Damagefunc(hit,25,40,math.random(10,15),"Normal",RootPart,.2,1) end)
  1470. for i = 0,1,0.1 do
  1471. swait()
  1472. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(-80)),.3)
  1473. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(20)),.3)
  1474. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(70), math.rad(20)), 0.3)
  1475. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-10), math.rad(-90)), 0.3)
  1476. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(-10)),.3)
  1477. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-140),math.rad(-5)),.3)
  1478. PBNeedleweld.C0=clerp(PBNeedleweld.C0,cf(0,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  1479. PBPoleweld.C0=clerp(PBPoleweld.C0,cf(0,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  1480. PBPart1weld.C0=clerp(PBPart1weld.C0,cf(0,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  1481. PBPart2weld.C0=clerp(PBPart2weld.C0,cf(0,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  1482. Hitboxweld.C0=clerp(Hitboxweld.C0,cf(0,-1.,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  1483. end
  1484. attack = false
  1485. con:disconnect()
  1486. end
  1487.  
  1488. function ob1u()
  1489. end
  1490.  
  1491. function ob1d()
  1492. if attack == false and attacktype == 1 and digging==false then
  1493. attacktype = 2
  1494. attackone()
  1495. elseif attack == false and attacktype == 2 and digging==false then
  1496. attacktype = 3
  1497. attacktwo()
  1498. elseif attack == false and attacktype == 3 and digging==false then
  1499. attacktype = 4
  1500. attackthree()
  1501. elseif attack == false and attacktype == 4 and digging==false then
  1502. attacktype = 1
  1503. attackfour()
  1504. end
  1505. end
  1506.  
  1507. moving=false
  1508.  
  1509. function keyup(k)
  1510. k=k:lower()
  1511. if k=="w" and digging==true then
  1512. moving=false
  1513. elseif k=="a" and digging==true then
  1514. moving=false
  1515. elseif k=="s" and digging==true then
  1516. moving=false
  1517. elseif k=="d" and digging==true then
  1518. moving=false
  1519. end
  1520. end
  1521.  
  1522. function key(k)
  1523. k=k:lower()
  1524. if k=="w" and digging==true then
  1525. moving=true
  1526. elseif k=="a" and digging==true then
  1527. moving=true
  1528. elseif k=="s" and digging==true then
  1529. moving=true
  1530. elseif k=="d" and digging==true then
  1531. moving=true
  1532. end
  1533. if k=='z' and attack==false and digging==false and mana>=10 then
  1534. mana=mana-10
  1535. JumpSpin()
  1536. elseif k=='x' and attack==false and digging ==false and mana>=25 then
  1537. Piledriver()
  1538. mana=mana-25
  1539. elseif k=='c' and attack==false and digging==false and mana>=30 then
  1540. Dig()
  1541. mana=mana-30
  1542. elseif k=='c' and attack==false and digging==true and mana>=5 then
  1543. Surprise()
  1544. mana=mana-5
  1545. elseif k=='v' and attack==false and digging==false and mana>=50 then
  1546. Digtimate()
  1547. mana=mana-50
  1548. end
  1549. end
  1550.  
  1551.  
  1552. Bin=Instance.new("HopperBin",Player.Backpack)
  1553. Bin.Name = "Ol' Yaney"
  1554.  
  1555. function ds(mouse)
  1556. end
  1557.  
  1558. function s(mouse)
  1559. print("Black Magic Haven!!!")
  1560. mouse.Button1Down:connect(function() ob1d(mouse) end)
  1561. mouse.Button1Up:connect(function() ob1u(mouse) end)
  1562. mouse.KeyDown:connect(key)
  1563. mouse.KeyUp:connect(keyup)
  1564. end
  1565.  
  1566. Bin.Selected:connect(s)
  1567. Bin.Deselected:connect(ds)
  1568.  
  1569. local sine = 0
  1570. local change = 1
  1571. local val = 0
  1572. local mananum = 0
  1573. while true do
  1574. pwait()
  1575. sine = sine + change
  1576. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1577. local velderp=RootPart.Velocity.y
  1578. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1579. if equipped==true or equipped==false then
  1580. if attack==false then
  1581. idle=idle+1
  1582. else
  1583. idle=0
  1584. end
  1585. if idle>=500 then
  1586. if attack==false then
  1587. --Sheath()
  1588. end
  1589. end
  1590. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1591. Anim="Jump"
  1592. if attack==false then
  1593. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1594. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  1595. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(20)), 0.3)
  1596. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  1597. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(10),math.rad(90),math.rad(0)),.3)
  1598. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-15),math.rad(-90),math.rad(0)),.3)
  1599. PBNeedleweld.C0=clerp(PBNeedleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  1600. PBPoleweld.C0=clerp(PBPoleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  1601. PBPart1weld.C0=clerp(PBPart1weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  1602. PBPart2weld.C0=clerp(PBPart2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  1603. Hitboxweld.C0=clerp(Hitboxweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  1604. end
  1605. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1606. Anim="Fall"
  1607. if attack==false then
  1608. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1609. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1610. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(30)), 0.3)
  1611. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-30)), 0.3)
  1612. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(20),math.rad(90),math.rad(0)),.3)
  1613. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-20),math.rad(-90),math.rad(0)),.3)
  1614. PBNeedleweld.C0=clerp(PBNeedleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1615. PBPoleweld.C0=clerp(PBPoleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1616. PBPart1weld.C0=clerp(PBPart1weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1617. PBPart2weld.C0=clerp(PBPart2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1618. Hitboxweld.C0=clerp(Hitboxweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1619. end
  1620. elseif torvel<1 and hitfloor~=nil then
  1621. Anim="Idle"
  1622. if digging==true and moving==true then
  1623. MagicCircle(BrickColor.new("Brown"),RootPart.CFrame+vt(0,-3,0),50,1,50,.5,.5,.5,.1)
  1624. end
  1625. if attack==false then
  1626. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(-20)),.3)
  1627. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(20)),.3)
  1628. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(70), math.rad(20)), 0.3)
  1629. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3)
  1630. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-10)),.3)
  1631. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(-5)),.3)
  1632. PBNeedleweld.C0=clerp(PBNeedleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1633. PBPoleweld.C0=clerp(PBPoleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1634. handleweld2.C0=clerp(PBPoleweld.C0,cf(0,0,0)*angles(math.rad(80),math.rad(0),math.rad(-180)),.2)
  1635. PBPart1weld.C0=clerp(PBPart1weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1636. PBPart2weld.C0=clerp(PBPart2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1637. Hitboxweld.C0=clerp(Hitboxweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1638. end
  1639. elseif torvel>2 and hitfloor~=nil then
  1640. Anim="Walk"
  1641. if digging==true then
  1642. MagicCircle(BrickColor.new("Brown"),RootPart.CFrame+vt(0,-3,0),50,1,50,.5,0,.5,.06)
  1643. end
  1644. if attack==false then
  1645. change=3
  1646. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1647. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1648. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(70), math.rad(20)), 0.3)
  1649. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  1650. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-15)),.3)
  1651. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-15)),.3)
  1652. handleweld2.C0=clerp(PBPoleweld.C0,cf(0,0,0)*angles(math.rad(80),math.rad(0),math.rad(-180)),.2)
  1653. PBNeedleweld.C0=clerp(PBNeedleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1654. PBPoleweld.C0=clerp(PBPoleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1655. PBPart1weld.C0=clerp(PBPart1weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1656. PBPart2weld.C0=clerp(PBPart2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1657. Hitboxweld.C0=clerp(Hitboxweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1658. end
  1659.  
  1660. end
  1661. end
  1662. if #Effects>0 then
  1663. --table.insert(Effects,{prt,"Block1",delay})
  1664. for e=1,#Effects do
  1665. if Effects[e]~=nil then
  1666. --for j=1,#Effects[e] do
  1667. local Thing=Effects[e]
  1668. if Thing~=nil then
  1669. local Part=Thing[1]
  1670. local Mode=Thing[2]
  1671. local Delay=Thing[3]
  1672. local IncX=Thing[4]
  1673. local IncY=Thing[5]
  1674. local IncZ=Thing[6]
  1675. if Thing[1].Transparency<=1 then
  1676. if Thing[2]=="Block1" then
  1677. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1678. Mesh=Thing[1].Mesh
  1679. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1680. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1681. elseif Thing[2]=="Cylinder" then
  1682. Mesh=Thing[1].Mesh
  1683. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1684. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1685. elseif Thing[2]=="Blood" then
  1686. Mesh=Thing[7]
  1687. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  1688. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1689. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1690. elseif Thing[2]=="Elec" then
  1691. Mesh=Thing[1].Mesh
  1692. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  1693. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1694. elseif Thing[2]=="Disappear" then
  1695. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1696. end
  1697. else
  1698. Part.Parent=nil
  1699. table.remove(Effects,e)
  1700. end
  1701. end
  1702. --end
  1703. end
  1704. end
  1705. end
  1706. fenbarmana2:TweenSize(UDim2.new(4*mana/100,0,0.2,0),nil,1,0.4,true)
  1707. fenbarmana4.Text="[Strength] <{[ "..mana.." ]}> [Strength]"
  1708. if mana>=100 then
  1709. mana=100
  1710. else
  1711. if attack==false then
  1712. if mananum<=8 then
  1713. mananum=mananum+1
  1714. else
  1715. mananum=0
  1716. mana=mana+1
  1717. end
  1718. end
  1719. end
  1720. if digging==false and Torso.Transparency==1 then
  1721. coroutine.resume(coroutine.create(function()
  1722. for i, v in pairs(Character:children()) do
  1723. if (v:IsA("BasePart") and v.Name~="HumanoidRootPart") then
  1724. v.Transparency=0
  1725. end
  1726. if (v:IsA("Accessory")) then
  1727. v.Handle.Transparency=0
  1728. end
  1729. Head.face.Transparency=0
  1730. end
  1731. for i, v in pairs(m:children()) do
  1732. if (v:IsA("BasePart")) then
  1733. v.Transparency=0
  1734. end
  1735. end
  1736.  
  1737. end))
  1738. end
  1739. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement