jayrock3401

Untitled

Mar 18th, 2015
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 57.12 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87.  
  88.  
  89.  
  90. --[[
  91. Templar MiniBoss ]]
  92.  
  93. ModelName = "Templar"
  94. attack = false
  95. attacktype = 1
  96. Hitdeb = 0
  97. Hitdeb2 = 0
  98. name = "Guest270210"
  99. ----------------------------
  100. --Customize mediafire
  101. attacktype = 1
  102. damage = 5
  103. oridamage = 5
  104. HP = 1000
  105. WS = 16
  106. jump = 50
  107. combo = 0
  108. anim = "none"
  109. demondance = false
  110. demonmode = false
  111. skill = false
  112. mode = 0
  113. guardy = false
  114. unsheathed = false
  115. cutscene = false
  116. cutscene2 = 0
  117. --100%/critpercentage
  118. bladecolor = BrickColor.new("New Yeller")
  119. oblkbrkr = 3
  120. blockbreaker = oblkbrkr
  121.  
  122. lightning = false
  123.  
  124. -------------------------------------------------------------------------------------------------------------------------------------
  125.  
  126.  
  127.  
  128.  
  129.  
  130. if game.Workspace:findFirstChild(ModelName,true) ~= nil then
  131. game.Workspace:findFirstChild(ModelName,true).Parent = nil
  132. end
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139. local bodyholder = Instance.new("Model")
  140. bodyholder.Name = ModelName
  141. bodyholder.Parent = game.Workspace
  142. Character = bodyholder
  143.  
  144. ev = Instance.new("BoolValue",bodyholder)
  145. ev.Name = "EquippedVal"
  146. ev.Value = false
  147. blk = Instance.new("BoolValue",bodyholder)
  148. blk.Name = "Block"
  149. blk.Value = false
  150. blkc = Instance.new("IntValue",blk)
  151. blkc.Name = "BlockPower"
  152. blkc.Value = blockpower
  153. SpawnPos = Instance.new("Vector3Value",script)
  154. SpawnPos.Name = "SpawnPos"
  155. SpawnPos.Value = game.Workspace["Map"]:findFirstChild("SpawnPoint9").Position
  156.  
  157.  
  158. local Head = Instance.new("Part")
  159. Head.formFactor = 3
  160. Head.CanCollide = true
  161. Head.Name = "Head"
  162. Head.Locked = true
  163. Head.Size = Vector3.new(2,1,1)
  164. Head.Parent = bodyholder
  165. Head.BrickColor = BrickColor.new("Bright yellow")
  166. local smh = Instance.new("SpecialMesh",Head)
  167. smh.Scale = Vector3.new(1.25,1.25,1.25)
  168. local Torso = Instance.new("Part")
  169. Torso.formFactor = 3
  170. Torso.CanCollide = true
  171. Torso.Name = "Torso"
  172. Torso.Locked = true
  173. Torso.Size = Vector3.new(2,2,1)
  174. Torso.Parent = bodyholder
  175. Torso.BrickColor = BrickColor.new("Black")
  176. Torso.Reflectance = 0.1
  177. Torso.CFrame = CFrame.new(SpawnPos.Value)
  178. local RightArm = Instance.new("Part")
  179. RightArm.formFactor = 3
  180. RightArm.CanCollide = true
  181. RightArm.Name = "Right Arm"
  182. RightArm.Locked = true
  183. RightArm.Size = Vector3.new(1,2,1)
  184. RightArm.Parent = bodyholder
  185. RightArm.BrickColor = BrickColor.new("Black")
  186. local LeftArm = Instance.new("Part")
  187. LeftArm.formFactor = 3
  188. LeftArm.CanCollide = true
  189. LeftArm.Name = "Left Arm"
  190. LeftArm.Locked = true
  191. LeftArm.Size = Vector3.new(1,2,1)
  192. LeftArm.Parent = bodyholder
  193. LeftArm.BrickColor = BrickColor.new("Black")
  194. local RightLeg = Instance.new("Part")
  195. RightLeg.formFactor = 3
  196. RightLeg.CanCollide = true
  197. RightLeg.Name = "Right Leg"
  198. RightLeg.Locked = true
  199. RightLeg.Size = Vector3.new(1,2,1)
  200. RightLeg.Parent = bodyholder
  201. RightLeg.BrickColor = BrickColor.new("Black")
  202. local LeftLeg = Instance.new("Part")
  203. LeftLeg.formFactor = 3
  204. LeftLeg.CanCollide = true
  205. LeftLeg.Name = "Left Leg"
  206. LeftLeg.Locked = true
  207. LeftLeg.Size = Vector3.new(1,2,1)
  208. LeftLeg.Parent = bodyholder
  209. LeftLeg.BrickColor = BrickColor.new("Black")
  210.  
  211. local hair = Instance.new("Part")
  212. hair.formFactor = "Symmetric"
  213. hair.CanCollide = false
  214. hair.Locked = true
  215. hair.Size = Vector3.new(4, 3, 1)
  216. hair.Parent = bodyholder
  217. local hm = Instance.new("SpecialMesh")
  218. hm.Parent = hair
  219. hm.MeshType = "FileMesh"
  220. hm.MeshId = "http://www.roblox.com/asset/?id=77354313"
  221. hm.TextureId = "http://www.roblox.com/asset/?id=77354289"
  222. hm.Scale = Vector3.new(1, 1, 1)
  223. local wh = Instance.new("Weld")
  224. wh.Parent = hair
  225. wh.Part0 = hair
  226. wh.Part1 = Head
  227. wh.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, -.65, 0)
  228. wh.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  229.  
  230. local LAmsh = Instance.new("CharacterMesh")
  231. LAmsh.MeshId = "74655890"
  232. LAmsh.OverlayTextureId = "74655866"
  233. LAmsh.BodyPart = "LeftArm"
  234. LAmsh.Parent = bodyholder
  235.  
  236. local LLmsh = Instance.new("CharacterMesh")
  237. LLmsh.MeshId = "74655900"
  238. LLmsh.OverlayTextureId = "74655866"
  239. LLmsh.BodyPart = "LeftLeg"
  240. LLmsh.Parent = bodyholder
  241.  
  242. local RAmsh = Instance.new("CharacterMesh")
  243. RAmsh.MeshId = "74655908"
  244. RAmsh.OverlayTextureId = "74655866"
  245. RAmsh.BodyPart = "RightArm"
  246. RAmsh.Parent = bodyholder
  247.  
  248. local RLmsh = Instance.new("CharacterMesh")
  249. RLmsh.MeshId = "74655914"
  250. RLmsh.OverlayTextureId = "74655866"
  251. RLmsh.BodyPart = "RightLeg"
  252. RLmsh.Parent = bodyholder
  253.  
  254. local Tmsh = Instance.new("CharacterMesh")
  255. Tmsh.MeshId = "74655930"
  256. Tmsh.OverlayTextureId = "74655866"
  257. Tmsh.BodyPart = "Torso"
  258. Tmsh.Parent = bodyholder
  259. --player
  260. player = nil
  261. --welds
  262. RW, LW , RWL, LWL = Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld")
  263. --what anim
  264. anim = "none"
  265. --save shoulders
  266. AoETrue = {}
  267. Neck = Instance.new("Motor")
  268.  
  269.  
  270.  
  271.  
  272. --derp
  273. RW.Part0 = Character.Torso
  274. RW.Part1 = Character["Right Arm"]
  275. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  276. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  277. RW.Parent = bodyholder
  278. --
  279. LW.Part0 = Character.Torso
  280. LW.Part1 = Character["Left Arm"]
  281. LW.C0 = CFrame.new(-1.5, 0.5, 0)
  282. LW.C1 = CFrame.new(0, 0.5, 0)
  283. LW.Parent = bodyholder
  284. --
  285. RWL.Part0 = Character.Torso
  286. RWL.Part1 = Character["Right Leg"]
  287. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(0, 0, 0)
  288. RWL.C1 = CFrame.new(0.5, 1, 0)
  289. RWL.Parent = bodyholder
  290. --
  291. LWL.Part0 = Character.Torso
  292. LWL.Part1 = Character["Left Leg"]
  293. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(0, 0, 0)
  294. LWL.C1 = CFrame.new(-0.5, 1, 0)
  295. LWL.Parent = bodyholder
  296. --
  297. Neck.Part0 = Character.Torso
  298. Neck.Part1 = Character.Head
  299. Neck.C0 = CFrame.new(0, 1, 0) * CFrame.Angles(0, 0, 0)
  300. Neck.C1 = CFrame.new(0, -0.5, 0)
  301. Neck.Parent = bodyholder
  302.  
  303. ----
  304.  
  305. --
  306.  
  307. RAP = Instance.new("Part")
  308. RAP.formFactor = 0
  309. RAP.CanCollide = false
  310. RAP.Name = "RAPart"
  311. RAP.Locked = true
  312. RAP.Size = Vector3.new(1,1,1)
  313. RAP.Parent = bodyholder
  314. RAP.Transparency = 1
  315. w = Instance.new("Weld")
  316. w.Parent = RAP
  317. w.Part0 = RAP
  318. w.Part1 = RightArm
  319. w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  320. w.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 2, 0)
  321. LAP = Instance.new("Part")
  322. LAP.formFactor = 0
  323. LAP.CanCollide = false
  324. LAP.Name = "LAPart"
  325. LAP.Locked = true
  326. LAP.Size = Vector3.new(1,1,1)
  327. LAP.Parent = bodyholder
  328. LAP.Transparency = 1
  329. wl = Instance.new("Weld")
  330. wl.Parent = LAP
  331. wl.Part0 = LAP
  332. wl.Part1 = LeftArm
  333. wl.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  334. wl.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 2, 0)
  335.  
  336. swordholder = Instance.new("Model")
  337. swordholder.Name = "Weapon"
  338. swordholder.Parent = bodyholder
  339.  
  340. local prt1 = Instance.new("Part")
  341. prt1.formFactor = 1
  342. prt1.Parent = swordholder
  343. prt1.CanCollide = false
  344. prt1.BrickColor = BrickColor.new("New Yeller")
  345. prt1.Name = "Handle1"
  346. prt1.Size = Vector3.new(1,1,1)
  347. prt1.Position = Torso.Position
  348. local prt1a = Instance.new("Part")
  349. prt1a.formFactor = 1
  350. prt1a.Parent = swordholder
  351. prt1a.CanCollide = false
  352. prt1a.BrickColor = BrickColor.new("New Yeller")
  353. prt1a.Name = "Handle1a"
  354. prt1a.Size = Vector3.new(1,1,1)
  355. prt1a.Position = Torso.Position
  356. local prt1b = Instance.new("Part")
  357. prt1b.formFactor = 1
  358. prt1b.Parent = swordholder
  359. prt1b.CanCollide = false
  360. prt1b.BrickColor = BrickColor.new("New Yeller")
  361. prt1b.Name = "Handle1b"
  362. prt1b.Size = Vector3.new(1,1,1)
  363. prt1b.Position = Torso.Position
  364. local prt2 = Instance.new("Part")
  365. prt2.formFactor = 1
  366. prt2.Parent = swordholder
  367. prt2.CanCollide = false
  368. prt2.BrickColor = BrickColor.new("Deep blue")
  369. prt2.Name = "Handle2"
  370. prt2.Size = Vector3.new(1,3,1)
  371. prt2.Position = Torso.Position
  372. local prt3 = Instance.new("Part")
  373. prt3.formFactor = 1
  374. prt3.Parent = swordholder
  375. prt3.CanCollide = false
  376. prt3.BrickColor = BrickColor.new("Deep blue")
  377. prt3.Name = "Handle3"
  378. prt3.Size = Vector3.new(1,1,1)
  379. prt3.Position = Torso.Position
  380. local prt4 = Instance.new("Part")
  381. prt4.formFactor = 1
  382. prt4.Parent = swordholder
  383. prt4.CanCollide = false
  384. prt4.BrickColor = BrickColor.new("Really blue")
  385. prt4.Name = "Handle4"
  386. prt4.Size = Vector3.new(1,1,1)
  387. prt4.Position = Torso.Position
  388. local prt5 = Instance.new("Part")
  389. prt5.formFactor = 1
  390. prt5.Parent = swordholder
  391. prt5.CanCollide = false
  392. prt5.BrickColor = BrickColor.new("Really blue")
  393. prt5.Name = "Handle5"
  394. prt5.Size = Vector3.new(1,1,1)
  395. prt5.Position = Torso.Position
  396. local prt6 = Instance.new("Part")
  397. prt6.formFactor = 1
  398. prt6.Parent = swordholder
  399. prt6.CanCollide = false
  400. prt6.BrickColor = BrickColor.new("Deep blue")
  401. prt6.Name = "Handle6"
  402. prt6.Size = Vector3.new(1,1,1)
  403. prt6.Position = Torso.Position
  404. local prt7 = Instance.new("Part")
  405. prt7.formFactor = 1
  406. prt7.Parent = swordholder
  407. prt7.CanCollide = false
  408. prt7.BrickColor = BrickColor.new("Really blue")
  409. prt7.Name = "Handle7"
  410. prt7.Size = Vector3.new(1,1,1)
  411. prt7.Position = Torso.Position
  412. local prt8 = Instance.new("Part")
  413. prt8.formFactor = 1
  414. prt8.Parent = swordholder
  415. prt8.CanCollide = false
  416. prt8.BrickColor = BrickColor.new("Really blue")
  417. prt8.Name = "Handle8"
  418. prt8.Size = Vector3.new(1,1,1)
  419. prt8.Position = Torso.Position
  420. local prt9 = Instance.new("Part")
  421. prt9.formFactor = 1
  422. prt9.Parent = swordholder
  423. prt9.CanCollide = false
  424. prt9.BrickColor = BrickColor.new("Really blue")
  425. prt9.Name = "Handle9"
  426. prt9.Size = Vector3.new(1,1,1)
  427. prt9.Position = Torso.Position
  428. local prt10 = Instance.new("Part")
  429. prt10.formFactor = 1
  430. prt10.Parent = swordholder
  431. prt10.CanCollide = false
  432. prt10.BrickColor = BrickColor.new("Really blue")
  433. prt10.Name = "Handle10"
  434. prt10.Size = Vector3.new(1,1,1)
  435. prt10.Position = Torso.Position
  436. local prt11 = Instance.new("Part")
  437. prt11.formFactor = 1
  438. prt11.Parent = swordholder
  439. prt11.CanCollide = false
  440. prt11.Reflectance = 0.5
  441. prt11.BrickColor = bladecolor
  442. prt11.Name = "Blade1"
  443. prt11.Size = Vector3.new(2,1,1)
  444. prt11.Position = Torso.Position
  445. local prt12 = Instance.new("Part")
  446. prt12.formFactor = 1
  447. prt12.Parent = swordholder
  448. prt12.CanCollide = false
  449. prt12.Reflectance = 0.5
  450. prt12.BrickColor = bladecolor
  451. prt12.Name = "Blade2"
  452. prt12.Size = Vector3.new(1,1,1)
  453. prt12.Position = Torso.Position
  454. local prt13 = Instance.new("Part")
  455. prt13.formFactor = 1
  456. prt13.Parent = swordholder
  457. prt13.CanCollide = false
  458. prt13.Reflectance = 0
  459. prt13.BrickColor = BrickColor.new("Black")
  460. prt13.Name = "Blade3"
  461. prt13.Size = Vector3.new(1,2,1)
  462. prt13.Position = Torso.Position
  463.  
  464. local msh1 = Instance.new("CylinderMesh")
  465. msh1.Parent = prt1
  466. msh1.Scale = Vector3.new(0.31,0.1,0.31)
  467. local msh1a = Instance.new("CylinderMesh")
  468. msh1a.Parent = prt1a
  469. msh1a.Scale = Vector3.new(0.31,0.1,0.31)
  470. local msh1b = Instance.new("CylinderMesh")
  471. msh1b.Parent = prt1b
  472. msh1b.Scale = Vector3.new(0.31,0.1,0.31)
  473. local msh2 = Instance.new("CylinderMesh")
  474. msh2.Parent = prt2
  475. msh2.Scale = Vector3.new(0.3,0.4,0.3)
  476. local msh3 = Instance.new("SpecialMesh")
  477. msh3.Parent = prt3
  478. msh3.MeshId = "http://www.roblox.com/asset/?id=3270017"
  479. msh3.Scale = Vector3.new(0.6,0.6,0.6)
  480. local msh4 = Instance.new("BlockMesh")
  481. msh4.Parent = prt4
  482. msh4.Scale = Vector3.new(0.2, 0.4, 0.2)
  483. local msh5 = Instance.new("BlockMesh")
  484. msh5.Parent = prt5
  485. msh5.Scale = Vector3.new(0.2, 0.4, 0.2)
  486. local msh6 = Instance.new("BlockMesh")
  487. msh6.Parent = prt6
  488. msh6.Scale = Vector3.new(0.3,0.9,0.3)
  489. local msh7 = Instance.new("BlockMesh")
  490. msh7.Parent = prt7
  491. msh7.Scale = Vector3.new(0.2, 0.5, 0.2)
  492. local msh8 = Instance.new("BlockMesh")
  493. msh8.Parent = prt8
  494. msh8.Scale = Vector3.new(0.2, 0.5, 0.2)
  495. local msh9 = Instance.new("BlockMesh")
  496. msh9.Parent = prt9
  497. msh9.Scale = Vector3.new(0.2, 0.5, 0.2)
  498. local msh10 = Instance.new("BlockMesh")
  499. msh10.Parent = prt10
  500. msh10.Scale = Vector3.new(0.2, 0.5, 0.2)
  501. local msh11 = Instance.new("BlockMesh")
  502. msh11.Parent = prt11
  503. msh11.Scale = Vector3.new(1, 0.6, 0.2)
  504. local msh12 = Instance.new("SpecialMesh")
  505. msh12.Parent = prt12
  506. msh12.MeshType = "Wedge"
  507. msh12.Scale = Vector3.new(0.2,0.4,0.5)
  508. local msh13 = Instance.new("CylinderMesh")
  509. msh13.Parent = prt13
  510. msh13.Scale = Vector3.new(2,0.8,0.3)
  511.  
  512. local w1 = Instance.new("Weld")
  513. w1.Parent = prt1
  514. w1.Part0 = prt1
  515. w1.Part1 = Torso
  516. w1.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-1.55, -0.75)
  517. local w2 = Instance.new("Weld")
  518. w2.Parent = prt2
  519. w2.Part0 = prt2
  520. w2.Part1 = prt1
  521. w2.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  522. local w1a = Instance.new("Weld")
  523. w1a.Parent = prt1a
  524. w1a.Part0 = prt1a
  525. w1a.Part1 = prt2
  526. w1a.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.3, 0)
  527. local w1b = Instance.new("Weld")
  528. w1b.Parent = prt1b
  529. w1b.Part0 = prt1b
  530. w1b.Part1 = prt2
  531. w1b.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.3, 0)
  532. local w3 = Instance.new("Weld")
  533. w3.Parent = prt3
  534. w3.Part0 = prt3
  535. w3.Part1 = prt2
  536. w3.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.9,0)
  537. local w4 = Instance.new("Weld")
  538. w4.Parent = prt4
  539. w4.Part0 = prt4
  540. w4.Part1 = prt3
  541. w4.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  542. local w5 = Instance.new("Weld")
  543. w5.Parent = prt5
  544. w5.Part0 = prt5
  545. w5.Part1 = prt3
  546. w5.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) * CFrame.new(0,0,0)
  547. local w6 = Instance.new("Weld")
  548. w6.Parent = prt6
  549. w6.Part0 = prt6
  550. w6.Part1 = prt2
  551. w6.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) * CFrame.new(0,0.7,0)
  552. local w7 = Instance.new("Weld")
  553. w7.Parent = prt7
  554. w7.Part0 = prt7
  555. w7.Part1 = prt6
  556. w7.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.6,0)
  557. local w8 = Instance.new("Weld")
  558. w8.Parent = prt8
  559. w8.Part0 = prt8
  560. w8.Part1 = prt7
  561. w8.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) * CFrame.new(0,0,0)
  562. local w9 = Instance.new("Weld")
  563. w9.Parent = prt9
  564. w9.Part0 = prt9
  565. w9.Part1 = prt6
  566. w9.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.6,0)
  567. local w10 = Instance.new("Weld")
  568. w10.Parent = prt10
  569. w10.Part0 = prt10
  570. w10.Part1 = prt9
  571. w10.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) * CFrame.new(0,0,0)
  572. local w11 = Instance.new("Weld")
  573. w11.Parent = prt11
  574. w11.Part0 = prt11
  575. w11.Part1 = prt6
  576. w11.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(-1.1,0,0)
  577. local w12 = Instance.new("Weld")
  578. w12.Parent = prt12
  579. w12.Part0 = prt12
  580. w12.Part1 = prt11
  581. w12.C0 = CFrame.fromEulerAnglesXYZ(3.95,math.rad(90),0) * CFrame.new(-1,0,0)
  582. local w13 = Instance.new("Weld")
  583. w13.Parent = prt13
  584. w13.Part0 = prt13
  585. w13.Part1 = prt11
  586. w13.C0 = CFrame.fromEulerAnglesXYZ(4.7,math.rad(90),0) * CFrame.new(0,0,0)
  587. function unequipweld()
  588.  
  589. end
  590.  
  591. unequipweld()
  592.  
  593.  
  594.  
  595. function equipweld()
  596.  
  597.  
  598. end
  599.  
  600.  
  601. function ss(parent,p) --Slash
  602.  
  603. local SlashSound = Instance.new("Sound")
  604. SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  605. SlashSound.Parent = parent
  606. SlashSound.Volume = .7
  607. SlashSound.Pitch = p
  608. SlashSound.PlayOnRemove = true
  609. coroutine.resume(coroutine.create(function()
  610. wait()
  611. SlashSound.Parent = nil
  612. end))
  613. end
  614. function uss(parent,p) --unsheath
  615.  
  616. local SlashSound = Instance.new("Sound")
  617. SlashSound.SoundId = "rbxasset://sounds\\unsheath.wav"
  618. SlashSound.Parent = parent
  619. SlashSound.Volume = .7
  620. SlashSound.Pitch = p
  621. SlashSound.PlayOnRemove = true
  622. coroutine.resume(coroutine.create(function()
  623. wait()
  624. SlashSound.Parent = nil
  625. end))
  626. end
  627. function ms(parent,p) --Metal Cling Sound
  628.  
  629. local SlashSound = Instance.new("Sound")
  630. SlashSound.SoundId = "rbxasset://sounds\\metal.ogg"
  631. SlashSound.Parent = parent
  632. SlashSound.Volume = 1
  633. SlashSound.Pitch = p
  634. SlashSound.PlayOnRemove = true
  635. coroutine.resume(coroutine.create(function()
  636. wait()
  637. SlashSound.Parent = nil
  638. end))
  639. end
  640.  
  641. --
  642. --
  643.  
  644. function returndmg()
  645. mindamage = omindamage
  646. maxdamage = omaxdamage
  647. crtmaxdamage = ocrtmaxdamage
  648. end
  649.  
  650. function subdmg(sub)
  651. mindamage = omindamage - sub
  652. maxdamage = omaxdamage - sub
  653. crtmaxdamage = ocrtmaxdamage - sub
  654. end
  655.  
  656. function prcntdmg(sub)
  657. mindamage = math.floor(omindamage - (omindamage*(sub/100)))
  658. maxdamage = math.floor(omaxdamage - (omaxdamage*(sub/100)))
  659. crtmaxdamage = math.floor(ocrtmaxdamage - (ocrtmaxdamage*(sub/100)))
  660. end
  661.  
  662. function tagHumanoid(humanoid, player)
  663. local creator_tag = Instance.new("ObjectValue")
  664. creator_tag.Value = player
  665. creator_tag.Name = "creator"
  666. creator_tag.Parent = humanoid
  667. end
  668.  
  669. function untagHumanoid(humanoid)
  670. if humanoid ~= nil then
  671. local tag = humanoid:findFirstChild("creator")
  672. if tag ~= nil then
  673. tag.Parent = nil
  674. end
  675. end
  676. end
  677.  
  678. local function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  679. return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  680. end
  681.  
  682.  
  683.  
  684. function equipanim()
  685. attack = true
  686. for i = 0.1 , 1 , 0.1 do
  687. wait()
  688. w1.Part1 = LeftArm
  689. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  690. w1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), 0, -1.57) * CFrame.new(0, 1, 0)
  691. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-3.5+3.5,0,-1+1)
  692. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  693. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(0, 0, math.rad(0))
  694. RWL.C1 = CFrame.new(0.5, 1, 0)
  695. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(0, 0, math.rad(0))
  696. LWL.C1 = CFrame.new(-0.5, 1, 0)
  697. end
  698. attack = false
  699. end
  700.  
  701.  
  702. function damagesplat(dmg,hit,crit,blocked)
  703. local mo = Instance.new("Model")
  704. mo.Name = dmg
  705. local pa = Instance.new("Part",mo)
  706. pa.formFactor = 3
  707. pa.Size = Vector3.new(0.8,0.3,0.8)
  708. if crit then
  709. pa.BrickColor = BrickColor.new("Bright yellow")
  710. elseif not crit then
  711. pa.BrickColor = BrickColor.new("Bright red")
  712. end
  713. if blocked then pa.BrickColor = BrickColor.new("Bright blue") end
  714. pa.CFrame = CFrame.new(hit.Position) * CFrame.new(0, 3, 0)
  715. pa.Name = "Head"
  716. local hah = Instance.new("Humanoid")
  717. hah.Parent = mo
  718. hah.MaxHealth = 0
  719. hah.Health = 0
  720. local bp = Instance.new("BodyPosition")
  721. bp.P = 14000
  722. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  723. bp.position = hit.Position + Vector3.new(0, 5, 0)
  724. coroutine.resume(coroutine.create(function()
  725. wait()
  726. mo.Parent = Character
  727. bp.Parent = pa
  728. wait(1.4)
  729. mo:remove()
  730. end))
  731. return pa
  732. end
  733.  
  734. function AddRage(add)
  735. Rage = Rage + add
  736. if Rage > MaxRage then
  737. Rage = MaxRage
  738. end
  739. end
  740.  
  741. function OT(hit)
  742. if hit.Parent == nil then return end
  743. local hum = hit.Parent:findFirstChild("Humanoid")
  744. if hum ~= nil and hum ~= Character.Humanoid then
  745. hum:TakeDamage(damage)
  746. end
  747. end
  748. function skillOT(hit)
  749. if hit.Parent == nil then return end
  750. local hum = hit.Parent:findFirstChild("Humanoid")
  751. if hum ~= nil and hum ~= Character.Humanoid then
  752. hum:TakeDamage(damage + 2)
  753. end
  754.  
  755. end
  756.  
  757. function weakOT(hit)
  758. if hit.Parent == nil then return end
  759. local hum = hit.Parent:findFirstChild("Humanoid")
  760. if hum ~= nil and hum ~= Character.Humanoid then
  761. hum:TakeDamage(2)
  762. end
  763.  
  764. end
  765.  
  766. function guardOT(hit)
  767. if hit.Parent == nil then return end
  768. local hum = hit.Parent:findFirstChild("Humanoid")
  769. if hum ~= nil and hum ~= Character.Humanoid then
  770. hum:TakeDamage(damage)
  771. Character.Humanoid.WalkSpeed = 16
  772. guardy = false
  773.  
  774. end
  775.  
  776. end
  777.  
  778. function spinOT(hit)
  779. if hit.Parent == nil then return end
  780. local hum = hit.Parent:findFirstChild("Humanoid")
  781. if hum ~= nil and hum ~= Character.Humanoid then
  782. hum:TakeDamage(damage + 5)
  783. if mana < 400 then
  784. mana = mana + math.random(1,5)
  785. end
  786. if mana > 400 then
  787. mana = 400
  788. end
  789. local torso = hit.Parent:findFirstChild("Torso")
  790. if torso.Parent ~= nil then
  791. if (torso.Position-prt1.Position).magnitude<=25 then
  792. local angle = (torso.Position-(prt1.Position+Vector3.new(0,-3,0))).unit
  793. torso.CFrame=CFrame.new(torso.Position,Vector3.new(angle.x,torso.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  794. local Gyro=Instance.new("BodyGyro")
  795. Gyro.P=1000
  796. Gyro.D=Gyro.D/2
  797. Gyro.maxTorque=Vector3.new(30000,30000,30000)*300000
  798. Gyro.cframe=torso.CFrame*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  799. Gyro.Parent=torso
  800. local bodyVelocity=Instance.new("BodyVelocity")
  801. bodyVelocity.velocity=angle*40+Vector3.new(0,35,0)
  802. bodyVelocity.P=500
  803. bodyVelocity.maxForce=Vector3.new(4e+003, 4e+003, 4e+003)
  804. bodyVelocity.Parent=torso
  805. coroutine.resume(coroutine.create(function()
  806. wait(0.3)
  807. bodyVelocity:Remove()
  808. end))
  809. coroutine.resume(coroutine.create(function()
  810. wait(0.8)
  811. Gyro:Remove()
  812. end))
  813. end
  814. end
  815. end
  816.  
  817. end
  818.  
  819. function overOT(hit)
  820. if hit.Parent == nil then return end
  821. local hum = hit.Parent:findFirstChild("Humanoid")
  822. if hum ~= nil and hum ~= Character.Humanoid then
  823. hum:TakeDamage(damage)
  824. local torso = hit.Parent:findFirstChild("Torso")
  825. if torso.Parent ~= nil then
  826. if (torso.Position-RightArm.Position).magnitude<=25 then
  827. local angle = (torso.Position-(RightArm.Position+Vector3.new(0,-3,0))).unit
  828. torso.CFrame=CFrame.new(torso.Position,Vector3.new(angle.x,torso.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  829. local Gyro=Instance.new("BodyGyro")
  830. Gyro.P=4000
  831. Gyro.D=Gyro.D/2
  832. Gyro.maxTorque=Vector3.new(60000,60000,60000)*600000
  833. Gyro.cframe=torso.CFrame*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  834. Gyro.Parent=torso
  835. local bodyVelocity=Instance.new("BodyVelocity")
  836. bodyVelocity.velocity=angle*70+Vector3.new(0,210,0)
  837. bodyVelocity.P=700
  838. bodyVelocity.maxForce=Vector3.new(7e+003, 7e+003, 7e+003)
  839. bodyVelocity.Parent=torso
  840. coroutine.resume(coroutine.create(function()
  841. wait(0.3)
  842. bodyVelocity:Remove()
  843. end))
  844. coroutine.resume(coroutine.create(function()
  845. wait(0.8)
  846. Gyro:Remove()
  847. end))
  848. end
  849. end
  850. end
  851. end
  852.  
  853. function OT2(hit)
  854. if hit.Parent == nil then return end
  855. local hum = hit.Parent:findFirstChild("Humanoid")
  856. if hum ~= nil and hum ~= Character.Humanoid then
  857. hum:TakeDamage(damage)
  858. local torso = hit.Parent:findFirstChild("Torso")
  859. if torso.Parent ~= nil then
  860. if (torso.Position-RightArm.Position).magnitude<=25 then
  861. local angle = (torso.Position-(RightArm.Position+Vector3.new(0,-3,0))).unit
  862. torso.CFrame=CFrame.new(torso.Position,Vector3.new(angle.x,torso.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  863. local Gyro=Instance.new("BodyGyro")
  864. Gyro.P=1000
  865. Gyro.D=Gyro.D/2
  866. Gyro.maxTorque=Vector3.new(30000,30000,30000)*300000
  867. Gyro.cframe=torso.CFrame*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  868. Gyro.Parent=torso
  869. local bodyVelocity=Instance.new("BodyVelocity")
  870. bodyVelocity.velocity=angle*40+Vector3.new(0,35,0)
  871. bodyVelocity.P=500
  872. bodyVelocity.maxForce=Vector3.new(4e+003, 4e+003, 4e+003)
  873. bodyVelocity.Parent=torso
  874. coroutine.resume(coroutine.create(function()
  875. wait(0.3)
  876. bodyVelocity:Remove()
  877. end))
  878. coroutine.resume(coroutine.create(function()
  879. wait(0.8)
  880. Gyro:Remove()
  881. end))
  882. end
  883. end
  884. end
  885. end
  886. function megatouch(hit)
  887. if hit.Parent == nil then return end
  888. local hum = hit.Parent:findFirstChild("Humanoid")
  889. if hum ~= nil and hum ~= Character.Humanoid then
  890. hum:TakeDamage(damage + 2)
  891. local torso = hit.Parent:findFirstChild("Torso")
  892. if torso.Parent ~= nil then
  893. if (torso.Position-RightArm.Position).magnitude<=25 then
  894. local angle = (torso.Position-(RightArm.Position+Vector3.new(0,-3,0))).unit
  895. torso.CFrame=CFrame.new(torso.Position,Vector3.new(angle.x,torso.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  896. local Gyro=Instance.new("BodyGyro")
  897. Gyro.P=1000
  898. Gyro.D=Gyro.D/2
  899. Gyro.maxTorque=Vector3.new(30000,30000,30000)*300000
  900. Gyro.cframe=torso.CFrame*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  901. Gyro.Parent=torso
  902. local bodyVelocity=Instance.new("BodyVelocity")
  903. bodyVelocity.velocity=angle*40+Vector3.new(0,35,0)
  904. bodyVelocity.P=500
  905. bodyVelocity.maxForce=Vector3.new(4e+003, 4e+003, 4e+003)
  906. bodyVelocity.Parent=torso
  907. coroutine.resume(coroutine.create(function()
  908. wait(0.3)
  909. bodyVelocity:Remove()
  910. end))
  911. coroutine.resume(coroutine.create(function()
  912. wait(0.8)
  913. Gyro:Remove()
  914. end))
  915. end
  916. end
  917. end
  918. end
  919.  
  920. function AoE(p,magnitude)
  921. local c = game.Workspace:GetChildren();
  922. for i = 1, #c do
  923. local hum = c[i]:findFirstChild("Humanoid")
  924. if hum ~= nil and hum.Health ~= 0 then
  925. local head = c[i]:findFirstChild("Head");
  926. if head ~= nil then
  927. local mag = (head.Position - p).magnitude;
  928. if mag <= magnitude and c[i].Name ~= Character.Name then
  929. local foundd = false
  930. for ii = 1 , #AoETrue do
  931. if AoETrue[ii] == c[i].Name then
  932.  
  933. foundd = true
  934. end
  935. end
  936. if foundd then
  937.  
  938. end
  939. --
  940. if not foundd then
  941. local critrandomizer = math.random(crtrate)
  942. if critrandomizer ~= 1 then
  943. local rndmdamage = math.random(mindamage,maxdamage)
  944. damage(hum,rndmdamage,false)
  945. elseif critrandomizer == 1 then
  946. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  947. damage(hum,rndmdamage,true)
  948. end
  949. table.insert(AoETrue,c[i].Name)
  950. end
  951. end
  952. end
  953. end
  954. end
  955. for ii = 1 , #AoETrue do
  956. table.remove(AoETrue,#AoETrue)
  957. end
  958. end
  959. con,con2,con3 = nil,nil,nil
  960. conn,conn2,conn3 = nil,nil,nil
  961.  
  962. function dmg1cnnct()
  963. if con ~= nil then
  964. con:disconnect()
  965. Hitdeb = 0
  966. end
  967. con = prt11.Touched:connect(OT)
  968. con2 = prt12.Touched:connect(OT)
  969. end
  970.  
  971. function dmg1dc()
  972. if con ~= nil then
  973. con:disconnect()
  974. Hitdeb = 0
  975. end
  976. if con2 ~= nil then
  977. con2:disconnect()
  978. Hitdeb = 0
  979. end
  980. end
  981. function dmg2cnnct()
  982. if con ~= nil then
  983. con:disconnect()
  984. Hitdeb = 0
  985. end
  986. con = prt11.Touched:connect(OT2)
  987. con2 = prt12.Touched:connect(OT2)
  988. end
  989.  
  990. function dmg2dc()
  991. if con ~= nil then
  992. con:disconnect()
  993. Hitdeb = 0
  994. end
  995. if con2 ~= nil then
  996. con2:disconnect()
  997. Hitdeb = 0
  998. end
  999. end
  1000. function dmgovercnnct()
  1001. if con ~= nil then
  1002. con:disconnect()
  1003. Hitdeb = 0
  1004. end
  1005. con = prt11.Touched:connect(overOT)
  1006. con2 = prt12.Touched:connect(overOT)
  1007. end
  1008.  
  1009. function dmgoverdc()
  1010. if con ~= nil then
  1011. con:disconnect()
  1012. Hitdeb = 0
  1013. end
  1014. if con2 ~= nil then
  1015. con2:disconnect()
  1016. Hitdeb = 0
  1017. end
  1018. end
  1019. function dmgskillcnnct()
  1020. if con ~= nil then
  1021. con:disconnect()
  1022. Hitdeb = 0
  1023. end
  1024. con = prt11.Touched:connect(skillOT)
  1025. con2 = prt12.Touched:connect(skillOT)
  1026. end
  1027.  
  1028. function dmgskilldc()
  1029. if con ~= nil then
  1030. con:disconnect()
  1031. Hitdeb = 0
  1032. end
  1033. if con2 ~= nil then
  1034. con2:disconnect()
  1035. Hitdeb = 0
  1036. end
  1037. end
  1038. function dmgweakcnnct()
  1039. if con ~= nil then
  1040. con:disconnect()
  1041. Hitdeb = 0
  1042. end
  1043. con = prt11.Touched:connect(weakOT)
  1044. con2 = prt12.Touched:connect(weakOT)
  1045. end
  1046.  
  1047. function dmgweakdc()
  1048. if con ~= nil then
  1049. con:disconnect()
  1050. Hitdeb = 0
  1051. end
  1052. if con2 ~= nil then
  1053. con2:disconnect()
  1054. Hitdeb = 0
  1055. end
  1056. end
  1057. function dmgmegacnnct()
  1058. if con ~= nil then
  1059. con:disconnect()
  1060. Hitdeb = 0
  1061. end
  1062. con = prt11.Touched:connect(megatouch)
  1063. con2 = prt12.Touched:connect(megatouch)
  1064. end
  1065.  
  1066. function dmgmegadc()
  1067. if con ~= nil then
  1068. con:disconnect()
  1069. Hitdeb = 0
  1070. end
  1071. if con2 ~= nil then
  1072. con2:disconnect()
  1073. Hitdeb = 0
  1074. end
  1075. end
  1076. --
  1077. function effect()
  1078. local clone = prt11:clone()
  1079. clone.Parent = workspace
  1080. clone.Anchored = true
  1081. clone.Transparency = 0.5
  1082. clone.Reflectance = 0
  1083. clone.Mesh.Scale = clone.Mesh.Scale + Vector3.new(0.1,0.1,0.1)
  1084. if demondance == true then
  1085. clone.BrickColor = BrickColor.new("Bright red")
  1086. else
  1087. clone.BrickColor = BrickColor.new("New Yeller")
  1088. end
  1089. coroutine.resume(coroutine.create(function()
  1090. wait(0.25)
  1091. clone.Parent = nil
  1092. end))
  1093. local cloneb = prt12:clone()
  1094. cloneb.Parent = workspace
  1095. cloneb.Anchored = true
  1096. cloneb.Transparency = 0.5
  1097. cloneb.Reflectance = 0
  1098. cloneb.Mesh.Scale = cloneb.Mesh.Scale + Vector3.new(0.1,0.1,0.1)
  1099. if demondance == true then
  1100. cloneb.BrickColor = BrickColor.new("Bright red")
  1101. else
  1102. cloneb.BrickColor = BrickColor.new("New Yeller")
  1103. end
  1104. coroutine.resume(coroutine.create(function()
  1105. wait(0.25)
  1106. cloneb.Parent = nil
  1107. end))
  1108. end
  1109.  
  1110. function rptddmg(value,des,inc)
  1111. coroutine.resume(coroutine.create(function()
  1112. repeat
  1113. wait(inc)
  1114. Hitdeb = 0
  1115. until value == des
  1116. end))
  1117. end
  1118.  
  1119. function atktype(s,e)
  1120. coroutine.resume(coroutine.create(function ()
  1121. attacktype = e
  1122. wait(0.25)
  1123. attacktype = s
  1124. end))
  1125. end
  1126.  
  1127. walking = false
  1128. jumping = false
  1129. Target = nil
  1130.  
  1131. function Walk()
  1132. if walking then return end
  1133. end
  1134.  
  1135. function Jump()
  1136. if jumping then return end
  1137. jumping = true
  1138. local vel = Instance.new("BodyVelocity",Torso)
  1139. vel.maxForce = Vector3.new(0,1,0) * math.huge
  1140. vel.P = vel.P * 5
  1141. vel.velocity = Vector3.new(0,jump,0)
  1142. coroutine.resume(coroutine.create(function()
  1143. wait() wait() wait() wait()
  1144. vel.Parent=nil
  1145. end))
  1146. for i = 0.1 , 1 , 0.1 do
  1147. wait()
  1148. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(-20+200*i), 0, math.rad(0))
  1149. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1150. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-20+200*i), 0, math.rad(0))
  1151. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1152. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-10*i), 0, math.rad(0))
  1153. RWL.C1 = CFrame.new(0.5, 1, 0)
  1154. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(-10*i), 0, math.rad(0))
  1155. LWL.C1 = CFrame.new(-0.5, 1, 0)
  1156. end
  1157. wait(1)
  1158. for i = 0.1 , 1 , 0.1 do
  1159. wait()
  1160. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(180-200*i), 0, math.rad(0))
  1161. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1162. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(180-200*i), 0, math.rad(0))
  1163. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1164. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-10+10*i), 0, math.rad(0))
  1165. RWL.C1 = CFrame.new(0.5, 1, 0)
  1166. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(-10+10*i), 0, math.rad(0))
  1167. LWL.C1 = CFrame.new(-0.5, 1, 0)
  1168. end
  1169. jumping = false
  1170. end
  1171.  
  1172. function returnwelds()
  1173. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0)
  1174. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1175. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0)
  1176. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1177. end
  1178.  
  1179. function oneslash()
  1180. attack = true
  1181. wait(0)
  1182. dmg1cnnct()
  1183. uberweaklightningattack()
  1184. for i = 0,1,0.2 do
  1185. wait()
  1186. effect()
  1187. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3*i,0,0)
  1188. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1189. end
  1190. dmg1dc()
  1191. combo = 1
  1192. attack = false
  1193. end
  1194.  
  1195. function twoslash()
  1196. attack = true
  1197. wait(0.1)
  1198. for i = 0,1,0.1 do
  1199. wait()
  1200. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3,0.5*i,0)
  1201. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0.5*i)
  1202. end
  1203. dmg1cnnct()
  1204. uberweaklightningattack()
  1205. for i = 0,1,0.2 do
  1206. wait()
  1207. effect()
  1208. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-4*i+3,1,0)
  1209. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,1*i,0)
  1210. end
  1211. dmg1dc()
  1212. combo = 2
  1213. attack = false
  1214. end
  1215.  
  1216. function threeslash()
  1217. attack = true
  1218. wait(0.2)
  1219. dmg1cnnct()
  1220. uberweaklightningattack()
  1221. for i = 0,1,0.2 do
  1222. wait()
  1223. effect()
  1224. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1*i,-1,0)
  1225. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-2*i+1,0,0)
  1226. w1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), math.rad(180)*i, -1.57) * CFrame.new(0, 1, 0)
  1227. end
  1228. dmg1dc()
  1229. combo = 3
  1230. attack = false
  1231. end
  1232.  
  1233. function fourslash()
  1234. attack = true
  1235. wait(0.2)
  1236. dmg1cnnct()
  1237. uberweaklightningattack()
  1238. for i = 0,1,0.2 do
  1239. wait()
  1240. effect()
  1241. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(90),0)
  1242. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-4.5*i+2,0,0)
  1243. end
  1244. dmg1dc()
  1245. combo = 4
  1246. attack = false
  1247. end
  1248.  
  1249. function fiveslash()
  1250. attack = true
  1251. w1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), 0, -1.57) * CFrame.new(0, 1, 0)
  1252. wait(0.2)
  1253. dmg2cnnct()
  1254. uberweaklightningattack()
  1255. for i = 0,1,0.2 do
  1256. wait()
  1257. effect()
  1258. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-4*i+3,0,0)
  1259. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1260. end
  1261. dmg2dc()
  1262. combo = 0
  1263. attack = false
  1264. end
  1265.  
  1266. function ubersmash()
  1267. attack = true
  1268. skill = true
  1269. for i = 0,1,0.1 do
  1270. wait()
  1271. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(math.rad(180)*i,0,0)
  1272. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1273. end
  1274. for i = 0,1,0.12 do
  1275. wait(0)
  1276. w1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), 0, 0) * CFrame.new(0, 1, 0)
  1277. w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(360)*i, 0)
  1278. end
  1279. wait(0.5)
  1280. w1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), 0, -1.57) * CFrame.new(0, 1, 0)
  1281. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1282. dmgovercnnct()
  1283. --[[coroutine.resume(coroutine.create(function()
  1284. wait(0.1)
  1285. local p = prt12:Clone()
  1286. p.Anchored = true
  1287. p.Parent = game.workspace
  1288. p.Transparency = 1
  1289. if lightning == true then
  1290. for i = 0,6,0.1 do
  1291. wait()
  1292. local c = game.Workspace:GetChildren();
  1293. for i = 1, #c do
  1294. local hum = c[i]:findFirstChild("Humanoid")
  1295. if hum ~= nil and hum.Health ~= 0 then
  1296. local head = c[i]:findFirstChild("Head");
  1297. local targ = head.Position - p.Position;
  1298. local mag = targ.magnitude;
  1299. if mag <= 6 and hum.Parent.Name ~= "Fenrier" then
  1300. coroutine.resume(coroutine.create(function()
  1301. for i = 0,3 do
  1302. wait()
  1303. hum.Health = hum.Health - 0.2
  1304. local msh1 = Instance.new("BlockMesh")
  1305. msh1.Scale = Vector3.new(0.2,0.8,0.2)
  1306. S=Instance.new("Part")
  1307. S.Name="Effect"
  1308. S.formFactor="Symmetric"
  1309. S.Size=Vector3.new(1,2,1)
  1310. S.BrickColor=BrickColor.new("New Yeller")
  1311. S.Reflectance = 0.5
  1312. S.TopSurface=0
  1313. S.BottomSurface=0
  1314. S.Transparency=0
  1315. S.Anchored=true
  1316. S.CanCollide=false
  1317. 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))
  1318. S.Parent=workspace
  1319. msh1.Parent = S
  1320. 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)
  1321. end
  1322. end))
  1323. end
  1324. end
  1325. end
  1326. local msh1 = Instance.new("BlockMesh")
  1327. msh1.Scale = Vector3.new(0.2,0.8,0.2)
  1328. S=Instance.new("Part")
  1329. S.Name="Effect"
  1330. S.formFactor="Symmetric"
  1331. S.Size=Vector3.new(1,2,1)
  1332. S.BrickColor=BrickColor.new("New Yeller")
  1333. S.Reflectance = 0.5
  1334. S.TopSurface=0
  1335. S.BottomSurface=0
  1336. S.Transparency=0
  1337. S.Anchored=true
  1338. S.CanCollide=false
  1339. 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))
  1340. S.Parent=modelzorz
  1341. msh1.Parent = S
  1342. 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)
  1343. end
  1344. end
  1345. p:Remove()
  1346. end))]]
  1347. lightningattack()
  1348. for i = 0,1,0.25 do
  1349. wait()
  1350. effect()
  1351. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-4.5*i+math.rad(180),0,0)
  1352. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1353. end
  1354. dmgoverdc()
  1355. skill = false
  1356. attack = false
  1357. end
  1358.  
  1359. function spin()
  1360. attack = true
  1361. skill = true
  1362. for i = 0,1,0.1 do
  1363. wait()
  1364. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(math.rad(90)*i,-math.rad(90)*i,0)
  1365. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1366. end
  1367. dmgskillcnnct()
  1368. local vel = Instance.new("BodyGyro")
  1369. vel.Parent = Character.Torso
  1370. vel.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  1371. vel.P = 20e+003
  1372. CF = Torso.CFrame
  1373. weaklightningattack()
  1374. for i = 0 , 1 , 0.075 do
  1375. wait(0)
  1376. vel.cframe = CF * CFrame.fromEulerAnglesXYZ(0,-math.rad(-360)*i,0)
  1377. effect()
  1378. end
  1379. weaklightningattack()
  1380. for i = 1 , 0 , -0.075 do
  1381. wait(0)
  1382. vel.cframe = CF * CFrame.fromEulerAnglesXYZ(0,-math.rad(-360)+math.rad(-360)*i*i,0)
  1383. effect()
  1384. end
  1385. dmgskilldc()
  1386. for i = 0 , 1 , 0.20 do
  1387. wait(0)
  1388. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-1.57*i+1.57,-1.57*i+1.57,0)
  1389. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1390. w1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), 0, -1.57) * CFrame.new(0, 1, 0)
  1391. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1392. end
  1393. vel:Remove()
  1394. attack = false
  1395. skill = false
  1396. end
  1397.  
  1398. function attacklol()
  1399. attack = true
  1400. skill = true
  1401. wait(0)
  1402. dmgweakcnnct()
  1403. for i = 0,1,0.2 do
  1404. wait()
  1405. effect()
  1406. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3*i,0,0)
  1407. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1408. end
  1409. wait(0.2)
  1410. for i = 0,1,0.1 do
  1411. wait()
  1412. effect()
  1413. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-4.5*i+3,0,0)
  1414. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1415. end
  1416. wait(0.1)
  1417. for i = 0,1,0.12 do
  1418. wait(0)
  1419. w1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), 0, 0) * CFrame.new(0, 1, 0)
  1420. w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(360)*i, 0)
  1421. end
  1422. wait(0.4)
  1423. w1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), 0, -1.57) * CFrame.new(0, 1, 0)
  1424. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1425. coroutine.resume(coroutine.create(function()
  1426. for i = 0,1,0.2 do
  1427. wait()
  1428. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90)*i,0,0)
  1429. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1430. end
  1431. end))
  1432. coroutine.resume(coroutine.create(function()
  1433. for i = 0,1,0.2 do
  1434. wait(0.4)
  1435. uberweaklightningattack()
  1436. end
  1437. end))
  1438. for i = 0 , 5 , 0.07 do
  1439. wait(0)
  1440. effect()
  1441. w1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), math.rad(720)*i, -1.57) * CFrame.new(0, 1, 0)
  1442. end
  1443. dmgweakdc()
  1444. w1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), 0, -1.57) * CFrame.new(0, 1, 0)
  1445. wait(0.5)
  1446. for i = 0,1,0.2 do
  1447. wait()
  1448. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-math.rad(90)*i+math.rad(90),0,0)
  1449. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1450. end
  1451. attack = false
  1452. skill = false
  1453. end
  1454.  
  1455. function slashy()
  1456. attack = true
  1457. skill = true
  1458. for i = 0,1,0.1 do
  1459. wait()
  1460. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-math.rad(90)*i,math.rad(90)*i,0)
  1461. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-3*i,0,0)
  1462. end
  1463. uberlightningattack()
  1464. dmgmegacnnct()
  1465. for i = 0,1,0.2 do
  1466. wait()
  1467. effect()
  1468. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-math.rad(90),math.rad(90),0)
  1469. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(3*i-3,0,0)
  1470. end
  1471. dmgmegadc()
  1472. wait(0.5)
  1473. for i = 0,1,0.1 do
  1474. wait()
  1475. 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)
  1476. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.01*i+3-3,0,0)
  1477. end
  1478. attack = false
  1479. skill = false
  1480. end
  1481.  
  1482. function ubercharge()
  1483. attack = true
  1484. skill = true
  1485. dmgmegacnnct()
  1486. local vel = Instance.new("BodyVelocity")
  1487. vel.Parent = Character.Torso
  1488. vel.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1
  1489. vel.velocity = Character.Torso.CFrame.lookVector * 250
  1490. lightningattack()
  1491. for i = 0,1,0.1 do
  1492. wait()
  1493. effect()
  1494. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-math.rad(90),math.rad(90),0)
  1495. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-3*i,0,0)
  1496. end
  1497. vel:Remove()
  1498. lightningattack()
  1499. wait(0.5)
  1500. Character.Torso.CFrame = Character.Torso.CFrame * CFrame.fromEulerAnglesXYZ(0,math.rad(180),0)
  1501. local vel = Instance.new("BodyVelocity")
  1502. vel.Parent = Character.Torso
  1503. vel.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1
  1504. vel.velocity = Character.Torso.CFrame.lookVector * 250
  1505. lightningattack()
  1506. for i = 0,1,0.1 do
  1507. wait()
  1508. effect()
  1509. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-math.rad(90),math.rad(90),0)
  1510. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(3*i-3,0,0)
  1511. end
  1512. vel:Remove()
  1513. lightningattack()
  1514. wait(0.3)
  1515. dmgmegadc()
  1516. skill = false
  1517. attack = false
  1518. end
  1519.  
  1520. function throw()
  1521. attack = true
  1522. skill = true
  1523. for i = 0,1,0.2 do
  1524. wait()
  1525. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(180)*i,0,0)
  1526. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1527. end
  1528. for i = 0,1,0.3 do
  1529. wait()
  1530. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1.9*i+math.rad(180),0,0)
  1531. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1532. end
  1533. dmg2cnnct()
  1534. Character.Humanoid.WalkSpeed = 0
  1535. for i = 0,1,0.2 do
  1536. wait()
  1537. effect()
  1538. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), 1*i-math.rad(90), 1.57) * CFrame.new(0, 9*i+1, 0)
  1539. end
  1540. wait(0.4)
  1541. w1.Parent = nil
  1542. prt13.Anchored = true
  1543. local vel = Instance.new("BodyVelocity")
  1544. vel.Parent = Character.Torso
  1545. vel.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1
  1546. vel.velocity = Character.Torso.CFrame.lookVector * 16
  1547. dmg2dc()
  1548. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), -math.rad(90)+1, 1.57) * CFrame.new(0, 9+1, 0)
  1549. coroutine.resume(coroutine.create(function()
  1550. for i = 0 ,1 , 0.1 do
  1551. wait(0)
  1552. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.8*i,0,0)
  1553. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-2.7*i+1.9,0,0)
  1554. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1555. end
  1556. end))
  1557. wait(0.7)
  1558. vel:Remove()
  1559. w1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), 0, -1.57) * CFrame.new(0, 1, 0)
  1560. prt13.Anchored = false
  1561. w1.Parent = prt1
  1562. Character.Humanoid.WalkSpeed = WS
  1563. attack = false
  1564. skill = false
  1565. end
  1566. function Attackk(mag)
  1567. if attack then return end
  1568. if Character.Humanoid.Health <= Character.Humanoid.MaxHealth/2 and lightning == false then
  1569. lightningmode()
  1570. end
  1571. if mag <= 6 then
  1572. local rndm = math.random(1,5)
  1573. if rndm == 1 then
  1574. coroutine.resume(coroutine.create(function()
  1575. if combo == 0 then
  1576. oneslash()
  1577. elseif combo == 1 then
  1578. twoslash()
  1579. elseif combo == 2 then
  1580. threeslash()
  1581. elseif combo == 3 then
  1582. fourslash()
  1583. elseif combo == 4 then
  1584. fiveslash()
  1585. end
  1586. end))
  1587. elseif rndm == 2 and combo == 0 then
  1588. coroutine.resume(coroutine.create(function()
  1589. ubersmash()
  1590. end))
  1591. elseif rndm == 3 and combo == 0 then
  1592. coroutine.resume(coroutine.create(function()
  1593. spin()
  1594. end))
  1595. elseif rndm == 4 and combo == 0 then
  1596. coroutine.resume(coroutine.create(function()
  1597. attacklol()
  1598. end))
  1599. elseif rndm == 5 and combo == 0 then
  1600. coroutine.resume(coroutine.create(function()
  1601. slashy()
  1602. end))
  1603. end
  1604. elseif mag > 10 then
  1605. local rndm = math.random(1,20)
  1606. if rndm >= 10 then
  1607. coroutine.resume(coroutine.create(function()
  1608. throw()
  1609. end))
  1610. elseif mag > 30 then
  1611. local rndm = math.random(1,20)
  1612. if rndm == 1 then
  1613. coroutine.resume(coroutine.create(function()
  1614. ubercharge()
  1615. end))
  1616. end
  1617. end
  1618. end
  1619. end
  1620. function lightningmode()
  1621. if lightning == true then
  1622. for i = 0 ,1 , 0.05 do
  1623. wait(0)
  1624. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(math.rad(90)*i,0,0)
  1625. end
  1626. lightning = false
  1627. wait(0.7)
  1628. for i = 0 ,1 , 0.05 do
  1629. wait(0)
  1630. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-math.rad(90)*i+math.rad(90),0,0)
  1631. end
  1632. else
  1633. attack = true
  1634. skill = true
  1635. damage = 6
  1636. for i = 0 ,1 , 0.05 do
  1637. wait(0)
  1638. LW.C0 = CFrame.new(-1.5, 0.5, -0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90)*i,0,1*i)
  1639. RW.C0 = CFrame.new(1.5, 0.5, -0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90)*i,0,-1*i)
  1640. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1641. end
  1642. coroutine.resume(coroutine.create(function()
  1643. lightning = true
  1644. while lightning == true do
  1645. wait()
  1646. local msh1 = Instance.new("BlockMesh")
  1647. msh1.Scale = Vector3.new(0.2,0.8,0.2)
  1648. S=Instance.new("Part")
  1649. S.Name="Effect"
  1650. S.formFactor="Symmetric"
  1651. S.Size=Vector3.new(1,2,1)
  1652. S.BrickColor=BrickColor.new("New Yeller")
  1653. S.Reflectance = 0.5
  1654. S.TopSurface=0
  1655. S.BottomSurface=0
  1656. S.Transparency=0
  1657. S.Anchored=true
  1658. S.CanCollide=false
  1659. 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))
  1660. S.Parent=swordholder
  1661. msh1.Parent = S
  1662. 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)
  1663. end
  1664. lightning = false
  1665. end))
  1666. wait(1)
  1667. for i = 0 ,1 , 0.05 do
  1668. wait(0)
  1669. 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)
  1670. 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)
  1671. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1672. end
  1673. attack = false
  1674. skill = false
  1675. end
  1676. end
  1677. function uberweaklightningattack()
  1678. coroutine.resume(coroutine.create(function()
  1679. wait(0.1)
  1680. local p = prt12:Clone()
  1681. p.Anchored = true
  1682. p.Parent = game.workspace
  1683. p.Transparency = 1
  1684. if lightning == true then
  1685. for i = 0,1,0.1 do
  1686. wait()
  1687. local c = game.Workspace:GetChildren();
  1688. for i = 1, #c do
  1689. local hum = c[i]:findFirstChild("Humanoid")
  1690. if hum ~= nil and hum.Health ~= 0 then
  1691. local head = c[i]:findFirstChild("Head");
  1692. local targ = head.Position - p.Position;
  1693. local mag = targ.magnitude;
  1694. if mag <= 6 and hum.Parent.Name ~= Character.Name then
  1695. coroutine.resume(coroutine.create(function()
  1696. for i = 0,2 do
  1697. wait()
  1698. hum.Health = hum.Health - 0.05
  1699. local msh1 = Instance.new("BlockMesh")
  1700. msh1.Scale = Vector3.new(0.2,0.8,0.2)
  1701. S=Instance.new("Part")
  1702. S.Name="Effect"
  1703. S.formFactor="Symmetric"
  1704. S.Size=Vector3.new(1,2,1)
  1705. S.BrickColor=BrickColor.new("New Yeller")
  1706. S.Reflectance = 0.5
  1707. S.TopSurface=0
  1708. S.BottomSurface=0
  1709. S.Transparency=0
  1710. S.Anchored=true
  1711. S.CanCollide=false
  1712. 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))
  1713. S.Parent=workspace
  1714. msh1.Parent = S
  1715. 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)
  1716. end
  1717. end))
  1718. end
  1719. end
  1720. end
  1721. local msh1 = Instance.new("BlockMesh")
  1722. msh1.Scale = Vector3.new(0.2,0.8,0.2)
  1723. S=Instance.new("Part")
  1724. S.Name="Effect"
  1725. S.formFactor="Symmetric"
  1726. S.Size=Vector3.new(1,2,1)
  1727. S.BrickColor=BrickColor.new("New Yeller")
  1728. S.Reflectance = 0.5
  1729. S.TopSurface=0
  1730. S.BottomSurface=0
  1731. S.Transparency=0
  1732. S.Anchored=true
  1733. S.CanCollide=false
  1734. 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))
  1735. S.Parent=modelzorz
  1736. msh1.Parent = S
  1737. 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)
  1738. end
  1739. end
  1740. p:Remove()
  1741. end))
  1742. end
  1743. function weaklightningattack()
  1744. coroutine.resume(coroutine.create(function()
  1745. wait(0.1)
  1746. local p = prt12:Clone()
  1747. p.Anchored = true
  1748. p.Parent = game.workspace
  1749. p.Transparency = 1
  1750. if lightning == true then
  1751. for i = 0,3,0.1 do
  1752. wait()
  1753. local c = game.Workspace:GetChildren();
  1754. for i = 1, #c do
  1755. local hum = c[i]:findFirstChild("Humanoid")
  1756. if hum ~= nil and hum.Health ~= 0 then
  1757. local head = c[i]:findFirstChild("Head");
  1758. local targ = head.Position - p.Position;
  1759. local mag = targ.magnitude;
  1760. if mag <= 6 and hum.Parent.Name ~= Character.Name then
  1761. coroutine.resume(coroutine.create(function()
  1762. for i = 0,3 do
  1763. wait()
  1764. hum.Health = hum.Health - 0.05
  1765. local msh1 = Instance.new("BlockMesh")
  1766. msh1.Scale = Vector3.new(0.2,0.8,0.2)
  1767. S=Instance.new("Part")
  1768. S.Name="Effect"
  1769. S.formFactor="Symmetric"
  1770. S.Size=Vector3.new(1,2,1)
  1771. S.BrickColor=BrickColor.new("New Yeller")
  1772. S.Reflectance = 0.5
  1773. S.TopSurface=0
  1774. S.BottomSurface=0
  1775. S.Transparency=0
  1776. S.Anchored=true
  1777. S.CanCollide=false
  1778. 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))
  1779. S.Parent=workspace
  1780. msh1.Parent = S
  1781. 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)
  1782. end
  1783. end))
  1784. end
  1785. end
  1786. end
  1787. local msh1 = Instance.new("BlockMesh")
  1788. msh1.Scale = Vector3.new(0.2,0.8,0.2)
  1789. S=Instance.new("Part")
  1790. S.Name="Effect"
  1791. S.formFactor="Symmetric"
  1792. S.Size=Vector3.new(1,2,1)
  1793. S.BrickColor=BrickColor.new("New Yeller")
  1794. S.Reflectance = 0.5
  1795. S.TopSurface=0
  1796. S.BottomSurface=0
  1797. S.Transparency=0
  1798. S.Anchored=true
  1799. S.CanCollide=false
  1800. 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))
  1801. S.Parent=modelzorz
  1802. msh1.Parent = S
  1803. 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)
  1804. end
  1805. end
  1806. p:Remove()
  1807. end))
  1808. end
  1809. function lightningattack()
  1810. coroutine.resume(coroutine.create(function()
  1811. wait(0.1)
  1812. local p = prt12:Clone()
  1813. p.Anchored = true
  1814. p.Parent = game.workspace
  1815. p.Transparency = 1
  1816. if lightning == true then
  1817. for i = 0,6,0.1 do
  1818. wait()
  1819. local c = game.Workspace:GetChildren();
  1820. for i = 1, #c do
  1821. local hum = c[i]:findFirstChild("Humanoid")
  1822. if hum ~= nil and hum.Health ~= 0 then
  1823. local head = c[i]:findFirstChild("Head");
  1824. local targ = head.Position - p.Position;
  1825. local mag = targ.magnitude;
  1826. if mag <= 6 and hum.Parent.Name ~= Character.Name then
  1827. coroutine.resume(coroutine.create(function()
  1828. for i = 0,3 do
  1829. wait()
  1830. hum.Health = hum.Health - 0.1
  1831. local msh1 = Instance.new("BlockMesh")
  1832. msh1.Scale = Vector3.new(0.2,0.8,0.2)
  1833. S=Instance.new("Part")
  1834. S.Name="Effect"
  1835. S.formFactor="Symmetric"
  1836. S.Size=Vector3.new(1,2,1)
  1837. S.BrickColor=BrickColor.new("New Yeller")
  1838. S.Reflectance = 0.5
  1839. S.TopSurface=0
  1840. S.BottomSurface=0
  1841. S.Transparency=0
  1842. S.Anchored=true
  1843. S.CanCollide=false
  1844. 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))
  1845. S.Parent=workspace
  1846. msh1.Parent = S
  1847. 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)
  1848. end
  1849. end))
  1850. end
  1851. end
  1852. end
  1853. local msh1 = Instance.new("BlockMesh")
  1854. msh1.Scale = Vector3.new(0.2,0.8,0.2)
  1855. S=Instance.new("Part")
  1856. S.Name="Effect"
  1857. S.formFactor="Symmetric"
  1858. S.Size=Vector3.new(1,2,1)
  1859. S.BrickColor=BrickColor.new("New Yeller")
  1860. S.Reflectance = 0.5
  1861. S.TopSurface=0
  1862. S.BottomSurface=0
  1863. S.Transparency=0
  1864. S.Anchored=true
  1865. S.CanCollide=false
  1866. 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))
  1867. S.Parent=modelzorz
  1868. msh1.Parent = S
  1869. 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)
  1870. end
  1871. end
  1872. p:Remove()
  1873. end))
  1874. end
  1875. function uberlightningattack()
  1876. coroutine.resume(coroutine.create(function()
  1877. wait(0.1)
  1878. local p = prt12:Clone()
  1879. p.Anchored = true
  1880. p.Parent = game.workspace
  1881. p.Transparency = 1
  1882. if lightning == true then
  1883. for i = 0,12,0.1 do
  1884. wait()
  1885. local c = game.Workspace:GetChildren();
  1886. for i = 1, #c do
  1887. local hum = c[i]:findFirstChild("Humanoid")
  1888. if hum ~= nil and hum.Health ~= 0 then
  1889. local head = c[i]:findFirstChild("Head");
  1890. local targ = head.Position - p.Position;
  1891. local mag = targ.magnitude;
  1892. if mag <= 7 and hum.Parent.Name ~= Character.Name then
  1893. coroutine.resume(coroutine.create(function()
  1894. for i = 0,3 do
  1895. wait()
  1896. hum.Health = hum.Health - 0.1
  1897. local msh1 = Instance.new("BlockMesh")
  1898. msh1.Scale = Vector3.new(0.2,0.8,0.2)
  1899. S=Instance.new("Part")
  1900. S.Name="Effect"
  1901. S.formFactor="Symmetric"
  1902. S.Size=Vector3.new(1,2,1)
  1903. S.BrickColor=BrickColor.new("New Yeller")
  1904. S.Reflectance = 0.5
  1905. S.TopSurface=0
  1906. S.BottomSurface=0
  1907. S.Transparency=0
  1908. S.Anchored=true
  1909. S.CanCollide=false
  1910. 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))
  1911. S.Parent=workspace
  1912. msh1.Parent = S
  1913. 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)
  1914. end
  1915. end))
  1916. end
  1917. end
  1918. end
  1919. local msh1 = Instance.new("BlockMesh")
  1920. msh1.Scale = Vector3.new(0.2,0.8,0.2)
  1921. S=Instance.new("Part")
  1922. S.Name="Effect"
  1923. S.formFactor="Symmetric"
  1924. S.Size=Vector3.new(1,2,1)
  1925. S.BrickColor=BrickColor.new("New Yeller")
  1926. S.Reflectance = 0.5
  1927. S.TopSurface=0
  1928. S.BottomSurface=0
  1929. S.Transparency=0
  1930. S.Anchored=true
  1931. S.CanCollide=false
  1932. 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))
  1933. S.Parent=modelzorz
  1934. msh1.Parent = S
  1935. 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)
  1936. end
  1937. end
  1938. p:Remove()
  1939. end))
  1940. end
  1941. local BG = Instance.new("BodyGyro",Torso)
  1942. BG.cframe = Torso.CFrame
  1943. BG.maxTorque = Vector3.new(0, math.huge,0)
  1944. BGSpin = 0
  1945.  
  1946. function FindTarget()
  1947. local c = game.Workspace:GetChildren();
  1948. local nearestmag = 1500
  1949. local nearestprsn = nil
  1950. for i = 1, #c do
  1951. local hum = c[i]:findFirstChild("Humanoid")
  1952. if hum ~= nil and hum.Health ~= 0 then
  1953. local head = c[i]:findFirstChild("Head");
  1954. if head ~= nil then
  1955. local mag = (head.Position - Torso.Position).magnitude;
  1956. if mag <= 1500 and c[i].Name ~= Character.Name then
  1957. if mag < nearestmag then
  1958. nearestmag = mag
  1959. nearestprsn = c[i]
  1960. end
  1961. end
  1962. end
  1963. end
  1964. end
  1965. Target = nearestprsn
  1966. end
  1967.  
  1968.  
  1969.  
  1970.  
  1971. local Humanoid = Instance.new("Humanoid",bodyholder)
  1972. Humanoid.MaxHealth = HP
  1973.  
  1974. equipanim()
  1975. wait(1)
  1976. bodyholder:MakeJoints()
  1977. Humanoid.Health = HP
  1978. Humanoid.WalkSpeed = WS
  1979. wait(1)
  1980. bodyholder.Torso.CFrame = CFrame.new(SpawnPos.Value)
  1981. Humanoid.Health = HP
  1982. script.Parent = Character
  1983.  
  1984.  
  1985.  
  1986. repeat
  1987. wait(0.1)
  1988. FindTarget()
  1989. if Target ~= nil then
  1990. BG.cframe = CFrame.new(Torso.Position,Target.Torso.Position) * CFrame.Angles(0,math.rad(BGSpin),0)
  1991. local mag = (Torso.Position-Target.Torso.Position).magnitude
  1992. if mag <= 40 then
  1993. Attackk(mag)
  1994. end
  1995. --
  1996. pcall(function()
  1997. Humanoid:MoveTo(Target.Torso.Position + CFrame.new(Torso.Position,Target.Torso.Position).lookVector * -1,Target.Torso)
  1998. end)
  1999. if Target.Torso.Position.y > Torso.Position.y+5 then
  2000. coroutine.resume(coroutine.create(Jump))
  2001. end
  2002. --
  2003. else
  2004. BG.cframe = Torso.cframe
  2005. Humanoid:MoveTo(Torso.Position,Torso)
  2006. end
  2007. if true then
  2008. if (Torso.Velocity * Vector3.new(1,0,1)).magnitude > 2 then
  2009. coroutine.resume(coroutine.create(Walk))
  2010. walking = true
  2011. elseif (Torso.Velocity * Vector3.new(1,0,1)).magnitude < 2 then
  2012. walking = false
  2013. end
  2014. else
  2015. walking = false
  2016. end
  2017. until Humanoid.Health <= 0
  2018.  
  2019. wait(5)
  2020. Character.Parent = nil
  2021.  
  2022. --mediafire
Add Comment
Please, Sign In to add comment