memberhero

Templar

May 14th, 2018
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 40.96 KB | None | 0 0
  1. --Templar Converted To Local by basstracker1970
  2. Player = game:GetService("Players").LocalPlayer
  3. Character = Player.Character
  4. PlayerGui = Player.PlayerGui
  5. Backpack = Player.Backpack
  6. Torso = Character.Torso
  7. Head = Character.Head
  8. Humanoid = Character.Humanoid
  9. LeftArm = Character["Left Arm"]
  10. LeftLeg = Character["Left Leg"]
  11. RightArm = Character["Right Arm"]
  12. RightLeg = Character["Right Leg"]
  13. LS = Torso["Left Shoulder"]
  14. LH = Torso["Left Hip"]
  15. RS = Torso["Right Shoulder"]
  16. RH = Torso["Right Hip"]
  17. Neck = Torso.Neck
  18. it=Instance.new
  19. vt=Vector3.new
  20. cf=CFrame.new
  21. mouse = Player:GetMouse()
  22. euler=CFrame.fromEulerAnglesXYZ
  23. angles=CFrame.Angles
  24. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  25. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  26. attack = false
  27. attacktype = 1
  28. damage = 5
  29. oridamage = 50
  30. attackdebounce = false
  31. ssdebounce=false
  32. MMouse=nil
  33. combo=0
  34. GyroNumb=0
  35. cond=nil
  36. --player
  37. player = nil
  38. --save shoulders
  39. RSH, LSH = nil, nil
  40. --welds
  41. RW, LW , RWL, LWL = Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld")
  42. ----------------------------
  43. --Customize mediafire
  44. attacktype = 1
  45. damage = 5
  46. oridamage = 5
  47. HP = 1000
  48. WS = 16
  49. jump = 50
  50. combo = 0
  51. anim = "none"
  52. demondance = false
  53. demonmode = false
  54. skill = false
  55. mode = 0
  56. guardy = false
  57. unsheathed = false
  58. cutscene = false
  59. cutscene2 = 0
  60. --100%/critpercentage
  61. bladecolor = BrickColor.new("New Yeller")
  62. oblkbrkr = 3
  63. blockbreaker = oblkbrkr
  64.  
  65. lightning = false
  66.  
  67. -------------------------------------------------------------------------------------------------------------------------------------
  68. RAP = Instance.new("Part")
  69. RAP.formFactor = 0
  70. RAP.CanCollide = false
  71. RAP.Name = "RAPart"
  72. RAP.Locked = true
  73. RAP.Size = Vector3.new(1,1,1)
  74. RAP.Parent = game.Players.LocalPlayer.Character
  75. RAP.Transparency = 1
  76. w = Instance.new("Weld")
  77. w.Parent = RAP
  78. w.Part0 = RAP
  79. w.Part1 = RightArm
  80. w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  81. w.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 2, 0)
  82. LAP = Instance.new("Part")
  83. LAP.formFactor = 0
  84. LAP.CanCollide = false
  85. LAP.Name = "LAPart"
  86. LAP.Locked = true
  87. LAP.Size = Vector3.new(1,1,1)
  88. LAP.Parent = game.Players.LocalPlayer.Character
  89. LAP.Transparency = 1
  90. wl = Instance.new("Weld")
  91. wl.Parent = LAP
  92. wl.Part0 = LAP
  93. wl.Part1 = LeftArm
  94. wl.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  95. wl.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 2, 0)
  96.  
  97. swordholder = Instance.new("Model")
  98. swordholder.Name = "Weapon"
  99. swordholder.Parent = game.Players.LocalPlayer.Character
  100.  
  101. local prt1 = Instance.new("Part")
  102. prt1.formFactor = 1
  103. prt1.Parent = swordholder
  104. prt1.CanCollide = false
  105. prt1.BrickColor = BrickColor.new("New Yeller")
  106. prt1.Name = "Handle1"
  107. prt1.Size = Vector3.new(1,1,1)
  108. prt1.Position = Torso.Position
  109. local prt1a = Instance.new("Part")
  110. prt1a.formFactor = 1
  111. prt1a.Parent = swordholder
  112. prt1a.CanCollide = false
  113. prt1a.BrickColor = BrickColor.new("New Yeller")
  114. prt1a.Name = "Handle1a"
  115. prt1a.Size = Vector3.new(1,1,1)
  116. prt1a.Position = Torso.Position
  117. local prt1b = Instance.new("Part")
  118. prt1b.formFactor = 1
  119. prt1b.Parent = swordholder
  120. prt1b.CanCollide = false
  121. prt1b.BrickColor = BrickColor.new("New Yeller")
  122. prt1b.Name = "Handle1b"
  123. prt1b.Size = Vector3.new(1,1,1)
  124. prt1b.Position = Torso.Position
  125. local prt2 = Instance.new("Part")
  126. prt2.formFactor = 1
  127. prt2.Parent = swordholder
  128. prt2.CanCollide = false
  129. prt2.BrickColor = BrickColor.new("Deep blue")
  130. prt2.Name = "Handle2"
  131. prt2.Size = Vector3.new(1,3,1)
  132. prt2.Position = Torso.Position
  133. local prt3 = Instance.new("Part")
  134. prt3.formFactor = 1
  135. prt3.Parent = swordholder
  136. prt3.CanCollide = false
  137. prt3.BrickColor = BrickColor.new("Deep blue")
  138. prt3.Name = "Handle3"
  139. prt3.Size = Vector3.new(1,1,1)
  140. prt3.Position = Torso.Position
  141. local prt4 = Instance.new("Part")
  142. prt4.formFactor = 1
  143. prt4.Parent = swordholder
  144. prt4.CanCollide = false
  145. prt4.BrickColor = BrickColor.new("Really blue")
  146. prt4.Name = "Handle4"
  147. prt4.Size = Vector3.new(1,1,1)
  148. prt4.Position = Torso.Position
  149. local prt5 = Instance.new("Part")
  150. prt5.formFactor = 1
  151. prt5.Parent = swordholder
  152. prt5.CanCollide = false
  153. prt5.BrickColor = BrickColor.new("Really blue")
  154. prt5.Name = "Handle5"
  155. prt5.Size = Vector3.new(1,1,1)
  156. prt5.Position = Torso.Position
  157. local prt6 = Instance.new("Part")
  158. prt6.formFactor = 1
  159. prt6.Parent = swordholder
  160. prt6.CanCollide = false
  161. prt6.BrickColor = BrickColor.new("Deep blue")
  162. prt6.Name = "Handle6"
  163. prt6.Size = Vector3.new(1,1,1)
  164. prt6.Position = Torso.Position
  165. local prt7 = Instance.new("Part")
  166. prt7.formFactor = 1
  167. prt7.Parent = swordholder
  168. prt7.CanCollide = false
  169. prt7.BrickColor = BrickColor.new("Really blue")
  170. prt7.Name = "Handle7"
  171. prt7.Size = Vector3.new(1,1,1)
  172. prt7.Position = Torso.Position
  173. local prt8 = Instance.new("Part")
  174. prt8.formFactor = 1
  175. prt8.Parent = swordholder
  176. prt8.CanCollide = false
  177. prt8.BrickColor = BrickColor.new("Really blue")
  178. prt8.Name = "Handle8"
  179. prt8.Size = Vector3.new(1,1,1)
  180. prt8.Position = Torso.Position
  181. local prt9 = Instance.new("Part")
  182. prt9.formFactor = 1
  183. prt9.Parent = swordholder
  184. prt9.CanCollide = false
  185. prt9.BrickColor = BrickColor.new("Really blue")
  186. prt9.Name = "Handle9"
  187. prt9.Size = Vector3.new(1,1,1)
  188. prt9.Position = Torso.Position
  189. local prt10 = Instance.new("Part")
  190. prt10.formFactor = 1
  191. prt10.Parent = swordholder
  192. prt10.CanCollide = false
  193. prt10.BrickColor = BrickColor.new("Really blue")
  194. prt10.Name = "Handle10"
  195. prt10.Size = Vector3.new(1,1,1)
  196. prt10.Position = Torso.Position
  197. local prt11 = Instance.new("Part")
  198. prt11.formFactor = 1
  199. prt11.Parent = swordholder
  200. prt11.CanCollide = false
  201. prt11.Reflectance = 0.5
  202. prt11.BrickColor = bladecolor
  203. prt11.Name = "Blade1"
  204. prt11.Size = Vector3.new(2,1,1)
  205. prt11.Position = Torso.Position
  206. local prt12 = Instance.new("Part")
  207. prt12.formFactor = 1
  208. prt12.Parent = swordholder
  209. prt12.CanCollide = false
  210. prt12.Reflectance = 0.5
  211. prt12.BrickColor = bladecolor
  212. prt12.Name = "Blade2"
  213. prt12.Size = Vector3.new(1,1,1)
  214. prt12.Position = Torso.Position
  215. local prt13 = Instance.new("Part")
  216. prt13.formFactor = 1
  217. prt13.Parent = swordholder
  218. prt13.CanCollide = false
  219. prt13.Reflectance = 0
  220. prt13.BrickColor = BrickColor.new("Black")
  221. prt13.Name = "Blade3"
  222. prt13.Size = Vector3.new(1,2,1)
  223. prt13.Position = Torso.Position
  224.  
  225. local msh1 = Instance.new("CylinderMesh")
  226. msh1.Parent = prt1
  227. msh1.Scale = Vector3.new(0.31,0.1,0.31)
  228. local msh1a = Instance.new("CylinderMesh")
  229. msh1a.Parent = prt1a
  230. msh1a.Scale = Vector3.new(0.31,0.1,0.31)
  231. local msh1b = Instance.new("CylinderMesh")
  232. msh1b.Parent = prt1b
  233. msh1b.Scale = Vector3.new(0.31,0.1,0.31)
  234. local msh2 = Instance.new("CylinderMesh")
  235. msh2.Parent = prt2
  236. msh2.Scale = Vector3.new(0.3,0.4,0.3)
  237. local msh3 = Instance.new("SpecialMesh")
  238. msh3.Parent = prt3
  239. msh3.MeshId = "http://www.roblox.com/asset/?id=3270017"
  240. msh3.Scale = Vector3.new(0.6,0.6,0.6)
  241. local msh4 = Instance.new("BlockMesh")
  242. msh4.Parent = prt4
  243. msh4.Scale = Vector3.new(0.2, 0.4, 0.2)
  244. local msh5 = Instance.new("BlockMesh")
  245. msh5.Parent = prt5
  246. msh5.Scale = Vector3.new(0.2, 0.4, 0.2)
  247. local msh6 = Instance.new("BlockMesh")
  248. msh6.Parent = prt6
  249. msh6.Scale = Vector3.new(0.3,0.9,0.3)
  250. local msh7 = Instance.new("BlockMesh")
  251. msh7.Parent = prt7
  252. msh7.Scale = Vector3.new(0.2, 0.5, 0.2)
  253. local msh8 = Instance.new("BlockMesh")
  254. msh8.Parent = prt8
  255. msh8.Scale = Vector3.new(0.2, 0.5, 0.2)
  256. local msh9 = Instance.new("BlockMesh")
  257. msh9.Parent = prt9
  258. msh9.Scale = Vector3.new(0.2, 0.5, 0.2)
  259. local msh10 = Instance.new("BlockMesh")
  260. msh10.Parent = prt10
  261. msh10.Scale = Vector3.new(0.2, 0.5, 0.2)
  262. local msh11 = Instance.new("BlockMesh")
  263. msh11.Parent = prt11
  264. msh11.Scale = Vector3.new(1, 0.6, 0.2)
  265. local msh12 = Instance.new("SpecialMesh")
  266. msh12.Parent = prt12
  267. msh12.MeshType = "Wedge"
  268. msh12.Scale = Vector3.new(0.2,0.4,0.5)
  269. local msh13 = Instance.new("CylinderMesh")
  270. msh13.Parent = prt13
  271. msh13.Scale = Vector3.new(2,0.8,0.3)
  272.  
  273. local w1 = Instance.new("Weld")
  274. w1.Parent = prt1
  275. w1.Part0 = prt1
  276. w1.Part1 = Torso
  277. w1.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-1.55, -0.75)
  278. local w2 = Instance.new("Weld")
  279. w2.Parent = prt2
  280. w2.Part0 = prt2
  281. w2.Part1 = prt1
  282. w2.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  283. local w1a = Instance.new("Weld")
  284. w1a.Parent = prt1a
  285. w1a.Part0 = prt1a
  286. w1a.Part1 = prt2
  287. w1a.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.3, 0)
  288. local w1b = Instance.new("Weld")
  289. w1b.Parent = prt1b
  290. w1b.Part0 = prt1b
  291. w1b.Part1 = prt2
  292. w1b.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.3, 0)
  293. local w3 = Instance.new("Weld")
  294. w3.Parent = prt3
  295. w3.Part0 = prt3
  296. w3.Part1 = prt2
  297. w3.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.9,0)
  298. local w4 = Instance.new("Weld")
  299. w4.Parent = prt4
  300. w4.Part0 = prt4
  301. w4.Part1 = prt3
  302. w4.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  303. local w5 = Instance.new("Weld")
  304. w5.Parent = prt5
  305. w5.Part0 = prt5
  306. w5.Part1 = prt3
  307. w5.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) * CFrame.new(0,0,0)
  308. local w6 = Instance.new("Weld")
  309. w6.Parent = prt6
  310. w6.Part0 = prt6
  311. w6.Part1 = prt2
  312. w6.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) * CFrame.new(0,0.7,0)
  313. local w7 = Instance.new("Weld")
  314. w7.Parent = prt7
  315. w7.Part0 = prt7
  316. w7.Part1 = prt6
  317. w7.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.6,0)
  318. local w8 = Instance.new("Weld")
  319. w8.Parent = prt8
  320. w8.Part0 = prt8
  321. w8.Part1 = prt7
  322. w8.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) * CFrame.new(0,0,0)
  323. local w9 = Instance.new("Weld")
  324. w9.Parent = prt9
  325. w9.Part0 = prt9
  326. w9.Part1 = prt6
  327. w9.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.6,0)
  328. local w10 = Instance.new("Weld")
  329. w10.Parent = prt10
  330. w10.Part0 = prt10
  331. w10.Part1 = prt9
  332. w10.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) * CFrame.new(0,0,0)
  333. local w11 = Instance.new("Weld")
  334. w11.Parent = prt11
  335. w11.Part0 = prt11
  336. w11.Part1 = prt6
  337. w11.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(-1.1,0,0)
  338. local w12 = Instance.new("Weld")
  339. w12.Parent = prt12
  340. w12.Part0 = prt12
  341. w12.Part1 = prt11
  342. w12.C0 = CFrame.fromEulerAnglesXYZ(3.95,math.rad(90),0) * CFrame.new(-1,0,0)
  343. local w13 = Instance.new("Weld")
  344. w13.Parent = prt13
  345. w13.Part0 = prt13
  346. w13.Part1 = prt11
  347. w13.C0 = CFrame.fromEulerAnglesXYZ(4.7,math.rad(90),0) * CFrame.new(0,0,0)
  348. function unequipweld()
  349.  
  350. end
  351.  
  352. unequipweld()
  353.  
  354.  
  355.  
  356. function equipweld()
  357.  
  358.  
  359. end
  360. function ss(parent,p) --Slash
  361.  
  362. local SlashSound = Instance.new("Sound")
  363. SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  364. SlashSound.Parent = parent
  365. SlashSound.Volume = .7
  366. SlashSound.Pitch = p
  367. SlashSound.PlayOnRemove = true
  368. coroutine.resume(coroutine.create(function()
  369. wait()
  370. SlashSound.Parent = nil
  371. end))
  372. end
  373. function uss(parent,p) --unsheath
  374.  
  375. local SlashSound = Instance.new("Sound")
  376. SlashSound.SoundId = "rbxasset://sounds\\unsheath.wav"
  377. SlashSound.Parent = parent
  378. SlashSound.Volume = .7
  379. SlashSound.Pitch = p
  380. SlashSound.PlayOnRemove = true
  381. coroutine.resume(coroutine.create(function()
  382. wait()
  383. SlashSound.Parent = nil
  384. end))
  385. end
  386. function ms(parent,p) --Metal Cling Sound
  387.  
  388. local SlashSound = Instance.new("Sound")
  389. SlashSound.SoundId = "rbxasset://sounds\\metal.ogg"
  390. SlashSound.Parent = parent
  391. SlashSound.Volume = 1
  392. SlashSound.Pitch = p
  393. SlashSound.PlayOnRemove = true
  394. coroutine.resume(coroutine.create(function()
  395. wait()
  396. SlashSound.Parent = nil
  397. end))
  398. end
  399.  
  400. --
  401. --
  402.  
  403. function returndmg()
  404. mindamage = omindamage
  405. maxdamage = omaxdamage
  406. crtmaxdamage = ocrtmaxdamage
  407. end
  408.  
  409. function subdmg(sub)
  410. mindamage = omindamage - sub
  411. maxdamage = omaxdamage - sub
  412. crtmaxdamage = ocrtmaxdamage - sub
  413. end
  414.  
  415. function prcntdmg(sub)
  416. mindamage = math.floor(omindamage - (omindamage*(sub/100)))
  417. maxdamage = math.floor(omaxdamage - (omaxdamage*(sub/100)))
  418. crtmaxdamage = math.floor(ocrtmaxdamage - (ocrtmaxdamage*(sub/100)))
  419. end
  420.  
  421. function tagHumanoid(humanoid, player)
  422. local creator_tag = Instance.new("ObjectValue")
  423. creator_tag.Value = player
  424. creator_tag.Name = "creator"
  425. creator_tag.Parent = humanoid
  426. end
  427.  
  428. function untagHumanoid(humanoid)
  429. if humanoid ~= nil then
  430. local tag = humanoid:findFirstChild("creator")
  431. if tag ~= nil then
  432. tag.Parent = nil
  433. end
  434. end
  435. end
  436.  
  437. local function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  438. return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  439. end
  440.  
  441.  
  442.  
  443. function equipanim()
  444. attack = true
  445. for i = 0.1 , 1 , 0.1 do
  446. wait()
  447. w1.Part1 = LeftArm
  448. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  449. w1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), 0, -1.57) * CFrame.new(0, 1, 0)
  450. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-3.5+3.5,0,-1+1)
  451. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  452. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(0, 0, math.rad(0))
  453. RWL.C1 = CFrame.new(0.5, 1, 0)
  454. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(0, 0, math.rad(0))
  455. LWL.C1 = CFrame.new(-0.5, 1, 0)
  456. end
  457. attack = false
  458. end
  459.  
  460.  
  461. function damagesplat(dmg,hit,crit,blocked)
  462. local mo = Instance.new("Model")
  463. mo.Name = dmg
  464. local pa = Instance.new("Part",mo)
  465. pa.formFactor = 3
  466. pa.Size = Vector3.new(0.8,0.3,0.8)
  467. if crit then
  468. pa.BrickColor = BrickColor.new("Bright yellow")
  469. elseif not crit then
  470. pa.BrickColor = BrickColor.new("Bright red")
  471. end
  472. if blocked then pa.BrickColor = BrickColor.new("Bright blue") end
  473. pa.CFrame = CFrame.new(hit.Position) * CFrame.new(0, 3, 0)
  474. pa.Name = "Head"
  475. local hah = Instance.new("Humanoid")
  476. hah.Parent = mo
  477. hah.MaxHealth = 0
  478. hah.Health = 0
  479. local bp = Instance.new("BodyPosition")
  480. bp.P = 14000
  481. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  482. bp.position = hit.Position + Vector3.new(0, 5, 0)
  483. coroutine.resume(coroutine.create(function()
  484. wait()
  485. mo.Parent = Character
  486. bp.Parent = pa
  487. wait(1.4)
  488. mo:remove()
  489. end))
  490. return pa
  491. end
  492.  
  493. function AddRage(add)
  494. Rage = Rage + add
  495. if Rage > MaxRage then
  496. Rage = MaxRage
  497. end
  498. end
  499.  
  500. function OT(hit)
  501. if hit.Parent == nil then return end
  502. local hum = hit.Parent:findFirstChild("Humanoid")
  503. if hum ~= nil and hum ~= Character.Humanoid then
  504. hum:TakeDamage(damage)
  505. end
  506. end
  507. function skillOT(hit)
  508. if hit.Parent == nil then return end
  509. local hum = hit.Parent:findFirstChild("Humanoid")
  510. if hum ~= nil and hum ~= Character.Humanoid then
  511. hum:TakeDamage(damage + 2)
  512. end
  513.  
  514. end
  515.  
  516. function weakOT(hit)
  517. if hit.Parent == nil then return end
  518. local hum = hit.Parent:findFirstChild("Humanoid")
  519. if hum ~= nil and hum ~= Character.Humanoid then
  520. hum:TakeDamage(2)
  521. end
  522.  
  523. end
  524.  
  525. function guardOT(hit)
  526. if hit.Parent == nil then return end
  527. local hum = hit.Parent:findFirstChild("Humanoid")
  528. if hum ~= nil and hum ~= Character.Humanoid then
  529. hum:TakeDamage(damage)
  530. Character.Humanoid.WalkSpeed = 16
  531. guardy = false
  532.  
  533. end
  534.  
  535. end
  536.  
  537. function spinOT(hit)
  538. if hit.Parent == nil then return end
  539. local hum = hit.Parent:findFirstChild("Humanoid")
  540. if hum ~= nil and hum ~= Character.Humanoid then
  541. hum:TakeDamage(damage + 5)
  542. if mana < 400 then
  543. mana = mana + math.random(1,5)
  544. end
  545. if mana > 400 then
  546. mana = 400
  547. end
  548. local torso = hit.Parent:findFirstChild("Torso")
  549. if torso.Parent ~= nil then
  550. if (torso.Position-prt1.Position).magnitude<=25 then
  551. local angle = (torso.Position-(prt1.Position+Vector3.new(0,-3,0))).unit
  552. torso.CFrame=CFrame.new(torso.Position,Vector3.new(angle.x,torso.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  553. local Gyro=Instance.new("BodyGyro")
  554. Gyro.P=1000
  555. Gyro.D=Gyro.D/2
  556. Gyro.maxTorque=Vector3.new(30000,30000,30000)*300000
  557. Gyro.cframe=torso.CFrame*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  558. Gyro.Parent=torso
  559. local bodyVelocity=Instance.new("BodyVelocity")
  560. bodyVelocity.velocity=angle*40+Vector3.new(0,35,0)
  561. bodyVelocity.P=500
  562. bodyVelocity.maxForce=Vector3.new(4e+003, 4e+003, 4e+003)
  563. bodyVelocity.Parent=torso
  564. coroutine.resume(coroutine.create(function()
  565. wait(0.3)
  566. bodyVelocity:Remove()
  567. end))
  568. coroutine.resume(coroutine.create(function()
  569. wait(0.8)
  570. Gyro:Remove()
  571. end))
  572. end
  573. end
  574. end
  575.  
  576. end
  577.  
  578. function overOT(hit)
  579. if hit.Parent == nil then return end
  580. local hum = hit.Parent:findFirstChild("Humanoid")
  581. if hum ~= nil and hum ~= Character.Humanoid then
  582. hum:TakeDamage(damage)
  583. local torso = hit.Parent:findFirstChild("Torso")
  584. if torso.Parent ~= nil then
  585. if (torso.Position-RightArm.Position).magnitude<=25 then
  586. local angle = (torso.Position-(RightArm.Position+Vector3.new(0,-3,0))).unit
  587. torso.CFrame=CFrame.new(torso.Position,Vector3.new(angle.x,torso.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  588. local Gyro=Instance.new("BodyGyro")
  589. Gyro.P=4000
  590. Gyro.D=Gyro.D/2
  591. Gyro.maxTorque=Vector3.new(60000,60000,60000)*600000
  592. Gyro.cframe=torso.CFrame*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  593. Gyro.Parent=torso
  594. local bodyVelocity=Instance.new("BodyVelocity")
  595. bodyVelocity.velocity=angle*70+Vector3.new(0,210,0)
  596. bodyVelocity.P=700
  597. bodyVelocity.maxForce=Vector3.new(7e+003, 7e+003, 7e+003)
  598. bodyVelocity.Parent=torso
  599. coroutine.resume(coroutine.create(function()
  600. wait(0.3)
  601. bodyVelocity:Remove()
  602. end))
  603. coroutine.resume(coroutine.create(function()
  604. wait(0.8)
  605. Gyro:Remove()
  606. end))
  607. end
  608. end
  609. end
  610. end
  611.  
  612. function OT2(hit)
  613. if hit.Parent == nil then return end
  614. local hum = hit.Parent:findFirstChild("Humanoid")
  615. if hum ~= nil and hum ~= Character.Humanoid then
  616. hum:TakeDamage(damage)
  617. local torso = hit.Parent:findFirstChild("Torso")
  618. if torso.Parent ~= nil then
  619. if (torso.Position-RightArm.Position).magnitude<=25 then
  620. local angle = (torso.Position-(RightArm.Position+Vector3.new(0,-3,0))).unit
  621. torso.CFrame=CFrame.new(torso.Position,Vector3.new(angle.x,torso.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  622. local Gyro=Instance.new("BodyGyro")
  623. Gyro.P=1000
  624. Gyro.D=Gyro.D/2
  625. Gyro.maxTorque=Vector3.new(30000,30000,30000)*300000
  626. Gyro.cframe=torso.CFrame*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  627. Gyro.Parent=torso
  628. local bodyVelocity=Instance.new("BodyVelocity")
  629. bodyVelocity.velocity=angle*40+Vector3.new(0,35,0)
  630. bodyVelocity.P=500
  631. bodyVelocity.maxForce=Vector3.new(4e+003, 4e+003, 4e+003)
  632. bodyVelocity.Parent=torso
  633. coroutine.resume(coroutine.create(function()
  634. wait(0.3)
  635. bodyVelocity:Remove()
  636. end))
  637. coroutine.resume(coroutine.create(function()
  638. wait(0.8)
  639. Gyro:Remove()
  640. end))
  641. end
  642. end
  643. end
  644. end
  645. function megatouch(hit)
  646. if hit.Parent == nil then return end
  647. local hum = hit.Parent:findFirstChild("Humanoid")
  648. if hum ~= nil and hum ~= Character.Humanoid then
  649. hum:TakeDamage(damage + 2)
  650. local torso = hit.Parent:findFirstChild("Torso")
  651. if torso.Parent ~= nil then
  652. if (torso.Position-RightArm.Position).magnitude<=25 then
  653. local angle = (torso.Position-(RightArm.Position+Vector3.new(0,-3,0))).unit
  654. torso.CFrame=CFrame.new(torso.Position,Vector3.new(angle.x,torso.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  655. local Gyro=Instance.new("BodyGyro")
  656. Gyro.P=1000
  657. Gyro.D=Gyro.D/2
  658. Gyro.maxTorque=Vector3.new(30000,30000,30000)*300000
  659. Gyro.cframe=torso.CFrame*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  660. Gyro.Parent=torso
  661. local bodyVelocity=Instance.new("BodyVelocity")
  662. bodyVelocity.velocity=angle*40+Vector3.new(0,35,0)
  663. bodyVelocity.P=500
  664. bodyVelocity.maxForce=Vector3.new(4e+003, 4e+003, 4e+003)
  665. bodyVelocity.Parent=torso
  666. coroutine.resume(coroutine.create(function()
  667. wait(0.3)
  668. bodyVelocity:Remove()
  669. end))
  670. coroutine.resume(coroutine.create(function()
  671. wait(0.8)
  672. Gyro:Remove()
  673. end))
  674. end
  675. end
  676. end
  677. end
  678.  
  679. function AoE(p,magnitude)
  680. local c = game.Workspace:GetChildren();
  681. for i = 1, #c do
  682. local hum = c[i]:findFirstChild("Humanoid")
  683. if hum ~= nil and hum.Health ~= 0 then
  684. local head = c[i]:findFirstChild("Head");
  685. if head ~= nil then
  686. local mag = (head.Position - p).magnitude;
  687. if mag <= magnitude and c[i].Name ~= Character.Name then
  688. local foundd = false
  689. for ii = 1 , #AoETrue do
  690. if AoETrue[ii] == c[i].Name then
  691.  
  692. foundd = true
  693. end
  694. end
  695. if foundd then
  696.  
  697. end
  698. --
  699. if not foundd then
  700. local critrandomizer = math.random(crtrate)
  701. if critrandomizer ~= 1 then
  702. local rndmdamage = math.random(mindamage,maxdamage)
  703. damage(hum,rndmdamage,false)
  704. elseif critrandomizer == 1 then
  705. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  706. damage(hum,rndmdamage,true)
  707. end
  708. table.insert(AoETrue,c[i].Name)
  709. end
  710. end
  711. end
  712. end
  713. end
  714. for ii = 1 , #AoETrue do
  715. table.remove(AoETrue,#AoETrue)
  716. end
  717. end
  718. con,con2,con3 = nil,nil,nil
  719. conn,conn2,conn3 = nil,nil,nil
  720.  
  721. function dmg1cnnct()
  722. if con ~= nil then
  723. con:disconnect()
  724. Hitdeb = 0
  725. end
  726. con = prt11.Touched:connect(OT)
  727. con2 = prt12.Touched:connect(OT)
  728. end
  729.  
  730. function dmg1dc()
  731. if con ~= nil then
  732. con:disconnect()
  733. Hitdeb = 0
  734. end
  735. if con2 ~= nil then
  736. con2:disconnect()
  737. Hitdeb = 0
  738. end
  739. end
  740. function dmg2cnnct()
  741. if con ~= nil then
  742. con:disconnect()
  743. Hitdeb = 0
  744. end
  745. con = prt11.Touched:connect(OT2)
  746. con2 = prt12.Touched:connect(OT2)
  747. end
  748.  
  749. function dmg2dc()
  750. if con ~= nil then
  751. con:disconnect()
  752. Hitdeb = 0
  753. end
  754. if con2 ~= nil then
  755. con2:disconnect()
  756. Hitdeb = 0
  757. end
  758. end
  759. function dmgovercnnct()
  760. if con ~= nil then
  761. con:disconnect()
  762. Hitdeb = 0
  763. end
  764. con = prt11.Touched:connect(overOT)
  765. con2 = prt12.Touched:connect(overOT)
  766. end
  767.  
  768. function dmgoverdc()
  769. if con ~= nil then
  770. con:disconnect()
  771. Hitdeb = 0
  772. end
  773. if con2 ~= nil then
  774. con2:disconnect()
  775. Hitdeb = 0
  776. end
  777. end
  778. function dmgskillcnnct()
  779. if con ~= nil then
  780. con:disconnect()
  781. Hitdeb = 0
  782. end
  783. con = prt11.Touched:connect(skillOT)
  784. con2 = prt12.Touched:connect(skillOT)
  785. end
  786.  
  787. function dmgskilldc()
  788. if con ~= nil then
  789. con:disconnect()
  790. Hitdeb = 0
  791. end
  792. if con2 ~= nil then
  793. con2:disconnect()
  794. Hitdeb = 0
  795. end
  796. end
  797. function dmgweakcnnct()
  798. if con ~= nil then
  799. con:disconnect()
  800. Hitdeb = 0
  801. end
  802. con = prt11.Touched:connect(weakOT)
  803. con2 = prt12.Touched:connect(weakOT)
  804. end
  805.  
  806. function dmgweakdc()
  807. if con ~= nil then
  808. con:disconnect()
  809. Hitdeb = 0
  810. end
  811. if con2 ~= nil then
  812. con2:disconnect()
  813. Hitdeb = 0
  814. end
  815. end
  816. function dmgmegacnnct()
  817. if con ~= nil then
  818. con:disconnect()
  819. Hitdeb = 0
  820. end
  821. con = prt11.Touched:connect(megatouch)
  822. con2 = prt12.Touched:connect(megatouch)
  823. end
  824.  
  825. function dmgmegadc()
  826. if con ~= nil then
  827. con:disconnect()
  828. Hitdeb = 0
  829. end
  830. if con2 ~= nil then
  831. con2:disconnect()
  832. Hitdeb = 0
  833. end
  834. end
  835. --
  836. function effect()
  837. local clone = prt11:clone()
  838. clone.Parent = workspace
  839. clone.Anchored = true
  840. clone.Transparency = 0.5
  841. clone.Reflectance = 0
  842. clone.Mesh.Scale = clone.Mesh.Scale + Vector3.new(0.1,0.1,0.1)
  843. if demondance == true then
  844. clone.BrickColor = BrickColor.new("Bright red")
  845. else
  846. clone.BrickColor = BrickColor.new("New Yeller")
  847. end
  848. coroutine.resume(coroutine.create(function()
  849. wait(0.25)
  850. clone.Parent = nil
  851. end))
  852. local cloneb = prt12:clone()
  853. cloneb.Parent = workspace
  854. cloneb.Anchored = true
  855. cloneb.Transparency = 0.5
  856. cloneb.Reflectance = 0
  857. cloneb.Mesh.Scale = cloneb.Mesh.Scale + Vector3.new(0.1,0.1,0.1)
  858. if demondance == true then
  859. cloneb.BrickColor = BrickColor.new("Bright red")
  860. else
  861. cloneb.BrickColor = BrickColor.new("New Yeller")
  862. end
  863. coroutine.resume(coroutine.create(function()
  864. wait(0.25)
  865. cloneb.Parent = nil
  866. end))
  867. end
  868.  
  869. function rptddmg(value,des,inc)
  870. coroutine.resume(coroutine.create(function()
  871. repeat
  872. wait(inc)
  873. Hitdeb = 0
  874. until value == des
  875. end))
  876. end
  877.  
  878. function atktype(s,e)
  879. coroutine.resume(coroutine.create(function ()
  880. attacktype = e
  881. wait(0.25)
  882. attacktype = s
  883. end))
  884. end
  885.  
  886. walking = false
  887. jumping = false
  888. Target = nil
  889.  
  890. function Walk()
  891. if walking then return end
  892. end
  893.  
  894. function Jump()
  895. if jumping then return end
  896. jumping = true
  897. local vel = Instance.new("BodyVelocity",Torso)
  898. vel.maxForce = Vector3.new(0,1,0) * math.huge
  899. vel.P = vel.P * 5
  900. vel.velocity = Vector3.new(0,jump,0)
  901. coroutine.resume(coroutine.create(function()
  902. wait() wait() wait() wait()
  903. vel.Parent=nil
  904. end))
  905. for i = 0.1 , 1 , 0.1 do
  906. wait()
  907. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(-20+200*i), 0, math.rad(0))
  908. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  909. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-20+200*i), 0, math.rad(0))
  910. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  911. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-10*i), 0, math.rad(0))
  912. RWL.C1 = CFrame.new(0.5, 1, 0)
  913. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(-10*i), 0, math.rad(0))
  914. LWL.C1 = CFrame.new(-0.5, 1, 0)
  915. end
  916. wait(1)
  917. for i = 0.1 , 1 , 0.1 do
  918. wait()
  919. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(180-200*i), 0, math.rad(0))
  920. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  921. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(180-200*i), 0, math.rad(0))
  922. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  923. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-10+10*i), 0, math.rad(0))
  924. RWL.C1 = CFrame.new(0.5, 1, 0)
  925. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(-10+10*i), 0, math.rad(0))
  926. LWL.C1 = CFrame.new(-0.5, 1, 0)
  927. end
  928. jumping = false
  929. end
  930.  
  931. function returnwelds()
  932. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0)
  933. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  934. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0)
  935. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  936. end
  937.  
  938. function oneslash()
  939. attack = true
  940. wait(0)
  941. dmg1cnnct()
  942. uberweaklightningattack()
  943. for i = 0,1,0.2 do
  944. wait()
  945. effect()
  946. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3*i,0,0)
  947. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  948. end
  949. dmg1dc()
  950. combo = 1
  951. attack = false
  952. end
  953.  
  954. function twoslash()
  955. attack = true
  956. wait(0.1)
  957. for i = 0,1,0.1 do
  958. wait()
  959. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3,0.5*i,0)
  960. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0.5*i)
  961. end
  962. dmg1cnnct()
  963. uberweaklightningattack()
  964. for i = 0,1,0.2 do
  965. wait()
  966. effect()
  967. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-4*i+3,1,0)
  968. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,1*i,0)
  969. end
  970. dmg1dc()
  971. combo = 2
  972. attack = false
  973. end
  974.  
  975. function threeslash()
  976. attack = true
  977. wait(0.2)
  978. dmg1cnnct()
  979. uberweaklightningattack()
  980. for i = 0,1,0.2 do
  981. wait()
  982. effect()
  983. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1*i,-1,0)
  984. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-2*i+1,0,0)
  985. w1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), math.rad(180)*i, -1.57) * CFrame.new(0, 1, 0)
  986. end
  987. dmg1dc()
  988. combo = 3
  989. attack = false
  990. end
  991.  
  992. function fourslash()
  993. attack = true
  994. wait(0.2)
  995. dmg1cnnct()
  996. uberweaklightningattack()
  997. for i = 0,1,0.2 do
  998. wait()
  999. effect()
  1000. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(90),0)
  1001. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-4.5*i+2,0,0)
  1002. end
  1003. dmg1dc()
  1004. combo = 4
  1005. attack = false
  1006. end
  1007.  
  1008. function fiveslash()
  1009. attack = true
  1010. w1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), 0, -1.57) * CFrame.new(0, 1, 0)
  1011. wait(0.2)
  1012. dmg2cnnct()
  1013. uberweaklightningattack()
  1014. for i = 0,1,0.2 do
  1015. wait()
  1016. effect()
  1017. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-4*i+3,0,0)
  1018. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1019. end
  1020. dmg2dc()
  1021. combo = 0
  1022. attack = false
  1023. end
  1024.  
  1025. function ubersmash()
  1026. attack = true
  1027. skill = true
  1028. for i = 0,1,0.1 do
  1029. wait()
  1030. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(math.rad(180)*i,0,0)
  1031. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1032. end
  1033. for i = 0,1,0.12 do
  1034. wait(0)
  1035. w1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), 0, 0) * CFrame.new(0, 1, 0)
  1036. w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(360)*i, 0)
  1037. end
  1038. wait(0.5)
  1039. w1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), 0, -1.57) * CFrame.new(0, 1, 0)
  1040. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1041. dmgovercnnct()
  1042. --[[coroutine.resume(coroutine.create(function()
  1043. wait(0.1)
  1044. local p = prt12:Clone()
  1045. p.Anchored = true
  1046. p.Parent = game.workspace
  1047. p.Transparency = 1
  1048. if lightning == true then
  1049. for i = 0,6,0.1 do
  1050. wait()
  1051. local c = game.Workspace:GetChildren();
  1052. for i = 1, #c do
  1053. local hum = c[i]:findFirstChild("Humanoid")
  1054. if hum ~= nil and hum.Health ~= 0 then
  1055. local head = c[i]:findFirstChild("Head");
  1056. local targ = head.Position - p.Position;
  1057. local mag = targ.magnitude;
  1058. if mag <= 6 and hum.Parent.Name ~= "Fenrier" then
  1059. coroutine.resume(coroutine.create(function()
  1060. for i = 0,3 do
  1061. wait()
  1062. hum.Health = hum.Health - 0.2
  1063. local msh1 = Instance.new("BlockMesh")
  1064. msh1.Scale = Vector3.new(0.2,0.8,0.2)
  1065. S=Instance.new("Part")
  1066. S.Name="Effect"
  1067. S.formFactor="Symmetric"
  1068. S.Size=Vector3.new(1,2,1)
  1069. S.BrickColor=BrickColor.new("New Yeller")
  1070. S.Reflectance = 0.5
  1071. S.TopSurface=0
  1072. S.BottomSurface=0
  1073. S.Transparency=0
  1074. S.Anchored=true
  1075. S.CanCollide=false
  1076. S.CFrame=hum.Parent.Torso.CFrame*CFrame.new(math.random(-1,1),math.random(-2,2)*i,math.random(-1,1))*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1077. S.Parent=workspace
  1078. msh1.Parent = S
  1079. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  1080. end
  1081. end))
  1082. end
  1083. end
  1084. end
  1085. local msh1 = Instance.new("BlockMesh")
  1086. msh1.Scale = Vector3.new(0.2,0.8,0.2)
  1087. S=Instance.new("Part")
  1088. S.Name="Effect"
  1089. S.formFactor="Symmetric"
  1090. S.Size=Vector3.new(1,2,1)
  1091. S.BrickColor=BrickColor.new("New Yeller")
  1092. S.Reflectance = 0.5
  1093. S.TopSurface=0
  1094. S.BottomSurface=0
  1095. S.Transparency=0
  1096. S.Anchored=true
  1097. S.CanCollide=false
  1098. S.CFrame=p.CFrame*CFrame.new(math.random(-0.7,0.7),math.random(-1,1)*i,math.random(-0.7,0.7))*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1099. S.Parent=modelzorz
  1100. msh1.Parent = S
  1101. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  1102. end
  1103. end
  1104. p:Remove()
  1105. end))]]
  1106. lightningattack()
  1107. for i = 0,1,0.25 do
  1108. wait()
  1109. effect()
  1110. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-4.5*i+math.rad(180),0,0)
  1111. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1112. end
  1113. dmgoverdc()
  1114. skill = false
  1115. attack = false
  1116. end
  1117.  
  1118. function spin()
  1119. attack = true
  1120. skill = true
  1121. for i = 0,1,0.1 do
  1122. wait()
  1123. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(math.rad(90)*i,-math.rad(90)*i,0)
  1124. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1125. end
  1126. dmgskillcnnct()
  1127. local vel = Instance.new("BodyGyro")
  1128. vel.Parent = Character.Torso
  1129. vel.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  1130. vel.P = 20e+003
  1131. CF = Torso.CFrame
  1132. weaklightningattack()
  1133. for i = 0 , 1 , 0.075 do
  1134. wait(0)
  1135. vel.cframe = CF * CFrame.fromEulerAnglesXYZ(0,-math.rad(-360)*i,0)
  1136. effect()
  1137. end
  1138. weaklightningattack()
  1139. for i = 1 , 0 , -0.075 do
  1140. wait(0)
  1141. vel.cframe = CF * CFrame.fromEulerAnglesXYZ(0,-math.rad(-360)+math.rad(-360)*i*i,0)
  1142. effect()
  1143. end
  1144. dmgskilldc()
  1145. for i = 0 , 1 , 0.20 do
  1146. wait(0)
  1147. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-1.57*i+1.57,-1.57*i+1.57,0)
  1148. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1149. w1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), 0, -1.57) * CFrame.new(0, 1, 0)
  1150. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1151. end
  1152. vel:Remove()
  1153. attack = false
  1154. skill = false
  1155. end
  1156.  
  1157. function attacklol()
  1158. attack = true
  1159. skill = true
  1160. wait(0)
  1161. dmgweakcnnct()
  1162. for i = 0,1,0.2 do
  1163. wait()
  1164. effect()
  1165. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3*i,0,0)
  1166. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1167. end
  1168. wait(0.2)
  1169. for i = 0,1,0.1 do
  1170. wait()
  1171. effect()
  1172. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-4.5*i+3,0,0)
  1173. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1174. end
  1175. wait(0.1)
  1176. for i = 0,1,0.12 do
  1177. wait(0)
  1178. w1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), 0, 0) * CFrame.new(0, 1, 0)
  1179. w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(360)*i, 0)
  1180. end
  1181. wait(0.4)
  1182. w1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), 0, -1.57) * CFrame.new(0, 1, 0)
  1183. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1184. coroutine.resume(coroutine.create(function()
  1185. for i = 0,1,0.2 do
  1186. wait()
  1187. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90)*i,0,0)
  1188. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1189. end
  1190. end))
  1191. coroutine.resume(coroutine.create(function()
  1192. for i = 0,1,0.2 do
  1193. wait(0.4)
  1194. uberweaklightningattack()
  1195. end
  1196. end))
  1197. for i = 0 , 5 , 0.07 do
  1198. wait(0)
  1199. effect()
  1200. w1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), math.rad(720)*i, -1.57) * CFrame.new(0, 1, 0)
  1201. end
  1202. dmgweakdc()
  1203. w1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), 0, -1.57) * CFrame.new(0, 1, 0)
  1204. wait(0.5)
  1205. for i = 0,1,0.2 do
  1206. wait()
  1207. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-math.rad(90)*i+math.rad(90),0,0)
  1208. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1209. end
  1210. attack = false
  1211. skill = false
  1212. end
  1213.  
  1214. function slashy()
  1215. attack = true
  1216. skill = true
  1217. for i = 0,1,0.1 do
  1218. wait()
  1219. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-math.rad(90)*i,math.rad(90)*i,0)
  1220. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-3*i,0,0)
  1221. end
  1222. uberlightningattack()
  1223. dmgmegacnnct()
  1224. for i = 0,1,0.2 do
  1225. wait()
  1226. effect()
  1227. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-math.rad(90),math.rad(90),0)
  1228. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(3*i-3,0,0)
  1229. end
  1230. dmgmegadc()
  1231. wait(0.5)
  1232. for i = 0,1,0.1 do
  1233. wait()
  1234. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(math.rad(90)*i-math.rad(90),-math.rad(90)*i+math.rad(90),0)
  1235. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.01*i+3-3,0,0)
  1236. end
  1237. attack = false
  1238. skill = false
  1239. end
  1240.  
  1241. function ubercharge()
  1242. attack = true
  1243. skill = true
  1244. dmgmegacnnct()
  1245. local vel = Instance.new("BodyVelocity")
  1246. vel.Parent = Character.Torso
  1247. vel.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1
  1248. vel.velocity = Character.Torso.CFrame.lookVector * 250
  1249. lightningattack()
  1250. for i = 0,1,0.1 do
  1251. wait()
  1252. effect()
  1253. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-math.rad(90),math.rad(90),0)
  1254. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-3*i,0,0)
  1255. end
  1256. vel:Remove()
  1257. lightningattack()
  1258. wait(0.5)
  1259. Character.Torso.CFrame = Character.Torso.CFrame * CFrame.fromEulerAnglesXYZ(0,math.rad(180),0)
  1260. local vel = Instance.new("BodyVelocity")
  1261. vel.Parent = Character.Torso
  1262. vel.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1
  1263. vel.velocity = Character.Torso.CFrame.lookVector * 250
  1264. lightningattack()
  1265. for i = 0,1,0.1 do
  1266. wait()
  1267. effect()
  1268. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-math.rad(90),math.rad(90),0)
  1269. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(3*i-3,0,0)
  1270. end
  1271. vel:Remove()
  1272. lightningattack()
  1273. wait(0.3)
  1274. dmgmegadc()
  1275. skill = false
  1276. attack = false
  1277. end
  1278.  
  1279. function throw()
  1280. attack = true
  1281. skill = true
  1282. for i = 0,1,0.2 do
  1283. wait()
  1284. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(180)*i,0,0)
  1285. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1286. end
  1287. for i = 0,1,0.3 do
  1288. wait()
  1289. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1.9*i+math.rad(180),0,0)
  1290. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1291. end
  1292. dmg2cnnct()
  1293. Character.Humanoid.WalkSpeed = 0
  1294. for i = 0,1,0.2 do
  1295. wait()
  1296. effect()
  1297. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), 1*i-math.rad(90), 1.57) * CFrame.new(0, 9*i+1, 0)
  1298. end
  1299. wait(0.4)
  1300. w1.Parent = nil
  1301. prt13.Anchored = true
  1302. local vel = Instance.new("BodyVelocity")
  1303. vel.Parent = Character.Torso
  1304. vel.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1
  1305. vel.velocity = Character.Torso.CFrame.lookVector * 16
  1306. dmg2dc()
  1307. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), -math.rad(90)+1, 1.57) * CFrame.new(0, 9+1, 0)
  1308. coroutine.resume(coroutine.create(function()
  1309. for i = 0 ,1 , 0.1 do
  1310. wait(0)
  1311. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.8*i,0,0)
  1312. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-2.7*i+1.9,0,0)
  1313. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1314. end
  1315. end))
  1316. wait(0.7)
  1317. vel:Remove()
  1318. w1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), 0, -1.57) * CFrame.new(0, 1, 0)
  1319. prt13.Anchored = false
  1320. w1.Parent = prt1
  1321. Character.Humanoid.WalkSpeed = WS
  1322. attack = false
  1323. skill = false
  1324. end
  1325.  
  1326. function lightningmode()
  1327. if lightning == true then
  1328. for i = 0 ,1 , 0.05 do
  1329. wait(0)
  1330. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(math.rad(90)*i,0,0)
  1331. end
  1332. lightning = false
  1333. wait(0.7)
  1334. for i = 0 ,1 , 0.05 do
  1335. wait(0)
  1336. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-math.rad(90)*i+math.rad(90),0,0)
  1337. end
  1338. else
  1339. attack = true
  1340. skill = true
  1341. damage = 6
  1342. for i = 0 ,1 , 0.05 do
  1343. wait(0)
  1344. LW.C0 = CFrame.new(-1.5, 0.5, -0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90)*i,0,1*i)
  1345. RW.C0 = CFrame.new(1.5, 0.5, -0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90)*i,0,-1*i)
  1346. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1347. end
  1348. coroutine.resume(coroutine.create(function()
  1349. lightning = true
  1350. while lightning == true do
  1351. wait()
  1352. local msh1 = Instance.new("BlockMesh")
  1353. msh1.Scale = Vector3.new(0.2,0.8,0.2)
  1354. S=Instance.new("Part")
  1355. S.Name="Effect"
  1356. S.formFactor="Symmetric"
  1357. S.Size=Vector3.new(1,2,1)
  1358. S.BrickColor=BrickColor.new("New Yeller")
  1359. S.Reflectance = 0.5
  1360. S.TopSurface=0
  1361. S.BottomSurface=0
  1362. S.Transparency=0
  1363. S.Anchored=true
  1364. S.CanCollide=false
  1365. S.CFrame=prt13.CFrame*CFrame.new(math.random(-0.7,0.7),math.random(-1,1),math.random(-0.7,0.7))*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1366. S.Parent=swordholder
  1367. msh1.Parent = S
  1368. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  1369. end
  1370. lightning = false
  1371. end))
  1372. wait(1)
  1373. for i = 0 ,1 , 0.05 do
  1374. wait(0)
  1375. LW.C0 = CFrame.new(-1.5, 0.5, 0.5*i-0.5) * CFrame.fromEulerAnglesXYZ(-math.rad(90)*i+math.rad(90),0,-1*i+1)
  1376. RW.C0 = CFrame.new(1.5, 0.5, 0.5*i-0.5) * CFrame.fromEulerAnglesXYZ(-math.rad(90)*i+math.rad(90),0,1*i-1)
  1377. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1378. end
  1379. attack = false
  1380. skill = false
  1381. end
  1382. end
  1383. function uberweaklightningattack()
  1384. coroutine.resume(coroutine.create(function()
  1385. wait(0.1)
  1386. local p = prt12:Clone()
  1387. p.Anchored = true
  1388. p.Parent = game.workspace
  1389. p.Transparency = 1
  1390. if lightning == true then
  1391. for i = 0,1,0.1 do
  1392. wait()
  1393. local c = game.Workspace:GetChildren();
  1394. for i = 1, #c do
  1395. local hum = c[i]:findFirstChild("Humanoid")
  1396. if hum ~= nil and hum.Health ~= 0 then
  1397. local head = c[i]:findFirstChild("Head");
  1398. local targ = head.Position - p.Position;
  1399. local mag = targ.magnitude;
  1400. if mag <= 6 and hum.Parent.Name ~= Character.Name then
  1401. coroutine.resume(coroutine.create(function()
  1402. for i = 0,2 do
  1403. wait()
  1404. hum.Health = hum.Health - 0.05
  1405. local msh1 = Instance.new("BlockMesh")
  1406. msh1.Scale = Vector3.new(0.2,0.8,0.2)
  1407. S=Instance.new("Part")
  1408. S.Name="Effect"
  1409. S.formFactor="Symmetric"
  1410. S.Size=Vector3.new(1,2,1)
  1411. S.BrickColor=BrickColor.new("New Yeller")
  1412. S.Reflectance = 0.5
  1413. S.TopSurface=0
  1414. S.BottomSurface=0
  1415. S.Transparency=0
  1416. S.Anchored=true
  1417. S.CanCollide=false
  1418. S.CFrame=hum.Parent.Torso.CFrame*CFrame.new(math.random(-1,1),math.random(-2,2)*i,math.random(-1,1))*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1419. S.Parent=workspace
  1420. msh1.Parent = S
  1421. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  1422. end
  1423. end))
  1424. end
  1425. end
  1426. end
  1427. local msh1 = Instance.new("BlockMesh")
  1428. msh1.Scale = Vector3.new(0.2,0.8,0.2)
  1429. S=Instance.new("Part")
  1430. S.Name="Effect"
  1431. S.formFactor="Symmetric"
  1432. S.Size=Vector3.new(1,2,1)
  1433. S.BrickColor=BrickColor.new("New Yeller")
  1434. S.Reflectance = 0.5
  1435. S.TopSurface=0
  1436. S.BottomSurface=0
  1437. S.Transparency=0
  1438. S.Anchored=true
  1439. S.CanCollide=false
  1440. S.CFrame=p.CFrame*CFrame.new(math.random(-0.7,0.7),math.random(-1,1)*i,math.random(-0.7,0.7))*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1441. S.Parent=modelzorz
  1442. msh1.Parent = S
  1443. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  1444. end
  1445. end
  1446. p:Remove()
  1447. end))
  1448. end
  1449.  
  1450. attacktype = 1
  1451. mouse.KeyDown:connect(function(k)
  1452. k = k:lower()
  1453. if k == "f" then
  1454. equipanim()
  1455. elseif k == "z" then
  1456. lightningmode()
  1457. end
  1458. end)
  1459.  
  1460. mouse.Button1Down:connect(function()
  1461. if attack==true then return end
  1462. hold=true
  1463. if combo==0 then
  1464. combo=1
  1465. oneslash()
  1466. elseif combo==1 then
  1467. combo=2
  1468. twoslash()
  1469. elseif combo==2 then
  1470. combo=3
  1471. threeslash()
  1472. elseif combo==3 then
  1473. combo=0
  1474. end
  1475. end)
Add Comment
Please, Sign In to add comment