Advertisement
00fjg

Untitled

Sep 3rd, 2017
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 77.38 KB | None | 0 0
  1. --mediafire
  2.  
  3.  
  4.  
  5.  
  6. local p = game.Players.localPlayer
  7. Character = p.Character
  8. PlayerGui = p.PlayerGui
  9. Backpack = p.Backpack
  10. Torso = Character.Torso
  11. Head = Character.Head
  12. LeftArm = Character["Left Arm"]
  13. LeftLeg = Character["Left Leg"]
  14. RightArm = Character["Right Arm"]
  15. RightLeg = Character["Right Leg"]
  16. LS = Torso["Left Shoulder"]
  17. LH = Torso["Left Hip"]
  18. RS = Torso["Right Shoulder"]
  19. RH = Torso["Right Hip"]
  20. attack = false
  21. attackdebounce = false
  22. attackdebounce2 = false
  23. attackdebounce3 = false
  24. swordattack=false
  25. attacktype = 1
  26. combo = 0
  27. damage = 3
  28. oridamage = 3
  29. walkdebounce = false
  30. sheathed = true
  31. slash=false
  32. it=Instance.new
  33. vt=Vector3.new
  34. cf=CFrame.new
  35. euler=CFrame.fromEulerAnglesXYZ
  36. angles=CFrame.Angles
  37. mRad=math.rad
  38. mPi=math.pi
  39. act = {key = {}}
  40. walking = false
  41. hold=false
  42. MMouse=nil
  43. equipped=false
  44. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  45. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  46. con1=nil
  47. con2=nil
  48. con3=nil
  49. mana=400
  50. Charging=0
  51. Did=0
  52. colors={"Bright green","Bright green"}
  53. random=nil
  54. --player
  55. player = nil
  56. --save shoulders
  57. RSH, LSH = nil, nil
  58. --welds
  59. RW, LW , RWL, LWL = it("Weld"), it("Weld"), it("Weld"), it("Weld")
  60. RW.Name="Right Shoulder"
  61. LW.Name="Left Shoulder"
  62. RWL.Name="Right Hip"
  63. LWL.Name="Left Hip"
  64. RW2, LW2 = it("Weld"), it("Weld")
  65. --what anim
  66. anim = "none"
  67. local gyro = it("BodyGyro")
  68. gyro.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  69. gyro.P = 20e+003
  70. bod = it("BodyPosition")
  71. bod.position = Torso.Position
  72. bod.maxForce = vt(4e+080, 4e+080, 4e+080)
  73. Enemy=nil
  74. CF=cf(-1.5,0.5,0) * euler(0.7,0,-0.3)
  75.  
  76. if Character:findFirstChild("Scirave",true) ~= nil then
  77. Character:findFirstChild("Scirave",true).Parent = nil
  78. end
  79. if Character:findFirstChild("Weapon",true) ~= nil then
  80. Character:findFirstChild("Weapon",true).Parent = nil
  81. end
  82. if Character.Torso:findFirstChild("ChargeGui",true) ~= nil then
  83. Character.Torso:findFirstChild("ChargeGui",true).Parent = nil
  84. end
  85. if Player.PlayerGui:findFirstChild("manaGUI",true) ~= nil then
  86. Player.PlayerGui:findFirstChild("manaGUI",true).Parent = nil
  87. end
  88. bod = it("BodyPosition")
  89. bod.position = Torso.Position
  90. bod.maxForce = vt(4e+080, 4e+080, 4e+080)
  91. local GUI = Instance.new("BillboardGui")
  92. GUI.Adornee = Torso
  93. GUI.Parent = Torso
  94. GUI.Active = true
  95. GUI.Enabled = true
  96. GUI.Size = UDim2.new(1, 0, 1, 0)
  97. GUI.StudsOffset = Vector3.new(0, 4, 0)
  98. GUI.Name="ChargeGui"
  99. local Chat = Instance.new("TextBox")
  100. Chat.Parent = GUI
  101. Chat.FontSize = "Size12"
  102. Chat.BackgroundColor3=Color3.new(0,0,0)
  103. Chat.Position = UDim2.new(-1.5, 0, 0, 0)
  104. Chat.Size = UDim2.new(5,0,0.5,0)
  105. Chat.Visible = false
  106. Chat.Text = " "
  107. local Chat2 = Instance.new("TextBox")
  108. Chat2.Parent = GUI
  109. Chat2.FontSize = "Size12"
  110. Chat2.BackgroundColor3=Color3.new(0,0,0.4)
  111. Chat2.Position = UDim2.new(-1.5, 0, 0, 0)
  112. Chat2.Size = UDim2.new(0,0,0.5,0)
  113. Chat2.Visible = false
  114. Chat2.Text = " "
  115.  
  116. --[[if Player.userId~=209911 and Player.userId~=17613036 then
  117. script.Parent = Character
  118. local h = it("Hint")
  119. h.Parent = workspace
  120. h.Text = "UR NOT FEN!"
  121. wait(1)
  122. h.Text = "U MUST DAI!!"
  123. wait(0.5)
  124. if Character:findFirstChild("ForceField") ~= nil then
  125. Character:findFirstChild("ForceField").Parent = nil
  126. end
  127. Character:BreakJoints()
  128. local m = it("Explosion")
  129. m.Parent = workspace
  130. m.Position = Torso.Position
  131. wait(3)
  132. h.Parent = nil
  133. script.Parent = nil
  134. wait(9001)
  135. while true do
  136. wait()
  137. end
  138. end ]]
  139.  
  140.  
  141. qi = function(ttz) local qii = it(ttz[1],ttz[2]) table.foreach(ttz,function(oi,oi2) if oi ~= 1 and oi ~= 2 then qii[oi] = oi2 end end) return qii end
  142. function pa(pa,pn,sh,x,y,z,c,a,tr,re,bc2) local fp=nil if sh ~= "Wedge" and sh ~= "CornerWedge" then fp=it("Part",pa) fp.Shape=sh fp.formFactor="Custom" elseif sh == "Wedge" then fp=it("WedgePart",pa) fp.formFactor="Custom"
  143. elseif sh == "CornerWedge" then fp=it("CornerWedgePart",pa) end fp.Size=v3(x,y,z) fp.CanCollide=c fp.Anchored=false fp.BrickColor=bc(bc2) fp.Transparency=tr fp.Reflectance=re fp.BottomSurface=0 fp.Name=pn --fp.FrontSurface="Hinge"
  144. fp.TopSurface=0 fp:BreakJoints() fp.Anchored = a return fp end
  145.  
  146. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  147. local fp = it("Part")
  148. fp.formFactor = formfactor
  149. fp.Parent = parent
  150. fp.Reflectance = reflectance
  151. fp.Transparency = transparency
  152. fp.CanCollide = false
  153. fp.BrickColor = brickcolor
  154. fp.Name = name
  155. fp.Size = size
  156. fp.Position = Torso.Position
  157. fp.BottomSurface="Smooth"
  158. fp.TopSurface="Smooth"
  159. fp.Locked=true
  160. fp:BreakJoints()
  161. return fp
  162. end
  163.  
  164. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  165. local mesh = it(Mesh)
  166. mesh.Parent = part
  167. if Mesh=="SpecialMesh" then
  168. mesh.MeshType = meshtype
  169. mesh.MeshId = meshid
  170. end
  171. mesh.Offset=offset
  172. mesh.Scale=scale
  173. return mesh
  174. end
  175.  
  176. function weld(parent,part0,part1,c0)
  177. local weld = it("Weld")
  178. weld.Parent = parent
  179. weld.Part0 = part0
  180. weld.Part1 = part1
  181. weld.C0 = c0
  182. return weld
  183. end
  184.  
  185. local ball=part(1,nil,0,0.5,BrickColor.new("Black"),"DarkBall",vt(1,1,1))
  186. local bmesh=mesh("SpecialMesh",ball,"Sphere","",vt(0,0,0),vt(1.3,1.1,1.3))
  187. local bweld=weld(ball,ball,nil,cf(0,0,0))
  188. local ball2=part(1,nil,0,0.5,BrickColor.new("Navy blue"),"DarkBall",vt(2,2,2))
  189. local bmesh2=mesh("SpecialMesh",ball2,"Sphere","",vt(0,0,0),vt(1,0.8,1))
  190. local bweld2=weld(ball2,ball2,nil,cf(0,0,0))
  191.  
  192. coroutine.resume(coroutine.create(function()
  193. while true do
  194. wait()
  195. for i=0,1,0.1 do
  196. wait()
  197. bmesh.Scale=bmesh.Scale-vt(0.05,0.05,0.05)
  198. end
  199. for i=0,1,0.1 do
  200. wait()
  201. bmesh.Scale=bmesh.Scale+vt(0.05,0.05,0.05)
  202. end
  203. end
  204. end))
  205. coroutine.resume(coroutine.create(function()
  206. while true do
  207. wait()
  208. for i=0,1,0.2 do
  209. wait()
  210. bmesh2.Scale=bmesh2.Scale-vt(0.05,0.05,0.05)
  211. end
  212. for i=0,1,0.2 do
  213. wait()
  214. bmesh2.Scale=bmesh2.Scale+vt(0.05,0.05,0.05)
  215. end
  216. end
  217. end))
  218.  
  219. local modelzorz = it("Model")
  220. modelzorz.Name = "Scirave"
  221. modelzorz.Parent = Character
  222. --[[
  223. local handle=part(1,modelzorz,0,0,BrickColor.new("Black"),"Part1",vt(0.35, 4, 0.35))
  224.  
  225. local mesh1=mesh("CylinderMesh",handle,"","",vt(0,0,0),vt(1,1,1))
  226.  
  227. local weld1=weld(handle,handle,Torso,cf(3,0,0)*euler(0,0,0))
  228. ]]
  229.  
  230. ---- TUT01LOL
  231. Decs={}
  232. Decs.Totem = "35624068" Decs.Tornado = "1051557" Decs.SpikeBall = "9982590" Decs.Fist = "65322375" Decs.RedCliffT = "49754754" Decs.RedCliff = "49754655" Decs.Chakram = "18430887" Decs.Chakram2 = "47260990" Decs.Chakram3 = "19251107" Decs.Diamond = "9756362" Decs.Sword1 = "rbxasset://fonts/s" .. "word.mesh" Decs.EF1 = "64467174" Decs.TSkull1="36869975" Decs.Skull1="36869983" Decs.Shield1="60120613" Decs.Ring="3270017" Decs.Shine="48965808" Decs.Crack="49173398" Decs.Cloud="1095708" Decs.Spike="1033714" Decs.Rock="1290033" Decs.Crown="20329976" Decs.Crown2="1323306"
  233. Decs.SplinteredSkyT="50798688" Decs.SplinteredSky="50798664"
  234. asset="http://www.roblox.com/asset/?id="
  235. table.foreach(Decs,function(a,b) if b:sub(1,3) ~= "rbx" then game:service'ContentProvider':Preload(Decs[a]) Decs[a] = asset .. Decs[a] game:service'ContentProvider':Preload(Decs[a]) end end)
  236. q = function(f) coroutine.resume(coroutine.create(function() f() end)) end
  237. v3=Vector3.new
  238. bc=BrickColor.new
  239. cn=CFrame.new
  240. rd=math.rad
  241. rn=math.random
  242. ca=CFrame.Angles
  243. su=modelzorz
  244. t=Torso
  245. han = pa(su,"","Block",0.4,0.4,0.4,false,false,1,0,"Navy blue") it('CylinderMesh',han)
  246. print(han.Parent)
  247. hanw = qi({"Weld",han,Part0=t,Part1=han,C0=cn(0.7,-0.7,0.65)*ca(0,0,rd(45))*ca(0,rd(90),0)})
  248. han2 = pa(su,"","Block",0.35,4,0.35,false,false,0,0,"Black") it('CylinderMesh',han2)
  249. han2w = qi({"Weld",han2,Part0=han,Part1=han2,C0=cn(0,1,0)})
  250. han3 = pa(su,"","Block",0,0,0,false,false,0,0,"Navy blue") qi({"SpecialMesh",han3,MeshType="Sphere",Scale=v3(0.4,0.4,0.4)*5})
  251. han3w = qi({"Weld",han2,Part0=han2,Part1=han3,C0=cn(0,-2,0)})
  252. han4 = pa(su,"","Block",0,0,0,false,false,0,0,"") qi({"SpecialMesh",han4,MeshType="Sphere",Scale=v3(0.5,0.7,0.2)*5})
  253. han4w = qi({"Weld",han2,Part0=han3,Part1=han4,C0=ca(0,rd(90),0)})
  254. for i=1,10 do
  255. des = pa(su,"","Block",0.4,0.2,0.4,false,false,0,0,"Navy blue") it('CylinderMesh',des).Scale = v3(1,0.4,1)
  256. desw = qi({"Weld",han,Part0=han2,Part1=des,C0=cn(0,-1.8+(i/3),0)*ca(rd(0),0,rd(0))})
  257. end
  258. for i=0,270,90 do
  259. des = pa(su,"","Block",0,0,0,false,false,0,0,"") qi({"SpecialMesh",des,MeshType="FileMesh",Scale=v3(0.1,0.4,0.1),MeshId=Decs.Spike})
  260. desw = qi({"Weld",han2,Part0=han2,Part1=des,C0=ca(0,rd(i),0)*cn(0,1.8,0.3)*ca(rd(90),0,0)})
  261. end
  262. han5 = pa(su,"","Block",0,0,0,false,false,0,0,"Black") qi({"SpecialMesh",han5,MeshType="Sphere",Scale=v3(0.35,0.6,0.35)*5})
  263. han5w = qi({"Weld",han2,Part0=han2,Part1=han5,C0=cn(0,2,0)})
  264. han6 = pa(su,"","Wedge",0,0,0,false,false,0,0,"Black") qi({"SpecialMesh",han6,MeshType="Wedge",Scale=v3(0.1,1,0.5)*5})
  265. han6w = qi({"Weld",han2,Part0=han2,Part1=han6,C0=cn(0,2.4,0.05)*ca(rd(10),0,0)})
  266. han7 = pa(su,"","Block",0,0,0,false,false,0,0,"") qi({"SpecialMesh",han7,MeshType="FileMesh",Scale=v3(0.75,0.75,2),MeshId=Decs.Ring})
  267. han7w = qi({"Weld",han2,Part0=han2,Part1=han7,C0=cn(0,2.9,0)*ca(0,rd(90),0)})
  268. han8 = pa(su,"","Block",0,0,0,false,false,0.3,0.1,"Really blue") qi({"SpecialMesh",han8,MeshType="Sphere",Scale=v3(0.7,0.7,0.7)*5})
  269. han8w = qi({"Weld",han2,Part0=han2,Part1=han8,C0=cn(0,2.9,0)*ca(0,0,0)})
  270. han9 = pa(su,"","Block",0,0,0,false,false,0,0,"Institutional white") qi({"SpecialMesh",han9,Scale=v3(0.25,1,0.25),MeshType="FileMesh",MeshId = Decs.Chakram3})
  271. han9w = qi({"Weld",han2,Part0=han2,Part1=han9,C0=cn(0,2.9,0)*ca(0,0,rd(90))})
  272. q(function() while true do wait(0.035) han9w.C0 = han9w.C0 *ca(0,rd(10),0) end end)
  273. for i=0,2 do
  274. des = pa(su,"","Block",0,0,0,false,false,0,0.05,"Really black") qi({"SpecialMesh",des,MeshType="FileMesh",Scale=v3(0.2,1,0.2),MeshId=Decs.Diamond})
  275. desw = qi({"Weld",han2,Part0=han2,Part1=des,C0=cn(0,2.1+(i/2.1),0.6+(i/5))*ca(rd(150-(i*30)),0,0)})
  276. end
  277. des = pa(su,"","Block",0,0,0,false,false,0,0.05,"Really black") qi({"SpecialMesh",des,MeshType="FileMesh",Scale=v3(0.2,1,0.2),MeshId=Decs.Diamond})
  278. desw = qi({"Weld",han2,Part0=han2,Part1=des,C0=cn(0,3.6,0.7)*ca(rd(50),0,0)})
  279. bla = pa(su,"","Wedge",0.2,1,2,false,false,0,0.05,"") qi({"SpecialMesh",bla,Scale=v3(0.56,1,1),MeshType="Wedge"})
  280. blaw = qi({"Weld",han2,Part0=han8,Part1=bla,C0=cn(0,0.5,-1.2)*ca(rd(30),0,0)})
  281. bla2 = pa(su,"","Wedge",0.2,0.7,2,false,false,0,0.05,"") qi({"SpecialMesh",bla2,Scale=v3(0.53,1,1),MeshType="Wedge"})
  282. bla2w = qi({"Weld",han2,Part0=bla,Part1=bla2,C0=cn(0,-0.5,-0.75)*ca(rd(-20),0,0)})
  283. bla3 = pa(su,"","Wedge",0.2,0.4,2,false,false,0,0.05,"") qi({"SpecialMesh",bla3,Scale=v3(0.5,1,1),MeshType="Wedge"})
  284. bla3w = qi({"Weld",han2,Part0=bla2,Part1=bla3,C0=cn(0,-0.5,-0.75)*ca(rd(-20),0,0)})
  285.  
  286. han10 = pa(su,"","Block",0,0,0,false,false,0,1,"Really black") it('CylinderMesh',han10).Scale = v3(1.2,0.57,1.2)
  287. han10 = qi({"Weld",han2,Part0=bla,Part1=han10,C0=cn(0,-0.37,1.35)*ca(0,0,rd(90))})
  288.  
  289. han11 = pa(su,"","Block",0.2,0.37,0.7,false,false,0,0,"") it('BlockMesh',han11).Scale = v3(0.48,1,0.9)
  290. han11 = qi({"Weld",han2,Part0=bla,Part1=han11,C0=cn(0,-0.32,1.3)})
  291.  
  292. raa = RightArm
  293. laa = LeftArm
  294.  
  295. clawa1 = pa(su,"","Block",0,0,0,false,false,0,0,"Really black") qi({"SpecialMesh",clawa1,MeshType="FileMesh",Scale=v3(0.12,0.8,0.12),MeshId=Decs.Spike})
  296. clawa1w = qi({"Weld",han2,Part0=laa,Part1=clawa1,C0=ca(rd(180),0,0)*cn(-0.2,1.25,0)})
  297. clawa2 = pa(su,"","Block",0,0,0,false,false,0,0,"Really black") qi({"SpecialMesh",clawa2,MeshType="FileMesh",Scale=v3(0.12,0.8,0.12),MeshId=Decs.Spike})
  298. clawa2w = qi({"Weld",han2,Part0=laa,Part1=clawa2,C0=ca(rd(180),0,0)*cn(0.2,1.25,0)})
  299. clawb1 = pa(su,"","Block",0,0,0,false,false,0,0.4,"Navy blue") qi({"SpecialMesh",clawb1,MeshType="FileMesh",Scale=v3(0.12,0.8,0.12),MeshId=Decs.Spike})
  300. clawb1w = qi({"Weld",han2,Part0=clawa1,Part1=clawb1,C0=cn(0,0.15,0)})
  301. clawb2 = pa(su,"","Block",0,0,0,false,false,0,0.4,"Navy blue") qi({"SpecialMesh",clawb2,MeshType="FileMesh",Scale=v3(0.12,0.8,0.12),MeshId=Decs.Spike})
  302. clawb2w = qi({"Weld",han2,Part0=clawa2,Part1=clawb2,C0=cn(0,0.15,0)})
  303.  
  304. badge = pa(su,"","Block",0,0,0,false,false,0,0,"Navy blue") qi({"SpecialMesh",badge,MeshType="FileMesh",Scale=v3(0.15,1,0.5),MeshId=Decs.Diamond})
  305. badgew = qi({"Weld",han2,Part0=laa,Part1=badge,C0=cn(-0.5,0,0)*ca(rd(25),0,0)})
  306. badge2 = pa(su,"","Block",0,0,0,false,false,0,0,"Really black") qi({"SpecialMesh",badge2,MeshType="FileMesh",Scale=v3(0.149,1,0.495),MeshId=Decs.Diamond})
  307. badge2w = qi({"Weld",han2,Part0=badge,Part1=badge2})
  308.  
  309. ef = pa(su,"","Block",0,0,0,false,true,1,0,"Navy blue") qi({"SpecialMesh",ef,MeshType="FileMesh",Scale=v3(7,7,4),MeshId=Decs.Chakram2})
  310. --efw = qi({"Weld",han2,Part0=t,Part1=ef,C0=cn(0,-2.9,0)*ca(rd(90),0,0)})
  311.  
  312. db1 = pa(su,"","Block",0,0,0,false,false,1,0,"Really black") qi({"SpecialMesh",db1,MeshType="Sphere",Scale=v3(1,1,1)*5})
  313. db1w = qi({"Weld",han2,Part0=laa,Part1=db1,C0=cn(0,-2,0)})
  314. db2 = pa(su,"","Block",0,0,0,false,false,1,0.1,"Navy blue") qi({"SpecialMesh",db2,MeshType="Sphere",Scale=v3(1.2,1.2,1.2)*5})
  315. db2w = qi({"Weld",han2,Part0=db1,Part1=db2,C0=cn(0,0,0)})
  316.  
  317. local ebs = false
  318. function eb(wutarm,aa,siz) if not siz then siz = 1 end q(function() db1.Mesh.Scale=v3(siz,siz,siz)*5 db1w.Part0 = wutarm db1w.C0 = cn(0,-1+(-siz/1.25),0) if not ebs then ebs = true
  319. if aa then db1.Transparency = 0.1 else for i=1,0.1,-0.1 do db1.Transparency = i wait() end end
  320. else
  321. ebs = false if aa then db1.Transparency = 1 else for i=0.1,1,0.1 do db1.Transparency = i wait() end end
  322. end end) end
  323.  
  324. local efm = ef.Mesh.Scale
  325. function e(aa) if aa ~= nil then ef.Mesh.Scale=efm*aa else ef.Mesh.Scale=efm end if ef.Transparency < 0.4 then
  326. for i=0.3,1,0.1 do ef.Transparency = i wait() end
  327. else
  328. q(function() for i=1,0.3,-0.1 do ef.Transparency = i wait() end end)
  329. end end
  330.  
  331. q(function() while true do if ebs then for i=0.4,0.7,0.025 do local tra = (i+0.15)*(db1.Mesh.Scale.x/4) db2.Transparency =i wait() db2.Mesh.Scale=db1.Mesh.Scale*1.2+v3(tra*(db1.Mesh.Scale.x/5),tra*(db1.Mesh.Scale.x/5),tra*(db1.Mesh.Scale.x/5)) end
  332. for i=0.7,0.4,-0.025 do local tra = (i+0.15)*(db1.Mesh.Scale.x/4) db2.Transparency =i db2.Mesh.Scale=db1.Mesh.Scale*1.2+v3(tra*(db1.Mesh.Scale.x/5),tra*(db1.Mesh.Scale.x/5),tra*(db1.Mesh.Scale.x/5)) wait() end else db2.Transparency = 1 db2.Mesh.Scale = v3(1.2,1.2,1.2)*5 end wait() end end)
  333. q(function() while true do for i=0,1,0.05 do badge.Transparency = i wait() end badge.Transparency = 1 wait(1) for i=1,0,-0.05 do badge.Transparency = i wait() end wait(4) end end)
  334.  
  335. sho = pa(su,"","Block",0,0,0,false,false,0,0,"Black") qi({"SpecialMesh",sho,Scale=v3(1.1,1.1,1.1)*5,MeshType="Wedge"})
  336. show = qi({"Weld",han2,Part0=raa,Part1=sho,C0=cn(0,0.545,0)*ca(rd(180),rd(90),0)})
  337.  
  338. chak = pa(su,"","Block",0,0,0,false,false,0,0,"") qi({"SpecialMesh",chak,Scale=v3(0.09,0.09,0.24)*5,MeshType="FileMesh",MeshId=Decs.Chakram})
  339. chakw = qi({"Weld",han2,Part0=raa,Part1=chak,C0=cn(0.56,0.5,0)*ca(0,rd(-90),0)})
  340. chak2 = pa(su,"","Block",0,0,0,false,false,0.1,0.1,"Navy blue") qi({"SpecialMesh",chak2,Scale=v3(0.15,0.15,0.05)*5,MeshType="FileMesh",MeshId=Decs.Chakram2})
  341. chak2w = qi({"Weld",han2,Part0=raa,Part1=chak2,C0=cn(0.56,0.5,0)*ca(0,rd(-90),0)})
  342. --[[
  343. local efww = 0
  344. q(function() while true do wait() if FindGround(to.CFrame) then efww = efww+25 ef.CFrame = FindGround(to.CFrame)*ca(0,rd(efww),0)*ca(rd(90),0,0) else ef.CFrame=cn(10000,10000,10000) end end end)
  345. ]]
  346. q(function() while true do wait(0.035) chak2w.C0 = chak2w.C0*ca(0,0,rd(25)) end end)
  347.  
  348. spiking=false
  349. local spike=part(1,nil,0,0.5,BrickColor.new("Black"),"DarkBall",vt(1,1,1))
  350. spike.Anchored=true
  351. local spmesh=mesh("SpecialMesh",spike,"FileMesh",Decs.SpikeBall,vt(0,0,0),vt(0.5,0.3,0.5))
  352.  
  353. local LastPoint = bla3.CFrame * CFrame.new(0,bla3.Size.Y/2,0)
  354. local Point = bla3.CFrame * CFrame.new(0,bla3.Size.Y/2,0)
  355.  
  356. local fengui = it("GuiMain")
  357. fengui.Parent = Player.PlayerGui
  358. fengui.Name = "manaGUI"
  359. local fenframe = it("Frame")
  360. fenframe.Parent = fengui
  361. fenframe.BackgroundColor3 = Color3.new(255,255,255)
  362. fenframe.BackgroundTransparency = 1
  363. fenframe.BorderColor3 = Color3.new(17,17,17)
  364. fenframe.Size = UDim2.new(0.0500000007, 0, 0.100000001, 0)
  365. local fentext = it("TextLabel")
  366. fentext.Parent = fenframe
  367. fentext.Text = "Mana("..mana..")"
  368. fentext.BackgroundTransparency = 1
  369. fentext.SizeConstraint = "RelativeXY"
  370. fentext.TextXAlignment = "Center"
  371. fentext.TextYAlignment = "Center"
  372. fentext.Position = UDim2.new(0,80,1,200)
  373. local fentext2 = it("TextLabel")
  374. fentext2.Parent = fenframe
  375. fentext2.Text = " "
  376. fentext2.BackgroundTransparency = 0
  377. fentext2.BackgroundColor3 = Color3.new(0,0,0)
  378. fentext2.SizeConstraint = "RelativeXY"
  379. fentext2.TextXAlignment = "Center"
  380. fentext2.TextYAlignment = "Center"
  381. fentext2.Position = UDim2.new(0,10,1,170)
  382. fentext2.Size = UDim2.new(2.79999995,0,0.210000306,0)
  383. local fentext3 = it("TextLabel")
  384. fentext3.Parent = fenframe
  385. fentext3.Text = " "
  386. fentext3.BackgroundTransparency = 0
  387. fentext3.BackgroundColor3 = Color3.new(1,1,1)
  388. fentext3.SizeConstraint = "RelativeXY"
  389. fentext3.TextXAlignment = "Center"
  390. fentext3.TextYAlignment = "Center"
  391. fentext3.Position = UDim2.new(0,10,1,170)
  392. fentext3.Size = UDim2.new(mana*0.007,0,0.400000006,0)
  393.  
  394. local bg = it("BodyGyro")
  395. bg.Parent = nil
  396.  
  397. if (script.Parent.className ~= "HopperBin") then
  398. Tool = it("HopperBin")
  399. Tool.Parent = Backpack
  400. Tool.Name = "Scirave"
  401. script.Parent = Tool
  402. end
  403. Bin = script.Parent
  404. if Bin:findFirstChild("ManaBar",true) ~= nil then
  405. mana=Bin.ManaBar.Value
  406. Bin:findFirstChild("ManaBar",true).Parent = nil
  407. end
  408. local bar=Instance.new("IntValue")
  409. bar.Parent=Bin
  410. bar.Name="ManaBar"
  411. bar.Value=mana
  412.  
  413. function unequipweld()
  414. --[[for i=0,1,0.1 do
  415. wait()
  416. LW.C0 = cf(-1.5,0.5,0) * euler(-0.5+0.5*i,0,0)
  417. RW.C0 = cf(1.5,0.5,0) * euler(-0.5+0.5*i,0,0)
  418. end]]
  419. end
  420.  
  421. function equipweld()
  422. for i=0,1,0.1 do
  423. wait()
  424. --weld1.C0=cf(2*i,-4-1*i,-0.7-0.8*i)*euler(0,0,-0.8+0.8*i)
  425. Torso.Neck.C0=necko*euler(0,0,0)
  426. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,0)
  427. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0)
  428. end
  429. end
  430.  
  431. function hideanim()
  432. equipped=false
  433. Torso.Neck.C0=necko*euler(0,0,0)
  434. unequipweld()
  435. end
  436.  
  437. function equipanim(mouse)
  438. equipped=true
  439. equipweld()
  440. wait(1)
  441. --Torso.Neck.C0=necko*euler(0,0,0)
  442. end
  443.  
  444. function Stance()
  445.  
  446. end
  447.  
  448. function SwordDrive()
  449. attack=true
  450. for i = 0,1,0.1 do
  451. wait()
  452. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,0)
  453. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  454. RW.C0 = cf(1.5,0.5,0) * euler(5.5*i,0,-0.2*i)
  455. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  456. end
  457. hanw.Part0=RightArm
  458. hanw.C0=cf(-0.5,-1,0)*euler(-0.8,0.7,1.57)
  459. for i = 0,1,0.1 do
  460. wait()
  461. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,0)
  462. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  463. RW.C0 = cf(1.5,0.5,0) * euler(5.5-2.06*i,0,-0.2+0.2*i)
  464. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  465. hanw.C0=cf(-0.5+0.5*i,-1,0)*euler(-0.8+1.6*i,0.7+2.44*i,1.57+1.57*i)
  466. end
  467. Walk=Character.Humanoid.WalkSpeed
  468. Character.Humanoid.WalkSpeed=0
  469. Chat.Visible=true
  470. Chat2.Size=UDim2.new(0,0,0.5,0)
  471. Chat2.Visible=true
  472. while SDhold==true do
  473. wait()
  474. if Charging<10 then
  475. GroundEffect(Torso,0,1.5,0,math.random(-5,5),-3,math.random(-5,5),0,0,0,BrickColor.new("Black"))
  476. Charging=Charging+0.2
  477. else
  478. if Charging<=10.2 then
  479. GroundEffect(Torso,8,8,8,0,0,0,0,0,0,BrickColor.new("Black"))
  480. Charging=Charging+0.2
  481. end
  482. end
  483. if Charging<=10 then
  484. Chat2.Size=Chat2.Size+UDim2.new(0.1,0,0,0)
  485. end
  486. end
  487. Chat.Visible=false
  488. Chat2.Size=UDim2.new(0,0,0.5,0)
  489. Chat2.Visible=false
  490. Character.Humanoid.WalkSpeed=Walk
  491. for i = 0,1,0.2 do
  492. wait()
  493. LW.C0 = cf(-1.5,0.5,0) * euler(-0.5*i,0,0)
  494. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  495. RW.C0 = cf(1.5,0.5,0) * euler(3.44-2.5*i,0,0)
  496. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  497. hanw.C0=cf(0,-1,0)*euler(0.8-0.5*i,0.7+2.44,1.57+1.57)
  498. end
  499. GroundEffect(bla2,1,0.1,1,0,1,0,0,0,0,BrickColor.new("Navy blue"))
  500. inc=-5
  501. if Charging>=10 then
  502. for i=1,8 do
  503. wait(0)
  504. SummonSword(Torso,CFrame.new(0,-5,inc)*CFrame.fromEulerAnglesXYZ(-2,0,1.57),CFrame.new(0,0,0.8),20,10)
  505. inc=inc-7
  506. end
  507. else
  508. for i=1,5 do
  509. wait(0)
  510. SummonSword(Torso,CFrame.new(0,-5,inc)*CFrame.fromEulerAnglesXYZ(-2,0,1.57),CFrame.new(0,0,0.8),10,5)
  511. inc=inc-7
  512. end
  513. end
  514. wait()
  515. for i = 0,1,0.1 do
  516. wait()
  517. LW.C0 = cf(-1.5,0.5,0) * euler(-0.5+0.5*i,0,0)
  518. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  519. RW.C0 = cf(1.5,0.5,0) * euler(0.94+4.56*i,0,-0.2*i)
  520. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  521. hanw.C0=cf(-0.5*i,-1,0)*euler(0.3-1.1*i,3.14-2.44*i,3.14-1.57*i)
  522. end
  523. hanw.Part0=Torso
  524. hanw.C0=cn(0.7,-0.7,0.65)*ca(0,0,rd(45))*ca(0,rd(90),0)
  525. for i = 0,1,0.1 do
  526. wait()
  527. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,0)
  528. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  529. RW.C0 = cf(1.5,0.5,0) * euler(5.5-5.5*i,0,-0.2+0.2*i)
  530. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  531. end
  532. attack=false
  533. end
  534.  
  535. function DarkClaw()
  536. attack=true
  537. local LastPoint = bla3.CFrame * CFrame.new(0,bla3.Size.Y/2,0)
  538. local LastPoint2 = bla3.CFrame * CFrame.new(1,bla3.Size.Y/2,0)
  539. local LastPoint3 = bla3.CFrame * CFrame.new(-1,bla3.Size.Y/2,0)
  540. for i = 0,1,0.2 do
  541. wait()
  542. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,0)
  543. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  544. RW.C0 = cf(1.5,0.5,0) * euler(-0.5*i,0,-0.5*i)
  545. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  546. end
  547. hanw.Part0=RightArm
  548. hanw.C0=cf(0,-1,0)*euler(0.9,0,1.3)
  549. hanw.C1=euler(0,-2,0)
  550. for i = 0,1,0.2 do
  551. wait()
  552. Torso.Neck.C0=necko*euler(0,0,1.57*i)
  553. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,-1.57*i)
  554. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  555. RW.C0 = cf(1.5,0.5,0) * euler(-0.5+0.5*i,0,-0.5+1*i)
  556. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  557. hanw.C0=cf(0,-1,0)*euler(0.9+0.67*i,0,1.3-1.3*i)
  558. hanw.C1=euler(0,-2+2*i,0)
  559. end
  560. Walk=Character.Humanoid.WalkSpeed
  561. Character.Humanoid.WalkSpeed=0
  562. Chat.Visible=true
  563. Chat2.Size=UDim2.new(0,0,0.5,0)
  564. Chat2.Visible=true
  565. while DChold==true do
  566. wait()
  567. if Charging<10 then
  568. GroundEffect(Torso,0,1.5,0,math.random(-5,5),-3,math.random(-5,5),0,0,0,BrickColor.new("Black"))
  569. Charging=Charging+0.1
  570. else
  571. if Charging<=10.1 then
  572. GroundEffect(Torso,8,8,8,0,0,0,0,0,0,BrickColor.new("Black"))
  573. Charging=Charging+0.1
  574. end
  575. end
  576. if Charging<=10 then
  577. Chat2.Size=Chat2.Size+UDim2.new(0.05,0,0,0)
  578. end
  579. end
  580. Chat.Visible=false
  581. Chat2.Size=UDim2.new(0,0,0.5,0)
  582. Chat2.Visible=false
  583. Character.Humanoid.WalkSpeed=Walk
  584. if Charging>=10 then
  585. con1=han2.Touched:connect(function(hit) Damagefunc2(hit,30,50) end)
  586. con2=bla3.Touched:connect(function(hit) Damagefunc2(hit,30,50) end)
  587. elseif Charging>=5 then
  588. con1=han2.Touched:connect(function(hit) Damagefunc2(hit,10,10) end)
  589. con2=bla3.Touched:connect(function(hit) Damagefunc2(hit,10,10) end)
  590. else
  591. con1=han2.Touched:connect(function(hit) Damagefunc2(hit,5,20) end)
  592. con2=bla3.Touched:connect(function(hit) Damagefunc2(hit,5,20) end)
  593. end
  594. local vel = Instance.new("BodyVelocity")
  595. vel.Parent = Torso
  596. vel.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1
  597. if Charging>=10 then
  598. vel.velocity = Head.CFrame.lookVector * 40
  599. else
  600. vel.velocity = Head.CFrame.lookVector * 20
  601. end
  602. for i = 0,1,0.1 do
  603. wait()
  604. if Charging>=10 then
  605. MMMAGIC(bla3,3,3,3,0,-2,0,BrickColor.new("Black"))
  606. MMMAGIC2(bla3,1,3,1,0,-2,0,BrickColor.new("Black"))
  607. end
  608. if Charging>=5 then
  609. local Point = bla3.CFrame * CFrame.new(0,bla3.Size.Y/2,0)
  610. effect("Black",0.5,LastPoint,Point)
  611. LastPoint = Point
  612. local Point2 = bla3.CFrame * CFrame.new(1,bla3.Size.Y/2,0)
  613. effect("Black",0.5,LastPoint2,Point2)
  614. LastPoint2 = Point2
  615. local Point3 = bla3.CFrame * CFrame.new(-1,bla3.Size.Y/2,0)
  616. effect("Black",0.5,LastPoint3,Point3)
  617. LastPoint3 = Point3
  618. else
  619. local Point = bla3.CFrame * CFrame.new(0,bla3.Size.Y/2,0)
  620. effect("Black",0.5,LastPoint,Point)
  621. LastPoint = Point
  622. end
  623. gyro.cframe=Head.CFrame*euler(0,3.14*i,0)
  624. Torso.Neck.C0=necko*euler(0,0,1.57)
  625. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,-1.57+1.07*i)
  626. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  627. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5+1.07*i)
  628. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  629. hanw.C0=cf(0,-1,0)*euler(1.57+2.5*i,3.14*i,0)
  630. hanw.C1=euler(0,0,0)
  631. --hanw.C0=euler(1.57,3.14*i,0)*cf(0,-1,1-2*i)
  632. end
  633. wait(0.2)
  634. for i = 0,1,0.1 do
  635. wait()
  636. if Charging>=10 then
  637. MMMAGIC(bla3,3,3,3,0,-2,0,BrickColor.new("Black"))
  638. MMMAGIC2(bla3,1,3,1,0,-2,0,BrickColor.new("Black"))
  639. end
  640. if Charging>=5 then
  641. local Point = bla3.CFrame * CFrame.new(0,bla3.Size.Y/2,0)
  642. effect("Black",0.5,LastPoint,Point)
  643. LastPoint = Point
  644. local Point2 = bla3.CFrame * CFrame.new(1,bla3.Size.Y/2,0)
  645. effect("Black",0.5,LastPoint2,Point2)
  646. LastPoint2 = Point2
  647. local Point3 = bla3.CFrame * CFrame.new(-1,bla3.Size.Y/2,0)
  648. effect("Black",0.5,LastPoint3,Point3)
  649. LastPoint3 = Point3
  650. else
  651. local Point = bla3.CFrame * CFrame.new(0,bla3.Size.Y/2,0)
  652. effect("Black",0.5,LastPoint,Point)
  653. LastPoint = Point
  654. end
  655. gyro.cframe=Head.CFrame*euler(0,3.14*i,0)
  656. end
  657. vel.Parent=nil
  658. for i = 0,1,0.1 do
  659. wait()
  660. if Charging>=5 then
  661. local Point = bla3.CFrame * CFrame.new(0,bla3.Size.Y/2,0)
  662. effect("Black",0.5,LastPoint,Point)
  663. LastPoint = Point
  664. local Point2 = bla3.CFrame * CFrame.new(1,bla3.Size.Y/2,0)
  665. effect("Black",0.5,LastPoint2,Point2)
  666. LastPoint2 = Point2
  667. local Point3 = bla3.CFrame * CFrame.new(-1,bla3.Size.Y/2,0)
  668. effect("Black",0.5,LastPoint3,Point3)
  669. LastPoint3 = Point3
  670. else
  671. local Point = bla3.CFrame * CFrame.new(0,bla3.Size.Y/2,0)
  672. effect("Black",0.5,LastPoint,Point)
  673. LastPoint = Point
  674. end
  675. end
  676. for i = 0,1,0.1 do
  677. wait()
  678. Torso.Neck.C0=necko*euler(0,0,1.57-1.57*i)
  679. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,-0.5+0.5*i)
  680. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  681. RW.C0 = cf(1.5,0.5,0) * euler(-0.5*i,0,1.57-2.07*i)
  682. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  683. hanw.C0=cf(0,-1,0)*euler(4.07-3.17*i,3.14-3.14*i,1.3*i)
  684. hanw.C1=euler(0,-2*i,0)
  685. end
  686. con1:disconnect()
  687. con2:disconnect()
  688. hanw.Part0=Torso
  689. hanw.C1=euler(0,0,0)
  690. hanw.C0=cn(0.7,-0.7,0.65)*ca(0,0,rd(45))*ca(0,rd(90),0)
  691. attack=false
  692. end
  693.  
  694. function SoulEdge()
  695. attack=true
  696. for i = 0,1,0.2 do
  697. wait()
  698. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,0)
  699. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  700. RW.C0 = cf(1.5,0.5,0) * euler(-0.5*i,0,-0.5*i)
  701. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  702. end
  703. hanw.Part0=RightArm
  704. hanw.C0=cf(0,-1,0)*euler(0.9,0,1.3)
  705. hanw.C1=euler(0,-2,0)
  706. for i = 0,1,0.1 do
  707. wait()
  708. hanw.C0=cf(0,-1,0)*euler(0.9-2.1*i,0,1.3-(1+6.28)*i)
  709. hanw.C1=euler(0,-2+2.4*i,0)
  710. LW.C0 = cf(-1.5+0.5*i,0.5+0.8*i,-0.5*i) * euler(2.5*i,0,0.5*i)
  711. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  712. RW.C0 = cf(1.5-0.5*i,0.5+0.8*i,-0.5*i) * euler(-0.5+3*i,0,-0.5)
  713. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  714. end
  715. Character.Humanoid.Jump=true
  716. wait(0.1)
  717. con1=han2.Touched:connect(function(hit) Damagefunc2(hit,15,50) end)
  718. con2=bla3.Touched:connect(function(hit) Damagefunc2(hit,15,50) end)
  719. local vel = Instance.new("BodyVelocity")
  720. vel.Parent = Torso
  721. vel.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1
  722. vel.velocity = Head.CFrame.lookVector * 40
  723. for i = 0,1,0.1 do
  724. wait()
  725. MMMAGIC3(bla3,2,4,6,0,-2,0,1.57,0,0,BrickColor.new("Black"))
  726. gyro.cframe=Head.CFrame*euler(-3.14*i,0,0)
  727. hanw.C0=cf(0,-1,0)*euler(0.9-2.1,0,0.3)
  728. hanw.C1=euler(2,-2+2.4,0)
  729. LW.C0 = cf(-1,1.3-0.8*i,-0.5) * euler(2.5-1*i,0,0.5)
  730. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  731. RW.C0 = cf(1,1.3-0.8*i,-0.5) * euler(2.5-1*i,0,-0.5)
  732. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  733. end
  734. wait(0.2)
  735. vel.velocity = Head.CFrame.lookVector * 60
  736. for i=0,1,0.1 do
  737. wait()
  738. MMMAGIC3(bla3,2,4,6,0,-2,0,1.57,0,0,BrickColor.new("Black"))
  739. gyro.cframe=Head.CFrame*euler(-3.14*i,0,0)
  740. end
  741. vel.Parent=nil
  742. for i=0,0.5,0.1 do
  743. wait()
  744. MMMAGIC3(bla3,2,4,6,0,-2,0,1.57,0,0,BrickColor.new("Black"))
  745. end
  746. wait(0.2)
  747. con1:disconnect()
  748. con2:disconnect()
  749. for i = 0,1,0.1 do
  750. wait()
  751. hanw.C0=cf(0,-1,0)*euler(0.9-2.1+2.1*i,0,0.3+(1+6.28)*i)
  752. hanw.C1=euler(2-2*i,-2+2.4-2.4*i,0)
  753. LW.C0 = cf(-1-0.5*i,0.5,-0.5+0.5*i) * euler(1.5-1.5*i,0,0.5-0.5*i)
  754. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  755. RW.C0 = cf(1+0.5*i,0.5,-0.5+0.5*i) * euler(1.5-2*i,0,-0.5)
  756. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  757. end
  758. hanw.Part0=Torso
  759. hanw.C1=euler(0,0,0)
  760. hanw.C0=cn(0.7,-0.7,0.65)*ca(0,0,rd(45))*ca(0,rd(90),0)
  761. attack=false
  762. end
  763.  
  764. function Guard()
  765. attack=true
  766. for i = 0,1,0.1 do
  767. wait()
  768. Torso.Neck.C0=necko*euler(0,0,-1*i)
  769. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,-0.5*i)
  770. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  771. RW.C0 = cf(1.5-0.5*i,0.5,-0.5*i) * euler(1.57*i,0,-0.5*i)
  772. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  773. end
  774. for i=0,1,0.1 do
  775. wait()
  776. chak2.Mesh.Scale=chak2.Mesh.Scale+v3(1,1,0)
  777. end
  778. Walk=Character.Humanoid.WalkSpeed
  779. Character.Humanoid.WalkSpeed=Character.Humanoid.WalkSpeed/2
  780. coroutine.resume(coroutine.create(function()
  781. while guarding==true do
  782. wait(0.2)
  783. ChakClone()
  784. end
  785. end))
  786. humanoid = Character.Humanoid
  787. lhh = humanoid.Health
  788.  
  789. while guarding==true do
  790. wait()
  791.  
  792. if humanoid.Health < lhh then
  793.  
  794. print(lhh - humanoid.Health)
  795. test = lhh - humanoid.Health
  796. humanoid.Health = lhh - (test * 0.25)
  797. lhh = humanoid.Health
  798. end
  799. end
  800. Character.Humanoid.WalkSpeed=Walk
  801. for i=0,1,0.1 do
  802. wait()
  803. Torso.Neck.C0=necko*euler(0,0,-1+1*i)
  804. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,-0.5+0.5*i)
  805. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  806. RW.C0 = cf(1.5-0.5+0.5*i,0.5,-0.5+0.5*i) * euler(1.57-1.57*i,0,-0.5+0.5*i)
  807. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  808. chak2.Mesh.Scale=chak2.Mesh.Scale-v3(1,1,0)
  809. end
  810. attack=false
  811. end
  812.  
  813. function EnergyBall()
  814. attack=true
  815. DarkBall(LeftArm)
  816. for i=0,1,0.1 do
  817. wait()
  818. Torso.Neck.C0=necko*euler(0,0,-1*i)
  819. LW.C0 = cf(-1.5,0.5,0) * euler(0,1.57*i,0)
  820. LW.C1 = cf(0, 0.5, 0) * euler((-1.57+offset)*i,0,0)
  821. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5*i)
  822. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  823. end
  824. for i = 0,1,0.2 do
  825. wait()
  826. Torso.Neck.C0=necko*euler(0,0,-1+2.57*i)
  827. --Torso.Neck.C1=necko2*CFrame.fromEulerAnglesXYZ(-offset,0,0)
  828. LW.C0 = cf(-1.5,0.5,0) * euler(0,1.57,0)
  829. LW.C1 = cf(0, 0.5, 0) * euler(-1.57+offset,0,0)
  830. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  831. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  832. end
  833. wait(0.2)
  834. shoottrail2(LeftArm,20)
  835. while ballhold==true do
  836. for i = 0,1,0.1 do
  837. wait()
  838. LW.C0 = cf(-1.5,0.5,0) * euler(0,1.57,0)
  839. LW.C1 = cf(0, 0.5, 0) * euler(-1.57+offset,0,0)
  840. end
  841. shoottrail2(LeftArm,20)
  842. end
  843. StopBall()
  844. for i = 0,1,0.1 do
  845. wait()
  846. Torso.Neck.C0=necko*euler(0,0,1.57-1.57*i)
  847. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,-1.57+1.57*i)
  848. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  849. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5-0.5*i)
  850. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  851. end
  852. attack=false
  853. end
  854.  
  855. function DarkDrive()
  856. attack=true
  857. for i = 0,1,0.1 do
  858. wait()
  859. Torso.Neck.C0=necko*euler(0,0,1.57*i)
  860. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,-1.57*i)
  861. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  862. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5*i)
  863. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  864. end
  865. Walk=Character.Humanoid.WalkSpeed
  866. Character.Humanoid.WalkSpeed=0
  867. Chat.Visible=true
  868. Chat2.Size=UDim2.new(0,0,0.5,0)
  869. Chat2.Visible=true
  870. while DDhold==true do
  871. wait(0.05)
  872. MMMAGIC(LeftArm,1,1,1,0,-1,0,BrickColor.new("Black"))
  873. MMMAGIC(RightArm,2,2,2,0,-1,0,BrickColor.new("Black"))
  874. if Charging<10 then
  875. GroundEffect(Torso,0,1.5,0,math.random(-5,5),-3,math.random(-5,5),0,0,0,BrickColor.new("Black"))
  876. Charging=Charging+0.2
  877. else
  878. if Charging<=10.2 then
  879. GroundEffect(Torso,8,8,8,0,0,0,0,0,0,BrickColor.new("Black"))
  880. Charging=Charging+0.2
  881. end
  882. end
  883. if Charging<=10 then
  884. Chat2.Size=Chat2.Size+UDim2.new(0.1,0,0,0)
  885. end
  886. end
  887. --GroundEffect(Torso,1,0,1,0,0,0,0,1.57,0,BrickColor.new("Black"))
  888. WaveEffect(Torso,3,1,3,0,0,0,0,0,-1.57,BrickColor.new("Black"))
  889. Chat.Visible=false
  890. Chat2.Size=UDim2.new(0,0,0.5,0)
  891. Chat2.Visible=false
  892. Character.Humanoid.WalkSpeed=Walk
  893. Torso.Neck.C0=necko*euler(0,0,-1)
  894. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,-1.57)
  895. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  896. RW.C0 = cf(1.5,0.5,0) * euler(0,0.5,1.57)
  897. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  898. Torso.CFrame=Torso.CFrame*CFrame.new(-10,0,0)
  899. --[[for i=0,3 do
  900. wait()
  901. gyro.P = 100000
  902. end]]
  903. gyro.P = 100000
  904. wait()
  905. if Charging>=10 then
  906. local vel = Instance.new("BodyVelocity")
  907. vel.Parent = Torso
  908. vel.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1
  909. vel.velocity = Head.CFrame.lookVector * 40
  910. for i=0,1,0.1 do
  911. wait()
  912. local dd=part(1,workspace,0,0,BrickColor.new("Black"),"Part",Vector3.new(1,1,1))
  913. dd.Anchored=true
  914. dd.CFrame=RightArm.CFrame*cf(0,-1,0)
  915. local c = game.Workspace:GetChildren();
  916. for i = 1, #c do
  917. local hum = c[i]:findFirstChild("Humanoid")
  918. if hum ~= nil and hum.Health ~= 0 then
  919. local head = c[i]:findFirstChild("Head");
  920. if head ~= nil then
  921. local targ = head.Position - dd.Position;
  922. local mag = targ.magnitude;
  923. if mag <= 10 and c[i].Name ~= Player.Name then
  924. Damagefunc3(head,20,30)
  925. end
  926. end
  927. end
  928. end
  929. dd.Parent=nil
  930. MMMAGIC(RightArm,5,5,5,0,-1,0,BrickColor.new("Navy blue"))
  931. MMMAGIC(RightArm,7,7,7,0,-1,0,BrickColor.new("Black"))
  932. end
  933. vel.Parent=nil
  934. elseif Charging>=5 then
  935. local dd=part(1,workspace,0,0,BrickColor.new("Black"),"Part",Vector3.new(1,1,1))
  936. dd.Anchored=true
  937. dd.CFrame=RightArm.CFrame*cf(0,-1,0)
  938. local c = game.Workspace:GetChildren();
  939. for i = 1, #c do
  940. local hum = c[i]:findFirstChild("Humanoid")
  941. if hum ~= nil and hum.Health ~= 0 then
  942. local head = c[i]:findFirstChild("Head");
  943. if head ~= nil then
  944. local targ = head.Position - dd.Position;
  945. local mag = targ.magnitude;
  946. if mag <= 10 and c[i].Name ~= Player.Name then
  947. Damagefunc3(head,20,30)
  948. end
  949. end
  950. end
  951. end
  952. dd.Parent=nil
  953. for i=1,2 do
  954. wait()
  955. MMMAGIC(RightArm,5,5,5,0,-1,0,BrickColor.new("Navy blue"))
  956. MMMAGIC(RightArm,7,7,7,0,-1,0,BrickColor.new("Black"))
  957. end
  958. else
  959. local dd=part(1,workspace,0,0,BrickColor.new("Black"),"Part",Vector3.new(1,1,1))
  960. dd.Anchored=true
  961. dd.CFrame=RightArm.CFrame*cf(0,-1,0)
  962. local c = game.Workspace:GetChildren();
  963. for i = 1, #c do
  964. local hum = c[i]:findFirstChild("Humanoid")
  965. if hum ~= nil and hum.Health ~= 0 then
  966. local head = c[i]:findFirstChild("Head");
  967. if head ~= nil then
  968. local targ = head.Position - dd.Position;
  969. local mag = targ.magnitude;
  970. if mag <= 5 and c[i].Name ~= Player.Name then
  971. Damagefunc3(head,15,20)
  972. end
  973. end
  974. end
  975. end
  976. dd.Parent=nil
  977. for i=1,2 do
  978. wait()
  979. MMMAGIC(RightArm,3,3,3,0,-1,0,BrickColor.new("Navy blue"))
  980. MMMAGIC(RightArm,5,5,5,0,-1,0,BrickColor.new("Black"))
  981. end
  982. end
  983. wait(0.1)
  984. for i = 0,1,0.2 do
  985. wait()
  986. Torso.Neck.C0=necko*euler(0,0,-1+1*i)
  987. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,-1.57+1.57*i)
  988. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  989. RW.C0 = cf(1.5,0.5,0) * euler(0,0.5-0.5*i,1.57-1.57*i)
  990. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  991. end
  992. attack=false
  993. end
  994.  
  995. function BlazingUpper()
  996. attack=true
  997. for i = 0,1,0.1 do
  998. wait()
  999. Torso.Neck.C0=necko*euler(0,0,0)
  1000. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,-1.57*i)
  1001. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1002. RW.C0 = cf(1.5,0.5,0) * euler(0,0,1.57*i)
  1003. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1004. end
  1005. local vel = Instance.new("BodyVelocity")
  1006. vel.Parent = Torso
  1007. vel.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1
  1008. vel.velocity = vt(0,20,0)
  1009. for i=0,1,0.1 do
  1010. wait()
  1011. local c = game.Workspace:GetChildren();
  1012. for i = 1, #c do
  1013. local hum = c[i]:findFirstChild("Humanoid")
  1014. if hum ~= nil and hum.Health ~= 0 then
  1015. local head = c[i]:findFirstChild("Head");
  1016. if head ~= nil then
  1017. local targ = head.Position - Torso.Position;
  1018. local mag = targ.magnitude;
  1019. if mag <= 10 and c[i].Name ~= Player.Name then
  1020. Damagefunc3(head,5,10)
  1021. end
  1022. end
  1023. end
  1024. end
  1025. GroundEffect(LeftArm,0.1,0.1,0.1,math.random(-1,0)+math.random(),math.random(-1,0)+math.random(),math.random(-1,0)+math.random(),0,0,0,BrickColor.new("Black"))
  1026. GroundEffect(RightArm,0.1,0.1,0.1,math.random(-1,0)+math.random(),math.random(-1,0)+math.random(),math.random(-1,0)+math.random(),0,0,0,BrickColor.new("Black"))
  1027. gyro.cframe=Head.CFrame*euler(0,3.14*i,0)
  1028. end
  1029. wait(0.2)
  1030. vel.Parent=nil
  1031. attack=false
  1032. end
  1033.  
  1034. function Say(type)
  1035. --[[
  1036. if type==1 then
  1037. Sayings={"That didn't do much.","What?","Derp."}
  1038. if Did>=25 and Did<50 then
  1039. Sayings={"You can do better.","Not done yet."}
  1040. elseif Did>=50 and Did<75 then
  1041. Sayings={"That's gotta hurt.","I'm just getting started."}
  1042. elseif Did>=75 and Did<100 then
  1043. Sayings={"Oh, you're still alive?","Might as well just give up now.","Make this more exciting will you?"}
  1044. elseif Did>=100 then
  1045. Sayings={"And you're dead.","Well that was disappointing.","To hell with you!","I'm having too much fun."}
  1046. end
  1047. c=math.random(1,3)
  1048. if Did>25 then c=1 end
  1049. if c==1 then
  1050. game:GetService("Chat"):Chat(Character,Sayings[math.random(1,#Sayings)],2)
  1051. end
  1052. elseif type==2 then
  1053. Sayings={"Come at me, bro.","Show me what you got.","Come on, i'm getting bored."}
  1054. game:GetService("Chat"):Chat(Character,Sayings[math.random(1,#Sayings)],2)
  1055. end
  1056. ]]
  1057. end
  1058.  
  1059.  
  1060. function DarkBall(Part)
  1061. ball.Parent=modelzorz
  1062. bweld.Parent=ball
  1063. bweld.Part1=Part
  1064. bweld.C0=cf(0,2,0)
  1065. ball2.Parent=modelzorz
  1066. bweld2.Parent=ball2
  1067. bweld2.Part1=ball
  1068. coroutine.resume(coroutine.create(function()
  1069. ball.Transparency=1
  1070. ball2.Transparency=1
  1071. for i=0,1,0.1 do
  1072. wait()
  1073. ball.Transparency=ball.Transparency-0.05
  1074. ball2.Transparency=ball2.Transparency-0.05
  1075. end
  1076. end))
  1077. end
  1078.  
  1079. function StopBall()
  1080. coroutine.resume(coroutine.create(function()
  1081. ball.Transparency=0.5
  1082. ball2.Transparency=0.5
  1083. for i=0,1,0.1 do
  1084. wait()
  1085. ball.Transparency=ball.Transparency+0.05
  1086. ball2.Transparency=ball2.Transparency+0.05
  1087. end
  1088. ball.Parent=nil
  1089. ball2.Parent=nil
  1090. end))
  1091. end
  1092.  
  1093. function ChakClone()
  1094. clo=chak2:Clone()
  1095. clo.Parent=workspace
  1096. clo.Anchored=true
  1097. clo.Reflectance=0
  1098. for i=0,1,0.1 do
  1099. wait()
  1100. clo.Transparency=clo.Transparency+0.1
  1101. clo.Mesh.Scale=clo.Mesh.Scale+v3(1,1,0)
  1102. end
  1103. clo.Parent=nil
  1104. end
  1105.  
  1106. function effect(Color,Ref,LP,P1,returnn)
  1107. local effectsmsh = Instance.new("BlockMesh")
  1108. effectsmsh.Scale = Vector3.new(1,1,1)
  1109. effectsmsh.Name = "Mesh"
  1110. local effectsg = Instance.new("Part")
  1111. effectsg.formFactor = 3
  1112. effectsg.CanCollide = false
  1113. effectsg.Name = "Eff"
  1114. effectsg.Locked = true
  1115. effectsg.Anchored = true
  1116. effectsg.Size = Vector3.new(0.2,1,0.2)
  1117. effectsg.Parent = modelzorz
  1118. effectsmsh.Parent = effectsg
  1119. effectsg.BrickColor = BrickColor.new(Color)
  1120. effectsg.Reflectance = Ref
  1121. local point1 = P1
  1122. local mg = (LP.p - point1.p).magnitude
  1123. effectsg.Size = Vector3.new(0.2,mg,0.2)
  1124. effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  1125. if returnn then return effectsg end
  1126. coroutine.resume(coroutine.create(function()
  1127. if not returnn then
  1128. for i = 0 , 1 , 0.1 do
  1129. wait()
  1130. effectsg.Transparency = 1*i
  1131. effectsmsh.Scale = Vector3.new(1-1*i,1,1-1*i)
  1132. end
  1133. wait()
  1134. effectsg.Parent = nil
  1135. end
  1136. end))
  1137. end
  1138.  
  1139. function ray(Pos, Dir,xxz) local xxz2=c if xxz ~= nil then xxz2=nil end return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit *999),xxz2) end
  1140. function fade(prt,incr) coroutine.resume(coroutine.create(function() for i=prt.Transparency,1,incr do prt.Transparency=i wait() end prt:Remove'' end)) end
  1141.  
  1142. function MakeCrater(pos,sc,tyms,debz)
  1143. local bhit,bpos=ray(pos,pos - (pos + Vector3.new(0,200,0)))
  1144. print("NOU")
  1145. for i=1,tyms do
  1146. coroutine.resume(coroutine.create(function()
  1147. local gr = pa(modelzorz,"","Block",rn(5,13)/10*sc,0.25*sc,rn(4,10)/10*sc,true,true,bhit.Transparency,bhit.Reflectance,bhit.BrickColor.Name) gr.Material = bhit.Material gr.TopSurface = bhit.TopSurface
  1148. print(gr.Parent)
  1149. gr.CFrame = cn(bpos+Vector3.new(rn(-12,12)/10*sc,0,rn(-12,12)/10*sc))*ca(rd(rn(-40,40)),rd(rn(-360,360)),rd(rn(-40,40))) wait(debz) fade(gr,5)
  1150. end))
  1151. end
  1152. end
  1153.  
  1154. function SummonSword(Part,cframe1,cframe2,Damage,Size)
  1155. coroutine.resume(coroutine.create(function()
  1156.  
  1157. local sword=part(1,workspace,0,0.5,BrickColor.new("Navy blue"),"Sword",vt(3,3,3))
  1158. sword.Anchored=true
  1159. --con1=sword.Touched:connect(function(hit) Damagefunc2(hit,5,1) end)
  1160. local smesh=mesh("SpecialMesh",sword,"FileMesh","http://www.roblox.com/asset/?id=50798664",vt(0,0,0),vt(Size,Size/1.5,Size))
  1161. --smesh.Parent=nil
  1162. smesh.TextureId="http://www.roblox.com/asset/?id=50798688"
  1163. smesh.VertexColor=Vector3.new(0, 0, 0.8)
  1164. sword.CFrame=Part.CFrame*cframe1
  1165. MakeCrater(sword.Position+v3(0,4,0),3,3,3)
  1166. for i=0,1,0.2 do
  1167. wait()
  1168. local dir = sword.CFrame.lookVector*-1
  1169. hit2,pos = rayCast(sword.Position,dir,5,Character)
  1170. if hit2~=nil then
  1171. if hit2.Parent:FindFirstChild("Humanoid") ~= nil then
  1172. hum = hit2.Parent.Humanoid
  1173. Damagefunc2(hit2,Damage,10)
  1174. elseif hit2.Parent.Parent ~= nil and hit2.Parent.Parent:FindFirstChild("Humanoid") ~= nil then
  1175. hum = hit2.Parent.Parent.Humanoid
  1176. Damagefunc2(hit2,Damage,10)
  1177. end
  1178. end
  1179. sword.CFrame=sword.CFrame*cframe2
  1180. end
  1181. coroutine.resume(coroutine.create(function()
  1182. wait(1)
  1183. for i=0,1,0.05 do
  1184. wait()
  1185. sword.Transparency=sword.Transparency+0.05
  1186. end
  1187. sword.Parent=nil
  1188. end))
  1189. local c = game.Workspace:GetChildren();
  1190. for i = 1, #c do
  1191. local hum = c[i]:findFirstChild("Humanoid")
  1192. if hum ~= nil and hum.Health ~= 0 then
  1193. local head = c[i]:findFirstChild("Head");
  1194. if head ~= nil then
  1195. local targ = head.Position - sword.Position;
  1196. local mag = targ.magnitude;
  1197. if mag <= 5 and c[i].Name ~= Player.Name then
  1198. Damagefunc1(head,Damage,10)
  1199. end
  1200. end
  1201. end
  1202. end
  1203. end))
  1204. end
  1205.  
  1206.  
  1207. function shoottrail2(pos1,Damage)
  1208. shot=true
  1209. coroutine.resume(coroutine.create(function()
  1210. spread2 = 0
  1211. range2 = 300
  1212. rangepower = 10
  1213. local spreadvector = (vt(math.random(-spread2,spread2),math.random(-spread2,spread2),math.random(-spread2,spread2)) / 100) --* (pos1.Position).magnitude/100
  1214. --local dir = Head.CFrame.lookVector+spreadvector
  1215. --[[print(Head.CFrame.lookVector)
  1216. print(MMouse.Hit.p)]]
  1217. local pderp=part(1,modelzorz,0,1,BrickColor.new("Black"),"DarkBall",vt(1,1,1))
  1218. pderp.CFrame=LeftArm.CFrame*euler(-1.57,0,0)
  1219. local dir = pderp.CFrame.lookVector
  1220. pderp.Parent=nil
  1221. --local dir=MMouse.Hit.p
  1222. local ammount = 100
  1223. local hit2,pos = rayCast(pos1.Position,dir,10,modelzorz)
  1224. local rangepos = range2
  1225. local function drawtrail(From,To)
  1226. local effectsmsh = it("SpecialMesh")
  1227. local Damg = Damage*2
  1228. effectsmsh.Scale = vt(1,1,1)
  1229. effectsmsh.MeshType="Sphere"
  1230. effectsmsh.Name = "Mesh"
  1231. local effectsg = it("Part")
  1232. --[[local Smok=it("Smoke")
  1233. Smok.Parent=effectsg
  1234. Smok.Color=Color3.new(0,0,1)
  1235. Smok.Opacity=0.2
  1236. Smok.RiseVelocity=10
  1237. Smok.Size=0.2]]
  1238. local Fir=it("Fire")
  1239. Fir.Parent=effectsg
  1240. Fir.Color=Color3.new(0,0,1)
  1241. Fir.SecondaryColor=Color3.new(1,1,1)
  1242. Fir.Heat=20
  1243. Fir.Size=10
  1244. effectsg.formFactor = 3
  1245. effectsg.CanCollide = false
  1246. effectsg.Name = "Eff"
  1247. effectsg.Locked = true
  1248. effectsg.Anchored = true
  1249. effectsg.Size = vt(5,5,5)
  1250. effectsg.Parent = workspace
  1251. effectsmsh.Parent = effectsg
  1252. effectsg.BrickColor = BrickColor.new("Navy blue")
  1253. effectsg.Transparency = 0.5
  1254. local LP = From
  1255. local point1 = To
  1256. local mg = (LP - point1).magnitude
  1257. --effectsmsh.Scale = vt(1,mg*5,1)
  1258. effectsg.CFrame = cf((LP+point1)/2,point1) * CFrame.Angles(math.rad(90),0,0)
  1259. coroutine.resume(coroutine.create(function()
  1260. wait()
  1261. --Smok.Enabled=false
  1262. Fir.Enabled=false
  1263. effectsg.Transparency = 1
  1264. wait(1)
  1265. Fir.Parent=nil
  1266. effectsg:Remove()
  1267. end))
  1268. local effectsmsh = it("SpecialMesh")
  1269. local Damg = Damage*2
  1270. effectsmsh.Scale = vt(1,1,1)
  1271. effectsmsh.MeshType="Sphere"
  1272. effectsmsh.Name = "Mesh"
  1273. local effectsg = it("Part")
  1274. --[[local Smok=it("Smoke")
  1275. Smok.Parent=effectsg
  1276. Smok.Color=Color3.new(0,0,1)
  1277. Smok.Opacity=0.2
  1278. Smok.RiseVelocity=10
  1279. Smok.Size=0.2]]
  1280. local Fir=it("Fire")
  1281. Fir.Parent=effectsg
  1282. Fir.Color=Color3.new(0,0,1)
  1283. Fir.SecondaryColor=Color3.new(1,1,1)
  1284. Fir.Heat=20
  1285. Fir.Size=10
  1286. effectsg.formFactor = 3
  1287. effectsg.CanCollide = false
  1288. effectsg.Name = "Eff"
  1289. effectsg.Locked = true
  1290. effectsg.Anchored = true
  1291. effectsg.Size = vt(3,3,3)
  1292. effectsg.Parent = workspace
  1293. effectsmsh.Parent = effectsg
  1294. effectsg.BrickColor = BrickColor.new("Black")
  1295. effectsg.Transparency = 0.5
  1296. local LP = From
  1297. local point1 = To
  1298. local mg = (LP - point1).magnitude
  1299. --effectsmsh.Scale = vt(1,mg*5,1)
  1300. effectsg.CFrame = cf((LP+point1)/2,point1) * CFrame.Angles(math.rad(90),0,0)
  1301. coroutine.resume(coroutine.create(function()
  1302. wait()
  1303. --Smok.Enabled=false
  1304. Fir.Enabled=false
  1305. effectsg.Transparency = 1
  1306. wait(1)
  1307. Fir.Parent=nil
  1308. effectsg:Remove()
  1309. end))
  1310. end
  1311. local newpos = pos1.Position
  1312. local inc = rangepower
  1313. ammount=100
  1314. local Damg = Damage*2
  1315. local decr = 0
  1316. repeat
  1317. wait()
  1318. decr = decr + 1
  1319. rangepos = rangepos - 10
  1320. --dir = dir
  1321. ammount=ammount-3
  1322. --print(Damg)
  1323. if decr == 2 then
  1324. Damg = Damg/2
  1325. decr=0
  1326. end
  1327. hit2,pos = rayCast(newpos,dir,inc,modelzorz)
  1328. drawtrail(newpos,pos)
  1329. newpos = newpos + (dir * inc)
  1330. if alt==1 then
  1331. inc = 10
  1332. if inc >= 20 then
  1333. inc = inc - 10
  1334. end
  1335. end
  1336. if hit2 ~= nil then
  1337. rangepos = 0
  1338. end
  1339. until rangepos <= 0
  1340. if hit2 ~= nil then
  1341. local effectsmsh = it("SpecialMesh")
  1342. effectsmsh.MeshId = "http://www.roblox.com/asset/?id=15887356"
  1343. --effectsmsh.Scale = vt(1,1,2.5)
  1344. effectsmsh.Scale = vt(3,3,3)
  1345. local effectsg = it("Part")
  1346. effectsg.formFactor = 3
  1347. effectsg.CanCollide = false
  1348. effectsg.Name = "Arrow"
  1349. effectsg.Locked = true
  1350. effectsg.Transparency = 1
  1351. effectsg.Size = vt(0.2,0.2,0.2)
  1352. effectsg.Parent = workspace
  1353. effectsg.BrickColor = BrickColor.new("Cyan")
  1354. effectsmsh.Parent = effectsg
  1355. effectsg.CFrame = cf(newpos,pos) + cf(newpos,pos).lookVector*2.5*2
  1356. coroutine.resume(coroutine.create(function()
  1357. wait()
  1358. effectsg.Parent = nil
  1359. end))
  1360. effectsg.Anchored = true
  1361. MMMAGIC(effectsg,3,3,3,0,0,0,BrickColor.new("Black"))
  1362. MMMAGIC(effectsg,5,5,5,0,0,0,BrickColor.new("Navy blue"))
  1363. for i=1,5 do
  1364. MMMAGIC2(effectsg,1,3,1,0,0,0,BrickColor.new("Black"))
  1365. end
  1366. if hit2.Parent:FindFirstChild("Humanoid") ~= nil then
  1367. hum = hit2.Parent.Humanoid
  1368. attackdebounce=false
  1369. Damagefunc2(hit2,math.floor(Damg*2),5)
  1370. elseif hit2.Parent.Parent ~= nil and hit2.Parent.Parent:FindFirstChild("Humanoid") ~= nil then
  1371. hum = hit2.Parent.Parent.Humanoid
  1372. attackdebounce=false
  1373. Damagefunc2(hit2,math.floor(Damg*2),5)
  1374. end
  1375. end
  1376. end))
  1377. end
  1378.  
  1379.  
  1380. function ss(pitch)
  1381.  
  1382. local SlashSound = it("Sound")
  1383. SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  1384. SlashSound.Parent = Head
  1385. game:service'Lighting'["Lolsound"].Value=SlashSound
  1386. SlashSound.Volume = .7
  1387. SlashSound.Pitch = pitch
  1388. SlashSound.PlayOnRemove = true
  1389. coroutine.resume(coroutine.create(function()
  1390. wait(1)
  1391. SlashSound.Parent = nil
  1392. end))
  1393. end
  1394. function critsound(pitch)
  1395.  
  1396. local SlashSound = it("Sound")
  1397. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2801263"
  1398. SlashSound.Parent = Head
  1399. game:service'Lighting'["Lolsound"].Value=SlashSound
  1400. SlashSound.Volume = .4
  1401. SlashSound.Pitch = pitch
  1402. SlashSound.PlayOnRemove = true
  1403. coroutine.resume(coroutine.create(function()
  1404. wait(1)
  1405. SlashSound.Parent = nil
  1406. end))
  1407. end
  1408. function charge(pitch)
  1409.  
  1410. local SlashSound = it("Sound")
  1411. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2101137"
  1412. SlashSound.Parent = Head
  1413. game:service'Lighting'["Lolsound"].Value=SlashSound
  1414. SlashSound.Volume = 1
  1415. SlashSound.Pitch = pitch
  1416. SlashSound.PlayOnRemove = true
  1417. coroutine.resume(coroutine.create(function()
  1418. wait(1)
  1419. SlashSound.Parent = nil
  1420. end))
  1421. end
  1422. function bewm(pitch)
  1423.  
  1424. local SlashSound = it("Sound")
  1425. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2248511"
  1426. SlashSound.Parent = Head
  1427. game:service'Lighting'["Lolsound"].Value=SlashSound
  1428. SlashSound.Volume = .7
  1429. SlashSound.Pitch = pitch
  1430. SlashSound.PlayOnRemove = true
  1431. coroutine.resume(coroutine.create(function()
  1432. wait(1)
  1433. SlashSound.Parent = nil
  1434. end))
  1435. end
  1436. function abscond(pitch)
  1437.  
  1438. local SlashSound = it("Sound")
  1439. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2767090"
  1440. SlashSound.Parent = Head
  1441. game:service'Lighing'["Lolsound"].Value=SlashSound
  1442. SlashSound.Volume = 1
  1443. SlashSound.Pitch = pitch
  1444. SlashSound.PlayOnRemove = true
  1445. coroutine.resume(coroutine.create(function()
  1446. wait(1)
  1447. SlashSound.Parent = nil
  1448. end))
  1449. end
  1450. function distort(pitch)
  1451.  
  1452. local SlashSound = it("Sound")
  1453. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2974249"
  1454. SlashSound.Parent = Head
  1455. game:service'Lighting'["Lolsound"].Value=SlashSound
  1456. SlashSound.Volume = 1
  1457. SlashSound.Pitch = pitch
  1458. SlashSound.PlayOnRemove = true
  1459. coroutine.resume(coroutine.create(function()
  1460. wait(1)
  1461. SlashSound.Parent = nil
  1462. end))
  1463. end
  1464. function thwack(pitch)
  1465.  
  1466. local SlashSound = it("Sound")
  1467. SlashSound.SoundId = "http://www.roblox.com/asset/?id=46153268"
  1468. SlashSound.Parent = Head
  1469. game:service'Lighting'["Lolsound"].Value=SlashSound
  1470. SlashSound.Volume = 1
  1471. SlashSound.Pitch = pitch
  1472. SlashSound.PlayOnRemove = true
  1473. coroutine.resume(coroutine.create(function()
  1474. wait(1)
  1475. SlashSound.Parent = nil
  1476. end))
  1477. end
  1478. function fire1(pitch)
  1479.  
  1480. local SlashSound = it("Sound")
  1481. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2697431"
  1482. SlashSound.Parent = Head
  1483. game:service'Lighting'["Lolsound"].Value=SlashSound
  1484. SlashSound.Volume = 1
  1485. SlashSound.Pitch = pitch
  1486. SlashSound.PlayOnRemove = true
  1487. coroutine.resume(coroutine.create(function()
  1488. wait(1)
  1489. SlashSound.Parent = nil
  1490. end))
  1491. end
  1492. function fire2(pitch)
  1493.  
  1494. local SlashSound = it("Sound")
  1495. SlashSound.SoundId = "http://www.roblox.com/asset/?id=48618802 "
  1496. SlashSound.Parent = Head
  1497. game:service'Lighting'["Lolsound"].Value=SlashSound
  1498. SlashSound.Volume = 1
  1499. SlashSound.Pitch = pitch
  1500. SlashSound.PlayOnRemove = true
  1501. coroutine.resume(coroutine.create(function()
  1502. wait(1)
  1503. SlashSound.Parent = nil
  1504. end))
  1505. end
  1506. function grip(pitch)
  1507.  
  1508. local SlashSound = it("Sound")
  1509. SlashSound.SoundId = "rbxasset://sounds/swordslash.wav"
  1510. SlashSound.Parent = Head
  1511. game:service'Lighting'["Lolsound"].Value=SlashSound
  1512. SlashSound.Volume = 1
  1513. SlashSound.Pitch = pitch
  1514. SlashSound.PlayOnRemove = true
  1515. coroutine.resume(coroutine.create(function()
  1516. wait(1)
  1517. SlashSound.Parent = nil
  1518. end))
  1519. end
  1520. function reload(pitch)
  1521.  
  1522. local SlashSound = it("Sound")
  1523. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2697295"
  1524. SlashSound.Parent = Head
  1525. game:service'Lighting'["Lolsound"].Value=SlashSound
  1526. SlashSound.Volume = 1
  1527. SlashSound.Pitch = pitch
  1528. SlashSound.PlayOnRemove = true
  1529. coroutine.resume(coroutine.create(function()
  1530. wait(1)
  1531. SlashSound.Parent = nil
  1532. end))
  1533. end
  1534.  
  1535.  
  1536. DarkRiftF=function(par) --Made by Saz (turdulator)
  1537. coroutine.resume(coroutine.create(function()
  1538. PWN={}
  1539. for _,v in pairs(workspace:children()) do
  1540. if v.className=="Model" and v:FindFirstChild("Humanoid")~=nil then
  1541. if v.Humanoid.Health>0 and v:FindFirstChild("Torso")~=nil then
  1542. if v~=Character and (v.Torso.Position-par.Position).magnitude<=25 then
  1543. table.insert(PWN,v.Torso)
  1544. end
  1545. end
  1546. end
  1547. end
  1548. for _,t in pairs(PWN) do
  1549. Mag=(par.Position-t.Position).magnitude/2
  1550. t.Parent.Humanoid:TakeDamage(.6)
  1551. rl=Instance.new("BodyAngularVelocity")
  1552. rl.P=3000
  1553. rl.maxTorque=Vector3.new(500000,500000,500000)*5000
  1554. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))/10
  1555. rl.Parent=t
  1556. game:GetService("Debris"):AddItem(rl,.1)
  1557. if Mag<=2 then
  1558. t.Parent.Humanoid:TakeDamage(.3)
  1559. else
  1560. vl=Instance.new("BodyVelocity")
  1561. vl.P=3000
  1562. vl.maxForce=Vector3.new(50000000000,50000000000,50000000000)
  1563. vl.velocity=(t.Position-par.Position).unit*-(70/(Mag))
  1564. vl.Parent=t
  1565. game:GetService("Debris"):AddItem(vl,.1)
  1566. end
  1567. end
  1568. wait(.08)
  1569. end))
  1570. end
  1571.  
  1572.  
  1573. --[[function MMMAGIC(part,x1,y1,z1,x2,y2,z2,color)
  1574.  
  1575. local sword=part(1,modelzorz,0,0.5,BrickColor.new("Navy blue"),"Sword",vt(3,3,3))
  1576. local S=part(0,workspace,0,0,color,"Effect",vt(x1,y1,z1))
  1577. local msh1=mesh("BlockMesh",S,"","",vt(0,0,0),vt(0.5,0.5,0.5))
  1578. S.TopSurface=0
  1579. S.BottomSurface=0
  1580. S.Anchored=true
  1581. S.CFrame=part.CFrame*cf(x2,y2,z2)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1582. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + vt(0.1,0.1,0.1) Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  1583. end ]]
  1584. function MMMAGIC(part,x1,y1,z1,x2,y2,z2,color)
  1585. local msh1 = Instance.new("BlockMesh")
  1586. msh1.Scale = Vector3.new(0.5,0.5,0.5)
  1587. S=Instance.new("Part")
  1588. S.Name="Effect"
  1589. S.formFactor=0
  1590. S.Size=Vector3.new(x1,y1,z1)
  1591. S.BrickColor=color
  1592. S.Reflectance = 0
  1593. S.TopSurface=0
  1594. S.BottomSurface=0
  1595. S.Transparency=0
  1596. S.Anchored=true
  1597. S.CanCollide=false
  1598. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1599. S.Parent=Character
  1600. msh1.Parent = S
  1601. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.1,0.1,0.1) Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  1602. end
  1603.  
  1604. function GroundEffect(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  1605. local msh1 = it("SpecialMesh")
  1606. msh1.Scale = vt(0.5,0.5,0.5)
  1607. msh1.MeshType = "Sphere"
  1608. S=it("Part")
  1609. S.Name="Effect"
  1610. S.formFactor=0
  1611. S.Size=vt(1,1,1)
  1612. S.BrickColor=color
  1613. S.Reflectance = 0
  1614. S.TopSurface=0
  1615. S.BottomSurface=0
  1616. S.Transparency=0
  1617. S.Anchored=true
  1618. S.CanCollide=false
  1619. S.CFrame=CFrame.new(part.Position)*CFrame.new(x2,y2,z2)
  1620. -- S.CFrame=part.CFrame*cf(x2,y2,z2)*euler(x3,y3,z3)
  1621. S.Parent=workspace
  1622. msh1.Parent = S
  1623. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + vt(x1,y1,z1) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  1624. end
  1625.  
  1626. function MMMAGIC2(part,x1,y1,z1,x2,y2,z2,color)
  1627. local msh1 = Instance.new("BlockMesh")
  1628. msh1.Scale = Vector3.new(0.5,0.5,0.5)
  1629. S=Instance.new("Part")
  1630. S.Name="Effect"
  1631. S.formFactor=0
  1632. S.Size=Vector3.new(x1,1,z1)
  1633. S.BrickColor=color
  1634. S.Reflectance = 0
  1635. S.TopSurface=0
  1636. S.BottomSurface=0
  1637. S.Transparency=0
  1638. S.Anchored=true
  1639. S.CanCollide=false
  1640. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1641. S.Parent=Character
  1642. msh1.Parent = S
  1643. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0,y1,0) Part.CFrame=Part.CFrame Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  1644. end
  1645.  
  1646. function MMMAGIC3(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  1647. local msh1 = Instance.new("BlockMesh")
  1648. msh1.Scale = Vector3.new(0.5,0.5,0.5)
  1649. S=Instance.new("Part")
  1650. S.Name="Effect"
  1651. S.formFactor=0
  1652. S.Size=Vector3.new(x1,1,z1)
  1653. S.BrickColor=color
  1654. S.Reflectance = 0
  1655. S.TopSurface=0
  1656. S.BottomSurface=0
  1657. S.Transparency=0
  1658. S.Anchored=true
  1659. S.CanCollide=false
  1660. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(x3,y3,z3)
  1661. S.Parent=Character
  1662. msh1.Parent = S
  1663. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0,y1,0) Part.CFrame=Part.CFrame Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  1664. end
  1665.  
  1666. function WaveEffect(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  1667. local msh1 = Instance.new("SpecialMesh")
  1668. msh1.Scale = Vector3.new(x1,y1,z1)
  1669. msh1.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1670. S=Instance.new("Part")
  1671. S.Name="Effect"
  1672. S.formFactor=0
  1673. S.Size=Vector3.new(1,1,1)
  1674. S.BrickColor=color
  1675. S.Reflectance = 0
  1676. S.TopSurface=0
  1677. S.BottomSurface=0
  1678. S.Transparency=0
  1679. S.Anchored=true
  1680. S.CanCollide=false
  1681. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(x3,y3,z3)
  1682. S.Parent=workspace
  1683. msh1.Parent = S
  1684. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.3,0.3,0.3) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  1685. end
  1686.  
  1687. print("Y U NU GIVE CREDIT.")
  1688.  
  1689. DOHHit=function(hit,Damage,Pos) --credits to turdulator for making this function :D
  1690. if hit.Parent==nil then
  1691. return
  1692. end
  1693. h=hit.Parent:FindFirstChild("Humanoid")
  1694. t=hit.Parent:FindFirstChild("Torso")
  1695. if h~=nil and t~=nil then
  1696. if attackdebounce2 == false then
  1697. attackdebounce2 = true
  1698. coroutine.resume(coroutine.create(function()
  1699. wait(0.2)
  1700. attackdebounce2 = false
  1701. end))
  1702. elseif attackdebounce2==true then return end
  1703. if h.Parent==Character then
  1704. return
  1705. end
  1706. c=it("ObjectValue")
  1707. c.Name="creator"
  1708. c.Value=game.Players.LocalPlayer
  1709. c.Parent=h
  1710. game:GetService("Debris"):AddItem(c,.5)
  1711. if math.random(0,99)+math.random()<=7.8 then
  1712. --[[ Knockback=Knockback*2
  1713. r=it("BodyAngularVelocity")
  1714. r.P=3000
  1715. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  1716. r.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1717. r.Parent=hit.Parent.Torso]]
  1718. s=it("Sound")
  1719. s.SoundId="http://www.roblox.com/asset/?id=2801263"
  1720. s.Volume=1
  1721. s.Pitch=2
  1722. s.Parent=hit
  1723. s.PlayOnRemove=true
  1724. s.Parent=nil
  1725.  
  1726. end
  1727. h:TakeDamage(Damage)
  1728. showDamage(hit.Parent,Damage,.5)
  1729. game:GetService("Debris"):AddItem(vl,.2)
  1730. rl=it("BodyAngularVelocity")
  1731. rl.P=3000
  1732. rl.maxTorque=vt(500000,500000,500000)*50000000000000
  1733. rl.angularvelocity=vt(math.random(-3,3),math.random(-3,3),math.random(-3,3))
  1734. rl.Parent=t
  1735. game:GetService("Debris"):AddItem(rl,.05)
  1736. f=it("BodyPosition")
  1737. f.P=800
  1738. f.D=100
  1739. f.maxForce=vt(math.huge,math.huge,math.huge)
  1740. f.position=Pos.Position
  1741. f.Parent=t
  1742. game:GetService("Debris"):AddItem(f,.1)
  1743. else
  1744. if hit.CanCollide==false then
  1745. return
  1746. end
  1747. MagicCom:disconnect()
  1748. -- DBExplode(DB)
  1749. end
  1750. end
  1751.  
  1752. Damagefunc1=function(hit,Damage,Knockback)
  1753. if hit.Parent==nil then
  1754. return
  1755. end
  1756. CPlayer=Bin
  1757. h=hit.Parent:FindFirstChild("Humanoid")
  1758. if h~=nil and hit.Parent.Name~="kirby8852" and hit.Parent:FindFirstChild("Torso")~=nil then
  1759. if attackdebounce == false then
  1760. attackdebounce = true
  1761. coroutine.resume(coroutine.create(function()
  1762. wait(0.1)
  1763. attackdebounce = false
  1764. end))
  1765. Damage=Damage
  1766. if Enemy==nil then
  1767. Enemy=hit.Parent
  1768. HP=Enemy.Humanoid.Health
  1769. end
  1770. coroutine.resume(coroutine.create(function()
  1771. wait(1)
  1772. if attack==false and Enemy~=nil and Enemy:findFirstChild("Humanoid")~=nil then
  1773. Did=HP-Enemy.Humanoid.Health
  1774. print("Did "..Did.." Damage")
  1775. Enemy=nil
  1776. HP=0
  1777. end
  1778. end))
  1779. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1780. return
  1781. end]]
  1782. if mana<400 then
  1783. mana=mana+math.random(10,20)
  1784. else
  1785. mana=400
  1786. end
  1787. c=it("ObjectValue")
  1788. c.Name="creator"
  1789. c.Value=game.Players.LocalPlayer
  1790. c.Parent=h
  1791. game:GetService("Debris"):AddItem(c,.5)
  1792. -- print(c.Value)
  1793. if math.random(0,99)+math.random()<=5 then
  1794. CRIT=true
  1795. Damage=Damage*2
  1796. -- critsound(2)
  1797. --[[ Knockback=Knockback*2
  1798. r=it("BodyAngularVelocity")
  1799. r.P=3000
  1800. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  1801. r.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1802. r.Parent=hit.Parent.Torso]]
  1803.  
  1804. end
  1805. Damage=Damage+math.random(0,10)
  1806. -- Blood(hit.CFrame*cf(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  1807. h:TakeDamage(Damage)
  1808. showDamage(hit.Parent,Damage,.5)
  1809. vp=it("BodyVelocity")
  1810. vp.P=500
  1811. vp.maxForce=vt(math.huge,0,math.huge)
  1812. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1813. vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
  1814. vp.Parent=hit.Parent.Torso
  1815. --[[ if Knockback>0 then
  1816. vp.Parent=hit.Parent.Torso
  1817. end]]
  1818. game:GetService("Debris"):AddItem(vp,.25)
  1819. --[[ r=it("BodyAngularVelocity")
  1820. r.P=3000
  1821. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  1822. r.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1823. r.Parent=hit.Parent.Torso]]
  1824. game:GetService("Debris"):AddItem(r,.5)
  1825. c=it("ObjectValue")
  1826. c.Name="creator"
  1827. c.Value=Player
  1828. c.Parent=h
  1829. game:GetService("Debris"):AddItem(c,.5)
  1830. CRIT=false
  1831. hitDeb=true
  1832. AttackPos=6
  1833. end
  1834. end
  1835. end
  1836.  
  1837. Damagefunc2=function(hit,Damage,Knockback)
  1838. if hit.Parent==nil then
  1839. return
  1840. end
  1841. CPlayer=Bin
  1842. h=hit.Parent:FindFirstChild("Humanoid")
  1843. if h~=nil and hit.Parent.Name~="kirby8852" and hit.Parent:FindFirstChild("Torso")~=nil then
  1844. if attackdebounce == false then
  1845. attackdebounce = true
  1846. coroutine.resume(coroutine.create(function()
  1847. wait(0.1)
  1848. attackdebounce = false
  1849. end))
  1850. Damage=Damage
  1851. if Enemy==nil then
  1852. Enemy=hit.Parent
  1853. HP=Enemy.Humanoid.Health
  1854. end
  1855. coroutine.resume(coroutine.create(function()
  1856. wait(1)
  1857. if attack==false and Enemy~=nil and Enemy:findFirstChild("Humanoid")~=nil then
  1858. Did=HP-Enemy.Humanoid.Health
  1859. print("Did "..Did.." Damage")
  1860. Enemy=nil
  1861. HP=0
  1862. end
  1863. end))
  1864. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1865. return
  1866. end]]
  1867. if mana<400 then
  1868. mana=mana+math.random(10,20)
  1869. else
  1870. mana=400
  1871. end
  1872. c=it("ObjectValue")
  1873. c.Name="creator"
  1874. c.Value=game.Players.LocalPlayer
  1875. c.Parent=h
  1876. game:GetService("Debris"):AddItem(c,.5)
  1877. -- print(c.Value)
  1878. if math.random(0,99)+math.random()<=5 then
  1879. CRIT=true
  1880. Damage=Damage*2
  1881. -- critsound(2)
  1882. --[[ Knockback=Knockback*2
  1883. r=it("BodyAngularVelocity")
  1884. r.P=3000
  1885. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  1886. r.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1887. r.Parent=hit.Parent.Torso]]
  1888.  
  1889. end
  1890. Damage=Damage+math.random(0,10)
  1891. -- Blood(hit.CFrame*cf(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  1892. h:TakeDamage(Damage)
  1893. showDamage(hit.Parent,Damage,.5)
  1894. vp=it("BodyVelocity")
  1895. vp.P=500
  1896. vp.maxForce=vt(math.huge,0,math.huge)
  1897. -- vp.velocity=Head.CFrame.lookVector*Knockback
  1898. vp.velocity=Head.CFrame.lookVector*Knockback
  1899. vp.Parent=hit.Parent.Torso
  1900. --[[ if Knockback>0 then
  1901. vp.Parent=hit.Parent.Torso
  1902. end]]
  1903. game:GetService("Debris"):AddItem(vp,.5)
  1904. --[[ r=it("BodyAngularVelocity")
  1905. r.P=3000
  1906. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  1907. r.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1908. r.Parent=hit.Parent.Torso]]
  1909. game:GetService("Debris"):AddItem(r,.5)
  1910. c=it("ObjectValue")
  1911. c.Name="creator"
  1912. c.Value=Player
  1913. c.Parent=h
  1914. game:GetService("Debris"):AddItem(c,.5)
  1915. CRIT=false
  1916. hitDeb=true
  1917. AttackPos=6
  1918. end
  1919. end
  1920. end
  1921.  
  1922. Damagefunc3=function(hit,Damage,Knockback)
  1923. if hit.Parent==nil then
  1924. return
  1925. end
  1926. CPlayer=Bin
  1927. h=hit.Parent:FindFirstChild("Humanoid")
  1928. if h~=nil and hit.Parent.Name~="kirby8852" and hit.Parent:FindFirstChild("Torso")~=nil then
  1929. if attackdebounce == false then
  1930. attackdebounce = true
  1931. coroutine.resume(coroutine.create(function()
  1932. wait(0.1)
  1933. attackdebounce = false
  1934. end))
  1935. Damage=Damage
  1936. if Enemy==nil then
  1937. Enemy=hit.Parent
  1938. HP=Enemy.Humanoid.Health
  1939. end
  1940. coroutine.resume(coroutine.create(function()
  1941. wait(1)
  1942. if attack==false and Enemy~=nil and Enemy:findFirstChild("Humanoid")~=nil then
  1943. Did=HP-Enemy.Humanoid.Health
  1944. print("Did "..Did.." Damage")
  1945. Enemy=nil
  1946. HP=0
  1947. end
  1948. end))
  1949. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1950. return
  1951. end]]
  1952. if mana<400 then
  1953. mana=mana+math.random(10,20)
  1954. else
  1955. mana=400
  1956. end
  1957. c=it("ObjectValue")
  1958. c.Name="creator"
  1959. c.Value=game.Players.LocalPlayer
  1960. c.Parent=h
  1961. game:GetService("Debris"):AddItem(c,.5)
  1962. -- print(c.Value)
  1963. if math.random(0,99)+math.random()<=5 then
  1964. CRIT=true
  1965. Damage=Damage*2
  1966. critsound(2)
  1967. --[[ Knockback=Knockback*2
  1968. r=it("BodyAngularVelocity")
  1969. r.P=3000
  1970. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  1971. r.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1972. r.Parent=hit.Parent.Torso]]
  1973.  
  1974. end
  1975. Damage=Damage+math.random(0,10)
  1976. -- Blood(hit.CFrame*cf(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  1977. h:TakeDamage(Damage)
  1978. showDamage(hit.Parent,Damage,.5)
  1979. vp=it("BodyVelocity")
  1980. vp.P=500
  1981. vp.maxForce=vt(math.huge,math.huge,math.huge)
  1982. -- vp.velocity=Head.CFrame.lookVector*Knockback
  1983. vp.velocity=(Head.CFrame.lookVector*Knockback+Head.Velocity/1.05) + Vector3.new(math.random(-30,30),40,math.random(-30,30))
  1984. vp.Parent=hit.Parent.Torso
  1985. --[[ if Knockback>0 then
  1986. vp.Parent=hit.Parent.Torso
  1987. end]]
  1988. game:GetService("Debris"):AddItem(vp,.5)
  1989. r=it("BodyAngularVelocity")
  1990. r.P=3000
  1991. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  1992. r.angularvelocity=vt(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  1993. r.Parent=hit.Parent.Torso
  1994. game:GetService("Debris"):AddItem(r,.5)
  1995. c=it("ObjectValue")
  1996. c.Name="creator"
  1997. c.Value=Player
  1998. c.Parent=h
  1999. game:GetService("Debris"):AddItem(c,.5)
  2000. CRIT=false
  2001. hitDeb=true
  2002. AttackPos=6
  2003. end
  2004. end
  2005. end
  2006.  
  2007.  
  2008. Damagefunc4=function(hit,Damage,Knockback)
  2009. if hit.Parent==nil then
  2010. return
  2011. end
  2012. CPlayer=Bin
  2013. h=hit.Parent:FindFirstChild("Humanoid")
  2014. if h~=nil and hit.Parent.Name~="kirby8852" and hit.Parent:FindFirstChild("Torso")~=nil then
  2015. if attackdebounce3 == false then
  2016. attackdebounce3 = true
  2017. coroutine.resume(coroutine.create(function()
  2018. wait(0.1)
  2019. attackdebounce3 = false
  2020. end))
  2021. Damage=Damage
  2022. if Enemy==nil then
  2023. Enemy=hit.Parent
  2024. HP=Enemy.Humanoid.Health
  2025. end
  2026. coroutine.resume(coroutine.create(function()
  2027. wait(1)
  2028. if attack==false and Enemy~=nil then
  2029. Did=HP-Enemy.Humanoid.Health
  2030. print("Did "..Did.." Damage")
  2031. Enemy=nil
  2032. HP=0
  2033. end
  2034. end))
  2035. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  2036. return
  2037. end]]
  2038. if mana<400 then
  2039. mana=mana+math.random(10,20)
  2040. else
  2041. mana=400
  2042. end
  2043. c=it("ObjectValue")
  2044. c.Name="creator"
  2045. c.Value=game.Players.LocalPlayer
  2046. c.Parent=h
  2047. game:GetService("Debris"):AddItem(c,.5)
  2048. -- print(c.Value)
  2049. if math.random(0,99)+math.random()<=5 then
  2050. CRIT=true
  2051. Damage=Damage*2
  2052. critsound(2)
  2053. --[[ Knockback=Knockback*2
  2054. r=it("BodyAngularVelocity")
  2055. r.P=3000
  2056. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  2057. r.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  2058. r.Parent=hit.Parent.Torso]]
  2059.  
  2060. end
  2061. Damage=Damage+math.random(0,10)
  2062. -- Blood(hit.CFrame*cf(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  2063. h:TakeDamage(Damage)
  2064. showDamage(hit.Parent,Damage,.5)
  2065. vp=it("BodyVelocity")
  2066. vp.P=500
  2067. vp.maxForce=vt(math.huge,math.huge,math.huge)
  2068. -- vp.velocity=Head.CFrame.lookVector*Knockback
  2069. vp.velocity=Vector3.new(0,-40,0)
  2070. vp.Parent=hit.Parent.Torso
  2071. --[[ if Knockback>0 then
  2072. vp.Parent=hit.Parent.Torso
  2073. end]]
  2074. game:GetService("Debris"):AddItem(vp,.2)
  2075. r=it("BodyAngularVelocity")
  2076. r.P=3000
  2077. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  2078. r.angularvelocity=vt(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  2079. r.Parent=hit.Parent.Torso
  2080. game:GetService("Debris"):AddItem(r,.5)
  2081. c=it("ObjectValue")
  2082. c.Name="creator"
  2083. c.Value=Player
  2084. c.Parent=h
  2085. game:GetService("Debris"):AddItem(c,.5)
  2086. CRIT=false
  2087. hitDeb=true
  2088. AttackPos=6
  2089. end
  2090. end
  2091. end
  2092.  
  2093. showDamage=function(Char,Dealt,du)
  2094. m=it("Model")
  2095. m.Name=tostring(Dealt)
  2096. h=it("Humanoid")
  2097. h.Health=0
  2098. h.MaxHealth=0
  2099. h.Parent=m
  2100. c=it("Part")
  2101. c.Transparency=0
  2102. c.BrickColor=BrickColor:Red()
  2103. if CRIT==true then
  2104. c.BrickColor=BrickColor.new("Really red")
  2105. end
  2106. c.Name="Head"
  2107. c.TopSurface=0
  2108. c.BottomSurface=0
  2109. c.formFactor="Plate"
  2110. c.Size=vt(1,.4,1)
  2111. ms=it("CylinderMesh")
  2112. ms.Bevel=.1
  2113. ms.Scale=vt(.8,.8,.8)
  2114. if CRIT==true then
  2115. ms.Scale=vt(1.25,1.5,1.25)
  2116. ms.Bevel=.2
  2117. end
  2118. ms.Parent=c
  2119. c.Reflectance=0
  2120. it("BodyGyro").Parent=c
  2121. c.Parent=m
  2122. c.CFrame=cf(Char["Head"].CFrame.p+vt(0,1.5,0))
  2123. f=it("BodyPosition")
  2124. f.P=2000
  2125. f.D=100
  2126. f.maxForce=vt(math.huge,math.huge,math.huge)
  2127. f.position=c.Position+vt(0,3,0)
  2128. f.Parent=c
  2129. game:GetService("Debris"):AddItem(m,.5+du)
  2130. c.CanCollide=false
  2131. m.Parent=workspace
  2132. c.CanCollide=false
  2133. end
  2134.  
  2135. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , Ignore Descendants
  2136. return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2137. end
  2138.  
  2139. function Norm()
  2140. wait(0.5)
  2141. if attack==false then Say(1) end
  2142. if Did~=0 then print("Did "..Did.." units of damage") Did=0 end
  2143. Enemy=nil
  2144. HP=0
  2145. Torso.Neck.C0=necko
  2146. basew.C0=euler(0,0,0)*cf(2,-5,-1.5)
  2147. weld1.C0=cf(0,0,0)*euler(0,0,0)
  2148. weld1.C1=cf(0,0,0)*euler(0,0,0)
  2149. Torso.Neck.C0=necko*euler(0,0,0)
  2150. LW.C0 = cf(-1.5,0.5,0) * euler(0.7,0,-0.3)
  2151. RW.C0 = cf(1.5,0.5,0) * euler(-0.5,0,0)
  2152. end
  2153.  
  2154. hold = false
  2155. combo=0
  2156.  
  2157. function ob1d(mouse)
  2158. hold = true
  2159. end
  2160.  
  2161. function ob1u(mouse)
  2162. hold = false
  2163. end
  2164.  
  2165. buttonhold = false
  2166.  
  2167. function Key(key,mouse)
  2168. if attack == true then return end
  2169. player = Player
  2170. ch = Character
  2171. RSH = ch.Torso["Right Shoulder"]
  2172. LSH = ch.Torso["Left Shoulder"]
  2173. --
  2174. RSH.Parent = nil
  2175. LSH.Parent = nil
  2176. --[[RHP.C0 = cf(-0.5, -1.5, 0) * euler(0,0,0)
  2177. RHP.C1 = cf(0, 0.5, 0)
  2178. LHP.C0 = cf(0.5, -1.5, 0) * euler(0,0,0)
  2179. LHP.C1 = cf(0, 0.5, 0) ]]
  2180. --
  2181. RW.Part0 = ch.Torso
  2182. RW.C0 = cf(1.5, 0.5, 0) --* euler(1.3, 0, -0.5)
  2183. RW.C1 = cf(0, 0.5, 0)
  2184. RW.Part1 = ch["Right Arm"]
  2185. RW.Parent = ch.Torso
  2186. --_G.R = RW
  2187. --
  2188. LW.Part0 = ch.Torso
  2189. LW.C0 = cf(-1.5, 0.5, 0) --* euler(1.7, 0, 0.8)
  2190. LW.C1 = cf(0, 0.5, 0)
  2191. LW.Part1 = ch["Left Arm"]
  2192. LW.Parent = ch.Torso
  2193. --_G.L = LW
  2194. --
  2195. gyro.Parent=Head
  2196. if key=="q" then
  2197. SDhold=true
  2198. SwordDrive()
  2199. end
  2200. if key=="e" then
  2201. DChold=true
  2202. DarkClaw()
  2203. end
  2204. if key=="r" then
  2205. SEhold=true
  2206. SoulEdge()
  2207. end
  2208. if key=="f" then
  2209. guarding=true
  2210. Guard()
  2211. end
  2212. if key=="g" then
  2213. ballhold=true
  2214. EnergyBall()
  2215. end
  2216. if key=="z" then
  2217.  
  2218. end
  2219. if key=="c" then
  2220. DDhold=true
  2221. DarkDrive()
  2222. end
  2223. if key=="v" then
  2224. BUhold=true
  2225. BlazingUpper()
  2226. end
  2227. Charging=0
  2228. gyro.Parent=nil
  2229. Torso.Neck.C0=necko
  2230. gyro.Parent=nil
  2231. RW.Parent = nil
  2232. LW.Parent = nil
  2233. for i=0,1,0.1 do
  2234. RSH.Parent = player.Character.Torso
  2235. LSH.Parent = player.Character.Torso
  2236. end
  2237. end
  2238.  
  2239. function Key2(key,mouse)
  2240. if key=="q" then
  2241. SDhold=false
  2242. end
  2243. if key=="e" then
  2244. DChold=false
  2245. end
  2246. if key=="r" then
  2247. SEhold=false
  2248. end
  2249. if key=="f" then
  2250. guarding=false
  2251. end
  2252. if key=="g" then
  2253. ballhold=false
  2254. end
  2255. if key=="c" then
  2256. DDhold=false
  2257. end
  2258. if key=="v" then
  2259. BUhold=false
  2260. end
  2261. end
  2262. function s(mouse)
  2263. mouse.Button1Down:connect(function() ob1d(mouse) end)
  2264. mouse.Button1Up:connect(function() ob1u(mouse) end)
  2265. mouse.KeyDown:connect(function(key) Key(key,mouse) end)
  2266. mouse.KeyUp:connect(function(key) Key2(key,mouse) end)
  2267. MMouse = mouse
  2268. sheathed = false
  2269. equipanim(mouse)
  2270. coroutine.resume(coroutine.create(function()
  2271. while sheathed==false do
  2272. wait()
  2273. gyro.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  2274. gyro.P = 10000
  2275. local pos4 = Vector3.new(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
  2276. gyro.cframe = CFrame.new(Head.Position,pos4) * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) --CFrame.new(Torso.Position,MMouse.Hit.p) *
  2277.  
  2278. CFrame.fromEulerAnglesXYZ(0,math.rad(90),0)
  2279. offset=((Head.Position.y-MMouse.Hit.p.y)/60 )+0.02
  2280. mag=(Head.Position-MMouse.Hit.p).magnitude/80
  2281. offset=offset/mag
  2282. end
  2283. end))
  2284. end
  2285.  
  2286. function ds(mouse)
  2287. sheathed = true
  2288. guardy = false
  2289. walking = nil
  2290. Character.Humanoid.WalkSpeed = 16
  2291. hideanim()
  2292. RW.Parent = nil
  2293. LW.Parent = nil
  2294. RSH.Parent = player.Character.Torso
  2295. LSH.Parent = player.Character.Torso
  2296. end
  2297.  
  2298. Bin.Selected:connect(s)
  2299. Bin.Deselected:connect(ds)
  2300.  
  2301. increase=0
  2302. coroutine.resume(coroutine.create(function()
  2303. while true do
  2304. wait()
  2305. random=colors[math.random(1,#colors)]
  2306. RH.Part0 = Torso
  2307. LH.Part0 = Torso
  2308. if mana < 0 then
  2309. mana = 0
  2310. end
  2311. if mana >= 400 then
  2312. mana=400
  2313. end
  2314. increase = increase + 1
  2315. if increase == 5 then
  2316. if mana < 400 then
  2317. mana = mana + 1
  2318. end
  2319. increase = 0
  2320. end
  2321. fentext3.Size = UDim2.new(mana*0.007,0,0.200000006,0)
  2322. fentext.Text = "Dark Energy("..mana..")"
  2323. end
  2324. end))
  2325. --[[
  2326. function onRunning(speed)
  2327. if skill == true then return end
  2328. if speed>0 then
  2329. walking = true
  2330. for i = 0 ,1 , 0.1 do
  2331. wait(0)
  2332. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.8*i,0,0)
  2333. if attack == false then
  2334. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.8*i,0,0)
  2335. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2336. end
  2337. end
  2338. else
  2339. walking = false
  2340. for i = 0 ,1 , 0.1 do
  2341. wait(0)
  2342. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.8*i-0.8,0,0)
  2343. if attack == false then
  2344. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.8*i-0.8,0,0)
  2345. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2346. end
  2347. end
  2348. end
  2349. end
  2350. Character.Humanoid.Running:connect(onRunning) ]]
  2351. game.Workspace.grgrgry21.Humanoid.MaxHealth = math.huge
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement