Advertisement
jayrock3401

Untitled

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