Advertisement
VoidScript

Miner

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