Advertisement
mathmasterphil

Titan

Mar 11th, 2015
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 29.46 KB | None | 0 0
  1. --[[
  2.  
  3. ]]
  4.  
  5. Player = game:GetService("Players").LocalPlayer
  6.  
  7. Character = Player.Character
  8.  
  9. PlayerGui = Player.PlayerGui
  10.  
  11. Backpack = Player.Backpack
  12.  
  13. Torso = Character.Torso
  14.  
  15. Head = Character.Head
  16.  
  17. Humanoid = Character.Humanoid
  18.  
  19. LeftArm = Character["Left Arm"]
  20.  
  21. LeftLeg = Character["Left Leg"]
  22.  
  23. RightArm = Character["Right Arm"]
  24.  
  25. RightLeg = Character["Right Leg"]
  26.  
  27. LS = Torso["Left Shoulder"]
  28.  
  29. LH = Torso["Left Hip"]
  30.  
  31. RS = Torso["Right Shoulder"]
  32.  
  33. RH = Torso["Right Hip"]
  34.  
  35. Neck = Torso.Neck
  36.  
  37. it=Instance.new
  38.  
  39. vt=Vector3.new
  40.  
  41. cf=CFrame.new
  42.  
  43. euler=CFrame.fromEulerAnglesXYZ
  44.  
  45. angles=CFrame.Angles
  46.  
  47. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  48.  
  49. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  50.  
  51. attack = false
  52.  
  53. attacktype = 1
  54.  
  55. damage = 40
  56.  
  57. oridamage = 30
  58.  
  59. attackdebounce = false
  60.  
  61. ssdebounce=false
  62.  
  63. MMouse=nil
  64.  
  65. combo=0
  66.  
  67. --player
  68.  
  69. player = nil
  70.  
  71. --save shoulders
  72.  
  73. RSH, LSH = nil, nil
  74.  
  75. --welds
  76.  
  77. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  78.  
  79. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  80.  
  81. if Character:findFirstChild("Sword",true) ~= nil then
  82.  
  83. Character:findFirstChild("Sword",true).Parent = nil
  84.  
  85. end
  86.  
  87. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  88.  
  89. local fp = it("Part")
  90.  
  91. fp.formFactor = formfactor
  92.  
  93. fp.Parent = parent
  94.  
  95. fp.Reflectance = reflectance
  96.  
  97. fp.Transparency = transparency
  98.  
  99. fp.CanCollide = false
  100.  
  101. fp.Locked=true
  102.  
  103. fp.BrickColor = brickcolor
  104.  
  105. fp.Name = name
  106.  
  107. fp.Size = size
  108.  
  109. fp.Position = Torso.Position
  110.  
  111. fp.BottomSurface="Smooth"
  112.  
  113. fp.TopSurface="Smooth"
  114.  
  115. fp:BreakJoints()
  116.  
  117. return fp
  118.  
  119. end
  120.  
  121. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  122.  
  123. local mesh = it(Mesh)
  124.  
  125. mesh.Parent = part
  126.  
  127. if Mesh=="SpecialMesh" then
  128.  
  129. mesh.MeshType = meshtype
  130.  
  131. mesh.MeshId = meshid
  132.  
  133. end
  134.  
  135. mesh.Offset=offset
  136.  
  137. mesh.Scale=scale
  138.  
  139. return mesh
  140.  
  141. end
  142.  
  143. function weld(parent,part0,part1,c0)
  144.  
  145. local weld = it("Weld")
  146.  
  147. weld.Parent = parent
  148.  
  149. weld.Part0 = part0
  150.  
  151. weld.Part1 = part1
  152.  
  153. weld.C0 = c0
  154.  
  155. return weld
  156.  
  157. end
  158.  
  159. local modelzorz = Instance.new("Model")
  160.  
  161. modelzorz.Parent = Character
  162.  
  163. modelzorz.Name = "Sword"
  164.  
  165. local prt1=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part2",vt(1,1,1))
  166.  
  167. local prt2=part(3,modelzorz,0,0,BrickColor.new("Gold"),"Part2",vt(1,1,1))
  168.  
  169. local prt3=part(3,modelzorz,0,0,BrickColor.new("Gold"),"Part3",vt(1,1,1))
  170.  
  171. local prt4=part(3,modelzorz,0,0,BrickColor.new("Gold"),"Part4",vt(1,1,1))
  172.  
  173. local prt5=part(3,modelzorz,0,0,BrickColor.new("Gold"),"Part5",vt(1,1,1))
  174.  
  175. local prt6=part(3,modelzorz,0.3,0,BrickColor.new("Gold"),"Part6",vt(1,2,1))
  176.  
  177. local prt7=part(3,modelzorz,0.3,0,BrickColor.new("Gold"),"Part7",vt(1,2,1))
  178.  
  179. local prt8=part(3,modelzorz,0.3,0,BrickColor.new("Gold"),"Part8",vt(1,1,1))
  180.  
  181. local prt9=part(3,modelzorz,0.3,0,BrickColor.new("Gold"),"Part9",vt(1,1,1))
  182.  
  183. local prt10=part(3,modelzorz,0,0.5,BrickColor.new("Gold"),"Part10",vt(1,1,1))
  184.  
  185. coroutine.resume(coroutine.create(function()
  186.  
  187. while true do
  188.  
  189. wait(0)
  190.  
  191. for i=0.5,0.9,0.01 do
  192.  
  193. wait()
  194.  
  195. prt10.Transparency=i
  196.  
  197. end
  198.  
  199. for i=0.9,0.5,-0.01 do
  200.  
  201. wait()
  202.  
  203. prt10.Transparency=i
  204.  
  205. end
  206.  
  207. end
  208.  
  209. end))
  210.  
  211. local msh1=mesh("CylinderMesh",prt1,"","",vt(0,0,0),vt(0.3,1,0.3))
  212.  
  213. local msh2=mesh("BlockMesh",prt2,"","",vt(0,0,0),vt(0.1,0.5,0.1))
  214.  
  215. local msh3=mesh("BlockMesh",prt3,"","",vt(0,0,0),vt(0.1,0.5,0.1))
  216.  
  217. local msh4=mesh("BlockMesh",prt4,"","",vt(0,0,0),vt(0.6,0.1,0.3))
  218.  
  219. local msh5=mesh("BlockMesh",prt5,"","",vt(0,0,0),vt(0.4,0.1,0.5))
  220.  
  221. local msh6=mesh("BlockMesh",prt6,"","",vt(0,0,0),vt(0.4,1.5,0.05))
  222.  
  223. local msh7=mesh("BlockMesh",prt7,"","",vt(0,0,0),vt(0.21,1.5,0.06))
  224.  
  225. local msh8=mesh("SpecialMesh",prt8,"Wedge","",vt(0,0,0),vt(0.05,0.4,0.4))
  226.  
  227. local msh9=mesh("SpecialMesh",prt9,"Wedge","",vt(0,0,0),vt(0.06,0.21,0.4))
  228.  
  229. local msh10=mesh("SpecialMesh",prt10,"Sphere","",vt(0,0,0),vt(1.5,1.5,1.5))
  230.  
  231. local wld1=weld(prt1,prt1,Torso,euler(0,0,0)*cf(-0.5,-2,-0.5))
  232.  
  233. local wld2=weld(prt2,prt2,prt1,euler(0,0,0)*cf(0,-0.7,0))
  234.  
  235. local wld3=weld(prt3,prt3,prt1,euler(0,0,1.57)*cf(0,-0.7,0))
  236.  
  237. local wld4=weld(prt4,prt4,prt1,euler(0,0,0)*cf(0,0.5,0))
  238.  
  239. local wld5=weld(prt5,prt5,prt4,euler(0,0,0)*cf(0,0,0))
  240.  
  241. local wld6=weld(prt6,prt6,prt5,euler(0,0,0)*cf(0,1.5,0))
  242.  
  243. local wld7=weld(prt7,prt7,prt6,euler(0,0,0)*cf(-0.1,0,0))
  244.  
  245. local wld8=weld(prt8,prt8,prt6,euler(1.57,-1.57,0)*cf(0,1.7,0))
  246.  
  247. local wld9=weld(prt9,prt9,prt7,euler(1.57,-1.57,0)*cf(0,1.7,0))
  248.  
  249. local wld10=weld(prt10,prt10,LeftArm,euler(0,0,0)*cf(0,1,0))
  250.  
  251. derp=-0.4
  252.  
  253. for i=1,5 do
  254.  
  255. local prt=part(3,modelzorz,0,0,BrickColor.new("Gold"),"Part",vt(1,1,1))
  256.  
  257. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(0.25,0.1,0.25))
  258.  
  259. local wld=weld(prt,prt,prt1,euler(0,0.785,0)*cf(0,derp,0))
  260.  
  261. derp=derp+0.2
  262.  
  263. end
  264.  
  265. if (script.Parent.className ~= "HopperBin") then
  266.  
  267. Tool = Instance.new("HopperBin")
  268.  
  269. Tool.Parent = Backpack
  270.  
  271. Tool.Name = "Katana"
  272.  
  273. script.Parent = Tool
  274.  
  275. end
  276.  
  277. Bin = script.Parent
  278.  
  279. local bg = it("BodyGyro")
  280.  
  281. bg.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  282.  
  283. bg.P = 20e+003
  284.  
  285. bg.Parent = nil
  286.  
  287. so = function(id,par,vol,pit)
  288.  
  289. coroutine.resume(coroutine.create(function()
  290.  
  291. local sou = Instance.new("Sound",par or workspace)
  292.  
  293. sou.Volume=vol
  294.  
  295. sou.Pitch=pit or 1
  296.  
  297. sou.SoundId=id
  298.  
  299. wait()
  300.  
  301. sou:play()
  302.  
  303. wait(6)
  304.  
  305. sou:Remove()
  306.  
  307. end))
  308.  
  309. end
  310.  
  311. function unequipweld()
  312.  
  313. wld1.Part1=Torso
  314.  
  315. wld1.C0=euler(0,0,0)*cf(-0.5,-2,-0.5)
  316.  
  317. end
  318.  
  319. function equipweld()
  320.  
  321. wld1.Part1=RightArm
  322.  
  323. wld1.C0=euler(-1.57,0,-1.57)*cf(0,1,0)
  324.  
  325. end
  326.  
  327. function hideanim()
  328.  
  329. equipped=false
  330.  
  331. wait(0.1)
  332.  
  333. bg.Parent=nil
  334.  
  335. unequipweld()
  336.  
  337. end
  338.  
  339. function equipanim()
  340.  
  341. equipped=true
  342.  
  343. wait(0.1)
  344.  
  345. equipweld()
  346.  
  347. RW.C0=cf(1.5, 0.5, 0) * euler(1,0,0)
  348.  
  349. RW.C1=cf(0, 0.5, 0) * euler(0,-0.4,-0.2)
  350.  
  351. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2)
  352.  
  353. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  354.  
  355. end
  356.  
  357. function Charge()
  358.  
  359. attack=true
  360.  
  361. SpecialEffect()
  362.  
  363. for i=0,1,0.1 do
  364.  
  365. wait()
  366.  
  367. eul=1*i
  368.  
  369. Torso.Neck.C0=necko*euler(0,0,-1*i)
  370.  
  371. RW.C0=cf(1.5-1*i, 0.5, -1*i) * euler(1+0.2*i,0,0)
  372.  
  373. RW.C1=cf(0, 0.5, 0) * euler(0,-0.4-2*i,-0.2+1.77*i)
  374.  
  375. LW.C0=cf(-1.5, 0.5, 0) * euler(-0.5*i,0,-0.2-0.5*i)
  376.  
  377. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  378.  
  379. end
  380.  
  381. wait(0.3)
  382.  
  383. local vel2 = Instance.new("BodyVelocity")
  384.  
  385. vel2.Parent = Torso
  386.  
  387. vel2.maxForce = vt(4e+005,4e+005,4e+005)*1
  388.  
  389. vel2.velocity = Head.CFrame.lookVector*100
  390.  
  391. local LastPoint = prt7.CFrame * CFrame.new(0,-prt7.Size.Y,0)
  392.  
  393. con1=prt7.Touched:connect(function(hit) Damagefunc2(hit,40,80) end)
  394.  
  395. so("http://roblox.com/asset/?id=10209640",LeftArm,1,1)
  396.  
  397. for i=0,1,0.2 do
  398.  
  399. wait()
  400.  
  401. wld1.C0=euler(-1.57,-1.57*i,-1.57)*cf(0,1,0)
  402.  
  403. RW.C0=cf(0.5+1*i, 0.5, -1+1*i) * euler(1.2,0,0)
  404.  
  405. RW.C1=cf(0, 0.5, 0) * euler(0,-2.4+1.5*i,1.57-3.14*i)
  406.  
  407. local Point = prt7.CFrame * CFrame.new(0,-prt7.Size.Y,0)
  408.  
  409. effect("Gold ",0.5,LastPoint,Point)
  410.  
  411. LastPoint = Point
  412.  
  413. end
  414.  
  415. con1:disconnect()
  416.  
  417. vel2.Parent=nil
  418.  
  419. wait(1)
  420.  
  421. eul=0
  422.  
  423. Torso.Neck.C0=necko*euler(0,0,0)
  424.  
  425. wld1.C0=euler(-1.57,0,-1.57)*cf(0,1,0)
  426.  
  427. RW.C0=cf(1.5, 0.5, 0) * euler(1,0,0)
  428.  
  429. RW.C1=cf(0, 0.5, 0) * euler(0,-0.4,-0.2)
  430.  
  431. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2)
  432.  
  433. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  434.  
  435. attack=false
  436.  
  437. end
  438.  
  439. function spintowin()
  440.  
  441. attack=true
  442.  
  443. SpecialEffect()
  444.  
  445. for i=0,1,0.1 do
  446.  
  447. wait()
  448.  
  449. wld1.C0=euler(-1.57,-1.57*i,-1.57)*cf(0,1,0)
  450.  
  451. RW.C0=cf(1.5-0.5*i, 0.5, -0.5*i) * euler(1,0,-0.5*i)
  452.  
  453. RW.C1=cf(0, 0.5, 0) * euler(0,-0.4-1.57*i,-0.2)
  454.  
  455. LW.C0=cf(-1.5, 0.5, 0) * euler(0.3*i,0,-0.2-0.2*i)
  456.  
  457. end
  458.  
  459. --[[local vel2 = Instance.new("BodyVelocity")
  460.  
  461. vel2.Parent = Torso
  462.  
  463. vel2.maxForce = vt(4e+005,4e+005,4e+005)*1
  464.  
  465. vel2.velocity = Head.CFrame.lookVector*20]]
  466.  
  467. bg.Parent=Torso
  468.  
  469. CF = Torso.CFrame
  470.  
  471. local LastPoint = prt7.CFrame * CFrame.new(0,-prt7.Size.Y,0)
  472.  
  473. con1=prt7.Touched:connect(function(hit) Damagefunc1(hit,30,0.1) end)
  474.  
  475. so("http://roblox.com/asset/?id=10209640",LeftArm,1,1.1)
  476.  
  477. for i = 0 , 1 , 0.1 do
  478.  
  479. wait(0)  
  480.  
  481. RW.C0=cf(1.5-0.5+0.5*i, 0.5, -0.5+0.5*i) * euler(1-1*i,0,-0.5+2.07*i)
  482.  
  483. RW.C1=cf(0, 0.5, 0) * euler(0,-1.97+1.97*i,-0.2+0.2*i)
  484.  
  485. LW.C0=cf(-1.5, 0.5, 0) * euler(0.3+1.27*i,0,-0.4+0.4*i)
  486.  
  487. bg.cframe=CF*euler(0,-6.283*i,0)
  488.  
  489. local Point = prt7.CFrame * CFrame.new(0,-prt7.Size.Y,0)
  490.  
  491. effect("Gold ",0.5,LastPoint,Point)
  492.  
  493. LastPoint = Point
  494.  
  495. end
  496.  
  497. for i=1,5 do
  498.  
  499. so("http://roblox.com/asset/?id=10209640",LeftArm,1,1.1)
  500.  
  501. for i = 0 , 1 , 0.1 do
  502.  
  503. wait(0)  
  504.  
  505. bg.cframe=CF*euler(0,-6.283*i,0)
  506.  
  507. local Point = prt7.CFrame * CFrame.new(0,-prt7.Size.Y,0)
  508.  
  509. effect("Gold",0.5,LastPoint,Point)
  510.  
  511. LastPoint = Point
  512.  
  513. end
  514.  
  515. end
  516.  
  517. --vel2.Parent=nil
  518.  
  519. con1:disconnect()
  520.  
  521. wait(0.5)
  522.  
  523. for i = 0 , 1 , 0.1 do
  524.  
  525. wait(0)  
  526.  
  527. wld1.C0=euler(-1.57,-1.57+1.57*i,-1.57)*cf(0,1,0)
  528.  
  529. RW.C0=cf(1.5, 0.5, 0) * euler(1*i,0,1.57-1.57*i)
  530.  
  531. RW.C1=cf(0, 0.5, 0) * euler(0,-0.4*i,-0.2*i)
  532.  
  533. LW.C0=cf(-1.5, 0.5, 0) * euler(1.57-1.57*i,0,-0.2*i)
  534.  
  535. end
  536.  
  537. attack=false
  538.  
  539. end
  540.  
  541. function CombatCharge()
  542.  
  543. attack=true
  544.  
  545. SpecialEffect()
  546.  
  547. for i=0,1,0.1 do
  548.  
  549. wait()
  550.  
  551. RW.C0=cf(1.5, 0.5, 0) * euler(1+2*i,0,0)
  552.  
  553. RW.C1=cf(0, 0.5, 0) * euler(0,-0.4+0.4*i,-0.2+0.2*i)
  554.  
  555. LW.C0=cf(-1.5, 0.5, 0) * euler(-0.5*i,0,-0.2)
  556.  
  557. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  558.  
  559. end
  560.  
  561. local LastPoint = prt7.CFrame * CFrame.new(0,-prt7.Size.Y,0)
  562.  
  563. con1=prt7.Touched:connect(function(hit) Damagefunc1(hit,30,20) end)
  564.  
  565. so("http://roblox.com/asset/?id=10209640",LeftArm,1,1)
  566.  
  567. for i=0,1,0.2 do
  568.  
  569. wait()
  570.  
  571. RW.C0=cf(1.5, 0.5, 0) * euler(3-3.5*i,0,0)
  572.  
  573. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  574.  
  575. LW.C0=cf(-1.5, 0.5, 0) * euler(-0.5,0,-0.2)
  576.  
  577. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  578.  
  579. local Point = prt7.CFrame * CFrame.new(0,-prt7.Size.Y,0)
  580.  
  581. effect("Gold",0.5,LastPoint,Point)
  582.  
  583. LastPoint = Point
  584.  
  585. end
  586.  
  587. for i=1,10 do
  588.  
  589. numb=math.random(-180,180)
  590.  
  591. RW.C0=cf(1.5, 0.5, 0) * euler(3,0,math.rad(numb))
  592.  
  593. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  594.  
  595. local LastPoint = prt7.CFrame * CFrame.new(0,-prt7.Size.Y,0)
  596.  
  597. so("http://roblox.com/asset/?id=10209640",LeftArm,1,1)
  598.  
  599. for i=0,1,0.2 do
  600.  
  601. wait()
  602.  
  603. RW.C0=cf(1.5, 0.5, 0) * euler(3,0,math.rad(numb))
  604.  
  605. RW.C1=cf(0, 0.5, 0) * euler(3.5*i,0,0)
  606.  
  607. LW.C0=cf(-1.5, 0.5, 0) * euler(-0.5,0,-0.2)
  608.  
  609. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  610.  
  611. local Point = prt7.CFrame * CFrame.new(0,-prt7.Size.Y,0)
  612.  
  613. effect("Gold",0.5,LastPoint,Point)
  614.  
  615. LastPoint = Point
  616.  
  617. end
  618.  
  619. end
  620.  
  621. con1:disconnect()
  622.  
  623. wait(0.3)
  624.  
  625. for i=0,1,0.1 do
  626.  
  627. wait()
  628.  
  629. RW.C0=cf(1.5, 0.5, 0) * euler(3-2*i,0,math.rad(numb)-math.rad(numb)*i)
  630.  
  631. RW.C1=cf(0, 0.5, 0) * euler(3.5-3.5*i,-0.4*i,-0.2*i)
  632.  
  633. LW.C0=cf(-1.5, 0.5, 0) * euler(-0.5+0.5*i,0,-0.2)
  634.  
  635. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  636.  
  637. end
  638.  
  639. attack=false
  640.  
  641. end
  642.  
  643. function Despair()
  644.  
  645. attack=true
  646.  
  647. Humanoid.WalkSpeed=0
  648.  
  649. print("Warrior SS initiated.")
  650.  
  651. SpecialEffect()
  652.  
  653. bg.Parent=Head
  654.  
  655. CF = Head.CFrame
  656.  
  657. bg.cframe=CF
  658.  
  659. for i=0,1,0.2 do
  660.  
  661. wait()
  662.  
  663. Neck.C0=necko*euler(0,0,1.57*i)
  664.  
  665. RW.C0=cf(1.5, 0.5, 0) * euler(1,0,0)
  666.  
  667. RW.C1=cf(0, 0.5, 0) * euler(0,-0.4,-0.2-1.37*i)
  668.  
  669. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2-1.37*i)
  670.  
  671. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  672.  
  673. end
  674.  
  675. wait(0.2)
  676.  
  677. partCFrame=Head.CFrame*cf(0,0,-20)
  678.  
  679. local hit,pos = rayCast(LeftArm.Position,Head.CFrame.lookVector,100,Character)
  680.  
  681. if hit~=nil then
  682.  
  683. partCFrame=hit.CFrame
  684.  
  685. print("HITTED")
  686.  
  687. end
  688.  
  689. prt10.Parent=nil
  690.  
  691. local basepart=part(3,workspace,0,0,Torso.BrickColor,"Base Part",vt(1,1,1))
  692.  
  693. basepart.CFrame=partCFrame
  694.  
  695. basepart.Anchored=true
  696.  
  697. so("http://roblox.com/asset/?id=2101144",basepart,1,2)
  698.  
  699. MagicCircle(BrickColor.new("Gold"),basepart.CFrame,3,3,3,0,0,0,7,7,7)
  700.  
  701. MagicCircle(BrickColor.new("Gold"),basepart.CFrame,5,1,1,0,0,0,9,1,1)
  702.  
  703. MagicCircle(BrickColor.new("Gold"),basepart.CFrame,1,5,1,0,0,0,1,9,1)
  704.  
  705. MagicCircle(BrickColor.new("Gold"),basepart.CFrame,1,1,5,0,0,0,1,1,9)
  706.  
  707. local c = game.Workspace:GetChildren()
  708.  
  709. for i = 1, #c do
  710.  
  711. local hum = c[i]:findFirstChild("Humanoid")
  712.  
  713. if hum ~= nil and hum.Health ~= 0 then
  714.  
  715. local head = c[i]:findFirstChild("Head")
  716.  
  717. if head ~= nil then
  718.  
  719. local targ = head.Position - basepart.Position
  720.  
  721. local mag = targ.magnitude
  722.  
  723. if mag <= 20 and c[i].Name ~= Player.Name then
  724.  
  725. fb=Instance.new("BodyPosition")
  726.  
  727. coroutine.resume(coroutine.create(function(Part,BodPos)
  728.  
  729. Part.Parent.Humanoid.Health=Part.Parent.Humanoid.Health-5
  730.  
  731. showDamage(Part.Parent,"Stunned!",10)
  732.  
  733. walkspeed=Part.Parent.Humanoid.WalkSpeed
  734.  
  735. Part.Parent.Humanoid.WalkSpeed=0.01
  736.  
  737. BodPos.P=20000
  738.  
  739. BodPos.D=1000
  740.  
  741. BodPos.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  742.  
  743. BodPos.position=Part.Position
  744.  
  745. BodPos.Parent=Part
  746.  
  747. wait(10)
  748.  
  749. BodPos.Parent=nil
  750.  
  751. Part.Parent.Humanoid.WalkSpeed=walkspeed
  752.  
  753. end),head,fb)
  754.  
  755. end
  756.  
  757. end
  758.  
  759. end
  760.  
  761. end
  762.  
  763. wait(1)
  764.  
  765. Clone()
  766.  
  767. Torso.CFrame=partCFrame*cf(0,15,0)
  768.  
  769. basepart.Parent=nil
  770.  
  771. bg.Parent=nil
  772.  
  773. Neck.C0=necko
  774.  
  775. RW.C0=cf(1.5, 0.5, 0) * euler(1,0,0)
  776.  
  777. RW.C1=cf(0, 0.5, 0) * euler(0,-0.4,-0.2)
  778.  
  779. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2)
  780.  
  781. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  782.  
  783. Humanoid.WalkSpeed=16
  784.  
  785. attack=false
  786.  
  787. end
  788.  
  789. function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  790.  
  791. return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  792.  
  793. end
  794.  
  795. function Clone()
  796.  
  797.         for _,v in pairs(Torso.Parent:children()) do
  798.  
  799.                 if v.className=="Part" then
  800.  
  801.                         n=v:clone()
  802.  
  803.                         n.archivable=true
  804.  
  805.                         n.Anchored=true
  806.  
  807.                         n.CanCollide=false
  808.  
  809.                         n.Name="TRAILER"
  810.  
  811.                         n.BrickColor=v.BrickColor
  812.  
  813.                         n.Parent=workspace
  814.  
  815.                         coroutine.resume(coroutine.create(function(ne) for i=1, 80 do ne.Transparency=i/80 wait() end ne.Parent=nil end),n)
  816.  
  817.                 elseif v.className=="Hat" then
  818.  
  819.                         n=v.Handle:clone()
  820.  
  821.                         n.archivable=true
  822.  
  823.                         n.Anchored=true
  824.  
  825.                         n.CanCollide=false
  826.  
  827.                         n.Name="TRAILER"
  828.  
  829.                         n.BrickColor=v.Handle.BrickColor
  830.  
  831.                         n.Parent=workspace
  832.  
  833.                         coroutine.resume(coroutine.create(function(ne) for i=1, 80 do ne.Transparency=i/80 wait() end ne.Parent=nil end),n)
  834.  
  835.                 end
  836.  
  837.         end
  838.  
  839.         for _,v in pairs(modelzorz:children()) do
  840.  
  841.                 if v.className=="Part" then
  842.  
  843.                         n=v:clone()
  844.  
  845.                         n.archivable=true
  846.  
  847.                         n.Anchored=true
  848.  
  849.                         n.CanCollide=false
  850.  
  851.                         n.Name="TRAILER"
  852.  
  853.                         n.BrickColor=v.BrickColor
  854.  
  855.                         n.Parent=workspace
  856.  
  857.                         coroutine.resume(coroutine.create(function(ne) for i=1, 80 do ne.Transparency=i/80 wait() end ne.Parent=nil end),n)
  858.  
  859.                 end
  860.  
  861.         end
  862.  
  863. end
  864.  
  865. function MagicCircle(brickcolor,cframe,x1,y1,z1,x2,y2,z2,x3,y3,z3)
  866.  
  867. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  868.  
  869. prt.Anchored=true
  870.  
  871. prt.CFrame=cframe*cf(x2,y2,z2)
  872.  
  873. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  874.  
  875. coroutine.resume(coroutine.create(function()
  876.  
  877. for i=0,1,0.1 do
  878.  
  879. wait()
  880.  
  881. prt.CFrame=prt.CFrame
  882.  
  883. prt.Transparency=i
  884.  
  885. msh.Scale=msh.Scale+vt(x3,y3,z3)
  886.  
  887. end
  888.  
  889. prt.Parent=nil
  890.  
  891. end))
  892.  
  893. end
  894.  
  895. function SpecialEffect()
  896.  
  897. local prt=part(3,workspace,1,0,BrickColor.new("Gold"),"Part",vt(1,1,1))
  898.  
  899. prt.Anchored=true
  900.  
  901. prt.CFrame=Torso.CFrame
  902.  
  903. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  904.  
  905. coroutine.resume(coroutine.create(function(Part,Mesh)
  906.  
  907. for i=0,1,0.2 do
  908.  
  909. wait(0)
  910.  
  911. Part.Transparency=i
  912.  
  913. Mesh.Scale=Mesh.Scale+vt(10,10,10)
  914.  
  915. end
  916.  
  917. prt.Parent=nil
  918.  
  919. end),prt,msh)
  920.  
  921. end
  922.  
  923. function effect(Color,Ref,LP,P1,returnn)
  924.  
  925. local effectsmsh = Instance.new("BlockMesh")
  926.  
  927. effectsmsh.Scale = Vector3.new(1,1,1)
  928.  
  929. effectsmsh.Name = "Mesh"
  930.  
  931. local effectsg = Instance.new("Part")
  932.  
  933. effectsg.formFactor = 3
  934.  
  935. effectsg.CanCollide = false
  936.  
  937. effectsg.Name = "Eff"
  938.  
  939. effectsg.Locked = true
  940.  
  941. effectsg.Anchored = true
  942.  
  943. effectsg.Size = Vector3.new(0.2,1,0.2)
  944.  
  945. effectsg.Parent = workspace
  946.  
  947. effectsmsh.Parent = effectsg
  948.  
  949. effectsg.BrickColor = BrickColor.new(Color)
  950.  
  951. effectsg.Reflectance = Ref
  952.  
  953. local point1 = P1
  954.  
  955. local mg = (LP.p - point1.p).magnitude
  956.  
  957. effectsg.Size = Vector3.new(0.2,mg,0.2)
  958.  
  959. effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  960.  
  961. if returnn then return effectsg end
  962.  
  963. coroutine.resume(coroutine.create(function()
  964.  
  965. if not returnn then
  966.  
  967. for i = 0 , 1 , 0.05 do
  968.  
  969. wait()
  970.  
  971. effectsg.Transparency = 1*i
  972.  
  973. effectsmsh.Scale = Vector3.new(0.5-0.5*i,1,0.5-0.5*i)
  974.  
  975. end
  976.  
  977. wait()
  978.  
  979. effectsg.Parent = nil
  980.  
  981. end
  982.  
  983. end))
  984.  
  985. end
  986.  
  987. Damagefunc1=function(hit,Damage,Knockback)
  988.  
  989.         if hit.Parent==nil then
  990.  
  991.                 return
  992.  
  993.         end
  994.  
  995.         CPlayer=Bin
  996.  
  997.         h=hit.Parent:FindFirstChild("Humanoid")
  998.  
  999.         if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1000.  
  1001.         if attackdebounce == false then
  1002.  
  1003.         attackdebounce = true
  1004.  
  1005.         coroutine.resume(coroutine.create(function()
  1006.  
  1007.         wait(0.2)
  1008.  
  1009.         attackdebounce = false
  1010.  
  1011.         end))
  1012.  
  1013.         Damage=Damage
  1014.  
  1015. --[[                if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1016.  
  1017.                         return
  1018.  
  1019.                 end]]
  1020.  
  1021. --                        hs(hit,1.2)
  1022.  
  1023.                         c=Instance.new("ObjectValue")
  1024.  
  1025.                         c.Name="creator"
  1026.  
  1027.                         c.Value=game.Players.LocalPlayer
  1028.  
  1029.                         c.Parent=h
  1030.  
  1031.                         game:GetService("Debris"):AddItem(c,.5)
  1032.  
  1033.                 Damage=Damage+math.random(0,10)
  1034.  
  1035. --                h:TakeDamage(Damage)
  1036.  
  1037.                 blocked=false
  1038.  
  1039.                 block=hit.Parent:findFirstChild("Block")
  1040.  
  1041.                 if block~=nil then
  1042.  
  1043.                 print("herp")
  1044.  
  1045.                 if block.Value>0 then
  1046.  
  1047.                 blocked=true
  1048.  
  1049.                 block.Value=block.Value-1
  1050.  
  1051.                 print(block.Value)
  1052.  
  1053.                 end
  1054.  
  1055.                 end
  1056.  
  1057.                 if blocked==false then
  1058.  
  1059. --                h:TakeDamage(Damage)
  1060.  
  1061.                 h.Health=h.Health-Damage
  1062.  
  1063.                 showDamage(hit.Parent,Damage,.5)
  1064.  
  1065.                 else
  1066.  
  1067.                 h:TakeDamage(1)
  1068.  
  1069.                 showDamage(hit.Parent,1,.5)
  1070.  
  1071.                 end
  1072.  
  1073.                 vp=Instance.new("BodyVelocity")
  1074.  
  1075.                 vp.P=500
  1076.  
  1077.                 vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1078.  
  1079. --                vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1080.  
  1081.                 vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
  1082.  
  1083.                 if Knockback>0 then
  1084.  
  1085.                         vp.Parent=hit.Parent.Torso
  1086.  
  1087.                 end
  1088.  
  1089.                 game:GetService("Debris"):AddItem(vp,.25)
  1090.  
  1091.                 game:GetService("Debris"):AddItem(r,.5)
  1092.  
  1093.                                 c=Instance.new("ObjectValue")
  1094.  
  1095.                         c.Name="creator"
  1096.  
  1097.                         c.Value=Player
  1098.  
  1099.                         c.Parent=h
  1100.  
  1101.                         game:GetService("Debris"):AddItem(c,.5)
  1102.  
  1103.                 CRIT=false
  1104.  
  1105.                 hitDeb=true
  1106.  
  1107.                 AttackPos=6
  1108.  
  1109.         end
  1110.  
  1111.         end
  1112.  
  1113. end
  1114.  
  1115. Damagefunc2=function(hit,Damage,Knockback)
  1116.  
  1117.         if attackdebounce == false then
  1118.  
  1119.         attackdebounce = true
  1120.  
  1121.         coroutine.resume(coroutine.create(function()
  1122.  
  1123.         wait(0.1)
  1124.  
  1125.         attackdebounce = false
  1126.  
  1127.         end))
  1128.  
  1129.         if hit.Parent==nil then
  1130.  
  1131.                 return
  1132.  
  1133.         end
  1134.  
  1135.         CPlayer=Bin
  1136.  
  1137.         blocked=false
  1138.  
  1139.         h=hit.Parent:FindFirstChild("Humanoid")
  1140.  
  1141.         if h~=nil and hit.Parent:FindFirstChild("Torso")~=nil then
  1142.  
  1143.                 Damage=Damage
  1144.  
  1145.                         c=it("ObjectValue")
  1146.  
  1147.                         c.Name="creator"
  1148.  
  1149.                         c.Value=game.Players.LocalPlayer
  1150.  
  1151.                         c.Parent=h
  1152.  
  1153.                         game:GetService("Debris"):AddItem(c,.5)
  1154.  
  1155. --                        print(c.Value)
  1156.  
  1157. --[[                if math.random(0,99)+math.random()<=7.8 then
  1158.  
  1159.                         CRIT=true
  1160.  
  1161.                         Damage=Damage*2
  1162.  
  1163.                         s=it("Sound")
  1164.  
  1165.                         s.SoundId="http://www.roblox.com/asset/?id=2801263"
  1166.  
  1167.                         s.Volume=1
  1168.  
  1169.                         s.Pitch=2
  1170.  
  1171.                         s.Parent=hit
  1172.  
  1173.                         s.PlayOnRemove=true
  1174.  
  1175.                         s.Parent=nil
  1176.  
  1177.        
  1178.  
  1179.                 end]]
  1180.  
  1181.                 Damage=Damage+math.random(0,10)
  1182.  
  1183. --                Blood(hit.CFrame*cf(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  1184.  
  1185.                 blocked=false
  1186.  
  1187.                 block=hit.Parent:findFirstChild("Block")
  1188.  
  1189.                 if block~=nil then
  1190.  
  1191.                 print("herp")
  1192.  
  1193.                 if block.Value>0 then
  1194.  
  1195.                 blocked=true
  1196.  
  1197.                 block.Value=block.Value-3
  1198.  
  1199.                 print(block.Value)
  1200.  
  1201.                 end
  1202.  
  1203.                 end
  1204.  
  1205.                 if blocked==false then
  1206.  
  1207. --                h:TakeDamage(Damage)
  1208.  
  1209.                 h.Health=h.Health-Damage
  1210.  
  1211.                 showDamage(hit.Parent,Damage,.5)
  1212.  
  1213.                 else
  1214.  
  1215.                 h:TakeDamage(1)
  1216.  
  1217.                 showDamage(hit.Parent,1,.5)
  1218.  
  1219.                 end
  1220.  
  1221. --if blocked==false then
  1222.  
  1223. local angle = (hit.Position-(Torso.Position+Vector3.new(0,0,0))).unit
  1224.  
  1225. print(angle)
  1226.  
  1227. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  1228.  
  1229.                 rl=Instance.new("BodyAngularVelocity")
  1230.  
  1231.                 rl.P=3000
  1232.  
  1233.                 rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1234.  
  1235.                 rl.angularvelocity=Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1236.  
  1237.                 rl.Parent=hit
  1238.  
  1239. coroutine.resume(coroutine.create(function(vel)
  1240.  
  1241. wait(1)
  1242.  
  1243. vel:Remove()
  1244.  
  1245. end),rl)
  1246.  
  1247. --end
  1248.  
  1249. local bodyVelocity=Instance.new("BodyVelocity")
  1250.  
  1251. bodyVelocity.velocity=angle*40+Vector3.new(0,0,0)
  1252.  
  1253. bodyVelocity.P=5000
  1254.  
  1255. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1256.  
  1257. bodyVelocity.Parent=hit
  1258.  
  1259. coroutine.resume(coroutine.create(function(Vel)
  1260.  
  1261. wait(0.7)
  1262.  
  1263. Vel:Remove()
  1264.  
  1265. end),bodyVelocity)
  1266.  
  1267.                 game:GetService("Debris"):AddItem(vp,1)
  1268.  
  1269.                                 c=it("ObjectValue")
  1270.  
  1271.                         c.Name="creator"
  1272.  
  1273.                         c.Value=Player
  1274.  
  1275.                         c.Parent=h
  1276.  
  1277.                         game:GetService("Debris"):AddItem(c,.5)
  1278.  
  1279.                 CRIT=false
  1280.  
  1281.                 hitDeb=true
  1282.  
  1283.                 AttackPos=6
  1284.  
  1285.         end
  1286.  
  1287.         end
  1288.  
  1289. end
  1290.  
  1291. showDamage=function(Char,Dealt,du)
  1292.  
  1293.         m=Instance.new("Model")
  1294.  
  1295.         m.Name=tostring(Dealt)
  1296.  
  1297.         h=Instance.new("Humanoid")
  1298.  
  1299.         h.Health=0
  1300.  
  1301.         h.MaxHealth=0
  1302.  
  1303.         h.Parent=m
  1304.  
  1305.         c=Instance.new("Part")
  1306.  
  1307.         c.Transparency=0
  1308.  
  1309.         c.BrickColor=BrickColor:Red()
  1310.  
  1311.         if CRIT==true then
  1312.  
  1313.                 c.BrickColor=BrickColor.new("Gold")
  1314.  
  1315.         end
  1316.  
  1317.         c.Name="Head"
  1318.  
  1319.         c.TopSurface=0
  1320.  
  1321.         c.BottomSurface=0
  1322.  
  1323.         c.formFactor="Plate"
  1324.  
  1325.         c.Size=Vector3.new(1,.4,1)
  1326.  
  1327.         ms=Instance.new("CylinderMesh")
  1328.  
  1329.         ms.Scale=Vector3.new(.8,.8,.8)
  1330.  
  1331.         if CRIT==true then
  1332.  
  1333.                 ms.Scale=Vector3.new(1,1.25,1)
  1334.  
  1335.         end
  1336.  
  1337.         ms.Parent=c
  1338.  
  1339.         c.Reflectance=0
  1340.  
  1341.         Instance.new("BodyGyro").Parent=c
  1342.  
  1343.         c.Parent=m
  1344.  
  1345.         c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1346.  
  1347.         f=Instance.new("BodyPosition")
  1348.  
  1349.         f.P=2000
  1350.  
  1351.         f.D=100
  1352.  
  1353.         f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1354.  
  1355.         f.position=c.Position+Vector3.new(0,3,0)
  1356.  
  1357.         f.Parent=c
  1358.  
  1359.         game:GetService("Debris"):AddItem(m,.5+du)
  1360.  
  1361.         c.CanCollide=false
  1362.  
  1363.         m.Parent=workspace
  1364.  
  1365.         c.CanCollide=false
  1366.  
  1367. end
  1368.  
  1369. function oneslash()
  1370.  
  1371. attack=true
  1372.  
  1373. combo=1
  1374.  
  1375. for i=0,1,0.1 do
  1376.  
  1377. wait(0)
  1378.  
  1379. RW.C0=cf(1.5, 0.5, 0) * euler(1+3*i,0,0)
  1380.  
  1381. RW.C1=cf(0, 0.5, 0) * euler(0,-0.4+0.4*i,-0.2+0.2*i)
  1382.  
  1383. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2)
  1384.  
  1385. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1386.  
  1387. end
  1388.  
  1389. local LastPoint = prt7.CFrame * CFrame.new(0,-prt7.Size.Y,0)
  1390.  
  1391. con1=prt7.Touched:connect(function(hit) Damagefunc1(hit,30,40) end)
  1392.  
  1393. so("http://roblox.com/asset/?id=10209640",LeftArm,1,1)
  1394.  
  1395. for i=0,1,0.2 do
  1396.  
  1397. wait(0)
  1398.  
  1399. RW.C0=cf(1.5, 0.5, 0) * euler(4-4.7*i,0,0)
  1400.  
  1401. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1402.  
  1403. LW.C0=cf(-1.5, 0.5, 0) * euler(-0.5*i,0,-0.2)
  1404.  
  1405. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1406.  
  1407. local Point = prt7.CFrame * CFrame.new(0,-prt7.Size.Y,0)
  1408.  
  1409. effect("Gold",0.5,LastPoint,Point)
  1410.  
  1411. LastPoint = Point
  1412.  
  1413. end
  1414.  
  1415. for i=0,1,0.2 do
  1416.  
  1417. wait(0)
  1418.  
  1419. RW.C0=cf(1.5, 0.5, 0) * euler(-0.7-0.2*i,0,0)
  1420.  
  1421. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1422.  
  1423. LW.C0=cf(-1.5, 0.5, 0) * euler(-0.5-0.1*i,0,-0.2)
  1424.  
  1425. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1426.  
  1427. end
  1428.  
  1429. con1:disconnect()
  1430.  
  1431. attack=false
  1432.  
  1433. end
  1434.  
  1435. function twoslash()
  1436.  
  1437. attack=true
  1438.  
  1439. combo=2
  1440.  
  1441. for i=0,1,0.1 do
  1442.  
  1443. wait(0)
  1444.  
  1445. RW.C0=cf(1.5, 0.5, 0) * euler(-0.9+2.47*i,0,0)
  1446.  
  1447. RW.C1=cf(0, 0.5, 0) * euler(0,-1.57*i,0)
  1448.  
  1449. LW.C0=cf(-1.5, 0.5, 0) * euler(-0.6+0.6*i,0,-0.2-1.37*i)
  1450.  
  1451. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1452.  
  1453. end
  1454.  
  1455. bg.Parent=Torso
  1456.  
  1457. CF = Torso.CFrame
  1458.  
  1459. local LastPoint = prt7.CFrame * CFrame.new(0,-prt7.Size.Y,0)
  1460.  
  1461. con1=prt7.Touched:connect(function(hit) Damagefunc1(hit,20,50) end)
  1462.  
  1463. so("http://roblox.com/asset/?id=10209640",LeftArm,1,0.9)
  1464.  
  1465. for i = 0 , 1 , 0.1 do
  1466.  
  1467. wait(0)  
  1468.  
  1469. wld1.C0=euler(-1.57,-1.57*i,-1.57)*cf(0,1,0)
  1470.  
  1471. RW.C0=cf(1.5, 0.5, 0) * euler(1.57,0,0)
  1472.  
  1473. RW.C1=cf(0, 0.5, 0) * euler(0,-1.57,-1.57*i)
  1474.  
  1475. bg.cframe=CF*euler(0,-6.283*i,0)
  1476.  
  1477. local Point = prt7.CFrame * CFrame.new(0,-prt7.Size.Y,0)
  1478.  
  1479. effect("Gold",0.5,LastPoint,Point)
  1480.  
  1481. LastPoint = Point
  1482.  
  1483. end
  1484.  
  1485. con1:disconnect()
  1486.  
  1487. wait(0.1)
  1488.  
  1489. bg.Parent=nil
  1490.  
  1491. attack=false
  1492.  
  1493. end
  1494.  
  1495. function threeslash()
  1496.  
  1497. attack=true
  1498.  
  1499. combo=3
  1500.  
  1501. for i = 0 , 1 , 0.1 do
  1502.  
  1503. wait(0)  
  1504.  
  1505. wld1.C0=euler(-1.57,-1.57+1.57*i,-1.57-0.6*i)*cf(0,1,0)
  1506.  
  1507. RW.C0=cf(1.5-0.7*i, 0.5+0.2*i, -0.5*i) * euler(1.57+0.43*i,0,0)
  1508.  
  1509. RW.C1=cf(0, 0.5, 0) * euler(0,-1.57+1.57*i,-1.57+2.17*i)
  1510.  
  1511. LW.C0=cf(-1.5+0.7*i, 0.5+0.2*i, -0.5*i) * euler(2*i,0,-1.57+1.57*i)
  1512.  
  1513. LW.C1=cf(0, 0.5, 0) * euler(0,0,-0.6*i)
  1514.  
  1515. end
  1516.  
  1517. local LastPoint = prt7.CFrame * CFrame.new(0,-prt7.Size.Y,0)
  1518.  
  1519. con1=prt7.Touched:connect(function(hit) Damagefunc2(hit,20,40) end)
  1520.  
  1521. so("http://roblox.com/asset/?id=10209640",LeftArm,1,0.7)
  1522.  
  1523. for i=0,1,0.2 do
  1524.  
  1525. wait()
  1526.  
  1527. RW.C0=cf(1.5-0.7, 0.5+0.2-0.4*i, -0.5) * euler(2-1.8*i,0,0)
  1528.  
  1529. RW.C1=cf(0, 0.5, 0) * euler(0,0,0.6)
  1530.  
  1531. LW.C0=cf(-1.5+0.7, 0.5+0.2-0.4*i, -0.5) * euler(2-1.8*i,0,0)
  1532.  
  1533. LW.C1=cf(0, 0.5, 0) * euler(0,0,-0.6)
  1534.  
  1535. local Point = prt7.CFrame * CFrame.new(0,-prt7.Size.Y,0)
  1536.  
  1537. effect("Gold",0.5,LastPoint,Point)
  1538.  
  1539. LastPoint = Point
  1540.  
  1541. end
  1542.  
  1543. con1:disconnect()
  1544.  
  1545. attack=false
  1546.  
  1547. end
  1548.  
  1549. function ob1d(mouse)
  1550.  
  1551. if attack == true then return end
  1552.  
  1553. hold=true
  1554.  
  1555. --attack=true
  1556.  
  1557. if combo==0 then
  1558.  
  1559. oneslash()
  1560.  
  1561. elseif combo==1 then
  1562.  
  1563. twoslash()
  1564.  
  1565. elseif combo==2 then
  1566.  
  1567. threeslash()
  1568.  
  1569. end
  1570.  
  1571. coroutine.resume(coroutine.create(function()
  1572.  
  1573. wait(0.5)
  1574.  
  1575. if attack==false then
  1576.  
  1577. combo=0
  1578.  
  1579. wld1.C0=euler(-1.57,0,-1.57)*cf(0,1,0)
  1580.  
  1581. RW.C0=cf(1.5, 0.5, 0) * euler(1,0,0)
  1582.  
  1583. RW.C1=cf(0, 0.5, 0) * euler(0,-0.4,-0.2)
  1584.  
  1585. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2)
  1586.  
  1587. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1588.  
  1589. end
  1590.  
  1591. end))
  1592.  
  1593. end
  1594.  
  1595. function ob1u(mouse)
  1596.  
  1597. hold = false
  1598.  
  1599. end
  1600.  
  1601. buttonhold = false
  1602.  
  1603. eul=0
  1604.  
  1605. function key(key)
  1606.  
  1607. if attack == true then return end
  1608.  
  1609. if key=="x" then
  1610.  
  1611. spintowin()
  1612.  
  1613. end
  1614.  
  1615. if key=="c" then
  1616.  
  1617. CombatCharge()
  1618.  
  1619. end
  1620.  
  1621. if key=="v" and ssdebounce==false then
  1622.  
  1623. ssdebounce=true
  1624.  
  1625. coroutine.resume(coroutine.create(function()
  1626.  
  1627. wait(30)
  1628.  
  1629. ssdebounce=false
  1630.  
  1631. prt10.Parent=modelzorz
  1632.  
  1633. wld10.Parent=prt10
  1634.  
  1635. end))
  1636.  
  1637. Despair()
  1638.  
  1639. end
  1640.  
  1641. coroutine.resume(coroutine.create(function(v)
  1642.  
  1643. wait()
  1644.  
  1645. while attack==true do
  1646.  
  1647. wait(0)
  1648.  
  1649. bg.Parent = Torso
  1650.  
  1651. local pos4 = vt(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
  1652.  
  1653. bg.cframe = cf(Torso.Position,pos4) * euler(0,eul,0) * cf(0,0,0)
  1654.  
  1655. end
  1656.  
  1657. bg.Parent=nil
  1658.  
  1659. end))
  1660.  
  1661. if key=="z" then
  1662.  
  1663. Charge()
  1664.  
  1665. end
  1666.  
  1667. combo=0
  1668.  
  1669. end
  1670.  
  1671. function key2(key)
  1672.  
  1673. end
  1674.  
  1675. function s(mouse)
  1676.  
  1677. mouse.Button1Down:connect(function() ob1d(mouse) end)
  1678.  
  1679. mouse.Button1Up:connect(function() ob1u(mouse) end)
  1680.  
  1681. mouse.KeyDown:connect(key)
  1682.  
  1683. mouse.KeyUp:connect(key2)
  1684.  
  1685. unsheathed = true
  1686.  
  1687. player = Player
  1688.  
  1689. ch = Character
  1690.  
  1691. MMouse = mouse
  1692.  
  1693. RSH = ch.Torso["Right Shoulder"]
  1694.  
  1695. LSH = ch.Torso["Left Shoulder"]
  1696.  
  1697. --
  1698.  
  1699. RSH.Parent = nil
  1700.  
  1701. LSH.Parent = nil
  1702.  
  1703. --
  1704.  
  1705. RW.Part0 = ch.Torso
  1706.  
  1707. RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1708.  
  1709. RW.C1 = CFrame.new(0, 0.5, 0)
  1710.  
  1711. RW.Part1 = ch["Right Arm"]
  1712.  
  1713. RW.Parent = ch.Torso
  1714.  
  1715. --_G.R = RW
  1716.  
  1717. --
  1718.  
  1719. LW.Part0 = ch.Torso
  1720.  
  1721. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1722.  
  1723. LW.C1 = CFrame.new(0, 0.5, 0)
  1724.  
  1725. LW.Part1 = ch["Left Arm"]
  1726.  
  1727. LW.Parent = ch.Torso
  1728.  
  1729. --_G.L = LW
  1730.  
  1731. --
  1732.  
  1733. equipanim()
  1734.  
  1735. end
  1736.  
  1737. function ds(mouse)
  1738.  
  1739. hideanim()
  1740.  
  1741. wait(0)
  1742.  
  1743. RW.Parent = nil
  1744.  
  1745. LW.Parent = nil
  1746.  
  1747. RSH.Parent = player.Character.Torso
  1748.  
  1749. LSH.Parent = player.Character.Torso
  1750.  
  1751. end
  1752.  
  1753. Bin.Selected:connect(s)
  1754.  
  1755. Bin.Deselected:connect(ds)
  1756.  
  1757. print("Basic sword loaded.")
  1758.  
  1759. -- mediafire
  1760.  
  1761. --[[
  1762.  
  1763. Copyrighted (C) Fenrier 2013
  1764.  
  1765. ]]
  1766.  
  1767. ---
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement