Advertisement
jayrock3401

Untitled

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