Advertisement
jayrock3401

Untitled

Dec 24th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 49.21 KB | None | 0 0
  1.  
  2. -- This script has been converted to FE by iPxter
  3.  
  4.  
  5. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  6. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  7. do
  8. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  9. script.Parent = Player.Character
  10.  
  11. --RemoteEvent for communicating
  12. local Event = Instance.new("RemoteEvent")
  13. Event.Name = "UserInput_Event"
  14.  
  15. --Fake event to make stuff like Mouse.KeyDown work
  16. local function fakeEvent()
  17. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  18. t.connect = t.Connect
  19. return t
  20. end
  21.  
  22. --Creating fake input objects with fake variables
  23. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  24. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  25. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  26. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  27. end}
  28. --Merged 2 functions into one by checking amount of arguments
  29. CAS.UnbindAction = CAS.BindAction
  30.  
  31. --This function will trigger the events that have been :Connect()'ed
  32. local function te(self,ev,...)
  33. local t = m[ev]
  34. if t and t._fakeEvent and t.Function then
  35. t.Function(...)
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=Player then return end
  43. if io.isMouse then
  44. m.Target = io.Target
  45. m.Hit = io.Hit
  46. else
  47. local b = io.UserInputState == Enum.UserInputState.Begin
  48. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  49. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  50. end
  51. for _,t in pairs(CAS.Actions) do
  52. for _,k in pairs(t.Keys) do
  53. if k==io.KeyCode then
  54. t.Function(t.Name,io.UserInputState,io)
  55. end
  56. end
  57. end
  58. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  59. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  60. end
  61. end)
  62. Event.Parent = NLS([==[
  63. local Player = game:GetService("Players").LocalPlayer
  64. local Event = script:WaitForChild("UserInput_Event")
  65.  
  66. local UIS = game:GetService("UserInputService")
  67. local input = function(io,a)
  68. if a then return end
  69. --Since InputObject is a client-side instance, we create and pass table instead
  70. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  71. end
  72. UIS.InputBegan:Connect(input)
  73. UIS.InputEnded:Connect(input)
  74.  
  75. local Mouse = Player:GetMouse()
  76. local h,t
  77. --Give the server mouse data 30 times every second, but only if the values changed
  78. --If player is not moving their mouse, client won't fire events
  79. while wait(1/30) do
  80. if h~=Mouse.Hit or t~=Mouse.Target then
  81. h,t=Mouse.Hit,Mouse.Target
  82. Event:FireServer({isMouse=true,Target=t,Hit=h})
  83. end
  84. end]==],Player.Character)
  85. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  86. end
  87.  
  88. --[[
  89. Ninja MiniBoss ]]
  90.  
  91. ModelName = "Ninja"
  92. attack = false
  93. attacktype = 1
  94. Hitdeb = 0
  95. Hitdeb2 = 0
  96. name = "Guest270210"
  97. ----------------------------
  98. --Customize mediafire
  99. Rage = 0
  100. Rage = 200
  101. mindamage = 10
  102. maxdamage = 20
  103. crtmaxdamage = 40
  104. combo = 0
  105. omindamage = mindamage
  106. omaxdamage = maxdamage
  107. ocrtmaxdamage = crtmaxdamage
  108. crtrate = 100/5
  109. HP = 500
  110. WS = 16
  111. jump = 50
  112. --100%/critpercentage
  113.  
  114. oblkbrkr = 3
  115. blockbreaker = oblkbrkr
  116.  
  117.  
  118. handlecolor = BrickColor.new("Black")
  119. bcolor = BrickColor.new("White")
  120. gemcolor = BrickColor.new("Black")
  121.  
  122.  
  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[name].Head.Position--Vector3.new(20,10,0)
  156.  
  157. local Head = Instance.new("Part")
  158. Head.formFactor = 3
  159. Head.CanCollide = true
  160. Head.Name = "Head"
  161. Head.Locked = true
  162. Head.Size = Vector3.new(2,1,1)
  163. Head.Parent = bodyholder
  164. Head.BrickColor = BrickColor.new("Bright yellow")
  165. local smh = Instance.new("SpecialMesh",Head)
  166. smh.Scale = Vector3.new(1.25,1.25,1.25)
  167. local Torso = Instance.new("Part")
  168. Torso.formFactor = 3
  169. Torso.CanCollide = true
  170. Torso.Name = "Torso"
  171. Torso.Locked = true
  172. Torso.Size = Vector3.new(2,2,1)
  173. Torso.Parent = bodyholder
  174. Torso.BrickColor = BrickColor.new("Black")
  175. Torso.Reflectance = 0.1
  176. Torso.CFrame = CFrame.new(SpawnPos.Value)
  177. local RightArm = Instance.new("Part")
  178. RightArm.formFactor = 3
  179. RightArm.CanCollide = true
  180. RightArm.Name = "Right Arm"
  181. RightArm.Locked = true
  182. RightArm.Size = Vector3.new(1,2,1)
  183. RightArm.Parent = bodyholder
  184. RightArm.BrickColor = BrickColor.new("Black")
  185. local LeftArm = Instance.new("Part")
  186. LeftArm.formFactor = 3
  187. LeftArm.CanCollide = true
  188. LeftArm.Name = "Left Arm"
  189. LeftArm.Locked = true
  190. LeftArm.Size = Vector3.new(1,2,1)
  191. LeftArm.Parent = bodyholder
  192. LeftArm.BrickColor = BrickColor.new("Black")
  193. local RightLeg = Instance.new("Part")
  194. RightLeg.formFactor = 3
  195. RightLeg.CanCollide = true
  196. RightLeg.Name = "Right Leg"
  197. RightLeg.Locked = true
  198. RightLeg.Size = Vector3.new(1,2,1)
  199. RightLeg.Parent = bodyholder
  200. RightLeg.BrickColor = BrickColor.new("Black")
  201. local LeftLeg = Instance.new("Part")
  202. LeftLeg.formFactor = 3
  203. LeftLeg.CanCollide = true
  204. LeftLeg.Name = "Left Leg"
  205. LeftLeg.Locked = true
  206. LeftLeg.Size = Vector3.new(1,2,1)
  207. LeftLeg.Parent = bodyholder
  208. LeftLeg.BrickColor = BrickColor.new("Black")
  209.  
  210. local hair = Instance.new("Part")
  211. hair.formFactor = "Plate"
  212. hair.CanCollide = false
  213. hair.Locked = true
  214. hair.Size = Vector3.new(1,0.8,1)
  215. hair.Parent = bodyholder
  216. local hm = Instance.new("SpecialMesh")
  217. hm.Parent = hair
  218. hm.MeshType = "FileMesh"
  219. hm.MeshId = "http://www.roblox.com/asset/?id=1286427"
  220. hm.TextureId = "http://www.roblox.com/asset/?id=1309894"
  221. hm.Scale = Vector3.new(1.1, 1.1, 1.1)
  222. local wh = Instance.new("Weld")
  223. wh.Parent = hair
  224. wh.Part0 = hair
  225. wh.Part1 = Head
  226. wh.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 0, 0)
  227. wh.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  228.  
  229. local shirt = Instance.new("Shirt")
  230. shirt.Parent = bodyholder
  231. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=14707726"
  232. local pants = Instance.new("Pants")
  233. pants.Parent = bodyholder
  234. pants.PantsTemplate = "http://www.roblox.com/asset/?id=14707085"
  235. --player
  236. player = nil
  237. --welds
  238. RW, LW , RWL, LWL = Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld")
  239. --what anim
  240. anim = "none"
  241. --save shoulders
  242. AoETrue = {}
  243. Neck = Instance.new("Motor")
  244.  
  245.  
  246.  
  247.  
  248. --derp
  249. RW.Part0 = Character.Torso
  250. RW.Part1 = Character["Right Arm"]
  251. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  252. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  253. RW.Parent = bodyholder
  254. --
  255. LW.Part0 = Character.Torso
  256. LW.Part1 = Character["Left Arm"]
  257. LW.C0 = CFrame.new(-1.5, 0.5, 0)
  258. LW.C1 = CFrame.new(0, 0.5, 0)
  259. LW.Parent = bodyholder
  260. --
  261. RWL.Part0 = Character.Torso
  262. RWL.Part1 = Character["Right Leg"]
  263. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(0, 0, 0)
  264. RWL.C1 = CFrame.new(0.5, 1, 0)
  265. RWL.Parent = bodyholder
  266. --
  267. LWL.Part0 = Character.Torso
  268. LWL.Part1 = Character["Left Leg"]
  269. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(0, 0, 0)
  270. LWL.C1 = CFrame.new(-0.5, 1, 0)
  271. LWL.Parent = bodyholder
  272. --
  273. Neck.Part0 = Character.Torso
  274. Neck.Part1 = Character.Head
  275. Neck.C0 = CFrame.new(0, 1, 0) * CFrame.Angles(0, 0, 0)
  276. Neck.C1 = CFrame.new(0, -0.5, 0)
  277. Neck.Parent = bodyholder
  278.  
  279. ----
  280.  
  281. --
  282.  
  283. RAP = Instance.new("Part")
  284. RAP.formFactor = 0
  285. RAP.CanCollide = false
  286. RAP.Name = "RAPart"
  287. RAP.Locked = true
  288. RAP.Size = Vector3.new(1,1,1)
  289. RAP.Parent = bodyholder
  290. RAP.Transparency = 1
  291. w = Instance.new("Weld")
  292. w.Parent = RAP
  293. w.Part0 = RAP
  294. w.Part1 = RightArm
  295. w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  296. w.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 2, 0)
  297. LAP = Instance.new("Part")
  298. LAP.formFactor = 0
  299. LAP.CanCollide = false
  300. LAP.Name = "LAPart"
  301. LAP.Locked = true
  302. LAP.Size = Vector3.new(1,1,1)
  303. LAP.Parent = bodyholder
  304. LAP.Transparency = 1
  305. wl = Instance.new("Weld")
  306. wl.Parent = LAP
  307. wl.Part0 = LAP
  308. wl.Part1 = LeftArm
  309. wl.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  310. wl.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 2, 0)
  311.  
  312. swordholder = Instance.new("Model")
  313. swordholder.Name = "Weapon"
  314. swordholder.Parent = bodyholder
  315.  
  316. local prt1 = Instance.new("Part")
  317. prt1.formFactor = 1
  318. prt1.Parent = swordholder
  319. prt1.CanCollide = false
  320. prt1.BrickColor = BrickColor.new("Pastel Blue")
  321. prt1.Name = "Handle"
  322. prt1.Transparency = 0
  323. prt1.Size = Vector3.new(1,1,1)
  324. prt1.CFrame = Torso.CFrame
  325. local prt2 = Instance.new("Part")
  326. prt2.formFactor = 1
  327. prt2.Parent = swordholder
  328. prt2.CanCollide = false
  329. prt2.BrickColor = BrickColor.new("Really black")
  330. prt2.Name = "Handle2"
  331. prt2.Transparency = 0
  332. prt2.Size = Vector3.new(1,1,1)
  333. prt2.CFrame = Torso.CFrame
  334. local prt3 = Instance.new("Part")
  335. prt3.formFactor = 1
  336. prt3.Parent = swordholder
  337. prt3.CanCollide = false
  338. prt3.BrickColor = BrickColor.new("Dark grey")
  339. prt3.Name = "Handle3"
  340. prt3.Transparency = 0
  341. prt3.Size = Vector3.new(1,1,1)
  342. prt3.CFrame = Torso.CFrame
  343. local prt4 = Instance.new("Part")
  344. prt4.formFactor = 1
  345. prt4.Parent = swordholder
  346. prt4.CanCollide = false
  347. prt4.BrickColor = BrickColor.new("Grey")
  348. prt4.Name = "Blade1"
  349. prt4.Reflectance = 0.4
  350. prt4.Transparency = 0
  351. prt4.Size = Vector3.new(1,3,1)
  352. prt4.CFrame = Torso.CFrame
  353. local prt5 = Instance.new("Part")
  354. prt5.formFactor = 1
  355. prt5.Parent = swordholder
  356. prt5.CanCollide = false
  357. prt5.BrickColor = BrickColor.new("Really black")
  358. prt5.Name = "Blade2"
  359. prt5.Transparency = 0
  360. prt5.Size = Vector3.new(1,1,1)
  361. prt5.CFrame = Torso.CFrame
  362. local prt6 = Instance.new("Part")
  363. prt6.formFactor = 1
  364. prt6.Parent = swordholder
  365. prt6.CanCollide = false
  366. prt6.BrickColor = BrickColor.new("Grey")
  367. prt6.Name = "Blade3"
  368. prt6.Reflectance = 0.5
  369. prt6.Transparency = 0
  370. prt6.Size = Vector3.new(1,1,1)
  371. prt6.CFrame = Torso.CFrame
  372. local prt7 = Instance.new("Part")
  373. prt7.formFactor = 1
  374. prt7.Parent = swordholder
  375. prt7.CanCollide = false
  376. prt7.BrickColor = BrickColor.new("Pastel Blue")
  377. prt7.Name = "Handle3"
  378. prt7.Transparency = 0
  379. prt7.Size = Vector3.new(1,1,1)
  380. prt7.CFrame = Torso.CFrame
  381. local prt8 = Instance.new("Part")
  382. prt8.formFactor = 1
  383. prt8.Parent = swordholder
  384. prt8.CanCollide = false
  385. prt8.BrickColor = BrickColor.new("Really black")
  386. prt8.Name = "Handle4"
  387. prt8.Transparency = 0
  388. prt8.Size = Vector3.new(1,1,1)
  389. prt8.CFrame = Torso.CFrame
  390. local prt9 = Instance.new("Part")
  391. prt9.formFactor = 1
  392. prt9.Parent = swordholder
  393. prt9.CanCollide = false
  394. prt9.BrickColor = BrickColor.new("Really black")
  395. prt9.Name = "Handle5"
  396. prt9.Transparency = 0
  397. prt9.Size = Vector3.new(1,1,1)
  398. prt9.CFrame = Torso.CFrame
  399. local prt10 = Instance.new("Part")
  400. prt10.formFactor = 1
  401. prt10.Parent = swordholder
  402. prt10.CanCollide = false
  403. prt10.BrickColor = BrickColor.new("Pastel Blue")
  404. prt10.Name = "Handle6"
  405. prt10.Transparency = 0
  406. prt10.Size = Vector3.new(1,1,1)
  407. prt10.CFrame = Torso.CFrame
  408. local prt11 = Instance.new("Part")
  409. prt11.formFactor = 1
  410. prt11.Parent = swordholder
  411. prt11.CanCollide = false
  412. prt11.BrickColor = BrickColor.new("Pastel Blue")
  413. prt11.Name = "Handle7"
  414. prt11.Transparency = 0
  415. prt11.Size = Vector3.new(1,1,1)
  416. prt11.CFrame = Torso.CFrame
  417. local prt12 = Instance.new("Part")
  418. prt12.formFactor = 1
  419. prt12.Parent = swordholder
  420. prt12.CanCollide = false
  421. prt12.BrickColor = BrickColor.new("Dark grey")
  422. prt12.Name = "Handle8"
  423. prt12.Transparency = 0
  424. prt12.Size = Vector3.new(1,1,1)
  425. prt12.CFrame = Torso.CFrame
  426. local prt13 = Instance.new("Part")
  427. prt13.formFactor = 1
  428. prt13.Parent = swordholder
  429. prt13.CanCollide = false
  430. prt13.BrickColor = BrickColor.new("Grey")
  431. prt13.Name = "Blade4"
  432. prt13.Reflectance = 0.4
  433. prt13.Transparency = 0
  434. prt13.Size = Vector3.new(1,1,1)
  435. prt13.CFrame = Torso.CFrame
  436. local prt14 = Instance.new("Part")
  437. prt14.formFactor = 1
  438. prt14.Parent = swordholder
  439. prt14.CanCollide = false
  440. prt14.BrickColor = BrickColor.new("Grey")
  441. prt14.Name = "Blade5"
  442. prt14.Reflectance = 0.4
  443. prt14.Transparency = 0
  444. prt14.Size = Vector3.new(1,1,1)
  445. prt14.CFrame = Torso.CFrame
  446. local prt15 = Instance.new("Part")
  447. prt15.formFactor = 1
  448. prt15.Parent = swordholder
  449. prt15.CanCollide = false
  450. prt15.BrickColor = BrickColor.new("Grey")
  451. prt15.Name = "Blade6"
  452. prt15.Reflectance = 0.4
  453. prt15.Transparency = 0
  454. prt15.Size = Vector3.new(1,1,1)
  455. prt15.CFrame = Torso.CFrame
  456. local prt16 = Instance.new("Part")
  457. prt16.formFactor = 1
  458. prt16.Parent = swordholder
  459. prt16.CanCollide = false
  460. prt16.BrickColor = BrickColor.new("Grey")
  461. prt16.Name = "Blade7"
  462. prt16.Reflectance = 0.4
  463. prt16.Transparency = 0
  464. prt16.Size = Vector3.new(1,1,1)
  465. prt16.CFrame = Torso.CFrame
  466. swordholder:BreakJoints()
  467.  
  468. local msh1 = Instance.new("CylinderMesh")
  469. msh1.Parent = prt1
  470. msh1.Scale = Vector3.new(0.3,1,0.5)
  471. local msh2 = Instance.new("CylinderMesh")
  472. msh2.Parent = prt2
  473. msh2.Scale = Vector3.new(0.3,0.1,0.5)
  474. local msh3 = Instance.new("BlockMesh")
  475. msh3.Parent = prt3
  476. msh3.Scale = Vector3.new(0.4,0.3,0.4)
  477. local msh4 = Instance.new("BlockMesh")
  478. msh4.Parent = prt4
  479. msh4.Scale = Vector3.new(0.1,1,0.3)
  480. local msh5 = Instance.new("CylinderMesh")
  481. msh5.Parent = prt5
  482. msh5.Scale = Vector3.new(0.2,1,0.5)
  483. local msh6 = Instance.new("SpecialMesh")
  484. msh6.Parent = prt6
  485. msh6.MeshType = "Wedge"
  486. msh6.Scale = Vector3.new(0.1,0.7,0.3)
  487. local msh7 = Instance.new("CylinderMesh")
  488. msh7.Parent = prt7
  489. msh7.Scale = Vector3.new(0.2,0.1,0.5)
  490. local msh8 = Instance.new("CylinderMesh")
  491. msh8.Parent = prt8
  492. msh8.Scale = Vector3.new(0.2,0.1,0.5)
  493. local msh9 = Instance.new("CylinderMesh")
  494. msh9.Parent = prt9
  495. msh9.Scale = Vector3.new(0.2,0.1,0.5)
  496. local msh10 = Instance.new("CylinderMesh")
  497. msh10.Parent = prt10
  498. msh10.Scale = Vector3.new(0.2,0.1,0.5)
  499. local msh11 = Instance.new("CylinderMesh")
  500. msh11.Parent = prt11
  501. msh11.Scale = Vector3.new(0.2,0.1,0.5)
  502. local msh12 = Instance.new("BlockMesh")
  503. msh12.Parent = prt12
  504. msh12.Scale = Vector3.new(0.2,0.2,0.3)
  505. local msh13 = Instance.new("BlockMesh")
  506. msh13.Parent = prt13
  507. msh13.Scale = Vector3.new(0.1,0.5,0.3)
  508. local msh14 = Instance.new("BlockMesh")
  509. msh14.Parent = prt14
  510. msh14.Scale = Vector3.new(0.1,0.1,0.1)
  511. local msh15 = Instance.new("BlockMesh")
  512. msh15.Parent = prt15
  513. msh15.Scale = Vector3.new(0.1,0.3,0.3)
  514. local msh16 = Instance.new("SpecialMesh")
  515. msh16.Parent = prt16
  516. msh16.MeshType = "Wedge"
  517. msh16.Scale = Vector3.new(0.1,0.5,0.3)
  518.  
  519. local w1 = Instance.new("Weld")
  520. w1.Parent = prt1
  521. w1.Part0 = prt1
  522. w1.Part1 = RightArm
  523. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,1,0)
  524. w1.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  525. local w2 = Instance.new("Weld")
  526. w2.Parent = prt2
  527. w2.Part0 = prt2
  528. w2.Part1 = prt1
  529. w2.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.66,0)
  530. w2.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  531. local w3 = Instance.new("Weld")
  532. w3.Parent = prt3
  533. w3.Part0 = prt3
  534. w3.Part1 = prt1
  535. w3.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.78,0)
  536. w3.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,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,-1.35,0)
  542. w4.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  543. local w5 = Instance.new("Weld")
  544. w5.Parent = prt5
  545. w5.Part0 = prt5
  546. w5.Part1 = prt3
  547. w5.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.77,0)
  548. w5.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  549. local w6 = Instance.new("Weld")
  550. w6.Parent = prt6
  551. w6.Part0 = prt6
  552. w6.Part1 = prt4
  553. w6.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-1.61,0)
  554. w6.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  555. local w7 = Instance.new("Weld")
  556. w7.Parent = prt7
  557. w7.Part0 = prt7
  558. w7.Part1 = LeftArm
  559. w7.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,1,0)
  560. w7.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  561. local w8 = Instance.new("Weld")
  562. w8.Parent = prt8
  563. w8.Part0 = prt8
  564. w8.Part1 = prt7
  565. w8.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.12,0)
  566. w8.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  567. local w9 = Instance.new("Weld")
  568. w9.Parent = prt9
  569. w9.Part0 = prt9
  570. w9.Part1 = prt7
  571. w9.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.12,0)
  572. w9.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  573. local w10 = Instance.new("Weld")
  574. w10.Parent = prt10
  575. w10.Part0 = prt10
  576. w10.Part1 = prt7
  577. w10.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.24,0)
  578. w10.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  579. local w11 = Instance.new("Weld")
  580. w11.Parent = prt11
  581. w11.Part0 = prt11
  582. w11.Part1 = prt7
  583. w11.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.24,0)
  584. w11.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  585. local w12 = Instance.new("Weld")
  586. w12.Parent = prt12
  587. w12.Part0 = prt12
  588. w12.Part1 = prt7
  589. w12.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.4,0)
  590. w12.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  591. local w13 = Instance.new("Weld")
  592. w13.Parent = prt13
  593. w13.Part0 = prt13
  594. w13.Part1 = prt12
  595. w13.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.42,0)
  596. w13.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  597. local w14 = Instance.new("Weld")
  598. w14.Parent = prt14
  599. w14.Part0 = prt14
  600. w14.Part1 = prt13
  601. w14.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.35,0.1)
  602. w14.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  603. local w15 = Instance.new("Weld")
  604. w15.Parent = prt15
  605. w15.Part0 = prt15
  606. w15.Part1 = prt14
  607. w15.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.24,-0.1)
  608. w15.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  609. local w16 = Instance.new("Weld")
  610. w16.Parent = prt16
  611. w16.Part0 = prt16
  612. w16.Part1 = prt15
  613. w16.C0 = CFrame.fromEulerAnglesXYZ(3.14,0,0) * CFrame.new(0,0.48,0)
  614. w16.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  615.  
  616.  
  617.  
  618.  
  619. function unequipweld()
  620.  
  621. end
  622.  
  623. unequipweld()
  624.  
  625.  
  626.  
  627. function equipweld()
  628.  
  629.  
  630. end
  631.  
  632.  
  633. function ss(parent,p) --Slash
  634.  
  635. local SlashSound = Instance.new("Sound")
  636. SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  637. SlashSound.Parent = parent
  638. SlashSound.Volume = .7
  639. SlashSound.Pitch = p
  640. SlashSound.PlayOnRemove = true
  641. coroutine.resume(coroutine.create(function()
  642. wait()
  643. SlashSound.Parent = nil
  644. end))
  645. end
  646. function uss(parent,p) --unsheath
  647.  
  648. local SlashSound = Instance.new("Sound")
  649. SlashSound.SoundId = "rbxasset://sounds\\unsheath.wav"
  650. SlashSound.Parent = parent
  651. SlashSound.Volume = .7
  652. SlashSound.Pitch = p
  653. SlashSound.PlayOnRemove = true
  654. coroutine.resume(coroutine.create(function()
  655. wait()
  656. SlashSound.Parent = nil
  657. end))
  658. end
  659. function ms(parent,p) --Metal Cling Sound
  660.  
  661. local SlashSound = Instance.new("Sound")
  662. SlashSound.SoundId = "rbxasset://sounds\\metal.ogg"
  663. SlashSound.Parent = parent
  664. SlashSound.Volume = 1
  665. SlashSound.Pitch = p
  666. SlashSound.PlayOnRemove = true
  667. coroutine.resume(coroutine.create(function()
  668. wait()
  669. SlashSound.Parent = nil
  670. end))
  671. end
  672.  
  673. --
  674. --
  675.  
  676. function returndmg()
  677. mindamage = omindamage
  678. maxdamage = omaxdamage
  679. crtmaxdamage = ocrtmaxdamage
  680. end
  681.  
  682. function subdmg(sub)
  683. mindamage = omindamage - sub
  684. maxdamage = omaxdamage - sub
  685. crtmaxdamage = ocrtmaxdamage - sub
  686. end
  687.  
  688. function prcntdmg(sub)
  689. mindamage = math.floor(omindamage - (omindamage*(sub/100)))
  690. maxdamage = math.floor(omaxdamage - (omaxdamage*(sub/100)))
  691. crtmaxdamage = math.floor(ocrtmaxdamage - (ocrtmaxdamage*(sub/100)))
  692. end
  693.  
  694. function tagHumanoid(humanoid, player)
  695. local creator_tag = Instance.new("ObjectValue")
  696. creator_tag.Value = player
  697. creator_tag.Name = "creator"
  698. creator_tag.Parent = humanoid
  699. end
  700.  
  701. function untagHumanoid(humanoid)
  702. if humanoid ~= nil then
  703. local tag = humanoid:findFirstChild("creator")
  704. if tag ~= nil then
  705. tag.Parent = nil
  706. end
  707. end
  708. end
  709.  
  710. local function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  711. return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  712. end
  713.  
  714.  
  715.  
  716. function equipanim()
  717. attack = true
  718. for i = 0.1 , 1 , 0.1 do
  719. wait()
  720. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0)
  721. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  722. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0)
  723. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  724. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(0, 0, math.rad(0))
  725. RWL.C1 = CFrame.new(0.5, 1, 0)
  726. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(0, 0, math.rad(0))
  727. LWL.C1 = CFrame.new(-0.5, 1, 0)
  728. end
  729. attack = false
  730. end
  731.  
  732.  
  733. function damagesplat(dmg,hit,crit,blocked)
  734. local mo = Instance.new("Model")
  735. mo.Name = dmg
  736. local pa = Instance.new("Part",mo)
  737. pa.formFactor = 3
  738. pa.Size = Vector3.new(0.8,0.3,0.8)
  739. if crit then
  740. pa.BrickColor = BrickColor.new("Bright yellow")
  741. elseif not crit then
  742. pa.BrickColor = BrickColor.new("Bright red")
  743. end
  744. if blocked then pa.BrickColor = BrickColor.new("Bright blue") end
  745. pa.CFrame = CFrame.new(hit.Position) * CFrame.new(0, 3, 0)
  746. pa.Name = "Head"
  747. local hah = Instance.new("Humanoid")
  748. hah.Parent = mo
  749. hah.MaxHealth = 0
  750. hah.Health = 0
  751. local bp = Instance.new("BodyPosition")
  752. bp.P = 14000
  753. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  754. bp.position = hit.Position + Vector3.new(0, 5, 0)
  755. coroutine.resume(coroutine.create(function()
  756. wait()
  757. mo.Parent = Character
  758. bp.Parent = pa
  759. wait(1.4)
  760. mo:remove()
  761. end))
  762. return pa
  763. end
  764.  
  765. function damage(hum,dmg,critornot)
  766. local pa = damagesplat(dmg,hum.Torso,critornot)
  767. hum:TakeDamage(dmg)
  768. coroutine.resume(coroutine.create(function()
  769. tagHumanoid(hum,Player)
  770. wait(1)
  771. untagHumanoid(hum)
  772. end))
  773. return pa
  774.  
  775. end
  776.  
  777. function AddRage(add)
  778. Rage = Rage + add
  779. if Rage > MaxRage then
  780. Rage = MaxRage
  781. end
  782. end
  783.  
  784. function OT(hit) --Normal Damage
  785. if Hitdeb == 1 then return end
  786. if hit.Parent == nil then return end
  787. local hum = hit.Parent:findFirstChild("Humanoid") if hum ~= nil and hum ~= Character.Humanoid then
  788. if hum.Health <= 0 then return end
  789. if hit.Parent:findFirstChild("Block") ~= nil then
  790. if hit.Parent.Block.Value then
  791. damagesplat(0,hum.Torso,false,true)
  792. Hitdeb = 1
  793. if hit.Parent.Block:findFirstChild("BlockPower") ~= nil then
  794. if hit.Parent.Block.BlockPower.Value <= 1 then
  795. hit.Parent.Block.Value = false
  796. elseif hit.Parent.Block.BlockPower.Value > 1 then
  797. local critrandomizer = math.random(crtrate)
  798. if critrandomizer ~= 1 then
  799. hit.Parent.Block.BlockPower.Value = hit.Parent.Block.BlockPower.Value - blockbreaker
  800. elseif critrandomizer == 1 then
  801. hit.Parent.Block.BlockPower.Value = hit.Parent.Block.BlockPower.Value - blockbreaker + 2
  802. end
  803. end
  804. end
  805. return end end
  806. local critrandomizer = math.random(crtrate)
  807. if critrandomizer ~= 1 then
  808. local rndmdamage = math.random(mindamage,maxdamage)
  809. damage(hum,rndmdamage,false)
  810. elseif critrandomizer == 1 then
  811. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  812. damage(hum,rndmdamage,true)
  813. end
  814. Hitdeb = 1
  815. end
  816. end
  817.  
  818. function OT2(hit) --Normal Damage
  819. if Hitdeb2 == 1 then return end
  820. if hit.Parent == nil then return end
  821. local hum = hit.Parent:findFirstChild("Humanoid") if hum ~= nil and hum ~= Character.Humanoid then
  822. if hum.Health <= 0 then return end
  823. if hit.Parent:findFirstChild("Block") ~= nil then
  824. if hit.Parent.Block.Value then
  825. damagesplat(0,hum.Torso,false,true)
  826. Hitdeb2 = 1
  827. if hit.Parent.Block:findFirstChild("BlockPower") ~= nil then
  828. if hit.Parent.Block.BlockPower.Value <= 1 then
  829. hit.Parent.Block.Value = false
  830. elseif hit.Parent.Block.BlockPower.Value > 1 then
  831. local critrandomizer = math.random(crtrate)
  832. if critrandomizer ~= 1 then
  833. hit.Parent.Block.BlockPower.Value = hit.Parent.Block.BlockPower.Value - blockbreaker
  834. elseif critrandomizer == 1 then
  835. hit.Parent.Block.BlockPower.Value = hit.Parent.Block.BlockPower.Value - blockbreaker + 2
  836. end
  837. end
  838. end
  839. return end end
  840. local critrandomizer = math.random(crtrate)
  841. if critrandomizer ~= 1 then
  842. local rndmdamage = math.random(mindamage,maxdamage)*2
  843. damage(hum,rndmdamage,false)
  844. elseif critrandomizer == 1 then
  845. local rndmdamage = math.random(maxdamage,crtmaxdamage)*2
  846. damage(hum,rndmdamage,true)
  847. end
  848. Hitdeb2 = 1
  849. end
  850. end
  851.  
  852.  
  853. function AoE(p,magnitude)
  854. local c = game.Workspace:GetChildren();
  855. for i = 1, #c do
  856. local hum = c[i]:findFirstChild("Humanoid")
  857. if hum ~= nil and hum.Health ~= 0 then
  858. local head = c[i]:findFirstChild("Head");
  859. if head ~= nil then
  860. local mag = (head.Position - p).magnitude;
  861. if mag <= magnitude and c[i].Name ~= Character.Name then
  862. local foundd = false
  863. for ii = 1 , #AoETrue do
  864. if AoETrue[ii] == c[i].Name then
  865.  
  866. foundd = true
  867. end
  868. end
  869. if foundd then
  870.  
  871. end
  872. --
  873. if not foundd then
  874. local critrandomizer = math.random(crtrate)
  875. if critrandomizer ~= 1 then
  876. local rndmdamage = math.random(mindamage,maxdamage)
  877. damage(hum,rndmdamage,false)
  878. elseif critrandomizer == 1 then
  879. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  880. damage(hum,rndmdamage,true)
  881. end
  882. table.insert(AoETrue,c[i].Name)
  883. end
  884. end
  885. end
  886. end
  887. end
  888. for ii = 1 , #AoETrue do
  889. table.remove(AoETrue,#AoETrue)
  890. end
  891. end
  892.  
  893. --
  894.  
  895.  
  896. --
  897.  
  898. function effect(Color,Ref,LP,P1)
  899. local effectsmsh = Instance.new("BlockMesh")
  900. effectsmsh.Scale = Vector3.new(1,1,1)
  901. effectsmsh.Name = "Mesh"
  902. local effectsg = Instance.new("Part")
  903. effectsg.formFactor = 3
  904. effectsg.CanCollide = false
  905. effectsg.Name = "Eff"
  906. effectsg.Locked = true
  907. effectsg.Anchored = true
  908. effectsg.Size = Vector3.new(0.2,1,0.2)
  909. effectsg.Parent = bodyholder
  910. effectsmsh.Parent = effectsg
  911. effectsg.BrickColor = BrickColor.new(Color)
  912. effectsg.Reflectance = Ref
  913. local point1 = P1
  914. local mg = (LP.p - point1.p).magnitude
  915. effectsg.Size = Vector3.new(0.2,mg,0.2)
  916. effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  917. coroutine.resume(coroutine.create(function()
  918. for i = 0 , 1 , 0.1 do
  919. wait()
  920. effectsg.Transparency = 1*i
  921. effectsmsh.Scale = Vector3.new(1-1*i,1,1-1*i)
  922. end
  923. wait()
  924. effectsg.Parent = nil
  925. end))
  926. end
  927. --
  928.  
  929.  
  930. con,con2,con3 = nil,nil,nil
  931. conn,conn2,conn3 = nil,nil,nil
  932.  
  933. function dmg1cnnct()
  934. if con ~= nil then
  935. con:disconnect()
  936. Hitdeb = 0
  937. end
  938. con = prt4.Touched:connect(OT)
  939. con2 = prt5.Touched:connect(OT)
  940. end
  941.  
  942. function dmg1dc()
  943. if con ~= nil then
  944. con:disconnect()
  945. Hitdeb = 0
  946. end
  947. if con2 ~= nil then
  948. con2:disconnect()
  949. Hitdeb = 0
  950. end
  951. end
  952.  
  953. function dmg2cnnct()
  954. if con ~= nil then
  955. con:disconnect()
  956. Hitdeb = 0
  957. end
  958. conn = prt14.Touched:connect(OT2)
  959. conn2 = prt15.Touched:connect(OT2)
  960. conn3 = prt16.Touched:connect(OT2)
  961. end
  962.  
  963. function dmg2dc()
  964. if conn ~= nil then
  965. conn:disconnect()
  966. Hitdeb2 = 0
  967. end
  968. if conn2 ~= nil then
  969. conn2:disconnect()
  970. Hitdeb2 = 0
  971. end
  972. if conn3 ~= nil then
  973. conn3:disconnect()
  974. Hitdeb2 = 0
  975. end
  976. end
  977.  
  978. function rptddmg(value,des,inc)
  979. coroutine.resume(coroutine.create(function()
  980. repeat
  981. wait(inc)
  982. Hitdeb = 0
  983. until value == des
  984. end))
  985. end
  986.  
  987. function atktype(s,e)
  988. coroutine.resume(coroutine.create(function ()
  989. attacktype = e
  990. wait(0.25)
  991. attacktype = s
  992. end))
  993. end
  994.  
  995. walking = false
  996. jumping = false
  997. Target = nil
  998.  
  999. function Walk()
  1000. if walking then return end
  1001. for i = 0.1 , 1 , 0.1 do
  1002. if jumping then return end
  1003. wait()
  1004. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0)
  1005. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1006. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0)
  1007. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1008. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(45*i), 0, math.rad(0))
  1009. RWL.C1 = CFrame.new(0.5, 1, 0)
  1010. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(-45*i), 0, math.rad(0))
  1011. LWL.C1 = CFrame.new(-0.5, 1, 0)
  1012. end
  1013. repeat
  1014. for i = 0.1 , 1 , 0.1 do
  1015. if jumping then return end
  1016. wait()
  1017. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5,0,0)
  1018. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1019. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5,0,0)
  1020. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1021. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(45-90*i), 0, math.rad(0))
  1022. RWL.C1 = CFrame.new(0.5, 1, 0)
  1023. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(-45+90*i), 0, math.rad(0))
  1024. LWL.C1 = CFrame.new(-0.5, 1, 0)
  1025. end
  1026. for i = 0.1 , 1 , 0.1 do
  1027. if jumping then return end
  1028. wait()
  1029. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5,0,0)
  1030. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1031. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5,0,0)
  1032. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1033. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-45+90*i), 0, math.rad(0))
  1034. RWL.C1 = CFrame.new(0.5, 1, 0)
  1035. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(45-90*i), 0, math.rad(0))
  1036. LWL.C1 = CFrame.new(-0.5, 1, 0)
  1037. end
  1038. until not walking or jumping
  1039. for i = 0.1 , 1 , 0.1 do
  1040. wait()
  1041. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0)
  1042. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1043. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0)
  1044. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1045. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(45-45*i), 0, math.rad(0))
  1046. RWL.C1 = CFrame.new(0.5, 1, 0)
  1047. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(-45+45*i), 0, math.rad(0))
  1048. LWL.C1 = CFrame.new(-0.5, 1, 0)
  1049. end
  1050. end
  1051.  
  1052. function Jump()
  1053. if jumping then return end
  1054. jumping = true
  1055. local vel = Instance.new("BodyVelocity",Torso)
  1056. vel.maxForce = Vector3.new(0,1,0) * math.huge
  1057. vel.P = vel.P * 5
  1058. vel.velocity = Vector3.new(0,jump,0)
  1059. coroutine.resume(coroutine.create(function()
  1060. wait() wait() wait() wait()
  1061. vel.Parent=nil
  1062. end))
  1063. for i = 0.1 , 1 , 0.1 do
  1064. wait()
  1065. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(-20+200*i), 0, math.rad(0))
  1066. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1067. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-20+200*i), 0, math.rad(0))
  1068. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1069. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-10*i), 0, math.rad(0))
  1070. RWL.C1 = CFrame.new(0.5, 1, 0)
  1071. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(-10*i), 0, math.rad(0))
  1072. LWL.C1 = CFrame.new(-0.5, 1, 0)
  1073. end
  1074. wait(1)
  1075. for i = 0.1 , 1 , 0.1 do
  1076. wait()
  1077. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(180-200*i), 0, math.rad(0))
  1078. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1079. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(180-200*i), 0, math.rad(0))
  1080. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1081. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-10+10*i), 0, math.rad(0))
  1082. RWL.C1 = CFrame.new(0.5, 1, 0)
  1083. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(-10+10*i), 0, math.rad(0))
  1084. LWL.C1 = CFrame.new(-0.5, 1, 0)
  1085. end
  1086. jumping = false
  1087. end
  1088.  
  1089. function onehit()
  1090. attack = true
  1091. for i = 0,1,0.1 do
  1092. wait()
  1093. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1094. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1095. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2*i,0,1*i)
  1096. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,1*i,0)
  1097. end
  1098. dmg1cnnct()
  1099. for i = 0,1,0.2 do
  1100. wait()
  1101. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)*i,0,0) * CFrame.new(0,1,0)
  1102. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0)
  1103. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1104. RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(2-1*i,0,1-2*i)
  1105. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,1,0)
  1106. end
  1107. dmg1dc()
  1108. attack = false
  1109. combo = 1
  1110. end
  1111.  
  1112. function twohit()
  1113. attack = true
  1114. for i = 0,1,0.1 do
  1115. wait()
  1116. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)-math.rad(90)*i,0,0) * CFrame.new(0,1,0)
  1117. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5,0,0)
  1118. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1119. RW.C0 = CFrame.new(1.5-0.5+0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(2-1+1.5*i,0,1-2+1*i)
  1120. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,1-1*i,0)
  1121. end
  1122. dmg1cnnct()
  1123. for i = 0,1,0.2 do
  1124. wait()
  1125. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)-math.rad(90)+math.rad(90)*i,0,0) * CFrame.new(0,1,0)
  1126. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5,0,0)
  1127. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1128. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2-1+1.5-2*i,0,0)
  1129. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1130. end
  1131. dmg1dc()
  1132. attack = false
  1133. combo = 2
  1134. end
  1135.  
  1136. function threehit()
  1137. attack = true
  1138. for i = 0,1,0.1 do
  1139. wait()
  1140. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)-math.rad(90)+math.rad(90)-math.rad(90)*i,0,0) * CFrame.new(0,1,0)
  1141. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5,0,0)
  1142. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1143. RW.C0 = CFrame.new(1.5-0.5*i,0.5+0.4*i,-0.5*i) * CFrame.fromEulerAnglesXYZ(0.5+1.07*i,0,-1.57*i)
  1144. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,-1.57*i,0)
  1145. end
  1146. dmg1cnnct()
  1147. for i = 0,1,0.2 do
  1148. wait()
  1149. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)-math.rad(90)+math.rad(90)-math.rad(90)+math.rad(90)*i,0,0) * CFrame.new(0,1,0)
  1150. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5,0,0)
  1151. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1152. RW.C0 = CFrame.new(1.5-0.5+0.5*i,0.5+0.4-0.4*i,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(0.5+1.07,0,-1.57+3.14*i)
  1153. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,-1.57,0)
  1154. end
  1155. dmg1dc()
  1156. attack = false
  1157. combo = 3
  1158. end
  1159.  
  1160. function fourhit()
  1161. attack = true
  1162. dmg1cnnct()
  1163. for i = 0,1,0.2 do
  1164. wait()
  1165. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)-math.rad(90)+math.rad(90)-math.rad(90)+math.rad(90),0,0) * CFrame.new(0,1,0)
  1166. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5,0,-0.5*i)
  1167. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1168. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,1.57-1.2*i)
  1169. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,-1.57+1.57*i,0)
  1170. end
  1171. wait(0.1)
  1172. dmg1dc()
  1173. attack = false
  1174. combo = 4
  1175. end
  1176.  
  1177. function fivehit()
  1178. attack = true
  1179. for i = 0,1,0.1 do
  1180. wait()
  1181. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)-math.rad(90)+math.rad(90)-math.rad(90)+math.rad(90)-math.rad(90)*i,0,0) * CFrame.new(0,1,0)
  1182. LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(-0.5+2.07*i,0,-0.5+1.5*i)
  1183. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,1.57*i,0)
  1184. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-2.07*i,0,0.37-0.37*i)
  1185. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1186. end
  1187. dmg2cnnct()
  1188. for i = 0,1,0.2 do
  1189. wait()
  1190. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)-math.rad(90)+math.rad(90)-math.rad(90)+math.rad(90)-math.rad(90),0,0) * CFrame.new(0,1,0)
  1191. LW.C0 = CFrame.new(-1.5+0.5-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(-0.5+2.07,0,1-2.57*i)
  1192. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,1.57,0)
  1193. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5,0,0)
  1194. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1195. end
  1196. wait(0.2)
  1197. dmg2dc()
  1198. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,1,0)
  1199. attack = false
  1200. combo = 0
  1201. end
  1202.  
  1203. function WindCharge()
  1204. attack = true
  1205. for i = 0,1,0.1 do
  1206. wait()
  1207. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,1,0)
  1208. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1209. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1210. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3*i,0,1*i)
  1211. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1212. end
  1213. dmg1cnnct()
  1214. lightning = true
  1215. coroutine.resume(coroutine.create(function()
  1216. Stun2(prt4,10,25,10)
  1217. --Stun2(prt4,10,25,10)
  1218. end))
  1219. for i = 0,1,0.2 do
  1220. wait()
  1221. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)*i,0,0) * CFrame.new(0,1,0)
  1222. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,-0.5*i)
  1223. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1224. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3-1.43*i,0,1-0.5*i)
  1225. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1226. end
  1227. wait()
  1228. local vel = Instance.new("BodyVelocity")
  1229. vel.Parent = Character.Torso
  1230. vel.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1
  1231. vel.velocity = Character.Head.CFrame.lookVector * 100
  1232. wait(0.5)
  1233. vel.Parent = nil
  1234. lightning = false
  1235. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,1,0)
  1236. dmg1dc()
  1237. attack = false
  1238. end
  1239.  
  1240. function Stab()
  1241. attack = true
  1242. dmg1cnnct()
  1243. for i = 0,1,0.2 do
  1244. wait()
  1245. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)*i,0,0) * CFrame.new(0,1,0)
  1246. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.2*i,0,-0.2*i)
  1247. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1248. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57*i,0,0.5*i)
  1249. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1250. end
  1251. wait(0.1)
  1252. dmg1dc()
  1253. for i = 0,1,0.2 do
  1254. wait()
  1255. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)-math.rad(90)*i,0,0) * CFrame.new(0,1,0)
  1256. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.2+0.2*i,0,-0.2+0.2*i)
  1257. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1258. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-1.57*i,0,0.5-0.5*i)
  1259. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1260. end
  1261. attack = false
  1262. end
  1263.  
  1264. local gairo = Instance.new("BodyGyro")
  1265. gairo.Parent = nil
  1266. gairo.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  1267. gairo.P = 20e+003
  1268.  
  1269. function WindKatanaWheelSpin()
  1270. attack = true
  1271. for i = 0,1,0.1 do
  1272. wait()
  1273. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)*i,math.rad(90)*i,0) * CFrame.new(0,1,0)
  1274. w7.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)-math.rad(90)*i,math.rad(90)*i,0) * CFrame.new(0,1,0)
  1275. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57*i,0,-1.57*i)
  1276. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1277. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57*i,0,1.57*i)
  1278. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1279. end
  1280. lightning = true
  1281. coroutine.resume(coroutine.create(function()
  1282. Stun2(prt6,1,1,1)
  1283. end))
  1284. dmg1cnnct()
  1285. dmg2cnnct()
  1286. cf = Head.CFrame
  1287. gairo.Parent = Head
  1288. gairo.cframe = Head.CFrame * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90))
  1289. for i = 0,1,0.03 do
  1290. wait()
  1291. gairo.cframe = gairo.cframe * CFrame.fromEulerAnglesXYZ(0,0.8,0)
  1292. end
  1293. gairo.cframe = cf
  1294. dmg1dc()
  1295. dmg2dc()
  1296. lightning = false
  1297. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90),math.rad(90),0) * CFrame.new(0,1,0)
  1298. w7.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)-math.rad(90),math.rad(90),0) * CFrame.new(0,1,0)
  1299. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,-1.57-0.5)
  1300. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1301. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,1.57+0.5)
  1302. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1303. wait(3)
  1304. gairo.Parent = nil
  1305. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,1,0)
  1306. w7.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,1,0)
  1307. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1308. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1309. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1310. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1311. attack = false
  1312. end
  1313.  
  1314. function SlashShockwave()
  1315. attack = true
  1316. for i = 0,1,0.1 do
  1317. wait()
  1318. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+1.57*i,0,0) * CFrame.new(0,1,0)
  1319. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0)
  1320. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1321. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.5*i,0,0)
  1322. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1323. end
  1324. wait(0.1)
  1325. local slash = Instance.new("Part")
  1326. slash.Parent = swordholder
  1327. slash.Position = Torso.Position
  1328. slash.Anchored = true
  1329. slash.Transparency = 0.2
  1330. slash.CanCollide = false
  1331. slash.Size = Vector3.new(1,1,1)
  1332. slash.BrickColor = BrickColor.new("White")
  1333. slash.CFrame = Torso.CFrame * CFrame.new(1.5,-3,-4)
  1334. local testbrick = Instance.new("Part")
  1335. testbrick.Parent = swordholder
  1336. testbrick.Anchored = true
  1337. testbrick.Transparency = 1
  1338. testbrick.CFrame = Torso.CFrame * CFrame.new(1.5,0,-4)
  1339. coroutine.resume(coroutine.create(function()
  1340. wait(0.1)
  1341. local c = game.Workspace:GetChildren()
  1342. for i = 1, #c do
  1343. local hum = c[i]:findFirstChild("Humanoid")
  1344. if hum ~= nil and hum.Health ~= 0 then
  1345. local head = c[i]:findFirstChild("Head")
  1346. if head ~= nil then
  1347. local targ = head.Position - testbrick.Position
  1348. local mag = targ.magnitude
  1349. if mag <= 3 and c[i].Name ~= Character.Name then
  1350. coroutine.resume(coroutine.create(function(Part,BodPos)
  1351. Part.Parent.Humanoid.Health=Part.Parent.Humanoid.Health-20
  1352. coroutine.resume(coroutine.create(function()
  1353. wait(0.5)
  1354. bodyVelocity:Remove()
  1355. end))
  1356. coroutine.resume(coroutine.create(function()
  1357. wait(1)
  1358. Gyro:Remove()
  1359. end))
  1360. end),head,fb)
  1361. end
  1362. end
  1363. end
  1364. end
  1365. testbrick.Parent = nil
  1366. end))
  1367. local lolmesh = Instance.new("SpecialMesh")
  1368. lolmesh.Parent = slash
  1369. lolmesh.Scale = Vector3.new(0.6,1,0.6)
  1370. lolmesh.MeshType = "Sphere"
  1371. coroutine.resume(coroutine.create(function(Part,Mesh)
  1372. for i = 0, 1, 0.2 do
  1373. wait(0)
  1374. Mesh.Scale = Mesh.Scale + Vector3.new(0,0.7,0)
  1375. end
  1376. wait(0.5)
  1377. for i = 0,1,0.1 do
  1378. wait()
  1379. Part.Transparency = Part.Transparency + 0.1
  1380. end
  1381. Part.Parent = nil
  1382. end),slash,lolmesh)
  1383. coroutine.resume(coroutine.create(function()
  1384. CF = -4
  1385. scale = 0.6
  1386. scale2 = 0.7
  1387. for i = 0,10 do
  1388. wait(0.1)
  1389. CF = CF * 1.2
  1390. scale = scale + 0.1
  1391. scale2 = scale2 + 0.2
  1392. local slash = Instance.new("Part")
  1393. slash.Parent = swordholder
  1394. slash.Position = Torso.Position
  1395. slash.Anchored = true
  1396. slash.Transparency = 0.2
  1397. slash.CanCollide = false
  1398. slash.Size = Vector3.new(1,1,1)
  1399. slash.BrickColor = BrickColor.new("White")
  1400. slash.CFrame = Torso.CFrame * CFrame.new(1+math.random(),-3,CF)
  1401. local testbrick = Instance.new("Part")
  1402. testbrick.Parent = swordholder
  1403. testbrick.Anchored = true
  1404. testbrick.Transparency = 1
  1405. testbrick.CFrame = Torso.CFrame * CFrame.new(1+math.random(),0,CF)
  1406. coroutine.resume(coroutine.create(function()
  1407. wait(0.1)
  1408. local c = game.Workspace:GetChildren()
  1409. for i = 1, #c do
  1410. local hum = c[i]:findFirstChild("Humanoid")
  1411. if hum ~= nil and hum.Health ~= 0 then
  1412. local head = c[i]:findFirstChild("Head")
  1413. if head ~= nil then
  1414. local targ = head.Position - testbrick.Position
  1415. local mag = targ.magnitude
  1416. if mag <= 3 and c[i].Name ~= Character.Name then
  1417. coroutine.resume(coroutine.create(function(Part,BodPos)
  1418. Part.Parent.Humanoid.Health=Part.Parent.Humanoid.Health-20
  1419. coroutine.resume(coroutine.create(function()
  1420. wait(0.5)
  1421. bodyVelocity:Remove()
  1422. end))
  1423. coroutine.resume(coroutine.create(function()
  1424. wait(1)
  1425. Gyro:Remove()
  1426. end))
  1427. end),head,fb)
  1428. end
  1429. end
  1430. end
  1431. end
  1432. testbrick.Parent = nil
  1433. end))
  1434. local lolmesh = Instance.new("SpecialMesh")
  1435. lolmesh.Parent = slash
  1436. lolmesh.Scale = Vector3.new(scale,1,scale)
  1437. lolmesh.MeshType = "Sphere"
  1438. coroutine.resume(coroutine.create(function(Part,Mesh)
  1439. Part.CFrame = Part.CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1440. for i = 0, 1, 0.2 do
  1441. wait(0)
  1442. Mesh.Scale = Mesh.Scale + Vector3.new(0,scale2,0)
  1443. end
  1444. wait(0.5)
  1445. for i = 0,1,0.1 do
  1446. wait()
  1447. Part.Transparency = Part.Transparency + 0.1
  1448. end
  1449. Part.Parent = nil
  1450. end),slash,lolmesh)
  1451. end
  1452. end))
  1453. for i = 0,1,0.2 do
  1454. wait()
  1455. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+1.57-1.57*i,0,0) * CFrame.new(0,1,0)
  1456. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+1*i,0,0)
  1457. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1458. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.5+2*i,0,0)
  1459. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1460. end
  1461. attack = false
  1462. end
  1463.  
  1464. function returnwelds()
  1465. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0)
  1466. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1467. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0)
  1468. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1469. end
  1470.  
  1471. Stun2=function(Feh,x,y,z)
  1472. coroutine.resume(coroutine.create(function(part)
  1473. --[[ if part.Parent:FindFirstChild("Torso")==nil then
  1474. return
  1475. end]]
  1476. Torsoh2=part
  1477. End2=Torsoh2.CFrame+Vector3.new(math.random(-20,20)/10,math.random(-30,30)/10,math.random(-20,20)/10)
  1478. ST2=Torsoh2.Position
  1479. --[[ p=Instance.new("BodyPosition")
  1480. p.P=3000
  1481. p.D=100
  1482. p.maxForce=Vector3.new(math.huge,0,math.huge)
  1483. p.position=Torsoh2.Position
  1484. p.Parent=Torsoh2]]
  1485. while part.Parent ~= nil and lightning == true do
  1486. -- f1:Play()
  1487. -- p.position=ST2+Vector3.new(math.random(-50,50)/50,0,math.random(-50,50)/50)
  1488. Start2=End2
  1489. End2=Torsoh2.CFrame*CFrame.new(math.random(-x,x)/10,math.random(-y,y)/10,math.random(-z,z)/10)
  1490. e=Instance.new("Part")
  1491. e.TopSurface=0
  1492. e.BottomSurface=0
  1493. e.CanCollide=false
  1494. e.Anchored=true
  1495. e.formFactor="Symmetric"
  1496. e.Size=Vector3.new(1,1,1)
  1497. Look2=(End2.p-Start2.p).unit
  1498. m=Instance.new("BlockMesh")
  1499. m.Scale=Vector3.new(.2,.2,(Start2.p-End2.p).magnitude)
  1500. m.Parent=e
  1501. e.CFrame=CFrame.new(Start2.p+Look2*(m.Scale.z/2),Start2.p+Look2*99)
  1502. e.Reflectance=.3
  1503. e.Name="Zap"
  1504. e.BrickColor=BrickColor.new("White")
  1505. e.Parent=part.Parent
  1506. coroutine.resume(coroutine.create(function(PAR) for i=1, 25 do PAR.Transparency=i/25 wait() end PAR.Parent=nil end),e)
  1507. wait()
  1508. end
  1509. wait(.25)
  1510. -- p.Parent=nil
  1511. end),Feh)
  1512. end
  1513.  
  1514. function Attackk(mag)
  1515. if attack then return end
  1516. if mag <= 6 then
  1517. local rndm = math.random(1,2)
  1518. if rndm == 1 then
  1519. coroutine.resume(coroutine.create(function()
  1520. if combo == 0 then
  1521. onehit()
  1522. elseif combo == 1 then
  1523. twohit()
  1524. elseif combo == 2 then
  1525. threehit()
  1526. elseif combo == 3 then
  1527. fourhit()
  1528. elseif combo == 4 then
  1529. fivehit()
  1530. end
  1531. end))
  1532. elseif rndm == 2 and combo == 0 then
  1533. coroutine.resume(coroutine.create(function()
  1534. Stab()
  1535. end))
  1536. end
  1537. elseif mag > 10 then
  1538. local rndm = math.random(1,3)
  1539. if rndm == 1 then
  1540. coroutine.resume(coroutine.create(function()
  1541. WindKatanaWheelSpin()
  1542. end))
  1543. elseif rndm == 2 then
  1544. coroutine.resume(coroutine.create(function()
  1545. WindCharge()
  1546. end))
  1547. elseif rndm == 3 then
  1548. coroutine.resume(coroutine.create(function()
  1549. SlashShockwave()
  1550. end))
  1551. end
  1552. end
  1553. end
  1554.  
  1555. local BG = Instance.new("BodyGyro",Torso)
  1556. BG.cframe = Torso.CFrame
  1557. BG.maxTorque = Vector3.new(0, math.huge,0)
  1558. BGSpin = 0
  1559.  
  1560. function FindTarget()
  1561. local c = game.Workspace:GetChildren();
  1562. local nearestmag = 1500
  1563. local nearestprsn = nil
  1564. for i = 1, #c do
  1565. local hum = c[i]:findFirstChild("Humanoid")
  1566. if hum ~= nil and hum.Health ~= 0 then
  1567. local head = c[i]:findFirstChild("Head");
  1568. if head ~= nil then
  1569. local mag = (head.Position - Torso.Position).magnitude;
  1570. if mag <= 1500 and c[i].Name ~= Character.Name then
  1571. if mag < nearestmag then
  1572. nearestmag = mag
  1573. nearestprsn = c[i]
  1574. end
  1575. end
  1576. end
  1577. end
  1578. end
  1579. Target = nearestprsn
  1580. end
  1581.  
  1582.  
  1583.  
  1584.  
  1585. local Humanoid = Instance.new("Humanoid",bodyholder)
  1586. Humanoid.MaxHealth = HP
  1587.  
  1588. equipanim()
  1589. wait(1)
  1590. bodyholder:MakeJoints()
  1591. Humanoid.Health = HP
  1592. Humanoid.WalkSpeed = WS
  1593. wait(1)
  1594. bodyholder.Torso.CFrame = CFrame.new(SpawnPos.Value)
  1595. Humanoid.Health = HP
  1596. script.Parent = Character
  1597.  
  1598.  
  1599.  
  1600. repeat
  1601. wait(0.1)
  1602. FindTarget()
  1603. if Target ~= nil then
  1604. BG.cframe = CFrame.new(Torso.Position,Target.Torso.Position) * CFrame.Angles(0,math.rad(BGSpin),0)
  1605. local mag = (Torso.Position-Target.Torso.Position).magnitude
  1606. if mag <= 40 then
  1607. Attackk(mag)
  1608. end
  1609. --
  1610. pcall(function()
  1611. Humanoid:MoveTo(Target.Torso.Position + CFrame.new(Torso.Position,Target.Torso.Position).lookVector * -1,Target.Torso)
  1612. end)
  1613. if Target.Torso.Position.y > Torso.Position.y+5 then
  1614. coroutine.resume(coroutine.create(Jump))
  1615. end
  1616. --
  1617. else
  1618. BG.cframe = Torso.cframe
  1619. Humanoid:MoveTo(Torso.Position,Torso)
  1620. end
  1621. if true then
  1622. if (Torso.Velocity * Vector3.new(1,0,1)).magnitude > 2 then
  1623. coroutine.resume(coroutine.create(Walk))
  1624. walking = true
  1625. elseif (Torso.Velocity * Vector3.new(1,0,1)).magnitude < 2 then
  1626. walking = false
  1627. end
  1628. else
  1629. walking = false
  1630. end
  1631. until Humanoid.Health <= 0
  1632.  
  1633. wait(5)
  1634. Character.Parent = nil
  1635.  
  1636. --mediafire
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement