Advertisement
memberhero

Duelist FE

Nov 26th, 2020 (edited)
435
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 62.15 KB | None | 0 0
  1. --FE Template
  2. if (game:GetService('RunService'):IsServer()) then return error('This script cannot be ran server-sided, please use hl/',0); end;
  3.  
  4. local remote = NS ([=[
  5. Player = owner
  6.  
  7. Character = Player.Character
  8.  
  9. PlayerGui = Player.PlayerGui
  10.  
  11. Backpack = Player.Backpack
  12.  
  13. Torso = Character.Torso
  14. mana=0
  15.  
  16. Head = Character.Head
  17. local effectz = Instance.new('Model', Character)
  18. effectz.Name = "effects"
  19. Humanoid = Character.Humanoid
  20.  
  21. LeftArm = Character["Left Arm"]
  22.  
  23. LeftLeg = Character["Left Leg"]
  24.  
  25. RightArm = Character["Right Arm"]
  26.  
  27. RightLeg = Character["Right Leg"]
  28.  
  29. LS = Torso["Left Shoulder"]
  30.  
  31. LH = Torso["Left Hip"]
  32.  
  33. RS = Torso["Right Shoulder"]
  34.  
  35. RH = Torso["Right Hip"]
  36.  
  37. Neck = Torso.Neck
  38.  
  39. it=Instance.new
  40.  
  41. vt=Vector3.new
  42.  
  43. cf=CFrame.new
  44.  
  45. euler=CFrame.fromEulerAnglesXYZ
  46.  
  47. angles=CFrame.Angles
  48.  
  49. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  50.  
  51. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  52.  
  53. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  54.  
  55. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  56.  
  57. attack = false
  58.  
  59. attacktype = 1
  60.  
  61. damage = 5
  62.  
  63. oridamage = 50
  64.  
  65. attackdebounce = false
  66.  
  67. ssdebounce=false
  68.  
  69. MMouse=nil
  70.  
  71. combo=0
  72.  
  73. magic=true
  74.  
  75. RootPart=Character.HumanoidRootPart
  76.  
  77. RootJoint=RootPart.RootJoint
  78.  
  79. RootCF=euler(-1.57,0,3.14)
  80.  
  81. local Effects = {}
  82. local RbxUtility = LoadLibrary("RbxUtility")
  83. local Create = RbxUtility.Create
  84.  
  85. --player
  86.  
  87. player = nil
  88.  
  89. --save shoulders
  90.  
  91. RSH, LSH = nil, nil
  92.  
  93. --welds
  94.  
  95. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  96.  
  97. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  98.  
  99.  
  100.  
  101.  
  102.  
  103. if Character:findFirstChild("Rapier",true) ~= nil then
  104.  
  105. Character:findFirstChild("Rapier",true).Parent = nil
  106.  
  107. end
  108.  
  109. if Character:findFirstChild("Block",true) ~= nil then
  110.  
  111. Character:findFirstChild("Block",true).Parent = nil
  112.  
  113. end
  114.  
  115.  
  116.  
  117. function so(id, par, vol, pit)
  118. coroutine.resume(coroutine.create(function()
  119. local sou = Instance.new("Sound", par or workspace)
  120. sou.Volume = vol
  121. sou.Pitch = pit or 1
  122. sou.SoundId = Sounds[id].Id
  123. swait()
  124. sou:play()
  125. swait(6)
  126. sou:Remove()
  127. end))
  128. end
  129.  
  130. function clerp(a, b, t)
  131. local qa = {
  132. QuaternionFromCFrame(a)
  133. }
  134. local qb = {
  135. QuaternionFromCFrame(b)
  136. }
  137. local ax, ay, az = a.x, a.y, a.z
  138. local bx, by, bz = b.x, b.y, b.z
  139. local _t = 1 - t
  140. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  141. end
  142.  
  143. function QuaternionFromCFrame(cf)
  144. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  145. local trace = m00 + m11 + m22
  146. if trace > 0 then
  147. local s = math.sqrt(1 + trace)
  148. local recip = 0.5 / s
  149. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  150. else
  151. local i = 0
  152. if m11 > m00 then
  153. i = 1
  154. end
  155. if m22 > (i == 0 and m00 or m11) then
  156. i = 2
  157. end
  158. if i == 0 then
  159. local s = math.sqrt(m00 - m11 - m22 + 1)
  160. local recip = 0.5 / s
  161. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  162. elseif i == 1 then
  163. local s = math.sqrt(m11 - m22 - m00 + 1)
  164. local recip = 0.5 / s
  165. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  166. elseif i == 2 then
  167. local s = math.sqrt(m22 - m00 - m11 + 1)
  168. local recip = 0.5 / s
  169. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  170. end
  171. end
  172. end
  173.  
  174. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  175. local xs, ys, zs = x + x, y + y, z + z
  176. local wx, wy, wz = w * xs, w * ys, w * zs
  177. local xx = x * xs
  178. local xy = x * ys
  179. local xz = x * zs
  180. local yy = y * ys
  181. local yz = y * zs
  182. local zz = z * zs
  183. 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))
  184. end
  185.  
  186. function QuaternionSlerp(a, b, t)
  187. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  188. local startInterp, finishInterp;
  189. if cosTheta >= 0.0001 then
  190. if (1 - cosTheta) > 0.0001 then
  191. local theta = math.acos(cosTheta)
  192. local invSinTheta = 1 / math.sin(theta)
  193. startInterp = math.sin((1 - t) * theta) * invSinTheta
  194. finishInterp = math.sin(t * theta) * invSinTheta
  195. else
  196. startInterp = 1 - t
  197. finishInterp = t
  198. end
  199. else
  200. if (1 + cosTheta) > 0.0001 then
  201. local theta = math.acos(-cosTheta)
  202. local invSinTheta = 1 / math.sin(theta)
  203. startInterp = math.sin((t - 1) * theta) * invSinTheta
  204. finishInterp = math.sin(t * theta) * invSinTheta
  205. else
  206. startInterp = t - 1
  207. finishInterp = t
  208. end
  209. end
  210. 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
  211. end
  212.  
  213. function rayCast(Pos, Dir, Max, Ignore)
  214. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  215. end
  216.  
  217. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  218.  
  219. local fp = it("Part")
  220.  
  221. fp.formFactor = formfactor
  222.  
  223. fp.Parent = parent
  224.  
  225. fp.Reflectance = reflectance
  226.  
  227. fp.Transparency = transparency
  228.  
  229. fp.CanCollide = false
  230.  
  231. fp.Locked=true
  232.  
  233. fp.BrickColor = brickcolor
  234.  
  235. fp.Name = name
  236.  
  237. fp.Size = size
  238.  
  239. fp.Position = Torso.Position
  240.  
  241. fp.BottomSurface="Smooth"
  242.  
  243. fp.TopSurface="Smooth"
  244.  
  245. fp:BreakJoints()
  246.  
  247. return fp
  248.  
  249. end
  250.  
  251.  
  252.  
  253. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  254.  
  255. local mesh = it(Mesh)
  256.  
  257. mesh.Parent = part
  258.  
  259. if Mesh=="SpecialMesh" then
  260.  
  261. mesh.MeshType = meshtype
  262.  
  263. mesh.MeshId = meshid
  264.  
  265. end
  266.  
  267. mesh.Offset=offset
  268.  
  269. mesh.Scale=scale
  270.  
  271. return mesh
  272.  
  273. end
  274.  
  275. ArtificialHB = Instance.new("BindableEvent", script)
  276. ArtificialHB.Name = "Heartbeat"
  277.  
  278. script:WaitForChild("Heartbeat")
  279.  
  280. frame = 1 / 60
  281.  
  282. tf = 0
  283. allowframeloss = false
  284. tossremainder = false
  285. lastframe = tick()
  286. script.Heartbeat:Fire()
  287.  
  288. game:GetService("RunService").Heartbeat:connect(function(s, p)
  289. tf = tf + s
  290. if tf >= frame then
  291. if allowframeloss then
  292. script.Heartbeat:Fire()
  293. lastframe = tick()
  294. else
  295. for i = 1, math.floor(tf / frame) do
  296. script.Heartbeat:Fire()
  297. end
  298. lastframe = tick()
  299. end
  300. if tossremainder then
  301. tf = 0
  302. else
  303. tf = tf - frame * math.floor(tf / frame)
  304. end
  305. end
  306. end)
  307.  
  308. function swait(num)
  309. if num == 0 or num == nil then
  310. ArtificialHB.Event:wait()
  311. else
  312. for i = 0, num do
  313. ArtificialHB.Event:wait()
  314. end
  315. end
  316. end
  317.  
  318. function pwait(num)
  319. if num==0 or num==nil then
  320. game:service'RunService'.Heartbeat:wait()
  321. else
  322. for i=0,num do
  323. game:service'RunService'.Heartbeat:wait()
  324. end
  325. end
  326. end
  327.  
  328. function weld(parent,part0,part1,c0)
  329.  
  330. local weld = it("Weld")
  331.  
  332. weld.Parent = parent
  333.  
  334. weld.Part0 = part0
  335.  
  336. weld.Part1 = part1
  337.  
  338. weld.C0 = c0
  339.  
  340. return weld
  341.  
  342. end
  343.  
  344.  
  345.  
  346. local modelzorz = Instance.new("Model")
  347.  
  348. modelzorz.Parent = Character
  349.  
  350. modelzorz.Name = "Rapier"
  351.  
  352.  
  353.  
  354. local prt1=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part1",vt(1,1,1))
  355.  
  356. local prt2=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part2",vt(1,1,1))
  357.  
  358. local prt3=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part3",vt(1,1,1))
  359.  
  360. local prt4=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part4",vt(1,1,1))
  361.  
  362. local prt5=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part5",vt(1,1,1))
  363.  
  364. local prt6=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part6",vt(1,1,1))
  365.  
  366. local prt7=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part7",vt(1,1,1))
  367.  
  368. local prt8=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part8",vt(1,1,1))
  369.  
  370. local prt9=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part9",vt(1,1,1))
  371.  
  372. local prt10=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part10",vt(1,1,1))
  373.  
  374. local prt11=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part11",vt(1,1,1))
  375.  
  376. local prt12=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part12",vt(1,1,1))
  377.  
  378. local prt13=part(3,modelzorz,0,1,BrickColor.new("Black"),"Part13",vt(0.5,4,0.5))
  379.  
  380.  
  381.  
  382. local msh1=mesh("CylinderMesh",prt1,"","",vt(0,0,0),vt(0.2,1,0.2))
  383.  
  384. local msh2=mesh("SpecialMesh",prt2,"FileMesh","http://www.roblox.com/asset/?id=1778999",vt(0,0,0),vt(0.2,0.5,0.2))
  385.  
  386. local msh3=mesh("SpecialMesh",prt3,"Sphere","",vt(0,0,0),vt(0.1,0.6,0.1))
  387.  
  388. local msh4=mesh("BlockMesh",prt4,"","",vt(0,0,0),vt(0.3,0.2,0.05))
  389.  
  390. local msh5=mesh("BlockMesh",prt5,"","",vt(0,0,0),vt(0.05,0.2,0.3))
  391.  
  392. local msh6=mesh("SpecialMesh",prt6,"Sphere","",vt(0,0,0),vt(0.4,0.4,0.4))
  393.  
  394. local msh7=mesh("CylinderMesh",prt7,"","",vt(0,0,0),vt(0.1,0.5,0.1))
  395.  
  396. local msh8=mesh("CylinderMesh",prt8,"","",vt(0,0,0),vt(0.4,0.5,0.4))
  397.  
  398. local msh9=mesh("CylinderMesh",prt9,"","",vt(0,0,0),vt(0.3,0.05,0.3))
  399.  
  400. local msh10=mesh("BlockMesh",prt10,"","",vt(0,0,0),vt(0.2,0.1,0.2))
  401.  
  402. local msh11=mesh("SpecialMesh",prt11,"FileMesh","http://www.roblox.com/asset/?id=1778999",vt(0,0,0),vt(0.2,1,0.2))
  403.  
  404. local msh12=mesh("SpecialMesh",prt12,"FileMesh","http://www.roblox.com/asset/?id=1778999",vt(0,0,0),vt(0.2,3,0.2))
  405.  
  406. local msh13=mesh("BlockMesh",prt13,"","",vt(0,0,0),vt(1,1,1))
  407.  
  408.  
  409.  
  410. local wld1=weld(prt1,prt1,Torso,euler(-2,0,0)*cf(1,0.5,1.5))
  411.  
  412. local wld2=weld(prt2,prt2,prt1,cf(0,0.3,0))
  413.  
  414. local wld3=weld(prt3,prt3,prt2,cf(0,0.3,0))
  415.  
  416. local wld4=weld(prt4,prt4,prt2,cf(0,0.3,0))
  417.  
  418. local wld5=weld(prt5,prt5,prt2,cf(0,0.3,0))
  419.  
  420. local wld6=weld(prt6,prt6,prt1,cf(0,-0.5,0))
  421.  
  422. local wld7=weld(prt7,prt7,prt6,cf(0,-0.25,0))
  423.  
  424. local wld8=weld(prt8,prt8,prt7,cf(0,0,0))
  425.  
  426. local wld9=weld(prt9,prt9,prt7,cf(0,-0.3,0))
  427.  
  428. local wld10=weld(prt10,prt10,prt9,cf(0,-0.05,0))
  429.  
  430. local wld11=weld(prt11,prt11,prt10,cf(0,-0.5,0))
  431.  
  432. local wld12=weld(prt12,prt12,prt11,cf(0,-1.5,0))
  433.  
  434. local wld13=weld(prt13,prt13,prt12,cf(0,0,0))
  435.  
  436.  
  437.  
  438. numb=0
  439.  
  440. for i=1,4 do
  441.  
  442. local prt13=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part13",vt(1,1,1))
  443.  
  444. local prt14=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part14",vt(1,1,1))
  445.  
  446. local prt15=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part15",vt(1,1,1))
  447.  
  448. local prt16=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part16",vt(1,1,1))
  449.  
  450.  
  451.  
  452. local msh13=mesh("SpecialMesh",prt13,"Wedge","",vt(0,0,0),vt(0.05,0.5,0.5))
  453.  
  454. local msh14=mesh("SpecialMesh",prt14,"Wedge","",vt(0,0,0),vt(0.051,0.5,0.3))
  455.  
  456. local msh15=mesh("BlockMesh",prt15,"","",vt(0,0,0),vt(0.052,0.3,0.2))
  457.  
  458. local msh16=mesh("SpecialMesh",prt16,"Wedge","",vt(0,0,0),vt(0.051,0.5,0.5))
  459.  
  460.  
  461.  
  462. local wld13=weld(prt13,prt13,prt6,euler(0,0,3.14)*cf(0,0.2,0.3)*euler(0,numb,0))
  463.  
  464. local wld14=weld(prt14,prt14,prt13,euler(-0.3,0,3.14)*cf(0,0.4,0.2))
  465.  
  466. local wld15=weld(prt15,prt15,prt14,euler(-0.2,0,0)*cf(0,-0.3,-0.1))
  467.  
  468. local wld16=weld(prt16,prt16,prt15,euler(0.5,0,0)*cf(0,-0.3,0))
  469.  
  470.  
  471.  
  472. numb=numb+1.57
  473.  
  474. end
  475.  
  476.  
  477.  
  478. numb=0
  479.  
  480. color="Bright red"
  481.  
  482. for i=1,6 do
  483.  
  484. if i==1 then color="White" elseif i==2 then color="Bright blue" elseif i==3 then color="Bright green" elseif i==4 then color="Black" elseif i==5 then color="Bright red" elseif i==6 then color="Bright yellow" end
  485.  
  486. local prt17=part(3,modelzorz,0,0,BrickColor.new(color),"Part17",vt(1,1,1))
  487.  
  488.  
  489.  
  490. local msh17=mesh("BlockMesh",prt17,"","",vt(0,0,0),vt(0.1,0.2,0.1))
  491.  
  492.  
  493.  
  494. local wld17=weld(prt17,prt17,prt7,cf(0.15,0.13,0)*euler(0,numb,0))
  495.  
  496.  
  497.  
  498. numb=numb+1.046
  499.  
  500. end
  501.  
  502. Bin = script.Parent
  503.  
  504.  
  505.  
  506. local bg = it("BodyGyro")
  507.  
  508. bg.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  509.  
  510. bg.P = 20e+003
  511.  
  512. bg.Parent = nil
  513.  
  514. bp=it("BodyPosition")
  515.  
  516. bp.P=2000
  517.  
  518. bp.D=100
  519.  
  520. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  521.  
  522.  
  523.  
  524. so = function(id,par,dong,pit)
  525.  
  526. coroutine.resume(coroutine.create(function()
  527.  
  528. local sou = Instance.new("Sound",par or workspace)
  529.  
  530. sou.Volume=1
  531.  
  532. sou.Pitch=pit or 1
  533.  
  534. sou.SoundId=id
  535.  
  536. swait()
  537.  
  538. sou:play()
  539.  
  540. wait(6)
  541.  
  542. sou:Remove()
  543.  
  544. end))
  545.  
  546. end
  547.  
  548.  
  549.  
  550. function unequipweld()
  551.  
  552. wld1.Part1=Torso
  553.  
  554. wld1.C0=euler(-2,0,0)*cf(1,0.5,1.5)
  555.  
  556. end
  557.  
  558.  
  559.  
  560. function equipweld()
  561.  
  562. wld1.Part1=LeftArm
  563.  
  564. wld1.C0=euler(1.57,0,0)*cf(0,1,0)
  565.  
  566. end
  567.  
  568.  
  569.  
  570. function hideanim()
  571.  
  572. equipped=false
  573.  
  574. wait(0.1)
  575.  
  576. Torso.Neck.C0=necko
  577.  
  578. RootJoint.C0=RootCF
  579.  
  580. unequipweld()
  581.  
  582. end
  583.  
  584.  
  585.  
  586. function equipanim()
  587.  
  588. equipped=true
  589.  
  590. wait(0.1)
  591.  
  592. equipweld()
  593.  
  594. Torso.Neck.C0=necko*euler(0,0,1)
  595.  
  596. RootJoint.C0=RootCF*euler(0,0,-1)
  597.  
  598. RW.C0=cf(1.5, 0.5, 0) * euler(0,0,0.3)
  599.  
  600. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  601.  
  602. LW.C0=cf(-1.5, 0.5, 0) * euler(0.5,-1.57,0)
  603.  
  604. LW.C1=cf(0, 0.5, 0) * euler(0.2,0,0)
  605.  
  606. end
  607.  
  608.  
  609.  
  610. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  611.  
  612. return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  613.  
  614. end
  615.  
  616. function oneslash()
  617. attack=true
  618. for i=0,1,0.1 do
  619. swait()
  620. LW.C0=cf(-1.5+0.5*i, 0.5, -0.5*i) * euler(0.5+1.5*i,-1.57+0.2*i,0)
  621. LW.C1=cf(0, 0.5, 0) * euler(0.2-0.8*i,0,0)
  622. end
  623. so("http://roblox.com/asset/?id=10209640",prt12,1,1)
  624. --local LastPoint = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
  625. con1=prt13.Touched:connect(function(hit) Damagefunc1(hit,10,10) end)
  626. for i=0,1,0.2 do
  627. swait()
  628. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*euler(0,0,1-2*i),.3)
  629. RootJoint.C0 = clerp(RootJoint.C0,RootCF*euler(0,0,-1+2*i),.3)
  630. wld1.C0 = clerp(wld1.C0,euler(1.57+1*i,0,0)*cf(0,1,0),.3)
  631. LW.C0 = clerp(LW.C0,cf(-1-0.5*i, 0.5, -0.5+0.5*i) * euler(2-0.5*i,-1.37,0),.3)
  632. LW.C1 = clerp(LW.C1,cf(0, 0.5, 0) * euler(0.2-0.8+1.6*i,0,0),.3)
  633. --[[local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
  634. local Point2 = prt12.CFrame
  635. effect("White",0.5,0.1,LastPoint,Point)
  636. LastPoint = Point]]
  637. end
  638. con1:disconnect()
  639. attack=false
  640. end
  641.  
  642.  
  643.  
  644. function twoslash()
  645.  
  646. attack=true
  647.  
  648. for i=0,1,0.1 do
  649.  
  650. swait()
  651.  
  652. RootJoint.C0=RootCF*euler(0,0,1+3.14*i)
  653.  
  654. wld1.C0=euler(1.57+1-1*i,0,0)*cf(0,1,0)
  655.  
  656. LW.C0=cf(-1.5+0.5*i, 0.5, -0.5*i) * euler(1.5+0.07*i,-1.37-0.2*i,0)
  657.  
  658. LW.C1=cf(0, 0.5, 0) * euler(1-2*i,0,0)
  659.  
  660. end
  661.  
  662. so("http://roblox.com/asset/?id=10209640",prt12,1,1.1)
  663.  
  664. --local LastPoint = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
  665.  
  666. con1=prt13.Touched:connect(function(hit) Damagefunc1(hit,10,10) end)
  667.  
  668. for i=0,1,0.2 do
  669.  
  670. swait()
  671.  
  672. RootJoint.C0=RootCF*euler(0,0,1+3.14+3.14*i)
  673.  
  674. wld1.C0=euler(1.57+1*i,0,0)*cf(0,1,0)
  675.  
  676. LW.C0=cf(-1.5+0.5-0.5*i, 0.5, -0.5+0.5*i) * euler(1.57,-1.57,0)
  677.  
  678. LW.C1=cf(0, 0.5, 0) * euler(-1+2*i,0,0)
  679.  
  680. --[[local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
  681.  
  682. effect("White",0.5,0.1,LastPoint,Point)
  683.  
  684. LastPoint = Point]]
  685.  
  686. end
  687.  
  688. con1:disconnect()
  689.  
  690. attack=false
  691.  
  692. end
  693.  
  694.  
  695.  
  696. function threeslash()
  697.  
  698. attack=true
  699.  
  700. for i=0,1,0.1 do
  701.  
  702. swait()
  703.  
  704. RootJoint.C0=RootCF*euler(0,0,1-1*i)
  705.  
  706. Torso.Neck.C0=necko*euler(0,0,-1+1*i)
  707.  
  708. wld1.C0=euler(1.57+1-1*i,0,0)*cf(0,1,0)
  709.  
  710. LW.C0=cf(-1.5, 0.5, 0) * euler(1.57+3.64*i,-1.57+1*i,0)
  711.  
  712. LW.C1=cf(0, 0.5, 0) * euler(1,0,0)
  713.  
  714. end
  715.  
  716. so("http://roblox.com/asset/?id=10209640",prt12,1,1)
  717.  
  718. --local LastPoint = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
  719.  
  720. con1=prt13.Touched:connect(function(hit) Damagefunc1(hit,10,10) end)
  721.  
  722. for i=0,1,0.2 do
  723.  
  724. swait()
  725.  
  726. RootJoint.C0=RootCF*euler(0,0,-1*i)
  727.  
  728. Torso.Neck.C0=necko*euler(0,0,1*i)
  729.  
  730. LW.C0=cf(-1.5+0.5*i, 0.5, -0.5*i) * euler(5.21-0.3*i,-0.57,0)
  731.  
  732. LW.C1=cf(0, 0.5, 0) * euler(1+4*i,0,0)
  733.  
  734. --[[local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
  735.  
  736. effect("White",0.5,0.1,LastPoint,Point)
  737.  
  738. LastPoint = Point]]
  739.  
  740. end
  741.  
  742. con1:disconnect()
  743.  
  744. attack=false
  745.  
  746. end
  747.  
  748.  
  749.  
  750. function fourslash()
  751.  
  752. attack=true
  753.  
  754. so("rbxasset://sounds\\swordlunge.wav",prt12,1,1.5)
  755.  
  756. --local LastPoint = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
  757.  
  758. con1=prt13.Touched:connect(function(hit) Damagefunc1(hit,15,10) end)
  759.  
  760. for i=0,1,0.2 do
  761.  
  762. swait()
  763.  
  764. RootJoint.C0=RootCF*euler(0,0,-1-0.57*i)
  765.  
  766. Torso.Neck.C0=necko*euler(0,0,1+0.57*i)
  767.  
  768. wld1.C0=euler(1.57+1*i,0,0)*cf(0,1,0)
  769.  
  770. LW.C0=cf(-1.5+0.5-0.5*i, 0.5, -0.5+0.5*i) * euler(4.91+1.57*i,-0.57+0.57*i,0)
  771.  
  772. LW.C1=cf(0, 0.5, 0) * euler(5,-1.57*i,0)
  773.  
  774. --[[local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
  775.  
  776. effect("White",0.5,0.1,LastPoint,Point)
  777.  
  778. LastPoint = Point]]
  779.  
  780. end
  781.  
  782. for i=0,1,0.2 do
  783.  
  784. swait()
  785.  
  786. --[[local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
  787.  
  788. effect("White",0.5,0.1,LastPoint,Point)
  789.  
  790. LastPoint = Point]]
  791.  
  792. end
  793.  
  794. con1:disconnect()
  795.  
  796. attack=false
  797.  
  798. end
  799.  
  800.  
  801.  
  802. function FlameBarrage()
  803. if mana>=30 then mana=mana-30 else return end
  804. attack=true
  805.  
  806. magic=true
  807.  
  808. for i=0,1,0.1 do
  809.  
  810. swait()
  811.  
  812. Torso.Neck.C0=necko*euler(0.5*i,0,1-1*i)
  813.  
  814. wld1.C0=euler(1.57+0.2*i,0,0)*cf(0,1,0)
  815.  
  816. RW.C0=cf(1.5-1*i, 0.5, -0.5*i) * euler(1*i,0,0.3-1*i)
  817.  
  818. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  819.  
  820. LW.C0=cf(-1.5, 0.5, 0) * euler(0.5+0.5*i,-1.57,0)
  821.  
  822. LW.C1=cf(0, 0.5, 0) * euler(0.2-0.4*i,0,0)
  823.  
  824. end
  825.  
  826. for i=0,1,0.1 do
  827.  
  828. swait()
  829.  
  830. RW.C0=cf(1.5-1, 0.5, -0.5) * euler(1-0.4*i,0,0.3-1)
  831.  
  832. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  833.  
  834. wld7.C0=wld7.C0*euler(0,-0.2,0)
  835.  
  836. so("http://roblox.com/asset/?id=28445431",prt7,1,20)
  837.  
  838. end
  839.  
  840. coroutine.resume(coroutine.create(function()
  841.  
  842. for i=1,10 do
  843.  
  844. so("http://roblox.com/asset/?id=131382140",prt12,1,10)
  845.  
  846. swait()
  847.  
  848. end
  849.  
  850. end))
  851.  
  852. reffect=prt12:Clone()
  853.  
  854. reffect.Parent=modelzorz
  855.  
  856. reffect.Transparency=1
  857.  
  858. reffect.Mesh.Scale=vt(0.3,3,0.3)
  859.  
  860. reffect.BrickColor=BrickColor.new("Bright red")
  861.  
  862. local efwld=weld(reffect,reffect,prt12,cf(0,-0.4,0))
  863.  
  864. coroutine.resume(coroutine.create(function(Part)
  865.  
  866. for i=0,1,0.1 do
  867.  
  868. swait()
  869.  
  870. Part.Transparency=Part.Transparency-0.05
  871.  
  872. end
  873.  
  874. while magic==true do
  875.  
  876. swait()
  877.  
  878. MagicBlock(BrickColor.new("Bright red"),prt12.CFrame*cf((math.random()/4)-(math.random()/4),math.random(-2,1)+math.random(),(math.random()/4)-(math.random()/4)),.5,.5,.5,.05,.05,.05)
  879.  
  880. end
  881.  
  882. for i=0,1,0.1 do
  883.  
  884. swait()
  885.  
  886. Part.Transparency=Part.Transparency+0.1
  887.  
  888. end
  889.  
  890. Part.Parent=nil
  891.  
  892. end),reffect)
  893.  
  894. for i=0,1,0.05 do
  895.  
  896. swait()
  897.  
  898. Torso.Neck.C0=necko*euler(0.5-0.5*i,0,1*i)
  899.  
  900. RW.C0=cf(1.5-1+0.5*i, 0.5, -0.5+0.3*i) * euler(0.6,0,-0.7)
  901.  
  902. RW.C1=cf(0, 0.5, 0) * euler(-0.4*i,0,0)
  903.  
  904. LW.C0=cf(-1.5, 0.5, 0) * euler(1+0.2*i,-1.57,0)
  905.  
  906. LW.C1=cf(0, 0.5, 0) * euler(-0.2-0.2*i,0,0)
  907.  
  908. end
  909.  
  910. so("http://roblox.com/asset/?id=10209640",prt12,1,1)
  911.  
  912. local LastPoint = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
  913.  
  914. con1=prt13.Touched:connect(function(hit) Damagefunc1(hit,10,10) end)
  915.  
  916. for i=1,3 do
  917.  
  918. so("http://roblox.com/asset/?id=130865054",Torso,1,1.5)
  919.  
  920. end
  921.  
  922. for i=0,0.2,0.1 do
  923.  
  924. swait()
  925.  
  926. RootJoint.C0=RootCF*euler(0,0,-1+7.28*i)
  927.  
  928. Torso.Neck.C0=necko*euler(0,0,1-1*i)
  929.  
  930. RW.C0=cf(1.5-0.5, 0.5, -0.5+0.3-0.3*i) * euler(0.6,0,-0.7-0.5*i)
  931.  
  932. RW.C1=cf(0, 0.5, 0) * euler(-0.4,0,0)
  933.  
  934. LW.C0=cf(-1.5, 0.5, 0) * euler(1.2+0.37*i,-1.57,0)
  935.  
  936. LW.C1=cf(0, 0.5, 0) * euler(-0.4+2.4*i,0,0)
  937.  
  938. local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
  939.  
  940. effect("Bright red",0.5,0.3,LastPoint,Point)
  941.  
  942. LastPoint = Point
  943.  
  944. end
  945.  
  946. local exprt=part(3,modelzorz,0,1,BrickColor.new("Bright red"),"Explosion Part",vt(1,1,1))
  947.  
  948. exprt.Anchored=true
  949.  
  950. exprt.CFrame=RootPart.CFrame*cf(0,0,-7)
  951.  
  952. so("http://www.roblox.com/asset/?id=2101148",exprt,1,0.6)
  953.  
  954. game:GetService("Debris"):AddItem(exprt,1)
  955.  
  956. MagicCircle(BrickColor.new("Bright red"),exprt.CFrame,3,3,3,3,3,3)
  957.  
  958. for i=1,4 do
  959.  
  960. MagicRing(BrickColor.new("Bright red"),exprt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),3,3,0.1,1,1,0.05)
  961.  
  962. end
  963.  
  964. local c = game.Workspace:GetChildren()
  965.  
  966. for i = 1, #c do
  967.  
  968. local hum = c[i]:findFirstChild("Humanoid")
  969.  
  970. if hum ~= nil and hum.Health ~= 0 then
  971.  
  972. local head = c[i]:findFirstChild("Head")
  973.  
  974. if head ~= nil then
  975.  
  976. local targ = head.Position - exprt.Position
  977.  
  978. local mag = targ.magnitude
  979.  
  980. if mag <= 10 and c[i].Name ~= Player.Name then
  981.  
  982. attackdebounce=false
  983.  
  984. Damagefunc1(head,15,50)
  985.  
  986. end
  987.  
  988. end
  989.  
  990. end
  991.  
  992. end
  993.  
  994. for i=0.2,1,0.1 do
  995.  
  996. swait()
  997.  
  998. RootJoint.C0=RootCF*euler(0,0,-1+7.28*i)
  999.  
  1000. Torso.Neck.C0=necko*euler(0,0,1-1*i)
  1001.  
  1002. RW.C0=cf(1.5-0.5, 0.5, -0.5+0.3-0.3*i) * euler(0.6,0,-0.7-0.5*i)
  1003.  
  1004. RW.C1=cf(0, 0.5, 0) * euler(-0.4,0,0)
  1005.  
  1006. LW.C0=cf(-1.5, 0.5, 0) * euler(1.2+0.37*i,-1.57,0)
  1007.  
  1008. LW.C1=cf(0, 0.5, 0) * euler(-0.4+2.4*i,0,0)
  1009.  
  1010. local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
  1011.  
  1012. effect("Bright red",0.5,0.3,LastPoint,Point)
  1013.  
  1014. LastPoint = Point
  1015.  
  1016. end
  1017.  
  1018. con1:disconnect()
  1019.  
  1020. for i=0,1,0.1 do
  1021.  
  1022. swait()
  1023.  
  1024. RootJoint.C0=RootCF*euler(0,0,1*i)
  1025.  
  1026. Torso.Neck.C0=necko*euler(0,0,-1*i)
  1027.  
  1028. wld1.C0=euler(1.77-1.2*i,0,0)*cf(0,1,0)
  1029.  
  1030. RW.C0=cf(1.5-0.5, 0.5, -0.5) * euler(0.6,0,-1.2)
  1031.  
  1032. RW.C1=cf(0, 0.5, 0) * euler(-0.4,0,0)
  1033.  
  1034. LW.C0=cf(-1.5, 0.5, 0) * euler(1.57,-1.57,0)
  1035.  
  1036. LW.C1=cf(0, 0.5, 0) * euler(2-0.43*i,0,0)
  1037.  
  1038. end
  1039.  
  1040. so("rbxasset://sounds\\swordlunge.wav",prt12,1,1.2)
  1041.  
  1042. local LastPoint = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
  1043.  
  1044. con1=prt13.Touched:connect(function(hit) Damagefunc1(hit,20,30) end)
  1045.  
  1046. for i=0,1,0.2 do
  1047.  
  1048. swait()
  1049.  
  1050. RootJoint.C0=RootCF*euler(0,0,1-2.57*i)
  1051.  
  1052. Torso.Neck.C0=necko*euler(0,0,-1+2.57*i)
  1053.  
  1054. wld1.C0=euler(0.57+2.57*i,0,0)*cf(0,1,0)
  1055.  
  1056. RW.C0=cf(1.5-0.5+0.5*i, 0.5, -0.5+0.5*i) * euler(0.6,0,-1.2+2.4*i)
  1057.  
  1058. RW.C1=cf(0, 0.5, 0) * euler(-0.4,0,0)
  1059.  
  1060. LW.C0=cf(-1.5, 0.5, 0) * euler(1.57,-1.57,0)
  1061.  
  1062. LW.C1=cf(0, 0.5, 0) * euler(1.57,0,0)
  1063.  
  1064. local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
  1065.  
  1066. effect("Bright red",0.5,0.3,LastPoint,Point)
  1067.  
  1068. LastPoint = Point
  1069.  
  1070. end
  1071.  
  1072. con1:disconnect()
  1073.  
  1074. numb=-7
  1075.  
  1076. for i=1,3 do
  1077.  
  1078. local exprt=part(3,modelzorz,0,1,BrickColor.new("Bright red"),"Explosion Part",vt(1,1,1))
  1079.  
  1080. exprt.Anchored=true
  1081.  
  1082. exprt.CFrame=RootPart.CFrame*cf(0,0,numb)
  1083.  
  1084. so("http://www.roblox.com/asset/?id=2101148",exprt,1,1)
  1085.  
  1086. game:GetService("Debris"):AddItem(exprt,1)
  1087.  
  1088. MagicCircle(BrickColor.new("Bright red"),exprt.CFrame,3,3,3,3,3,3)
  1089.  
  1090. coroutine.resume(coroutine.create(function(Part)
  1091.  
  1092. for i=1,4 do
  1093.  
  1094. MagicBlock(BrickColor.new("Bright red"),Part.CFrame,3,3,3,2,2,2)
  1095.  
  1096. wait(0.1)
  1097.  
  1098. end
  1099.  
  1100. end),exprt)
  1101.  
  1102. local c = game.Workspace:GetChildren()
  1103.  
  1104. for i = 1, #c do
  1105.  
  1106. local hum = c[i]:findFirstChild("Humanoid")
  1107.  
  1108. if hum ~= nil and hum.Health ~= 0 then
  1109.  
  1110. local head = c[i]:findFirstChild("Head")
  1111.  
  1112. if head ~= nil then
  1113.  
  1114. local targ = head.Position - exprt.Position
  1115.  
  1116. local mag = targ.magnitude
  1117.  
  1118. if mag <= 10 and c[i].Name ~= Player.Name then
  1119.  
  1120. attackdebounce=false
  1121.  
  1122. Damagefunc1(head,5,30)
  1123.  
  1124. end
  1125.  
  1126. end
  1127.  
  1128. end
  1129.  
  1130. end
  1131.  
  1132. numb=numb-5
  1133.  
  1134. wait(0.2)
  1135.  
  1136. end
  1137.  
  1138. wait(1)
  1139.  
  1140. Torso.Neck.C0=necko*euler(0,0,1)
  1141.  
  1142. RootJoint.C0=RootCF*euler(0,0,-1)
  1143.  
  1144. magic=false
  1145.  
  1146. attack=false
  1147.  
  1148. end
  1149.  
  1150.  
  1151.  
  1152. function IcePrison()
  1153. if mana>=35 then mana=mana-35 else return end
  1154. attack=true
  1155.  
  1156. magic=true
  1157.  
  1158. for i=0,1,0.1 do
  1159.  
  1160. swait()
  1161.  
  1162. Torso.Neck.C0=necko*euler(0,0,1-1*i)
  1163.  
  1164. RootJoint.C0=RootCF*euler(0,0,-1+1*i)
  1165.  
  1166. wld1.C0=euler(1.57,0,0)*cf(0,1,0)
  1167.  
  1168. RW.C0=cf(1.5-0.5*i, 0.5, -0.5*i) * euler(1.9*i,0,0.3-0.8*i)
  1169.  
  1170. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1171.  
  1172. LW.C0=cf(-1.5+0.5*i, 0.5, -0.5*i) * euler(0.5+1.07*i,-1.57+1.57*i,0.7*i)
  1173.  
  1174. LW.C1=cf(0, 0.5, 0) * euler(0.2-0.2*i,0,0)
  1175.  
  1176. end
  1177.  
  1178. for i=0,1,0.1 do
  1179.  
  1180. swait()
  1181.  
  1182. RW.C0=cf(1.5-0.5, 0.5, -0.5) * euler(1.9,0,-0.5-0.2*i)
  1183.  
  1184. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1185.  
  1186. wld7.C0=wld7.C0*euler(0,0.2,0)
  1187.  
  1188. so("http://roblox.com/asset/?id=28445431",prt7,1,20)
  1189.  
  1190. end
  1191.  
  1192. reffect=prt12:Clone()
  1193.  
  1194. reffect.Parent=modelzorz
  1195.  
  1196. reffect.Transparency=1
  1197.  
  1198. reffect.Mesh.Scale=vt(0.3,3,0.3)
  1199.  
  1200. reffect.BrickColor=BrickColor.new("Bright blue")
  1201.  
  1202. local efwld=weld(reffect,reffect,prt12,cf(0,-0.4,0))
  1203.  
  1204. coroutine.resume(coroutine.create(function(Part)
  1205.  
  1206. for i=0,1,0.1 do
  1207.  
  1208. swait()
  1209.  
  1210. Part.Transparency=Part.Transparency-0.05
  1211.  
  1212. end
  1213.  
  1214. while magic==true do
  1215.  
  1216. swait()
  1217.  
  1218. MagicBlock(BrickColor.new("Bright blue"),prt12.CFrame*cf((math.random()/4)-(math.random()/4),math.random(-2,1)+math.random(),(math.random()/4)-(math.random()/4)),.5,.5,.5,.05,.05,.05)
  1219.  
  1220. end
  1221.  
  1222. for i=0,1,0.1 do
  1223.  
  1224. swait()
  1225.  
  1226. Part.Transparency=Part.Transparency+0.1
  1227.  
  1228. end
  1229.  
  1230. Part.Parent=nil
  1231.  
  1232. end),reffect)
  1233.  
  1234. for i=1,3 do
  1235.  
  1236. so("http://roblox.com/asset/?id=25605551",prt12,1,1)
  1237.  
  1238. end
  1239.  
  1240. wait(0.5)
  1241.  
  1242. for i=0,1,0.1 do
  1243.  
  1244. swait()
  1245.  
  1246. wld1.C0=euler(1.57+1*i,0,0)*cf(0,1,0)
  1247.  
  1248. RW.C0=cf(1.5-0.5, 0.5, -0.5) * euler(1.9-0.6*i,0,-0.7)
  1249.  
  1250. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1251.  
  1252. LW.C0=cf(-1.5+0.5, 0.5, -0.5) * euler(1.57-0.57*i,0,0.7-0.2*i)
  1253.  
  1254. LW.C1=cf(0, 0.5, 0) * euler(0,1.57*i,0)
  1255.  
  1256. end
  1257.  
  1258. local LastPoint = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
  1259.  
  1260. con1=prt13.Touched:connect(function(hit) Damagefunc1(hit,10,10) end)
  1261.  
  1262. for i=1,3 do
  1263.  
  1264. so("http://roblox.com/asset/?id=10209640",prt12,1,1)
  1265.  
  1266. for i=0,1,0.2 do
  1267.  
  1268. swait()
  1269.  
  1270. RootJoint.C0=RootCF*euler(0,0,6.32*i)
  1271.  
  1272. local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
  1273.  
  1274. effect("Bright blue",0.5,0.3,LastPoint,Point)
  1275.  
  1276. LastPoint = Point
  1277.  
  1278. end
  1279.  
  1280. end
  1281.  
  1282. so("http://roblox.com/asset/?id=10209640",prt12,1,1)
  1283.  
  1284. for i=0,1,0.2 do
  1285.  
  1286. swait()
  1287.  
  1288. RootJoint.C0=RootCF*euler(0,0,3.14*i)
  1289.  
  1290. local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
  1291.  
  1292. effect("Bright blue",0.5,0.3,LastPoint,Point)
  1293.  
  1294. LastPoint = Point
  1295.  
  1296. end
  1297.  
  1298. con1:disconnect()
  1299.  
  1300. for i=0,1,0.1 do
  1301.  
  1302. swait()
  1303.  
  1304. wld1.C0=euler(2.57-1*i,3.14*i,0)*cf(0,1,0)
  1305.  
  1306. RootJoint.C0=RootCF*euler(0,0,3.14+3.14*i)
  1307.  
  1308. RW.C0=cf(1.5-0.5, 0.5, -0.5) * euler(1.3+1.2*i,0,-0.7)
  1309.  
  1310. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1311.  
  1312. LW.C0=cf(-1.5+0.5, 0.5, -0.5) * euler(1+1.5*i,0,0.5+0.2*i)
  1313.  
  1314. LW.C1=cf(0, 0.5, 0) * euler(0,1.57-1.57*i,0)
  1315.  
  1316. end
  1317.  
  1318. local LastPoint = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
  1319.  
  1320. so("http://roblox.com/asset/?id=10209640",prt12,1,1.1)
  1321.  
  1322. bg.Parent=Torso
  1323.  
  1324. bg.cframe=Torso.CFrame
  1325.  
  1326. local bp = Instance.new("BodyPosition")
  1327.  
  1328. bp.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1329.  
  1330. bp.P = 10000
  1331.  
  1332. local CF = Torso.CFrame
  1333.  
  1334. bp.position = CF.p
  1335.  
  1336. bp.Parent=Torso
  1337.  
  1338. for i=0,1,0.2 do
  1339.  
  1340. swait()
  1341.  
  1342. bp.position = CF.p - Vector3.new(0,1.5,0)
  1343.  
  1344. Torso["Left Hip"].C0=LHC0*cf(-0.7*i,1.2*i,0)
  1345.  
  1346. Torso["Right Hip"].C0=RHC0*cf(0,1.2*i,0)*euler(0,0,-0.5*i)
  1347.  
  1348. RW.C0=cf(1.5-0.5, 0.5, -0.5) * euler(2.5-1*i,0,-0.7)
  1349.  
  1350. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1351.  
  1352. LW.C0=cf(-1.5+0.5, 0.5, -0.5) * euler(2.5-1*i,0,0.7)
  1353.  
  1354. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1355.  
  1356. local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
  1357.  
  1358. effect("Bright blue",0.5,0.3,LastPoint,Point)
  1359.  
  1360. LastPoint = Point
  1361.  
  1362. end
  1363.  
  1364. numb=-3
  1365.  
  1366. numb2=0
  1367.  
  1368. for i=1,20 do
  1369.  
  1370. local exprt=part(3,modelzorz,0,1,BrickColor.new("Bright red"),"Explosion Part",vt(1,1,1))
  1371.  
  1372. exprt.Anchored=true
  1373.  
  1374. exprt.CFrame=RootPart.CFrame*cf(numb2,0,numb)
  1375.  
  1376. so("http://www.roblox.com/asset/?id=32656754",exprt,0.5,1)
  1377.  
  1378. game:GetService("Debris"):AddItem(exprt,3)
  1379.  
  1380. for i=1,5 do
  1381.  
  1382. --Icicle(exprt.CFrame*euler(math.random(-2,1)+math.random(),0,math.random(-2,1)+math.random()),2,5,2)
  1383.  
  1384. MagicFreeze(BrickColor.new("Bright blue"),exprt.CFrame*cf(0,-3,0),0.5,0.5,0.5,0.1,0.3,0.1)
  1385.  
  1386. end
  1387.  
  1388. local c = game.Workspace:GetChildren()
  1389.  
  1390. for i = 1, #c do
  1391.  
  1392. local hum = c[i]:findFirstChild("Humanoid")
  1393.  
  1394. if hum ~= nil and hum.Health ~= 0 then
  1395.  
  1396. local head = c[i]:findFirstChild("Head")
  1397.  
  1398. if head ~= nil then
  1399.  
  1400. local targ = head.Position - exprt.Position
  1401.  
  1402. local mag = targ.magnitude
  1403.  
  1404. if mag <= 5 and c[i].Name ~= Player.Name then
  1405.  
  1406. attackdebounce=false
  1407.  
  1408. freezeDamagefunc(head,0,0)
  1409.  
  1410. end
  1411.  
  1412. end
  1413.  
  1414. end
  1415.  
  1416. end
  1417.  
  1418. numb=numb-1
  1419.  
  1420. if numb2==1 then
  1421.  
  1422. swait()
  1423.  
  1424. numb2=0
  1425.  
  1426. end
  1427.  
  1428. numb2=numb2+1
  1429.  
  1430. end
  1431.  
  1432. wait(0.5)
  1433.  
  1434. bg.Parent=nil
  1435.  
  1436. bp.Parent=nil
  1437.  
  1438. Torso["Left Hip"].C0=LHC0
  1439.  
  1440. Torso["Right Hip"].C0=RHC0
  1441.  
  1442. Torso.Neck.C0=necko*euler(0,0,1)
  1443.  
  1444. RootJoint.C0=RootCF*euler(0,0,-1)
  1445.  
  1446. magic=false
  1447.  
  1448. attack=false
  1449.  
  1450. end
  1451. function DarkWave()
  1452. if mana>=60 then mana=mana-60 else return end
  1453. attack=true
  1454. magic=true
  1455. for i=0,1,0.1 do
  1456. swait()
  1457. Torso.Neck.C0=necko*euler(0.5*i,0,1-1*i)
  1458. wld1.C0=euler(1.57+0.2*i,0,0)*cf(0,1,0)
  1459. RW.C0=cf(1.5-1*i, 0.5, -0.5*i) * euler(1*i,0,0.3-1*i)
  1460. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1461. LW.C0=cf(-1.5, 0.5, 0) * euler(0.5+0.5*i,-1.57,0)
  1462. LW.C1=cf(0, 0.5, 0) * euler(0.2-0.4*i,0,0)
  1463. end
  1464. for i=0,1,0.1 do
  1465. swait()
  1466. RW.C0=cf(1.5-1, 0.5, -0.5) * euler(1-0.4*i,0,0.3-1)
  1467. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1468. wld7.C0=wld7.C0*euler(0,-0.2,0)
  1469. so("http://roblox.com/asset/?id=28445431",prt7,1,20)
  1470. end
  1471. coroutine.resume(coroutine.create(function()
  1472. for i=1,10 do
  1473. so("http://roblox.com/asset/?id=131382140",prt12,1,10)
  1474. swait()
  1475. end
  1476. end))
  1477. reffect=prt12:Clone()
  1478. reffect.Parent=modelzorz
  1479. reffect.Transparency=1
  1480. reffect.Mesh.Scale=vt(0.3,3,0.3)
  1481. reffect.BrickColor=BrickColor.new("Black")
  1482. local efwld=weld(reffect,reffect,prt12,cf(0,-0.4,0))
  1483. coroutine.resume(coroutine.create(function(Part)
  1484. for i=0,2,0.1 do
  1485. swait()
  1486. Part.Transparency=Part.Transparency-0.05
  1487. end
  1488. while magic==true do
  1489. swait()
  1490. MagicBlock(BrickColor.new("Black"),prt12.CFrame*cf((math.random()/4)-(math.random()/4),math.random(-2,1)+math.random(),(math.random()/4)-(math.random()/4)),.5,.5,.5,.05,.05,.05)
  1491. end
  1492. for i=0,2,0.1 do
  1493. swait()
  1494. Part.Transparency=Part.Transparency+0.1
  1495. end
  1496. Part.Parent=nil
  1497. end),reffect)
  1498. for i=0,2,0.05 do
  1499. swait()
  1500. Torso.Neck.C0=necko*euler(0.5-0.5*i/2,0,1*i/2)RW.C0=cf(1.5-1+0.5*i, 0.5, -0.5+0.3*i) * euler(0.6,0,-0.7)
  1501. RW.C1=cf(0, 0.5, 0) * euler(-0.4*i,0,0)LW.C0=cf(-1.5, 0.5, 0) * euler(1+0.2*i,-1.57,0)
  1502. LW.C1=cf(0, 0.5, 0) * euler(-0.2-0.2*i,0,0)end
  1503. for i=0,1,0.1 do
  1504. swait()
  1505. LW.C0=cf(-1.5+0.5*i, 0.5, -0.5*i) * euler(0.5+1.5*i,-1.57+0.2*i,0)
  1506. LW.C1=cf(0, 0.5, 0) * euler(0.2-0.8*i,0,0)
  1507. end
  1508. so("http://roblox.com/asset/?id=10209640",prt12,1,1)
  1509. local LastPoint = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
  1510. con1=prt13.Touched:connect(function(hit) Damagefunc1(hit,10,10) end)
  1511. for i=0,1,0.2 do
  1512. swait()
  1513. Torso.Neck.C0=necko*euler(0,0,1-2*i)
  1514. RootJoint.C0=RootCF*euler(0,0,-1+2*i)
  1515. wld1.C0=euler(1.57+2*i,0,0)*cf(0,1,0)
  1516. LW.C0=cf(-1-0.5*i, 0.5, -0.5+0.5*i) * euler(2-0.5*i,-1.37,0)
  1517. LW.C1=cf(0, 0.5, 0) * euler(0.2-0.8+1.6*i,0,0)
  1518. local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
  1519. local Point2 = prt12.CFrame
  1520. effect("Black",0.5,0.1,LastPoint,Point)
  1521. LastPoint = Point
  1522. end
  1523. con1:disconnect()
  1524. Spawn(function()
  1525. local Parts = {}
  1526. for Y = -2,2 do
  1527. local P = Instance.new("Part",Character)
  1528. P.Anchored = true
  1529. P.FormFactor = "Custom"
  1530. P.CanCollide = false
  1531. P.Size = Vector3.new(1,2,1)
  1532. P.TopSurface = "SmoothNoOutlines"
  1533. P.BottomSurface = "SmoothNoOutlines"
  1534. P.BrickColor = BrickColor.new("Really black")
  1535. P.Name = tostring(Y)
  1536. local i = (Y+1)/(3)
  1537. i = 1-math.cos(math.pi*i-(math.pi/2))
  1538. P.CFrame = Character.HumanoidRootPart.CFrame*CFrame.new(0,Y,-15+(i*1.5))*CFrame.Angles(math.rad(Y*5),0,0)
  1539. --[[P.Touched:connect(function(ht)
  1540. local hit = ht.Parent
  1541. if hit:FindFirstChild("Humanoid") then
  1542. hit.Humanoid:TakeDamage(math.random(20,50))
  1543. end
  1544. end)]]--
  1545. s = Instance.new("Sound",P)
  1546. s.SoundId = "rbxassetid://228343271"
  1547. s.Volume = .7
  1548. s.Pitch = 0.9
  1549. s:Play()
  1550. --[[P.Touched:connect(function(ht)
  1551. hit = ht.Parent
  1552. if ht and hit:IsA("Model") then
  1553. if hit:FindFirstChild("Humanoid") then
  1554. if hit.Name ~= p.Name then
  1555. if Debounces.Slashing == true and Debounces.Slashed == false then
  1556. Debounces.Slashed = true
  1557. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(1,3))
  1558. hit:FindFirstChild("Humanoid").PlatformStand = true
  1559. wait(1)
  1560. --Debounces.Slashed = false
  1561. --end
  1562. end
  1563. end
  1564. elseif ht and hit:IsA("Accessoryy") then
  1565. if hit.Parent.Name ~= p.Name then
  1566. if hit.Parent:FindFirstChild("Humanoid") then
  1567. if Debounces.Slashing == true and Debounces.Slashed == false then
  1568. Debounces.Slashed = true
  1569. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random (1,3))
  1570. hit:FindFirstChild("Humanoid").PlatformStand = true
  1571. wait(1)
  1572. --Debounces.Slashed = false
  1573. --end
  1574. end
  1575. end
  1576. end
  1577. end)]]
  1578.  
  1579. P.Touched:connect(function(hit) Damagefunc1(hit,30,30) end)
  1580. Parts[#Parts+1] = P
  1581. end
  1582. local BREAKIT = false
  1583. local CParts = {}
  1584. local Rocks = {}
  1585. local LastPos = nil
  1586. for i = 1,70 do
  1587. for i2,v in pairs(Parts) do
  1588. v.CFrame = v.CFrame*CFrame.new(0,0,-4)
  1589. local cf = v.CFrame
  1590. v.Size = v.Size+Vector3.new(0.4,0.35,0)
  1591. v.CFrame = cf
  1592. v.Transparency = v.Transparency+0.02
  1593. if v.Transparency >= 0.975 then BREAKIT = true end
  1594. if v.Name == "0" then
  1595. local Ignore = {}
  1596. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  1597. if v.Character ~= nil then
  1598. Ignore[#Ignore+1] = v.Character
  1599. end
  1600. end
  1601. local ray = Ray.new(v.Position+Vector3.new(0,20,0),Vector3.new(0,-200,0))
  1602. local Hit,Pos,SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(ray,Ignore)
  1603. if Hit ~= nil then
  1604. if #Rocks == 0 then
  1605. for i = 1,5 do
  1606. local P = Instance.new("Part",Character)
  1607. Rocks[#Rocks+1] = P
  1608. P.Anchored = true
  1609. P.FormFactor = "Custom"
  1610. P.BrickColor = Hit.BrickColor
  1611. P.Material = Hit.Material
  1612. P.TopSurface = "Smooth"
  1613. P.BottomSurface = "Smooth"
  1614. P.Size = Vector3.new(1,1,1)*(math.random(50,90)/10)
  1615. end
  1616. end
  1617. for i,P in pairs(Rocks) do
  1618. P.CFrame = ((CFrame.new(Pos)*(v.CFrame-v.Position))*CFrame.new(math.random(-math.ceil(v.Size.X/2),math.ceil(v.Size.X/2)),0,-math.random(5,8))-Vector3.new(0,0.25,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(20,50)))
  1619. end
  1620. local P = Instance.new("Part",Character)
  1621. CParts[#CParts+1] = {P,tick()}
  1622. P.Anchored = true
  1623. P.FormFactor = "Custom"
  1624. P.BrickColor = Hit.BrickColor
  1625. P.Material = Hit.Material
  1626. P.TopSurface = "Smooth"
  1627. P.BottomSurface = "Smooth"
  1628. P.Size = Vector3.new(1,1,1)*(math.random(100,300)/100)
  1629. Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(v.Size.X/2,0,0)
  1630. Pos = Pos.p
  1631. P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,0.25,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(20,50)))
  1632. local P = P:Clone()
  1633. CParts[#CParts+1] = {P,tick()}
  1634. P.Parent = Character
  1635. Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(-v.Size.X,0,0)
  1636. Pos = Pos.p
  1637. P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,0.25,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,-20)))
  1638. if LastPos ~= nil then
  1639. local P = P:Clone()
  1640. CParts[#CParts+1] = {P,tick()}
  1641. P.Parent = Character
  1642. P.BrickColor = BrickColor.new("Really black")
  1643. Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(v.Size.X/2,0,0)
  1644. Pos = Pos.p
  1645. local CFr = (CFrame.new(Pos)*(v.CFrame-v.Position))-Vector3.new(0,0.4,0)
  1646. P.Size = Vector3.new(v.Size.X-0.25,1,(CFr.p-LastPos.p).Magnitude+0.25)
  1647. --P.Velocity = Vector3.new(0,-1000,0)
  1648. P.CFrame = CFrame.new(CFr.p,LastPos.p)*CFrame.new(0,0,-((CFr.p-LastPos.p).Magnitude+0.25)/2)
  1649. end
  1650. LastPos = (CFrame.new(Pos)*(v.CFrame-v.Position))-Vector3.new(0,0.4,0)
  1651. end
  1652. end
  1653. end
  1654. if BREAKIT then break end
  1655. wait(0.002)
  1656. end
  1657. for i,v in pairs(Rocks) do
  1658. CParts[#CParts+1] = {v,tick()}
  1659. end
  1660. for i,v in pairs(Parts) do
  1661. v:Destroy()
  1662. end
  1663. Parts = nil
  1664. while true do
  1665. local t = tick()
  1666. local p = nil
  1667. for i,v in pairs(CParts) do
  1668. if t-v[2] > 4 then
  1669. v[1].Transparency = v[1].Transparency+0.05
  1670. if v[1].Transparency >= 1 then
  1671. v[1]:Destroy()
  1672. CParts[i] = nil
  1673. end
  1674. end
  1675. p = v
  1676. end
  1677. if p == nil then break end
  1678. wait(0.002)
  1679. end
  1680. for i,v in pairs(CParts) do
  1681. v:Destroy()
  1682. end
  1683. CParts = {}
  1684. end)
  1685. wait(3)
  1686. Torso.Neck.C0=necko*euler(0,0,1)
  1687. RootJoint.C0=RootCF*euler(0,0,-1)
  1688. wld1.C0=euler(1.57,0,0)*cf(0,1,0)
  1689. RW.C0=cf(1.5, 0.5, 0) * euler(0,0,0.3)
  1690. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1691. LW.C0=cf(-1.5, 0.5, 0) * euler(0.5,-1.57,0)
  1692. LW.C1=cf(0, 0.5, 0) * euler(0.2,0,0)
  1693. attack=false
  1694. magic=false
  1695. end
  1696.  
  1697. function AirDash()
  1698. if mana>=20 then mana=mana-20 else return end
  1699. attack=true
  1700.  
  1701. magic=true
  1702.  
  1703. for i=0,1,0.1 do
  1704.  
  1705. swait()
  1706.  
  1707. wld1.C0=euler(1.57-1.2*i,0,0)*cf(0,1,0.3*i)
  1708.  
  1709. Torso.Neck.C0=necko*euler(0,0,1+0.57*i)
  1710.  
  1711. RootJoint.C0=RootCF*euler(0,0,-1-0.57*i)
  1712.  
  1713. RW.C0=cf(1.5, 0.5, 0) * euler(0.7*i,0,0.3-0.9*i)
  1714.  
  1715. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1716.  
  1717. LW.C0=cf(-1.5+1*i, 0.5, -0.5*i) * euler(0.5+1.07*i,-1.57+3.16*i,0)
  1718.  
  1719. LW.C1=cf(0, 0.5, 0) * euler(0.2+0.8*i,0,0)
  1720.  
  1721. end
  1722.  
  1723. for i=0,1,0.1 do
  1724.  
  1725. swait()
  1726.  
  1727. wld7.C0=wld7.C0*euler(0,0.2,0)
  1728.  
  1729. so("http://roblox.com/asset/?id=28445431",prt7,1,20)
  1730.  
  1731. end
  1732.  
  1733. so("http://roblox.com/asset/?id=10209640",prt12,1,0.7)
  1734. for i = 0,1, 0.1 do
  1735. Torso.Velocity = Head.CFrame.lookVector *100
  1736. end
  1737. local LastPoint = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
  1738.  
  1739. bg.Parent = Head
  1740.  
  1741. bg.cframe=Head.CFrame
  1742.  
  1743. jointhit=false
  1744.  
  1745. con1=prt13.Touched:connect(function(hit)
  1746.  
  1747. coroutine.resume(coroutine.create(function()
  1748.  
  1749. if hit.Parent==nil then
  1750.  
  1751. return
  1752.  
  1753. end
  1754.  
  1755. h=hit.Parent:FindFirstChild("Humanoid")
  1756.  
  1757. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil and jointhit==false then
  1758.  
  1759. jointhit=true
  1760.  
  1761. bp.position=RootPart.Position
  1762.  
  1763. -- bp.Parent=RootPart
  1764.  
  1765. bg.Parent=RootPart
  1766.  
  1767. bg.cframe=RootPart.CFrame
  1768.  
  1769. for i=0,1,0.1 do
  1770.  
  1771. swait()
  1772.  
  1773. RootJoint.C0=RootCF*cf(0,-5*i,5*i)*euler(1.57*i,0,-1.57)
  1774.  
  1775. end
  1776.  
  1777. for i=0,1,0.1 do
  1778.  
  1779. swait()
  1780.  
  1781. Torso.Neck.C0=necko*euler(0,0,1.57-1.57*i)
  1782.  
  1783. RW.C0=cf(1.5, 0.5, 0) * euler(0,0,0.6+0.97*i)
  1784.  
  1785. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1786.  
  1787. LW.C0=cf(-1.5, 0.5, 0) * euler(1.57,1.57,0)
  1788.  
  1789. LW.C1=cf(0, 0.5, 0) * euler(-1.57,0,0)
  1790.  
  1791. RootJoint.C0=RootCF*cf(0,-5-5*i,5+5*i)*euler(1.57+1.57*i,0,-1.57-3.14*i)
  1792.  
  1793. end
  1794.  
  1795. coroutine.resume(coroutine.create(function()
  1796.  
  1797. while attack==true do
  1798.  
  1799. swait()
  1800.  
  1801. Torso.Neck.C0=necko
  1802.  
  1803. wld1.C0=euler(1.57-1.2+2.77,0,0)*cf(0,1,0)
  1804.  
  1805. RW.C0=cf(1.5, 0.5, 0) * euler(0,0,1.57)
  1806.  
  1807. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1808.  
  1809. LW.C0=cf(-1.5, 0.5, 0) * euler(1.57,1.57,0)
  1810.  
  1811. LW.C1=cf(0, 0.5, 0) * euler(-1.57,0,0)
  1812.  
  1813. end
  1814.  
  1815. end))
  1816.  
  1817.  
  1818. for i=0,1,0.1 do
  1819.  
  1820. swait()
  1821.  
  1822. RootJoint.C0=RootCF*cf(0,-10,10-3*i)*euler(3.14+1.57*i,0,-1.57-3.14-1.57*i)
  1823.  
  1824. end
  1825.  
  1826. for i=0,1,0.15 do
  1827.  
  1828. swait()
  1829.  
  1830. RootJoint.C0=RootCF*cf(0,-10,7-3*i)*euler(3.14+1.57+1.57*i,0,-1.57-3.14-1.57+1.57*i)
  1831.  
  1832. end
  1833.  
  1834. for i=0,1,0.2 do
  1835.  
  1836. swait()
  1837.  
  1838. RootJoint.C0=RootCF*cf(0,-10,4-4*i)*euler(3.14+3.14,0,-1.57-3.14-1.57+1.57+1.57*i)
  1839.  
  1840. end
  1841.  
  1842. RootPart.CFrame=Torso.CFrame*euler(0,1,0)
  1843.  
  1844. RootJoint.C0=RootCF*euler(0,0,-1)
  1845.  
  1846. bg.Parent=nil
  1847.  
  1848. bp.Parent=nil
  1849.  
  1850. wait(0.5)
  1851.  
  1852. attack=false
  1853.  
  1854. swait()
  1855.  
  1856. Torso.Neck.C0=necko*euler(0,0,1)
  1857.  
  1858. end
  1859.  
  1860. end))
  1861.  
  1862. Damagefunc1(hit,10,10)
  1863.  
  1864. end)
  1865.  
  1866. numb=-1
  1867.  
  1868. for i=0,1,0.2 do
  1869.  
  1870. swait()
  1871.  
  1872. so("http://roblox.com/asset/?id=10209640",prt12,1,numb)
  1873.  
  1874. numb=numb+0.2
  1875.  
  1876. wld1.C0=euler(1.57-1.2+2.77*i,0,0)*cf(0,1,0.3-0.3*i)
  1877.  
  1878. Torso.Neck.C0=necko*euler(0,0,1.57)
  1879.  
  1880. RW.C0=cf(1.5, 0.5, 0) * euler(0.7-0.7*i,0,-0.6+1.2*i)
  1881.  
  1882. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1883.  
  1884. LW.C0=cf(-1.5+1-1*i, 0.5, -0.5+0.5*i) * euler(1.57,1.57,0)
  1885.  
  1886. LW.C1=cf(0, 0.5, 0) * euler(1-2.57*i,0,0)
  1887.  
  1888. local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
  1889.  
  1890. local Point2 = prt12.CFrame
  1891.  
  1892. effect("White",0.5,0.1,LastPoint,Point)
  1893.  
  1894. LastPoint = Point
  1895.  
  1896. end
  1897.  
  1898. for i=0,1,0.1 do
  1899.  
  1900. swait()
  1901.  
  1902. local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
  1903.  
  1904. local Point2 = prt12.CFrame
  1905.  
  1906. effect("White",0.5,0.1,LastPoint,Point)
  1907.  
  1908. LastPoint = Point
  1909.  
  1910. end
  1911.  
  1912. con1:disconnect()
  1913.  
  1914. if jointhit==false then
  1915.  
  1916.  
  1917.  
  1918. end
  1919.  
  1920. wait(1)
  1921.  
  1922. Torso.Neck.C0=necko*euler(0,0,1)
  1923.  
  1924. if jointhit==false then
  1925.  
  1926. bg.Parent=nil
  1927.  
  1928. RootJoint.C0=RootCF*euler(0,0,-1)
  1929.  
  1930. attack=false
  1931.  
  1932. end
  1933.  
  1934. magic=false
  1935.  
  1936. end
  1937.  
  1938.  
  1939.  
  1940. local LastPoint = prt12.CFrame * CFrame.new(0,-prt12.Size.Y*2.5,0)
  1941.  
  1942. local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
  1943.  
  1944. function effect(Color,Ref,Size,LP,P1,returnn)
  1945.  
  1946. local effectsmsh = Instance.new("BlockMesh")
  1947.  
  1948. effectsmsh.Scale = Vector3.new(0.4,1,0.4)
  1949.  
  1950. effectsmsh.Name = "Mesh"
  1951.  
  1952. local effectsg = Instance.new("Part")
  1953.  
  1954. effectsg.formFactor = 3
  1955.  
  1956. effectsg.CanCollide = false
  1957.  
  1958. effectsg.Name = "Eff"
  1959.  
  1960. effectsg.Locked = true
  1961.  
  1962. effectsg.Anchored = true
  1963.  
  1964. effectsg.Size = Vector3.new(0.2,1,0.2)
  1965.  
  1966. effectsg.Parent = effectz
  1967.  
  1968. effectsmsh.Parent = effectsg
  1969.  
  1970. effectsg.BrickColor = BrickColor.new(Color)
  1971.  
  1972. effectsg.Reflectance = Ref
  1973.  
  1974. local point1 = P1
  1975.  
  1976. local mg = (LP.p - point1.p).magnitude
  1977.  
  1978. effectsg.Size = Vector3.new(Size,mg,Size)
  1979.  
  1980. effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  1981.  
  1982. if returnn then return effectsg end
  1983.  
  1984. coroutine.resume(coroutine.create(function()
  1985.  
  1986. if not returnn then
  1987.  
  1988. for i = 0 , 1 , 0.1 do
  1989.  
  1990. swait()
  1991.  
  1992. effectsg.Transparency = 1*i
  1993.  
  1994. effectsmsh.Scale = Vector3.new(Size-Size*i,1,Size-Size*i)
  1995.  
  1996. end
  1997.  
  1998. swait()
  1999.  
  2000. effectsg.Parent = nil
  2001.  
  2002. end
  2003.  
  2004. end))
  2005.  
  2006. end
  2007.  
  2008.  
  2009.  
  2010. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
  2011.  
  2012. local prt=part(3,effectz,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2013.  
  2014. prt.Anchored=true
  2015.  
  2016. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2017.  
  2018. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2019.  
  2020. coroutine.resume(coroutine.create(function(Part,Mesh)
  2021.  
  2022. for i=0,1,0.1 do
  2023.  
  2024. swait()
  2025.  
  2026. Part.CFrame=Part.CFrame
  2027.  
  2028. Part.Transparency=i
  2029.  
  2030. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2031.  
  2032. end
  2033.  
  2034. Part.Parent=nil
  2035.  
  2036. end),prt,msh)
  2037.  
  2038. end
  2039.  
  2040.  
  2041.  
  2042. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
  2043.  
  2044. local prt=part(3,effectz,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2045.  
  2046. prt.Anchored=true
  2047.  
  2048. prt.CFrame=cframe
  2049.  
  2050. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2051.  
  2052. coroutine.resume(coroutine.create(function(Part,Mesh)
  2053.  
  2054. for i=0,1,0.1 do
  2055.  
  2056. swait()
  2057.  
  2058. Part.CFrame=Part.CFrame
  2059.  
  2060. Part.Transparency=i
  2061.  
  2062. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2063.  
  2064. end
  2065.  
  2066. Part.Parent=nil
  2067.  
  2068. end),prt,msh)
  2069.  
  2070. end
  2071.  
  2072.  
  2073.  
  2074. function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
  2075.  
  2076. local prt=part(3,effectz,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2077.  
  2078. prt.Anchored=true
  2079.  
  2080. prt.CFrame=cframe
  2081.  
  2082. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  2083.  
  2084. coroutine.resume(coroutine.create(function(Part,Mesh)
  2085.  
  2086. for i=0,1,0.03 do
  2087.  
  2088. swait()
  2089.  
  2090. Part.CFrame=Part.CFrame
  2091.  
  2092. Part.Transparency=i
  2093.  
  2094. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2095.  
  2096. end
  2097.  
  2098. Part.Parent=nil
  2099.  
  2100. end),prt,msh)
  2101.  
  2102. end
  2103.  
  2104.  
  2105.  
  2106. function MagicFreeze(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
  2107.  
  2108. local prt=part(3,effectz,0.4,0.3,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2109.  
  2110. prt.Anchored=true
  2111.  
  2112. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2113.  
  2114. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1778999",vt(0,0,0),vt(x1,y1,z1))
  2115.  
  2116. coroutine.resume(coroutine.create(function(Part,Mesh)
  2117.  
  2118. for i=0,1,0.1 do
  2119.  
  2120. Part.CFrame=Part.CFrame*cf(0,0.3,0)
  2121.  
  2122. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2123.  
  2124. end
  2125.  
  2126. wait(5)
  2127.  
  2128. Part.Parent=nil
  2129.  
  2130. end),prt,msh)
  2131.  
  2132. end
  2133.  
  2134.  
  2135.  
  2136. Damagefunc1=function(hit,Damage,Knockback)
  2137.  
  2138. if hit.Parent==nil then
  2139.  
  2140. return
  2141.  
  2142. end
  2143.  
  2144. CPlayer=Bin
  2145.  
  2146. h=hit.Parent:FindFirstChild("Humanoid")
  2147.  
  2148. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  2149.  
  2150. if attackdebounce == false then
  2151.  
  2152. attackdebounce = true
  2153.  
  2154. coroutine.resume(coroutine.create(function()
  2155.  
  2156. wait(0.2)
  2157.  
  2158. attackdebounce = false
  2159.  
  2160. end))
  2161.  
  2162. Damage=Damage
  2163.  
  2164. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  2165.  
  2166. return
  2167.  
  2168. end]]
  2169.  
  2170. -- hs(hit,1.2)
  2171.  
  2172. c=Instance.new("ObjectValue")
  2173.  
  2174. c.Name="creator"
  2175.  
  2176. c.Value=owner
  2177.  
  2178. c.Parent=h
  2179.  
  2180. game:GetService("Debris"):AddItem(c,.5)
  2181.  
  2182. Damage=Damage+math.random(0,10)
  2183.  
  2184. -- h:TakeDamage(Damage)
  2185.  
  2186. blocked=false
  2187.  
  2188. block=hit.Parent:findFirstChild("Block")
  2189.  
  2190. if block~=nil then
  2191.  
  2192. print("herp")
  2193.  
  2194. if block.Value>0 then
  2195.  
  2196. blocked=true
  2197.  
  2198. block.Value=block.Value-1
  2199.  
  2200. print(block.Value)
  2201.  
  2202. end
  2203.  
  2204. end
  2205.  
  2206. if blocked==false then
  2207.  
  2208. -- h:TakeDamage(Damage)
  2209.  
  2210. h.Health=h.Health-Damage
  2211.  
  2212. showDamage(hit.Parent,Damage,.5)
  2213.  
  2214. else
  2215.  
  2216. h:TakeDamage(1)
  2217.  
  2218. showDamage(hit.Parent,1,.5)
  2219.  
  2220. end
  2221.  
  2222. vp=Instance.new("BodyVelocity")
  2223.  
  2224. vp.P=500
  2225.  
  2226. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  2227.  
  2228. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  2229.  
  2230. vp.velocity=RootPart.CFrame.lookVector*Knockback+RootPart.Velocity/1.05
  2231.  
  2232. if Knockback>0 then
  2233.  
  2234. vp.Parent=hit.Parent.Torso
  2235.  
  2236. end
  2237.  
  2238. game:GetService("Debris"):AddItem(vp,.25)
  2239.  
  2240. game:GetService("Debris"):AddItem(r,.5)
  2241.  
  2242. c=Instance.new("ObjectValue")
  2243.  
  2244. c.Name="creator"
  2245.  
  2246. c.Value=Player
  2247.  
  2248. c.Parent=h
  2249.  
  2250. game:GetService("Debris"):AddItem(c,.5)
  2251.  
  2252. CRIT=false
  2253.  
  2254. hitDeb=true
  2255.  
  2256. AttackPos=6
  2257.  
  2258. end
  2259.  
  2260. end
  2261.  
  2262. end
  2263.  
  2264.  
  2265.  
  2266. freezeDamagefunc=function(hit,Damage,Knockback)
  2267.  
  2268. if hit.Parent==nil then
  2269.  
  2270. return
  2271.  
  2272. end
  2273.  
  2274. CPlayer=Bin
  2275.  
  2276. h=hit.Parent:FindFirstChild("Humanoid")
  2277.  
  2278. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  2279.  
  2280. if attackdebounce == false then
  2281.  
  2282. attackdebounce = true
  2283.  
  2284. coroutine.resume(coroutine.create(function()
  2285.  
  2286. wait(0.2)
  2287.  
  2288. attackdebounce = false
  2289.  
  2290. end))
  2291.  
  2292. Damage=Damage
  2293.  
  2294. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  2295.  
  2296. return
  2297.  
  2298. end]]
  2299.  
  2300. -- hs(hit,1.2)
  2301.  
  2302. c=Instance.new("ObjectValue")
  2303.  
  2304. c.Name="creator"
  2305.  
  2306. c.Value=owner
  2307.  
  2308. c.Parent=h
  2309.  
  2310. game:GetService("Debris"):AddItem(c,.5)
  2311.  
  2312. Damage=Damage+math.random(0,5)
  2313.  
  2314. -- h:TakeDamage(Damage)
  2315.  
  2316. blocked=false
  2317.  
  2318. block=hit.Parent:findFirstChild("Block")
  2319.  
  2320. if block~=nil then
  2321.  
  2322. print("herp")
  2323.  
  2324. if block.Value>0 then
  2325.  
  2326. blocked=true
  2327.  
  2328. block.Value=block.Value-1
  2329.  
  2330. print(block.Value)
  2331.  
  2332. end
  2333.  
  2334. end
  2335.  
  2336. if blocked==false then
  2337.  
  2338. -- h:TakeDamage(Damage)
  2339. HitHealth=h.Health
  2340. h.Health=h.Health-Damage
  2341.  
  2342. if HitHealth~=h.Health and HitHealth~=0 and h.Health<=0 and h.Parent.Name~="Hologram" then
  2343. print("gained spree")
  2344.  
  2345. end
  2346. showDamage(hit.Parent,Damage,.5)
  2347.  
  2348. else
  2349.  
  2350. h:TakeDamage(1)
  2351.  
  2352. showDamage(hit.Parent,1,.5)
  2353.  
  2354. end
  2355.  
  2356. if math.random(1,1)==1 then
  2357.  
  2358. BodPos=Instance.new("BodyPosition")
  2359.  
  2360. BodPos.P=50000
  2361.  
  2362. BodPos.D=1000
  2363.  
  2364. BodPos.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2365.  
  2366. BodPos.position=hit.Parent.Torso.Position
  2367.  
  2368. BodPos.Parent=hit.Parent.Torso
  2369.  
  2370. BodGy = it("BodyGyro")
  2371.  
  2372. BodGy.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  2373.  
  2374. BodGy.P = 20e+003
  2375.  
  2376. BodGy.Parent=hit.Parent.Torso
  2377.  
  2378. BodGy.cframe = hit.Parent.Torso.CFrame
  2379.  
  2380. showDamage(hit.Parent,Damage,.5)
  2381.  
  2382. so("http://www.roblox.com/asset/?id=41763367",hit,1,2)
  2383.  
  2384. --[[ for i=1,10 do
  2385.  
  2386. local freezepart=part(3,hit.Parent,0.5,0.5,BrickColor.new("Bright blue"),"Ice Part",vt(math.random(2,3)+math.random(),math.random(2,3)+math.random(),math.random(2,3)+math.random()))
  2387.  
  2388. freezepart.Anchored=true
  2389.  
  2390. freezepart.CFrame=hit.Parent.Torso.CFrame*cf(math.random(-1,0)+math.random(),-2.5,math.random(-1,0)+math.random())*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2391.  
  2392. coroutine.resume(coroutine.create(function(Part)
  2393.  
  2394. wait(5)
  2395.  
  2396. Part.Anchored=false
  2397.  
  2398. Part.Velocity=vt(math.random(-20,20),math.random(20,30),math.random(-20,20))
  2399.  
  2400. wait(5)
  2401.  
  2402. Part.Parent=nil
  2403.  
  2404. end),freezepart)
  2405.  
  2406. end]]
  2407.  
  2408. coroutine.resume(coroutine.create(function(BodyPos,BodyGy,Hitted)
  2409.  
  2410. wait(5)
  2411.  
  2412. BodyPos.Parent=nil
  2413.  
  2414. BodyGy.Parent=nil
  2415.  
  2416. end),BodPos,BodGy,hit)
  2417.  
  2418. end
  2419.  
  2420. vp=Instance.new("BodyVelocity")
  2421.  
  2422. vp.P=500
  2423.  
  2424. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  2425.  
  2426. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  2427.  
  2428. vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
  2429.  
  2430. if Knockback>0 then
  2431.  
  2432. vp.Parent=hit.Parent.Torso
  2433.  
  2434. end
  2435.  
  2436. game:GetService("Debris"):AddItem(vp,.25)
  2437.  
  2438. c=Instance.new("ObjectValue")
  2439.  
  2440. c.Name="creator"
  2441.  
  2442. c.Value=Player
  2443.  
  2444. c.Parent=h
  2445.  
  2446. game:GetService("Debris"):AddItem(c,.5)
  2447.  
  2448. CRIT=false
  2449.  
  2450. hitDeb=true
  2451.  
  2452. AttackPos=6
  2453.  
  2454. end
  2455.  
  2456. end
  2457.  
  2458. end
  2459.  
  2460.  
  2461.  
  2462. showDamage=function(Char,Dealt,du)
  2463.  
  2464. m=Instance.new("Model")
  2465.  
  2466. m.Name=tostring(Dealt)
  2467.  
  2468. h=Instance.new("Humanoid")
  2469.  
  2470. h.Health=0
  2471.  
  2472. h.MaxHealth=0
  2473.  
  2474. h.Parent=m
  2475.  
  2476. c=Instance.new("Part")
  2477.  
  2478. c.Transparency=0
  2479.  
  2480. c.BrickColor=BrickColor:Red()
  2481.  
  2482. if CRIT==true then
  2483.  
  2484. c.BrickColor=BrickColor.new("Really red")
  2485.  
  2486. end
  2487.  
  2488. c.Name="Head"
  2489.  
  2490. c.TopSurface=0
  2491.  
  2492. c.BottomSurface=0
  2493.  
  2494. c.formFactor="Plate"
  2495.  
  2496. c.Size=Vector3.new(1,.4,1)
  2497.  
  2498. ms=Instance.new("CylinderMesh")
  2499.  
  2500. ms.Scale=Vector3.new(.8,.8,.8)
  2501.  
  2502. if CRIT==true then
  2503.  
  2504. ms.Scale=Vector3.new(1,1.25,1)
  2505.  
  2506. end
  2507.  
  2508. ms.Parent=c
  2509.  
  2510. c.Reflectance=0
  2511.  
  2512. Instance.new("BodyGyro").Parent=c
  2513.  
  2514. c.Parent=m
  2515.  
  2516. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  2517.  
  2518. f=Instance.new("BodyPosition")
  2519.  
  2520. f.P=2000
  2521.  
  2522. f.D=100
  2523.  
  2524. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2525.  
  2526. f.position=c.Position+Vector3.new(0,3,0)
  2527.  
  2528. f.Parent=c
  2529.  
  2530. game:GetService("Debris"):AddItem(m,.5+du)
  2531.  
  2532. c.CanCollide=false
  2533.  
  2534. m.Parent=effectz
  2535.  
  2536. c.CanCollide=false
  2537.  
  2538. end
  2539.  
  2540.  
  2541.  
  2542. function ob1d(mouse)
  2543.  
  2544. if attack == true then return end
  2545. hold=true
  2546. if combo==0 then
  2547. combo=1
  2548. oneslash()
  2549. elseif combo==1 then
  2550. combo=2
  2551. twoslash()
  2552. elseif combo==2 then
  2553. combo=3
  2554. threeslash()
  2555. elseif combo==3 then
  2556. combo=4
  2557. fourslash()
  2558. end
  2559. end
  2560.  
  2561.  
  2562.  
  2563. function ob1u(mouse)
  2564.  
  2565. hold = false
  2566.  
  2567. end
  2568.  
  2569.  
  2570.  
  2571. buttonhold = false
  2572.  
  2573.  
  2574.  
  2575. function key(key)
  2576.  
  2577. if attack == true then return end
  2578.  
  2579. --attack=true
  2580.  
  2581. if key=="z" then
  2582.  
  2583. FlameBarrage()
  2584.  
  2585. end
  2586.  
  2587. if key=="x" then
  2588.  
  2589. IcePrison()
  2590.  
  2591. end
  2592.  
  2593. if key=="c" then
  2594.  
  2595. AirDash()
  2596.  
  2597. end
  2598.  
  2599. if key=="v" then
  2600.  
  2601. DarkWave()
  2602.  
  2603. end
  2604.  
  2605.  
  2606. --[[if key=="f" then
  2607.  
  2608. --so("http://roblox.com/asset/?id=130839563",Torso,1,1)
  2609.  
  2610. so("http://www.roblox.com/asset/?id=10209810",Torso,1,1)
  2611.  
  2612. wait(5)
  2613.  
  2614. for i=0,1,0.1 do
  2615.  
  2616. swait()
  2617.  
  2618. so("http://www.roblox.com/asset/?id=10209810",Torso,.8,2)
  2619.  
  2620. end
  2621.  
  2622. end]]
  2623.  
  2624. combo=0
  2625.  
  2626. wld1.C0=euler(1.57,0,0)*cf(0,1,0)
  2627.  
  2628. RW.C0=cf(1.5, 0.5, 0) * euler(0,0,0.3)
  2629.  
  2630. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  2631.  
  2632. LW.C0=cf(-1.5, 0.5, 0) * euler(0.5,-1.57,0)
  2633.  
  2634. LW.C1=cf(0, 0.5, 0) * euler(0.2,0,0)
  2635.  
  2636. Humanoid.WalkSpeed=16
  2637.  
  2638. end
  2639.  
  2640.  
  2641.  
  2642. function key2(key)
  2643.  
  2644. end
  2645.  
  2646. game:GetService("RunService").Heartbeat:Connect(function()
  2647. wait(1)
  2648. if mana <= 100 then
  2649. mana = mana + 1
  2650. elseif mana >= 100 then
  2651. mana = 100
  2652. end
  2653. end)
  2654.  
  2655. function s()
  2656.  
  2657.  
  2658. unsheathed = true
  2659.  
  2660. player = Player
  2661.  
  2662. ch = Character
  2663.  
  2664. MMouse = mouse
  2665.  
  2666. RSH = ch.Torso["Right Shoulder"]
  2667.  
  2668. LSH = ch.Torso["Left Shoulder"]
  2669.  
  2670. --
  2671.  
  2672. RSH.Parent = nil
  2673.  
  2674. LSH.Parent = nil
  2675.  
  2676. --
  2677.  
  2678. RW.Part0 = ch.Torso
  2679.  
  2680. RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  2681.  
  2682. RW.C1 = CFrame.new(0, 0.5, 0)
  2683.  
  2684. RW.Part1 = ch["Right Arm"]
  2685.  
  2686. RW.Parent = ch.Torso
  2687.  
  2688. --_G.R = RW
  2689.  
  2690. --
  2691.  
  2692. LW.Part0 = ch.Torso
  2693.  
  2694. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  2695.  
  2696. LW.C1 = CFrame.new(0, 0.5, 0)
  2697.  
  2698. LW.Part1 = ch["Left Arm"]
  2699.  
  2700. LW.Parent = ch.Torso
  2701.  
  2702. --_G.L = LW
  2703.  
  2704. --
  2705.  
  2706. equipanim()
  2707.  
  2708. end
  2709.  
  2710.  
  2711.  
  2712. function ds()
  2713.  
  2714. hideanim()
  2715.  
  2716. swait()
  2717.  
  2718. RW.Parent = nil
  2719.  
  2720. LW.Parent = nil
  2721.  
  2722. RSH.Parent = player.Character.Torso
  2723.  
  2724. LSH.Parent = player.Character.Torso
  2725.  
  2726. end
  2727.  
  2728.  
  2729. print("Spell Rapier loaded.")
  2730.  
  2731. local sine = 0
  2732. local change = 1
  2733. local val = 0
  2734. local idle = 0
  2735. local donum = 0
  2736.  
  2737. while true do
  2738. pwait()
  2739. sine = sine + change
  2740. local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  2741. local velderp = RootPart.Velocity.y
  2742. hitfloor, posfloor = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  2743. if equipped == true or equipped == false then
  2744. if attack == false then
  2745. idle = idle + 1
  2746. else
  2747. idle = 0
  2748. end
  2749.  
  2750. if idle >= 500 then
  2751. if attack == false then
  2752. end
  2753. end
  2754. if donum >= .5 then
  2755. handidle = true
  2756. elseif donum <= 0 then
  2757. handidle = false
  2758. end
  2759. if handidle == false then
  2760. donum = donum + 0.003
  2761. else
  2762. donum = donum - 0.003
  2763. end
  2764. if RootPart.Velocity.y > 1 and hitfloor == nil then
  2765. Anim = "Jump"
  2766. if attack == false then
  2767. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 2) * angles(math.rad(30), math.rad(0), math.rad(0)), .3)
  2768. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(0)), .3)
  2769. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(20), math.rad(70)), 0.3)
  2770. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-20), math.rad(-70)), 0.3)
  2771. RH.C0 = clerp(RH.C0, cf(1, -.5, -.5) * angles(math.rad(0), math.rad(90), math.rad(-30)), .3)
  2772. LH.C0 = clerp(LH.C0, cf(-1, -.8, -.5) * angles(math.rad(0), math.rad(-90), math.rad(20)), .3)
  2773. end
  2774. elseif RootPart.Velocity.y < -1 and hitfloor == nil then
  2775. Anim = "Fall"
  2776. if attack == false then
  2777. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  2778. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(30), math.rad(0), math.rad(0)), .3)
  2779. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.7, 0) * angles(math.rad(0), math.rad(0), math.rad(130)), 0.3)
  2780. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.7, 0) * angles(math.rad(0), math.rad(0), math.rad(-130)), 0.3)
  2781. RH.C0 = clerp(RH.C0, cf(1, -.7, -.5) * angles(math.rad(0), math.rad(90), math.rad(-20)), .3)
  2782. LH.C0 = clerp(LH.C0, cf(-1, -1, -.5) * angles(math.rad(0), math.rad(-90), math.rad(10)), .3)
  2783. end
  2784.  
  2785. elseif torvel < 1 and hitfloor ~= nil then
  2786. Anim = "Idle"
  2787. if attack == false then
  2788. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(2), math.rad(0), math.rad(-30)), .3)
  2789. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5), math.rad(0), math.rad(30)), .3)
  2790. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0) + donum / 2, math.rad(0) + donum / 2, math.rad(10)), 0.3)
  2791. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5, 0) * angles(math.rad(0) + donum / 2, math.rad(-30) - donum / 2, math.rad(-20)), 0.3)
  2792. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(-2)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  2793. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-70), math.rad(-2)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  2794. end
  2795. elseif torvel > 2 and hitfloor ~= nil then
  2796. Anim = "Walk"
  2797. if attack == false then
  2798. change = 3
  2799. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), .3)
  2800. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-10), math.rad(0), math.rad(0)), .3)
  2801. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(15)), 0.3)
  2802. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-15)), 0.3)
  2803. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
  2804. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
  2805. end
  2806. end
  2807. end
  2808. if #Effects > 0 then
  2809. for e = 1, #Effects do
  2810. if Effects[e] ~= nil then
  2811. local Thing = Effects[e]
  2812. if Thing ~= nil then
  2813. local Part = Thing[1]
  2814. local Mode = Thing[2]
  2815. local Delay = Thing[3]
  2816. local IncX = Thing[4]
  2817. local IncY = Thing[5]
  2818. local IncZ = Thing[6]
  2819. if Thing[1].Transparency <= 1 then
  2820. if Thing[2] == "Block1" then
  2821. Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2822. Mesh = Thing[1].Mesh
  2823. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  2824. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2825. elseif Thing[2] == "Cylinder" then
  2826. Mesh = Thing[1].Mesh
  2827. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  2828. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2829. elseif Thing[2] == "Blood" then
  2830. Mesh = Thing[7]
  2831. Thing[1].CFrame = Thing[1].CFrame * cf(0, .5, 0)
  2832. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  2833. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2834. elseif Thing[2] == "Elec" then
  2835. Mesh = Thing[1].Mesh
  2836. Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
  2837. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2838. elseif Thing[2] == "Disappear" then
  2839. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2840. end
  2841. else
  2842. Part.Parent = nil
  2843. table.remove(Effects, e)
  2844. end
  2845. end
  2846. end
  2847. end
  2848. end
  2849. end
  2850.  
  2851.  
  2852. -- mediafire
  2853.  
  2854. --[[
  2855.  
  2856. Copyrighted (C) Fenrier 2013
  2857.  
  2858. ]]
  2859.  
  2860. remote = Instance.new 'RemoteFunction';
  2861. remote.Parent = script;
  2862. remote.OnServerInvoke = function (player, request, ...)
  2863. if (player ~= owner) then
  2864. return error ('You cannot invoke this remote', 0);
  2865. end;
  2866. if (request == 1) then
  2867.  
  2868. ob1d(...)
  2869. end
  2870. if (request == 2) then
  2871. local k = ...;
  2872. key(k)
  2873.  
  2874. end;
  2875. if (request == 3) then
  2876.  
  2877. ob1u(...)
  2878. end
  2879. if (request == 4) then
  2880. s()
  2881. end;
  2882. if (request == 5) then
  2883. ds()
  2884. end;
  2885. if (request == 6) then
  2886. local k = ...;
  2887. key2(k)
  2888. end;
  2889. end
  2890. remote.Name = 'ServerRemote';
  2891. function getMouseHit()
  2892. return remote:InvokeClient (owner, 1);
  2893. end;
  2894. ]=], owner.Character):WaitForChild 'ServerRemote';
  2895.  
  2896. local plr = game.Players.LocalPlayer
  2897. local chr = plr.Character
  2898. local mouse = plr:GetMouse()
  2899.  
  2900. q = Instance.new('HopperBin', plr.Backpack)
  2901. q.Name = 'Spell Rapier'
  2902. Bin=q
  2903.  
  2904. Bin.Selected:connect(function(mouse)
  2905. remote:InvokeServer(4);
  2906. mouse.Button1Down:connect(function()
  2907. remote:InvokeServer (1,mouse);
  2908. end)
  2909. mouse.Button1Up:Connect(function()
  2910. remote:InvokeServer (3,mouse);
  2911. end)
  2912. mouse.KeyDown:connect(function(k)
  2913. k = k:lower()
  2914.  
  2915. remote:InvokeServer (2, k);
  2916. end)
  2917. mouse.KeyUp:connect(function(k)
  2918. k = k:lower()
  2919.  
  2920. remote:InvokeServer (6, k);
  2921. end)
  2922. end)
  2923.  
  2924. Bin.Deselected:Connect(function()
  2925. remote:InvokeServer(5);
  2926. end)
  2927.  
  2928. remote.OnClientInvoke = function (request, ...)
  2929. if (request == 1) then
  2930. return mouse.Hit.p;
  2931. end;
  2932. end;
  2933.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement