VoidScript

Gladiator

Sep 4th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 33.06 KB | None | 0 0
  1. Ply = game.Players.LocalPlayer
  2. --FIXED WITH TRIGECTORY's CheatSheet--
  3. cheatsheetplr = game.Players.LocalPlayer
  4. i = Instance.new("NumberValue", cheatsheetplr )
  5. i.Name = "FPSCH"
  6. Bin = Instance.new("HopperBin", cheatsheetplr .Backpack)
  7. script.Parent = Bin
  8. local cf = CFrame.new
  9. local RbxUtility = LoadLibrary("RbxUtility")
  10. local Create = RbxUtility.Create
  11. RW = Create("Weld")({Name = "Right Shoulder", Part0 = Tor, C0 = CFrame.new(1.5, 0.5, 0), C1 = CFrame.new(0, 0.5,
  12.  
  13. 0), Part1 = RA, Parent = Tor})
  14. LW = Create("Weld")({Name = "Left Shoulder", Part0 = Tor, C0 = CFrame.new(-1.5, 0.5, 0), C1 = CFrame.new(0, 0.5,
  15.  
  16. 0), Part1 = LA, Parent = Tor})
  17. --[[
  18. Gladiator script made by Fenrier.
  19. Made for an upcoming game I will be making. Don't expect it to be out anytime soon though.
  20. And hello hacker :D
  21. Have fun with my scripts by the way c:
  22. ]]
  23. Player = game:GetService("Players").LocalPlayer
  24. Character = Player.Character
  25. PlayerGui = Player.PlayerGui
  26. Backpack = Player.Backpack
  27. Torso = Character.Torso
  28. Head = Character.Head
  29. Humanoid = Character.Humanoid
  30. LeftArm = Character["Left Arm"]
  31. LeftLeg = Character["Left Leg"]
  32. RightArm = Character["Right Arm"]
  33. RightLeg = Character["Right Leg"]
  34. LS = Torso["Left Shoulder"]
  35. LH = Torso["Left Hip"]
  36. RS = Torso["Right Shoulder"]
  37. RH = Torso["Right Hip"]
  38. Neck = Torso.Neck
  39. it=Instance.new
  40. vt=Vector3.new
  41. cf=CFrame.new
  42. euler=CFrame.fromEulerAnglesXYZ
  43. angles=CFrame.Angles
  44. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  45. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  46. attack = false
  47. attacktype = 1
  48. damage = 5
  49. oridamage = 50
  50. attackdebounce = false
  51. ssdebounce=false
  52. MMouse=nil
  53. doanimation=false
  54. combo=0
  55. Mode=0
  56. --player
  57. player = nil
  58. --save shoulders
  59. RSH, LSH = nil, nil
  60. --welds
  61. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  62. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  63.  
  64.  
  65. if Character:findFirstChild("Dual Swords",true) ~= nil then
  66. Character:findFirstChild("Dual Swords",true).Parent = nil
  67. end
  68. ArtificialHB = Instance.new("BindableEvent", script)
  69. ArtificialHB.Name = "Heartbeat"
  70.  
  71. script:WaitForChild("Heartbeat")
  72.  
  73. frame = 1 / 30
  74. if Player.FPSCH.Value==true then
  75. frame = 1/60
  76. else
  77. frame=1/30
  78. end
  79. tf = 0
  80. allowframeloss = false
  81. tossremainder = false
  82. lastframe = tick()
  83. script.Heartbeat:Fire()
  84.  
  85. game:GetService("RunService").Heartbeat:connect(function(s, p)
  86. tf = tf + s
  87. if tf >= frame then
  88. if allowframeloss then
  89. script.Heartbeat:Fire()
  90. lastframe = tick()
  91. else
  92. for i = 1, math.floor(tf / frame) do
  93. script.Heartbeat:Fire()
  94. end
  95. lastframe = tick()
  96. end
  97. if tossremainder then
  98. tf = 0
  99. else
  100. tf = tf - frame * math.floor(tf / frame)
  101. end
  102. end
  103. end)
  104.  
  105. function swait(num)
  106. if num == 0 or num == nil then
  107. ArtificialHB.Event:wait()
  108. else
  109. for i = 0, num do
  110. ArtificialHB.Event:wait()
  111. end
  112. end
  113. end
  114.  
  115. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  116. local fp = it("Part")
  117. fp.formFactor = formfactor
  118. fp.Parent = parent
  119. fp.Reflectance = reflectance
  120. fp.Transparency = transparency
  121. fp.CanCollide = false
  122. fp.Locked=true
  123. fp.BrickColor = brickcolor
  124. fp.Name = name
  125. fp.Size = size
  126. fp.Position = Torso.Position
  127. fp.BottomSurface="Smooth"
  128. fp.TopSurface="Smooth"
  129. fp:BreakJoints()
  130. return fp
  131. end
  132.  
  133. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  134. local mesh = it(Mesh)
  135. mesh.Parent = part
  136. if Mesh=="SpecialMesh" then
  137. mesh.MeshType = meshtype
  138. mesh.MeshId = meshid
  139. end
  140. mesh.Offset=offset
  141. mesh.Scale=scale
  142. return mesh
  143. end
  144.  
  145. function weld(parent,part0,part1,c0)
  146. local weld = it("Weld")
  147. weld.Parent = parent
  148. weld.Part0 = part0
  149. weld.Part1 = part1
  150. weld.C0 = c0
  151. return weld
  152. end
  153.  
  154. local modelzorz = Instance.new("Model")
  155. modelzorz.Parent = Character
  156. modelzorz.Name = "Dual Swords"
  157.  
  158. local prt1=part(3,modelzorz,0,0,Torso.BrickColor,"Part1",vt(0.3,0.5,0.3))
  159. local prt2=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part2",vt(0.25,1.5,0.25))
  160. local prt4=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part4",vt(0.3,0.6,0.21))
  161. local prt5=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part5",vt(0.25,0.6,0.16))
  162. local prt6=part(3,modelzorz,0.3,0,BrickColor.new("White"),"Part6",vt(0.25,3,0.16))
  163. local prt7=part(3,modelzorz,0.3,0,BrickColor.new("White"),"Part7",vt(0.1,0.5,0.25))
  164. local prt8=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part8",vt(0.2,1.5,0.2))
  165. local prt9=part(3,modelzorz,0,1,BrickColor.new("Black"),"Hitbox",vt(0.5,4,0.5))
  166.  
  167. local msh1=mesh("BlockMesh",prt1,"","",vt(0,0,0),vt(1,1,1))
  168. local msh2=mesh("BlockMesh",prt2,"","",vt(0,0,0),vt(1,1,1))
  169. local msh4=mesh("BlockMesh",prt4,"","",vt(0,0,0),vt(1,1,1))
  170. local msh5=mesh("BlockMesh",prt5,"","",vt(0,0,0),vt(1,1,1))
  171. local msh6=mesh("BlockMesh",prt6,"","",vt(0,0,0),vt(1,1,0.25))
  172. local msh7=mesh("SpecialMesh",prt7,"Wedge","",vt(0,0,0),vt(0.25,1,1))
  173. local msh8=mesh("CylinderMesh",prt8,"","",vt(0,0,0),vt(1,1,1))
  174.  
  175. local wld1=weld(prt1,prt1,Torso,euler(0,0,0.785)*cf(1,0,-0.5))
  176. local wld2=weld(prt2,prt2,prt1,euler(0,0,0)*cf(0,0,0))
  177. local wld4=weld(prt4,prt4,prt2,euler(0,0,0)*cf(0,-1,0))
  178. local wld5=weld(prt5,prt5,prt4,euler(0,0,0)*cf(0,-0.01,0))
  179. local wld6=weld(prt6,prt6,prt4,euler(0,0,0)*cf(0,-1.5,0))
  180. local wld7=weld(prt7,prt7,prt6,euler(0,-1.57,0)*cf(0,-1.75,0))
  181. local wld8=weld(prt8,prt8,prt6,euler(0,0,0)*cf(0,0.5,0))
  182. local wld9=weld(prt9,prt9,prt6,euler(0,0,0)*cf(0,0,0))
  183.  
  184. local aprt1=part(3,modelzorz,0,0,Torso.BrickColor,"aPart1",vt(0.3,0.5,0.3))
  185. local aprt2=part(3,modelzorz,0,0,BrickColor.new("Black"),"aPart2",vt(0.25,1.5,0.25))
  186. local aprt4=part(3,modelzorz,0,0,BrickColor.new("Black"),"aPart4",vt(0.3,0.6,0.21))
  187. local aprt5=part(3,modelzorz,0,0,BrickColor.new("Really black"),"aPart5",vt(0.25,0.6,0.16))
  188. local aprt6=part(3,modelzorz,0.3,0,BrickColor.new("White"),"aPart6",vt(0.25,3,0.16))
  189. local aprt7=part(3,modelzorz,0.3,0,BrickColor.new("White"),"aPart7",vt(0.1,0.5,0.25))
  190. local aprt8=part(3,modelzorz,0,0,BrickColor.new("Black"),"aPart8",vt(0.2,1.5,0.2))
  191. local aprt9=part(3,modelzorz,0,1,BrickColor.new("Black"),"aHitbox",vt(0.5,4,0.5))
  192.  
  193. local amsh1=mesh("BlockMesh",aprt1,"","",vt(0,0,0),vt(1,1,1))
  194. local amsh2=mesh("BlockMesh",aprt2,"","",vt(0,0,0),vt(1,1,1))
  195. local amsh4=mesh("BlockMesh",aprt4,"","",vt(0,0,0),vt(1,1,1))
  196. local amsh5=mesh("BlockMesh",aprt5,"","",vt(0,0,0),vt(1,1,1))
  197. local amsh6=mesh("BlockMesh",aprt6,"","",vt(0,0,0),vt(1,1,0.25))
  198. local amsh7=mesh("SpecialMesh",aprt7,"Wedge","",vt(0,0,0),vt(0.25,1,1))
  199. local amsh8=mesh("CylinderMesh",aprt8,"","",vt(0,0,0),vt(1,1,1))
  200.  
  201. local awld1=weld(aprt1,aprt1,Torso,euler(0,0,0.785)*cf(-1,0,-0.5))
  202. local awld2=weld(aprt2,aprt2,aprt1,euler(3.14,3.14,0)*cf(0,0,0))
  203. local awld4=weld(aprt4,aprt4,aprt2,euler(0,0,0)*cf(0,-1,0))
  204. local awld5=weld(aprt5,aprt5,aprt4,euler(0,0,0)*cf(0,-0.01,0))
  205. local awld6=weld(aprt6,aprt6,aprt4,euler(0,0,0)*cf(0,-1.5,0))
  206. local awld7=weld(aprt7,aprt7,aprt6,euler(0,-1.57,0)*cf(0,-1.75,0))
  207. local awld8=weld(aprt8,aprt8,aprt6,euler(0,0,0)*cf(0,0.5,0))
  208. local awld9=weld(aprt9,aprt9,aprt6,euler(0,0,0)*cf(0,0,0))
  209.  
  210. numb=0
  211. numb2=0
  212. for i=1,8 do
  213. local prt3=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part3",vt(0.2,0.4,0.2))
  214. local msh3=mesh("BlockMesh",prt3,"","",vt(0,0,0),vt(1+numb2,1+numb2,1+numb2))
  215. local wld3=weld(prt3,prt3,prt2,cf(0.8,0,0)*euler(0,0,1.57-numb))
  216. local dprt3=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part3",vt(0.2,0.2,0.2))
  217. local dmsh3=mesh("BlockMesh",dprt3,"","",vt(0,0,0),vt(0.8+numb2,1.01+numb2,1+numb2))
  218. local dwld3=weld(dprt3,dprt3,prt3,euler(0,0,1.57)*cf(0.2,0,0))
  219. coroutine.resume(coroutine.create(function(Part,Debounce,Number)
  220. while true do
  221. swait()
  222. if Debounce==false and weapondb==false then
  223. Debounce=true
  224. for i=0,1,0.05 do
  225. swait()
  226. Part.C0=cf(0.8+0.2*i,0,0)*euler(0,0,1.57-Number)
  227. end
  228. while Mode==0 do swait() end
  229. while Mode==1 do swait() end
  230. coroutine.resume(coroutine.create(function()
  231. wait(30)
  232. Debounce=false
  233. end))
  234. for i=0,1,0.05 do
  235. swait()
  236. Part.C0=cf(1-0.2*i,0,0)*euler(0,0,1.57-Number)
  237. end
  238. end
  239. end
  240. end),wld3,doanimation,numb)
  241.  
  242. local aprt3=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part3",vt(0.2,0.4,0.2))
  243. local amsh3=mesh("BlockMesh",aprt3,"","",vt(0,0,0),vt(1+numb2,1+numb2,1+numb2))
  244. local awld3=weld(aprt3,aprt3,aprt2,cf(0.8,0,0)*euler(0,0,1.57-numb))
  245. local daprt3=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part3",vt(0.2,0.2,0.2))
  246. local damsh3=mesh("BlockMesh",daprt3,"","",vt(0,0,0),vt(0.8+numb2,1.01+numb2,1+numb2))
  247. local dawld3=weld(daprt3,daprt3,aprt3,euler(0,0,1.57)*cf(0.2,0,0))
  248. coroutine.resume(coroutine.create(function(Part,Debounce,Number)
  249. while true do
  250. swait()
  251. if Debounce==false and weapondb==false then
  252. Debounce=true
  253. for i=0,1,0.05 do
  254. swait()
  255. Part.C0=cf(0.8+0.2*i,0,0)*euler(0,0,1.57-Number)
  256. end
  257. while Mode==0 do swait() end
  258. while Mode==1 do swait() end
  259. coroutine.resume(coroutine.create(function()
  260. wait(30)
  261. Debounce=false
  262. end))
  263. for i=0,1,0.05 do
  264. swait()
  265. Part.C0=cf(1-0.2*i,0,0)*euler(0,0,1.57-Number)
  266. end
  267. end
  268. end
  269. end),awld3,doanimation,numb)
  270. numb2=numb2+0.01
  271. numb=numb+0.3925
  272. end
  273. if (script.Parent.className ~= "HopperBin") then
  274. Tool = Instance.new("HopperBin")
  275. Tool.Parent = Backpack
  276. Tool.Name = "Dual Swords"
  277. script.Parent = Tool
  278. end
  279. Bin = script.Parent
  280.  
  281. local bg = it("BodyGyro")
  282. bg.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  283. bg.P = 20e+003
  284. bg.Parent = nil
  285.  
  286. so = function(id,par,vol,pit)
  287. coroutine.resume(coroutine.create(function()
  288. local sou = Instance.new("Sound",par or workspace)
  289. sou.Volume=vol
  290. sou.Pitch=pit or 1
  291. sou.SoundId=id
  292. swait()
  293. sou:play()
  294. wait(6)
  295. sou:Remove()
  296. end))
  297. end
  298.  
  299. function unequipweld()
  300. wld1.Part1=Torso
  301. wld1.C0=euler(0,0,0.785)*cf(1,0,-0.5)
  302. awld1.Part1=Torso
  303. awld1.C0=euler(0,0,0.785)*cf(-1,0,-0.5)
  304. end
  305.  
  306. function equipweld()
  307. wld1.Part1=RightArm
  308. wld1.C0=euler(1.57,0,-1.57)*cf(0,1,0)
  309. awld1.Part1=LeftArm
  310. awld1.C0=euler(-1.57,0,1.57)*cf(0,1,0)
  311. end
  312.  
  313. function hideanim()
  314. equipped=false
  315. wait(0.1)
  316. bg.Parent=nil
  317. unequipweld()
  318. end
  319.  
  320. function equipanim()
  321. equipped=true
  322. wait(0.1)
  323. equipweld()
  324. RW.C0=cf(1.5, 0.5, -0.25) * euler(1.5,0,0)
  325. RW.C1=cf(0, 0.5, 0) * euler(0,-0.6,0)
  326. LW.C0=cf(-1.5, 0.5, 0) * euler(1,0,0)
  327. LW.C1=cf(0, 0.5, 0) * euler(0,0.4,0)
  328. end
  329.  
  330. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  331. return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  332. end
  333.  
  334. function MagicCircle(brickcolor,cframe,x1,y1,z1,x2,y2,z2,x3,y3,z3)
  335. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  336. prt.Anchored=true
  337. prt.CFrame=cframe*cf(x2,y2,z2)
  338. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  339. coroutine.resume(coroutine.create(function()
  340. for i=0,1,0.1 do
  341. swait()
  342. prt.CFrame=prt.CFrame
  343. prt.Transparency=i
  344. msh.Scale=msh.Scale+vt(x3,y3,z3)
  345. end
  346. prt.Parent=nil
  347. end))
  348. end
  349.  
  350. function SpecialEffect()
  351. local prt=part(3,workspace,1,0,BrickColor.new("White"),"Part",vt(1,1,1))
  352. prt.Anchored=true
  353. prt.CFrame=Torso.CFrame
  354. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  355. coroutine.resume(coroutine.create(function(Part,Mesh)
  356. for i=0,1,0.2 do
  357. wait(0)
  358. Part.Transparency=i
  359. Mesh.Scale=Mesh.Scale+vt(10,10,10)
  360. end
  361. prt.Parent=nil
  362. end),prt,msh)
  363. end
  364.  
  365. function effect(Color,Ref,LP,P1,returnn)
  366. local effectsmsh = Instance.new("BlockMesh")
  367. effectsmsh.Scale = Vector3.new(0.2,1,0.2)
  368. effectsmsh.Name = "Mesh"
  369. local effectsg = Instance.new("Part")
  370. effectsg.formFactor = 3
  371. effectsg.CanCollide = false
  372. effectsg.Name = "Eff"
  373. effectsg.Locked = true
  374. effectsg.Anchored = true
  375. effectsg.Size = Vector3.new(0.5,1,0.5)
  376. effectsg.Parent = workspace
  377. effectsmsh.Parent = effectsg
  378. effectsg.BrickColor = BrickColor.new(Color)
  379. effectsg.Reflectance = Ref
  380. local point1 = P1
  381. local mg = (LP.p - point1.p).magnitude
  382. effectsg.Size = Vector3.new(0.5,mg,0.5)
  383. effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  384. if returnn then return effectsg end
  385. coroutine.resume(coroutine.create(function(Part,Mesh)
  386. if not returnn then
  387. for i = 0 , 1 , 0.2 do
  388. swait()
  389. Part.Transparency = 1*i
  390. Mesh.Scale = Vector3.new(0.2-0.2*i,1,0.2-0.2*i)
  391. end
  392. swait()
  393. Part.Parent = nil
  394. end
  395. end),effectsg,effectsmsh)
  396. end
  397.  
  398. Damagefunc1=function(hit,Damage,Knockback)
  399. if hit.Parent==nil then
  400. return
  401. end
  402. CPlayer=Bin
  403. h=hit.Parent:FindFirstChild("Humanoid")
  404. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  405. if attackdebounce == false then
  406. attackdebounce = true
  407. coroutine.resume(coroutine.create(function()
  408. wait(0.2)
  409. attackdebounce = false
  410. end))
  411. Damage=Damage
  412. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  413. return
  414. end]]
  415. -- hs(hit,1.2)
  416. c=Instance.new("ObjectValue")
  417. c.Name="creator"
  418. c.Value=game.Players.LocalPlayer
  419. c.Parent=h
  420. game:GetService("Debris"):AddItem(c,.5)
  421. Damage=Damage+math.random(0,10)
  422. -- h:TakeDamage(Damage)
  423. blocked=false
  424. block=hit.Parent:findFirstChild("Block")
  425. if block~=nil then
  426. print("herp")
  427. if block.Value>0 then
  428. blocked=true
  429. block.Value=block.Value-1
  430. print(block.Value)
  431. end
  432. end
  433. if blocked==false then
  434. -- h:TakeDamage(Damage)
  435. HitHealth=h.Health
  436.  
  437. h.Health=h.Health-Damage
  438. if HitHealth~=h.Health and HitHealth~=0 and h.Health<=0 and h.Parent.Name~="Hologram" then
  439. print("gained spree")
  440. game.Players.LocalPlayer:FindFirstChild("leaderstats").Spree.Value=game.Players.LocalPlayer.leaderstats.Spree.Value+1
  441. end
  442. if HitHealth~=h.Health and HitHealth~=0 and h.Health<=0 then
  443. print("gained kill")
  444. script.Parent.Kills.Value=script.Parent.Kills.Value+1
  445. end
  446. showDamage(hit.Parent,Damage,.5)
  447. else
  448. h.Health=h.Health-1
  449. showDamage(hit.Parent,1,.5)
  450. end
  451. vp=Instance.new("BodyVelocity")
  452. vp.P=500
  453. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  454. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  455. vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
  456. if Knockback>0 then
  457. vp.Parent=hit.Parent.Torso
  458. end
  459. game:GetService("Debris"):AddItem(vp,.25)
  460. game:GetService("Debris"):AddItem(r,.5)
  461. c=Instance.new("ObjectValue")
  462. c.Name="creator"
  463. c.Value=Player
  464. c.Parent=h
  465. game:GetService("Debris"):AddItem(c,.5)
  466. CRIT=false
  467. hitDeb=true
  468. AttackPos=6
  469. end
  470. end
  471. end
  472.  
  473. Damagefunc2=function(hit,Damage,Knockback)
  474. if attackdebounce == false then
  475. attackdebounce = true
  476. coroutine.resume(coroutine.create(function()
  477. wait(0.1)
  478. attackdebounce = false
  479. end))
  480. if hit.Parent==nil then
  481. return
  482. end
  483. CPlayer=Bin
  484. blocked=false
  485. h=hit.Parent:FindFirstChild("Humanoid")
  486. if h~=nil and hit.Parent:FindFirstChild("Torso")~=nil then
  487. Damage=Damage
  488. c=it("ObjectValue")
  489. c.Name="creator"
  490. c.Value=game.Players.LocalPlayer
  491. c.Parent=h
  492. game:GetService("Debris"):AddItem(c,.5)
  493. -- print(c.Value)
  494. --[[ if math.random(0,99)+math.random()<=7.8 then
  495. CRIT=true
  496. Damage=Damage*2
  497. s=it("Sound")
  498. s.SoundId="http://www.roblox.com/asset/?id=2801263"
  499. s.Volume=1
  500. s.Pitch=2
  501. s.Parent=hit
  502. s.PlayOnRemove=true
  503. s.Parent=nil
  504.  
  505. end]]
  506. Damage=Damage+math.random(0,10)
  507. -- Blood(hit.CFrame*cf(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  508. blocked=false
  509. block=hit.Parent:findFirstChild("Block")
  510. if block~=nil then
  511. print("herp")
  512. if block.Value>0 then
  513. blocked=true
  514. block.Value=block.Value-3
  515. print(block.Value)
  516. end
  517. end
  518. if blocked==false then
  519. -- h:TakeDamage(Damage)
  520. HitHealth=h.Health
  521. HitHealth=h.Health
  522. if HitHealth~=h.Health and HitHealth~=0 and h.Health<=0 and h.Parent.Name~="Hologram" then
  523. print("gained spree")
  524. game.Players.LocalPlayer:FindFirstChild("leaderstats").Spree.Value=game.Players.LocalPlayer.leaderstats.Spree.Value+1
  525. end
  526. h:TakeDamage(Damage)
  527. if HitHealth~=h.Health and HitHealth~=0 and h.Health<=0 then
  528. print("gained kill")
  529. script.Parent.Kills.Value=script.Parent.Kills.Value+1
  530. end
  531. showDamage(hit.Parent,Damage,.5)
  532. else
  533. h:TakeDamage(1)
  534. showDamage(hit.Parent,1,.5)
  535. end
  536. --if blocked==false then
  537. local angle = (hit.Position-(Torso.Position+Vector3.new(0,0,0))).unit
  538. print(angle)
  539. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  540. rl=Instance.new("BodyAngularVelocity")
  541. rl.P=3000
  542. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  543. rl.angularvelocity=Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  544. rl.Parent=hit
  545. coroutine.resume(coroutine.create(function(vel)
  546. wait(1)
  547. vel:Remove()
  548. end),rl)
  549. --end
  550. local bodyVelocity=Instance.new("BodyVelocity")
  551. bodyVelocity.velocity=angle*40+Vector3.new(0,0,0)
  552. bodyVelocity.P=5000
  553. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  554. bodyVelocity.Parent=hit
  555. coroutine.resume(coroutine.create(function(Vel)
  556. wait(0.7)
  557. Vel:Remove()
  558. end),bodyVelocity)
  559. game:GetService("Debris"):AddItem(vp,1)
  560. c=it("ObjectValue")
  561. c.Name="creator"
  562. c.Value=Player
  563. c.Parent=h
  564. game:GetService("Debris"):AddItem(c,.5)
  565. CRIT=false
  566. hitDeb=true
  567. AttackPos=6
  568. end
  569. end
  570. end
  571.  
  572. showDamage=function(Char,Dealt,du)
  573. m=Instance.new("Model")
  574. m.Name=tostring(Dealt)
  575. h=Instance.new("Humanoid")
  576. h.Health=0
  577. h.MaxHealth=0
  578. h.Parent=m
  579. c=Instance.new("Part")
  580. c.Transparency=0
  581. c.BrickColor=BrickColor:Red()
  582. if CRIT==true then
  583. c.BrickColor=BrickColor.new("Really red")
  584. end
  585. c.Name="Head"
  586. c.TopSurface=0
  587. c.BottomSurface=0
  588. c.formFactor="Plate"
  589. c.Size=Vector3.new(1,.4,1)
  590. ms=Instance.new("CylinderMesh")
  591. ms.Scale=Vector3.new(.8,.8,.8)
  592. if CRIT==true then
  593. ms.Scale=Vector3.new(1,1.25,1)
  594. end
  595. ms.Parent=c
  596. c.Reflectance=0
  597. Instance.new("BodyGyro").Parent=c
  598. c.Parent=m
  599. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  600. f=Instance.new("BodyPosition")
  601. f.P=2000
  602. f.D=100
  603. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  604. f.position=c.Position+Vector3.new(0,3,0)
  605. f.Parent=c
  606. game:GetService("Debris"):AddItem(m,.5+du)
  607. c.CanCollide=false
  608. m.Parent=workspace
  609. c.CanCollide=false
  610. end
  611.  
  612. function oneslash()
  613. attack=true
  614. combo=1
  615. for i=0,1,0.1 do
  616. swait()
  617. RW.C0=cf(1.5, 0.5, -0.25+0.25*i) * euler(1.5+1*i,0,0)
  618. RW.C1=cf(0, 0.5, 0) * euler(0,-0.6+0.2*i,0)
  619. LW.C0=cf(-1.5, 0.5, 0) * euler(1+1.5*i,0,0)
  620. LW.C1=cf(0, 0.5, 0) * euler(0,0.4,0)
  621. end
  622. local LastPoint=prt6.CFrame*CFrame.new(0,prt6.Size.Y/1.5,0)
  623. local LastPoint2=aprt6.CFrame*CFrame.new(0,aprt6.Size.Y/1.5,0)
  624. so("http://roblox.com/asset/?id=10209640",LeftArm,1,1)
  625. so("http://roblox.com/asset/?id=10209640",RightArm,1,1)
  626. con1=prt9.Touched:connect(function(hit) Damagefunc1(hit,20,10) end)
  627. con2=aprt9.Touched:connect(function(hit) Damagefunc1(hit,20,10) end)
  628. for i=0,1,0.2 do
  629. swait()
  630. RW.C0=cf(1.5, 0.5, 0) * euler(2.5-3*i,0,0.6*i)
  631. LW.C0=cf(-1.5, 0.5, 0) * euler(2.5-3*i,0,-0.6*i)
  632. local Point=prt6.CFrame*CFrame.new(0,prt6.Size.Y/1.5,0)
  633. effect("White",0.5,LastPoint,Point)
  634. LastPoint=Point
  635. local Point2=aprt6.CFrame*CFrame.new(0,aprt6.Size.Y/1.5,0)
  636. effect("White",0.5,LastPoint2,Point2)
  637. LastPoint2=Point2
  638. end
  639. con1:disconnect()
  640. con2:disconnect()
  641. attack=false
  642. end
  643. function twoslash()
  644. attack=true
  645. combo=2
  646. for i=0,1,0.1 do
  647. swait()
  648. RW.C0=cf(1.5, 0.5, 0) * euler(-0.5+2.07*i,0,0.6-0.6*i)
  649. RW.C1=cf(0, 0.5, 0) * euler(0,-0.4-0.87*i,0)
  650. LW.C0=cf(-1.5, 0.5, 0) * euler(-0.5+2.07*i,0,-0.6+0.6*i)
  651. LW.C1=cf(0, 0.5, 0) * euler(0,0.4+1.37*i,0)
  652. end
  653. local LastPoint=prt6.CFrame*CFrame.new(0,prt6.Size.Y/1.5,0)
  654. local LastPoint2=aprt6.CFrame*CFrame.new(0,aprt6.Size.Y/1.5,0)
  655. so("http://roblox.com/asset/?id=10209640",LeftArm,1,1)
  656. so("http://roblox.com/asset/?id=10209640",RightArm,1,1)
  657. con1=prt9.Touched:connect(function(hit) Damagefunc1(hit,20,10) end)
  658. con2=aprt9.Touched:connect(function(hit) Damagefunc1(hit,20,10) end)
  659. for i=0,1,0.2 do
  660. swait()
  661. RW.C0=cf(1.5, 0.5, 0) * euler(1.57,0,2*i)
  662. RW.C1=cf(0, 0.5, 0) * euler(0,-1.27-0.3*i,0)
  663. LW.C0=cf(-1.5, 0.5, 0) * euler(1.57,0,-2*i)
  664. LW.C1=cf(0, 0.5, 0) * euler(0,1.77-0.2*i,0)
  665. local Point=prt6.CFrame*CFrame.new(0,prt6.Size.Y/1.5,0)
  666. effect("White",0.5,LastPoint,Point)
  667. LastPoint=Point
  668. local Point2=aprt6.CFrame*CFrame.new(0,aprt6.Size.Y/1.5,0)
  669. effect("White",0.5,LastPoint2,Point2)
  670. LastPoint2=Point2
  671. end
  672. con1:disconnect()
  673. con2:disconnect()
  674. attack=false
  675. end
  676. function threeslash()
  677. attack=true
  678. combo=3
  679. for i=0,1,0.1 do
  680. swait()
  681. RW.C0=cf(1.5-1.5*i, 0.5, -1*i) * euler(1.57,0,2-3*i)
  682. LW.C0=cf(-1.5, 0.5, 0) * euler(1.57+0.93*i,0,-2+2*i)
  683. LW.C1=cf(0, 0.5, 0) * euler(0,1.57-1.57*i,0)
  684. end
  685. local LastPoint=prt6.CFrame*CFrame.new(0,prt6.Size.Y/1.5,0)
  686. so("http://roblox.com/asset/?id=10209640",RightArm,1,1)
  687. con1=prt9.Touched:connect(function(hit) Damagefunc1(hit,10,5) end)
  688. for i=0,1,0.2 do
  689. swait()
  690. RW.C0=cf(1.5*i, 0.5, -1+1*i) * euler(1.57,0,-1+3*i)
  691. local Point=prt6.CFrame*CFrame.new(0,prt6.Size.Y/1.5,0)
  692. effect("White",0.5,LastPoint,Point)
  693. LastPoint=Point
  694. end
  695. con1:disconnect()
  696. local LastPoint2=aprt6.CFrame*CFrame.new(0,aprt6.Size.Y/1.5,0)
  697. so("http://roblox.com/asset/?id=10209640",LeftArm,1,1)
  698. con2=aprt9.Touched:connect(function(hit) Damagefunc1(hit,10,5) end)
  699. for i=0,1,0.2 do
  700. swait()
  701. LW.C0=cf(-1.5, 0.5, 0) * euler(2.5-3*i,0,0)
  702. local Point2=aprt6.CFrame*CFrame.new(0,aprt6.Size.Y/1.5,0)
  703. effect("White",0.5,LastPoint2,Point2)
  704. LastPoint2=Point2
  705. end
  706. con2:disconnect()
  707. attack=false
  708. end
  709.  
  710. function TornadoSlash()
  711. attack=true
  712. for i=0,1,0.1 do
  713. swait()
  714. RW.C0=cf(1.5, 0.5, -0.25+0.25*i) * euler(1.5+0.07*i,0,1.57*i)
  715. RW.C1=cf(0, 0.5, 0) * euler(0,-0.6+2.4*i,0)
  716. LW.C0=cf(-1.5, 0.5, 0) * euler(1+0.57*i,0,-1.57*i)
  717. LW.C1=cf(0, 0.5, 0) * euler(0,0.4+1.4*i,0)
  718. end
  719. bg.Parent=Torso
  720. bg.cframe=Torso.CFrame
  721. CF=Torso.CFrame
  722. local LastPoint=prt6.CFrame*CFrame.new(0,prt6.Size.Y/1.5,0)
  723. local LastPoint2=aprt6.CFrame*CFrame.new(0,aprt6.Size.Y/1.5,0)
  724. con1=prt9.Touched:connect(function(hit) Damagefunc1(hit,10,10) end)
  725. con2=aprt9.Touched:connect(function(hit) Damagefunc1(hit,10,10) end)
  726. for i=1,3 do
  727. so("http://roblox.com/asset/?id=10209640",LeftArm,1,1)
  728. so("http://roblox.com/asset/?id=10209640",RightArm,1,1)
  729. for i=0,1,0.1 do
  730. swait()
  731. bg.cframe=CF*euler(0,6.283*i,0)
  732. local Point=prt6.CFrame*CFrame.new(0,prt6.Size.Y/1.5,0)
  733. effect("White",0.5,LastPoint,Point)
  734. LastPoint=Point
  735. local Point2=aprt6.CFrame*CFrame.new(0,aprt6.Size.Y/1.5,0)
  736. effect("White",0.5,LastPoint2,Point2)
  737. LastPoint2=Point2
  738. end
  739. end
  740. con1:disconnect()
  741. con2:disconnect()
  742. bg.Parent=nil
  743. for i=0,1,0.1 do
  744. swait()
  745. RW.C0=cf(1.5, 0.5, 0) * euler(1.57,0,1.57-1.47*i)
  746. RW.C1=cf(0, 0.5, 0) * euler(0,1.8-2.5*i,0)
  747. LW.C0=cf(-1.5, 0.5, 0) * euler(1.57,0,-1.57+1.47*i)
  748. LW.C1=cf(0, 0.5, 0) * euler(0,1.8-1.1*i,0)
  749. end
  750. local LastPoint=prt6.CFrame*CFrame.new(0,prt6.Size.Y/1.5,0)
  751. local LastPoint2=aprt6.CFrame*CFrame.new(0,aprt6.Size.Y/1.5,0)
  752. so("http://roblox.com/asset/?id=10209640",LeftArm,1,1)
  753. so("http://roblox.com/asset/?id=10209640",RightArm,1,1)
  754. con1=prt9.Touched:connect(function(hit) Damagefunc1(hit,10,10) end)
  755. con2=aprt9.Touched:connect(function(hit) Damagefunc1(hit,10,10) end)
  756. for i=0,1,0.2 do
  757. swait()
  758. RW.C0=cf(1.5, 0.5, 0) * euler(1.57-2*i,0,0.1+1*i)
  759. LW.C0=cf(-1.5, 0.5, 0) * euler(1.57-2*i,0,-0.1-1*i)
  760. local Point=prt6.CFrame*CFrame.new(0,prt6.Size.Y/1.5,0)
  761. effect("White",0.5,LastPoint,Point)
  762. LastPoint=Point
  763. local Point2=aprt6.CFrame*CFrame.new(0,aprt6.Size.Y/1.5,0)
  764. effect("White",0.5,LastPoint2,Point2)
  765. LastPoint2=Point2
  766. end
  767. con1:disconnect()
  768. con2:disconnect()
  769. wait(0.1)
  770. for i=0,1,0.1 do
  771. swait()
  772. RW.C0=cf(1.5, 0.5, 0) * euler(-0.43+1.93*i,0,1.1-1.1*i)
  773. RW.C1=cf(0, 0.5, 0) * euler(0,-0.7+0.1*i,0)
  774. LW.C0=cf(-1.5, 0.5, 0) * euler(-0.43+1.43*i,0,-1.1+1.1*i)
  775. LW.C1=cf(0, 0.5, 0) * euler(0,0.7-0.3*i,0)
  776. end
  777. attack=false
  778. end
  779.  
  780. function MultiSpin()
  781. attack=true
  782. for i=0,1,0.1 do
  783. swait()
  784. RW.C0=cf(1.5, 0.5, -0.25+0.25*i) * euler(1.5+2*i,0,0)
  785. RW.C1=cf(0, 0.5, 0) * euler(0,-0.6+0.6*i,0)
  786. LW.C0=cf(-1.5, 0.5, 0) * euler(1+2.5*i,0,0)
  787. LW.C1=cf(0, 0.5, 0) * euler(0,0.4-0.4*i,0)
  788. end
  789. local LastPoint=prt6.CFrame*CFrame.new(0,prt6.Size.Y/1.5,0)
  790. local LastPoint2=aprt6.CFrame*CFrame.new(0,aprt6.Size.Y/1.5,0)
  791. so("http://roblox.com/asset/?id=10209640",LeftArm,1,1)
  792. so("http://roblox.com/asset/?id=10209640",RightArm,1,1)
  793. con1=prt9.Touched:connect(function(hit) Damagefunc1(hit,10,10) end)
  794. con2=aprt9.Touched:connect(function(hit) Damagefunc1(hit,10,10) end)
  795. --6.28
  796. for i=0,1.05,0.05 do
  797. swait()
  798. if i==0.35 or i==0.65 then
  799. so("http://roblox.com/asset/?id=10209640",LeftArm,1,1)
  800. so("http://roblox.com/asset/?id=10209640",RightArm,1,1)
  801. end
  802. wld1.C0=euler(1.57,(-6.28*3)*i,-1.57)*cf(0,1,0)
  803. awld1.C0=euler(-1.57,(6.28*3)*i,1.57)*cf(0,1,0)
  804. RW.C0=cf(1.5, 0.5, 0) * euler(3.5-4*i,0,0)
  805. LW.C0=cf(-1.5, 0.5, 0) * euler(3.5-4*i,0,0)
  806. local Point=prt6.CFrame*CFrame.new(0,prt6.Size.Y/1.5,0)
  807. effect("White",0.5,LastPoint,Point)
  808. LastPoint=Point
  809. local Point2=aprt6.CFrame*CFrame.new(0,aprt6.Size.Y/1.5,0)
  810. effect("White",0.5,LastPoint2,Point2)
  811. LastPoint2=Point2
  812. end
  813. con1:disconnect()
  814. con2:disconnect()
  815. for i=0,1,0.1 do
  816. swait()
  817. RW.C0=cf(1.5, 0.5, 0) * euler(-0.5+2*i,0,0)
  818. RW.C1=cf(0, 0.5, 0) * euler(0,-0.6*i,0)
  819. LW.C0=cf(-1.5, 0.5, 0) * euler(-0.5+1.5*i,0,0)
  820. LW.C1=cf(0, 0.5, 0) * euler(0,0.4*i,0)
  821. end
  822. attack=false
  823. end
  824.  
  825. function DashSlash()
  826. attack=true
  827. for i=0,1,0.1 do
  828. swait()
  829. RW.C0=cf(1.5, 0.5, -0.25+0.25*i) * euler(1.5-2*i,0,0.3*i)
  830. RW.C1=cf(0, 0.5, 0) * euler(0,-0.6+1.6*i,0)
  831. LW.C0=cf(-1.5, 0.5, 0) * euler(1-1.5*i,0,-0.3*i)
  832. LW.C1=cf(0, 0.5, 0) * euler(0,0.4-1.4*i,0)
  833. end
  834. local LastPoint=prt6.CFrame*CFrame.new(0,prt6.Size.Y/1.5,0)
  835. local LastPoint2=aprt6.CFrame*CFrame.new(0,aprt6.Size.Y/1.5,0)
  836. while holddash==true do
  837. swait()
  838. Humanoid.WalkSpeed=25
  839. local Point=prt6.CFrame*CFrame.new(0,prt6.Size.Y/1.5,0)
  840. effect("White",0.5,LastPoint,Point)
  841. LastPoint=Point
  842. local Point2=aprt6.CFrame*CFrame.new(0,aprt6.Size.Y/1.5,0)
  843. effect("White",0.5,LastPoint2,Point2)
  844. LastPoint2=Point2
  845. end
  846. Humanoid.WalkSpeed=16
  847. for i=0,1,0.1 do
  848. swait()
  849. RW.C0=cf(1.5, 0.5, -0.25*i) * euler(-0.5+2*i,0,0.3-0.3*i)
  850. RW.C1=cf(0, 0.5, 0) * euler(0,1-1.6*i,0)
  851. LW.C0=cf(-1.5, 0.5, 0) * euler(-0.5+1.5*i,0,-0.3+0.3*i)
  852. LW.C1=cf(0, 0.5, 0) * euler(0,-1+1.4*i,0)
  853. end
  854. attack=false
  855. end
  856.  
  857. function ChangeWeapon()
  858. attack=true
  859. print("Gladiator SS initiated.")
  860. for i=0,1,0.1 do
  861. swait()
  862. wld1.C0=euler(1.57,0.4*i,-1.57)*cf(0,1,0)
  863. awld1.C0=euler(-1.57,0.4*i,1.57-3.14*i)*cf(0,1,0)
  864. RW.C0=cf(1.5-0.5*i, 0.5, -0.25-0.25*i) * euler(1.5+0.07*i,0,-0.4*i)
  865. RW.C1=cf(0, 0.5, 0) * euler(0,-0.6+2.17*i,0)
  866. LW.C0=cf(-1.5+0.5*i, 0.5, -0.5*i) * euler(1+0.57*i,0,0.4*i)
  867. LW.C1=cf(0, 0.5, 0) * euler(0,0.4-1.97*i,0)
  868. end
  869. for i=0,1,0.1 do
  870. swait()
  871. wld1.C0=euler(1.57,0.4+0.2*i,-1.57)*cf(0,1,0)
  872. awld1.C0=euler(-1.57,0.4+0.2*i,-1.57)*cf(0,1,0)
  873. RW.C0=cf(1.5-0.5, 0.5, -0.5) * euler(1.57,0,-0.4-0.2*i)
  874. LW.C0=cf(-1.5+0.5, 0.5, -0.5) * euler(1.57,0,0.4+0.2*i)
  875. end
  876. Mode=1
  877. awld1.Part1=prt1
  878. awld1.C0=cf(0,0,0)
  879. for i=0,1,0.1 do
  880. swait()
  881. wld1.C0=euler(1.57,0.6-0.6*i,-1.57)*cf(0,1,0)
  882. RW.C0=cf(1.5-0.5+0.5*i, 0.5, -0.5+0.5*i) * euler(1.57-0.57*i,0,-0.6+0.8*i)
  883. RW.C1=cf(0, 0.5, 0) * euler(0,1.57-2.07*i,0)
  884. LW.C0=cf(-1.5+0.5-0.5*i, 0.5, -0.5+0.5*i) * euler(1.57-1.57*i,0,0.6-1*i)
  885. LW.C1=cf(0, 0.5, 0) * euler(0,-1.57+1.57*i,0)
  886. end
  887. Humanoid.WalkSpeed=20
  888. coroutine.resume(coroutine.create(function()
  889. wait(10)
  890. Humanoid.WalkSpeed=16
  891. repeat swait() until attack==false
  892. if unsheathed==true then
  893. Mode=0
  894. awld1.Part1=LeftArm
  895. wld1.C0=euler(1.57,0,-1.57)*cf(0,1,0)
  896. awld1.C0=euler(-1.57,0,1.57)*cf(0,1,0)
  897. RW.C0=cf(1.5, 0.5, -0.25) * euler(1.5,0,0)
  898. RW.C1=cf(0, 0.5, 0) * euler(0,-0.6,0)
  899. LW.C0=cf(-1.5, 0.5, 0) * euler(1,0,0)
  900. LW.C1=cf(0, 0.5, 0) * euler(0,0.4,0)
  901. end
  902. end))
  903. attack=false
  904. end
  905.  
  906. function DoubleBladeSlash1()
  907. attack=true
  908. for i=0,1,0.1 do
  909. swait()
  910. RW.C0=cf(1.5, 0.5, 0) * euler(1+2*i,0,0.2-0.2*i)
  911. RW.C1=cf(0, 0.5, 0) * euler(0,-0.5+0.5*i,0)
  912. end
  913. local LastPoint=prt6.CFrame*CFrame.new(0,prt6.Size.Y/1.5,0)
  914. local LastPoint2=aprt6.CFrame*CFrame.new(0,aprt6.Size.Y/1.5,0)
  915. so("http://roblox.com/asset/?id=10209640",LeftArm,1,1)
  916. so("http://roblox.com/asset/?id=10209640",RightArm,1,1)
  917. con1=prt9.Touched:connect(function(hit) Damagefunc1(hit,20,10) end)
  918. con2=aprt9.Touched:connect(function(hit) Damagefunc1(hit,20,10) end)
  919. for i=0,1,0.2 do
  920. swait()
  921. RW.C0=cf(1.5, 0.5, 0) * euler(3-3.5*i,0,0)
  922. LW.C0=cf(-1.5, 0.5, 0) * euler(-0.5*i,0,-0.4)
  923. local Point=prt6.CFrame*CFrame.new(0,prt6.Size.Y/1.5,0)
  924. effect("White",0.5,LastPoint,Point)
  925. LastPoint=Point
  926. local Point2=aprt6.CFrame*CFrame.new(0,aprt6.Size.Y/1.5,0)
  927. effect("White",0.5,LastPoint2,Point2)
  928. LastPoint2=Point2
  929. end
  930. con1:disconnect()
  931. con2:disconnect()
  932. attack=false
  933. end
  934.  
  935. function DoubleBladeSlash2()
  936. attack=true
  937. for i=0,1,0.1 do
  938. swait()
  939. wld1.C0=euler(1.57,-0.5*i,-1.57)*cf(0,1,0)
  940. RW.C0=cf(1.5-1.5*i, 0.5, -0.5*i) * euler(1+0.57*i,0,0.2-1.77*i)
  941. RW.C1=cf(0, 0.5, 0) * euler(0,-0.5-1.07*i,0)
  942. end
  943. local LastPoint=prt6.CFrame*CFrame.new(0,prt6.Size.Y/1.5,0)
  944. local LastPoint2=aprt6.CFrame*CFrame.new(0,aprt6.Size.Y/1.5,0)
  945. so("http://roblox.com/asset/?id=10209640",LeftArm,1,1)
  946. so("http://roblox.com/asset/?id=10209640",RightArm,1,1)
  947. con1=prt9.Touched:connect(function(hit) Damagefunc1(hit,20,10) end)
  948. con2=aprt9.Touched:connect(function(hit) Damagefunc1(hit,20,10) end)
  949. for i=0,1,0.2 do
  950. swait()
  951. RW.C0=cf(1.5*i, 0.5, -0.5+0.5*i) * euler(1.57,0,-1.57+3.5*i)
  952. local Point=prt6.CFrame*CFrame.new(0,prt6.Size.Y/1.5,0)
  953. effect("White",0.5,LastPoint,Point)
  954. LastPoint=Point
  955. local Point2=aprt6.CFrame*CFrame.new(0,aprt6.Size.Y/1.5,0)
  956. effect("White",0.5,LastPoint2,Point2)
  957. LastPoint2=Point2
  958. end
  959. con1:disconnect()
  960. con2:disconnect()
  961. attack=false
  962. end
  963.  
  964. function DoubleBladeSlash3()
  965. attack=true
  966. for i=0,1,0.2 do
  967. swait()
  968. RW.C0=cf(1.5, 0.5, 0) * euler(1+1*i,0,0.2)
  969. RW.C1=cf(0, 0.5, 0) * euler(0,-0.5+1*i,0)
  970. end
  971. local LastPoint=prt6.CFrame*CFrame.new(0,prt6.Size.Y/1.5,0)
  972. local LastPoint2=aprt6.CFrame*CFrame.new(0,aprt6.Size.Y/1.5,0)
  973. con1=prt9.Touched:connect(function(hit) Damagefunc1(hit,10,10) end)
  974. con2=aprt9.Touched:connect(function(hit) Damagefunc1(hit,10,10) end)
  975. for i=0,1,0.1 do
  976. swait()
  977. if i > 0.2 then so("http://roblox.com/asset/?id=10209640",RightArm,0.5,1.5) end
  978. wld1.C0=euler(1.57,6.28*i,-1.57)*cf(0,1,0)
  979. RW.C0=cf(1.5, 0.5, 0) * euler(2+1*i,0,0.2+0.4*i)
  980. local Point=prt6.CFrame*CFrame.new(0,prt6.Size.Y/1.5,0)
  981. effect("White",0.5,LastPoint,Point)
  982. LastPoint=Point
  983. local Point2=aprt6.CFrame*CFrame.new(0,aprt6.Size.Y/1.5,0)
  984. effect("White",0.5,LastPoint2,Point2)
  985. LastPoint2=Point2
  986. end
  987. so("http://roblox.com/asset/?id=10209640",RightArm,1,1)
  988. for i=0,1,0.2 do
  989. swait()
  990. wld1.C0=euler(1.57,-2*i,-1.57)*cf(0,1,0)
  991. RW.C0=cf(1.5, 0.5, 0) * euler(3-2*i,0,0.6-1.2*i)
  992. local Point=prt6.CFrame*CFrame.new(0,prt6.Size.Y/1.5,0)
  993. effect("White",0.5,LastPoint,Point)
  994. LastPoint=Point
  995. local Point2=aprt6.CFrame*CFrame.new(0,aprt6.Size.Y/1.5,0)
  996. effect("White",0.5,LastPoint2,Point2)
  997. LastPoint2=Point2
  998. end
  999. con1:disconnect()
  1000. con2:disconnect()
  1001. attack=false
  1002. end
  1003.  
  1004. function ob1d(mouse)
  1005. if attack == true then return end
  1006. hold=true
  1007. if Mode==0 then
  1008. if combo==0 then
  1009. oneslash()
  1010. elseif combo==1 then
  1011. twoslash()
  1012. elseif combo==2 then
  1013. threeslash()
  1014. end
  1015. coroutine.resume(coroutine.create(function()
  1016. wait(0.5)
  1017. if attack==false then
  1018. combo=0
  1019. wld1.C0=euler(1.57,0,-1.57)*cf(0,1,0)
  1020. awld1.C0=euler(-1.57,0,1.57)*cf(0,1,0)
  1021. RW.C0=cf(1.5, 0.5, -0.25) * euler(1.5,0,0)
  1022. RW.C1=cf(0, 0.5, 0) * euler(0,-0.6,0)
  1023. LW.C0=cf(-1.5, 0.5, 0) * euler(1,0,0)
  1024. LW.C1=cf(0, 0.5, 0) * euler(0,0.4,0)
  1025. end
  1026. end))
  1027. elseif Mode==1 then
  1028. rand=math.random(1,3)
  1029. if rand==1 then
  1030. DoubleBladeSlash1()
  1031. elseif rand==2 then
  1032. DoubleBladeSlash2()
  1033. elseif rand==3 then
  1034. DoubleBladeSlash3()
  1035. end
  1036. wait(0.2)
  1037. wld1.C0=euler(1.57,0,-1.57)*cf(0,1,0)
  1038. RW.C0=cf(1.5, 0.5, 0) * euler(1,0,0.2)
  1039. RW.C1=cf(0, 0.5, 0) * euler(0,-0.5,0)
  1040. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.4)
  1041. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1042. end
  1043. end
  1044.  
  1045. function ob1u(mouse)
  1046. hold = false
  1047. end
  1048.  
  1049. buttonhold = false
  1050.  
  1051. eul=0
  1052. holddash=false
  1053. weapondb=false
  1054. function key(key)
  1055. if attack == true then return end
  1056. if key=="z" then
  1057. TornadoSlash()
  1058. end
  1059. if Mode==0 then
  1060. if key=="x" then
  1061. MultiSpin()
  1062. end
  1063. if key=="c" then
  1064. holddash=true
  1065. DashSlash()
  1066. end
  1067. if key=="v" and weapondb==false then
  1068. weapondb=true
  1069. ChangeWeapon()
  1070. coroutine.resume(coroutine.create(function()
  1071. wait(1)
  1072. print("ENABLED SS")
  1073. weapondb=false
  1074. for i=0,1,0.1 do
  1075. wait(0)
  1076. doanimation=false
  1077. end
  1078. end))
  1079. end
  1080. end
  1081. combo=0
  1082. end
  1083.  
  1084. function key2(key)
  1085. if key=="c" then
  1086. holddash=false
  1087. end
  1088. end
  1089.  
  1090. function s(mouse)
  1091. mouse.Button1Down:connect(function() ob1d(mouse) end)
  1092. mouse.Button1Up:connect(function() ob1u(mouse) end)
  1093. mouse.KeyDown:connect(key)
  1094. mouse.KeyUp:connect(key2)
  1095. unsheathed = true
  1096. player = Player
  1097. ch = Character
  1098. MMouse = mouse
  1099. RSH = ch.Torso["Right Shoulder"]
  1100. LSH = ch.Torso["Left Shoulder"]
  1101. --
  1102. RSH.Parent = nil
  1103. LSH.Parent = nil
  1104. --
  1105. RW.Part0 = ch.Torso
  1106. RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1107. RW.C1 = CFrame.new(0, 0.5, 0)
  1108. RW.Part1 = ch["Right Arm"]
  1109. RW.Parent = ch.Torso
  1110. --_G.R = RW
  1111. --
  1112. LW.Part0 = ch.Torso
  1113. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1114. LW.C1 = CFrame.new(0, 0.5, 0)
  1115. LW.Part1 = ch["Left Arm"]
  1116. LW.Parent = ch.Torso
  1117. --_G.L = LW
  1118. --
  1119. equipanim()
  1120. end
  1121.  
  1122. function ds(mouse)
  1123. Humanoid.WalkSpeed=16
  1124. Mode=0
  1125. unsheathed=false
  1126. hideanim()
  1127. wait(0)
  1128. RW.Parent = nil
  1129. LW.Parent = nil
  1130. RSH.Parent = player.Character.Torso
  1131. LSH.Parent = player.Character.Torso
  1132. end
  1133.  
  1134. Bin.Selected:connect(s)
  1135. Bin.Deselected:connect(ds)
  1136. print("Dual Swords loaded.")
  1137. -- mediafire
  1138. --[[
  1139. Copyrighted (C) Fenrier 2013
  1140. ]]
Add Comment
Please, Sign In to add comment